Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(958)

Unified Diff: content/browser/renderer_host/render_widget_host_view_base.h

Issue 2695093005: Remove RWHV::SetBounds() from the public API, and make comments clearer.
Patch Set: Revert web_contents_sizer to its previous shenanigans (http://crbug.com/693953). Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: content/browser/renderer_host/render_widget_host_view_base.h
diff --git a/content/browser/renderer_host/render_widget_host_view_base.h b/content/browser/renderer_host/render_widget_host_view_base.h
index b7e0cda7766034cfe42ee7698329d66fe6aefed0..944b8cc1c3b514c8fc04fad15cadfdb4729851d5 100644
--- a/content/browser/renderer_host/render_widget_host_view_base.h
+++ b/content/browser/renderer_host/render_widget_host_view_base.h
@@ -159,6 +159,12 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
// The size of the view's backing surface in non-DPI-adjusted pixels.
virtual gfx::Size GetPhysicalBackingSize() const;
+ // Requests that the View's top-level window move itself to the specified
+ // position and size on-screen (in screen coordinates). This is used for
+ // pop-ups and some types of fullscreen Views. The default implementation is a
+ // no-op.
+ virtual void RequestTopLevelBoundsInScreen(const gfx::Rect& rect);
+
// Whether or not Blink's viewport size should be shrunk by the height of the
// URL-bar.
virtual bool DoBrowserControlsShrinkBlinkSize() const;

Powered by Google App Engine
This is Rietveld 408576698