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

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: Fixed reviewers comments 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
diff --git a/content/common/view_messages.h b/content/common/view_messages.h
index ed0cf62b88434db5495b2057be34758bd697fba2..2edc2130ee741206c83d9dc6e63009b9ef5222de 100644
--- a/content/common/view_messages.h
+++ b/content/common/view_messages.h
@@ -1668,6 +1668,13 @@ IPC_STRUCT_END()
IPC_MESSAGE_ROUTED1(ViewHostMsg_BeginPinch,
ViewHostMsg_BeginPinch_Params /* params */)
+// Sent to make host accept image of a certain expected size instead of current
+// view size. This is essential to emulate screen 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,
aelias_OOO_until_Jul13 2013/09/27 22:51:14 Hmm, this SetExpectedSize thing still feels wrong.
dgozman 2013/10/01 06:22:16 This works when setting childrenTransform instead
+ gfx::Size /* size */)
+
IPC_MESSAGE_ROUTED0(ViewHostMsg_Focus)
IPC_MESSAGE_ROUTED0(ViewHostMsg_Blur)

Powered by Google App Engine
This is Rietveld 408576698