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

Unified Diff: content/common/view_messages.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/common/view_messages.h
===================================================================
--- content/common/view_messages.h (revision 221161)
+++ content/common/view_messages.h (working copy)
@@ -1649,6 +1649,13 @@
IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginSmoothScroll,
ViewHostMsg_BeginSmoothScroll_Params /* params */)
+// Sent to make host accept image of a certain expected size instead of current
+// view size. This is essential to emulate device metrics, where render widget
+// renders only a part of the hosting view. Empty |size| means that default view
+// size is expected.
+IPC_MESSAGE_ROUTED1(ViewHostMsg_SetExpectedSize,
+ gfx::Size /* size */)
+
IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)

Powered by Google App Engine
This is Rietveld 408576698