chrome: Improve positioning of the "Find" widget (fixes #3461)

The "Find" widget will be excluded from regions near the edges of the window
that contain overlays, draggable regions or titlebar.
This commit is contained in:
Marshall Greenblatt
2023-04-12 14:34:39 -04:00
parent 17cab6d955
commit a39c2a0068
20 changed files with 630 additions and 151 deletions

View File

@@ -92,6 +92,9 @@ class BrowserDelegate : public content::WebContentsDelegate {
return true;
}
// Optionally modify the bounding box for the Find bar.
virtual void UpdateFindBarBoundingBox(gfx::Rect* bounds) {}
// Same as RequestMediaAccessPermission but returning |callback| if the
// request is unhandled.
[[nodiscard]] virtual content::MediaResponseCallback