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

Unified Diff: content/port/browser/render_widget_host_view_port.h

Issue 23364004: Implementation of device metrics emulation in render view. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Moved helper class to cc Created 7 years, 3 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/port/browser/render_widget_host_view_port.h
===================================================================
--- content/port/browser/render_widget_host_view_port.h (revision 221161)
+++ content/port/browser/render_widget_host_view_port.h (working copy)
@@ -253,6 +253,11 @@
// Gets the bounds of the window, in screen coordinates.
virtual gfx::Rect GetBoundsInRootWindow() = 0;
+ // Set expected image size coming from renderer. This is essential to emulate
+ // device metrics, where render widget renders only a part of the view.
+ // Empty |size| means that default view size is expected.
+ virtual void SetExpectedRenderedSize(const gfx::Size& size) = 0;
+
virtual gfx::GLSurfaceHandle GetCompositingSurface() = 0;
// Because the associated remote WebKit instance can asynchronously

Powered by Google App Engine
This is Rietveld 408576698