Facing Issue in enabling watermark for Picture In Picture Mode

135 views
Skip to first unread message

pritish patra

unread,
Sep 10, 2024, 12:01:55 PMSep 10
to Chromium-dev
Hi Guys,


auto watermark_view = std::make_unique<enterprise_watermark::WatermarkView>();

  watermark_view->SetString("WATERMARK_TEXT");

  gfx::Rect rect = contents_view->GetVisibleBounds();

  watermark_view->SetBoundsRect(rect);

  auto border = views::CreateEmptyBorder(100);

watermark_view->SetBorder(std::move(border));

contents_view->AddChildView(std::move(watermark_view));

Please let me know your suggestions


Reply all
Reply to author
Forward
0 new messages