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

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: Style 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)
@@ -890,6 +890,12 @@
// compositor path.
IPC_MESSAGE_ROUTED0(ViewMsg_SwapBuffers_ACK)
+// Tells the render view that a ViewHostMsg_EmulateDevice message
+// was processed. This signals the render view that it's safe to emulate,
+// and host will accept rendered image of any size.
+IPC_MESSAGE_ROUTED1(ViewMsg_EmulateDevice_ACK,
+ bool /* enabled */)
+
// Tells the render widget that a smooth scroll completed.
IPC_MESSAGE_ROUTED0(ViewMsg_SyntheticGestureCompleted)
@@ -1649,6 +1655,12 @@
IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginSmoothScroll,
ViewHostMsg_BeginSmoothScroll_Params /* params */)
+// Sent to initiate emulating device mode. In this mode, rendered image may be
+// not the same size as view itself. In response to this message, the host
+// generates a ViewMsg_EmulateDevice_ACK message.
+IPC_MESSAGE_ROUTED1(ViewHostMsg_EmulateDevice,
+ bool /* enabled */)
+
IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)

Powered by Google App Engine
This is Rietveld 408576698