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

Unified Diff: android_webview/common/render_view_messages.h

Issue 23899004: Use contents size for android_webview layout. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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: android_webview/common/render_view_messages.h
diff --git a/android_webview/common/render_view_messages.h b/android_webview/common/render_view_messages.h
index 96d17589c7120f1176e8afd0f41ab398f9ef2e62..31dc3e91851763f66c1da74f78235b11f863248f 100644
--- a/android_webview/common/render_view_messages.h
+++ b/android_webview/common/render_view_messages.h
@@ -69,11 +69,18 @@ IPC_MESSAGE_ROUTED1(AwViewMsg_SetInitialPageScale,
// Sets the base background color for this view.
IPC_MESSAGE_ROUTED1(AwViewMsg_SetBackgroundColor,
- SkColor);
+ SkColor)
IPC_MESSAGE_CONTROL1(AwViewMsg_SetJsOnlineProperty,
bool /* network_up */)
+// Enables the sending of content size change notifications by the renderer.
+IPC_MESSAGE_ROUTED0(AwViewMsg_EnableContentsSizeNotifications)
+
+// Disables the sending of content size change notifications by the renderer.
+IPC_MESSAGE_ROUTED0(AwViewMsg_DisableContentsSizeNotifications)
benm (inactive) 2013/09/06 19:27:53 Do we need two IPCs for this? Suggest just one wit
mkosiba (inactive) 2013/09/09 13:46:21 Done.
+
+
//-----------------------------------------------------------------------------
// RenderView messages
// These are messages sent from the renderer to the browser process.
@@ -90,3 +97,7 @@ IPC_MESSAGE_ROUTED1(AwViewHostMsg_UpdateHitTestData,
// Sent whenever the page scale factor (as seen by RenderView) is changed.
IPC_MESSAGE_ROUTED1(AwViewHostMsg_PageScaleFactorChanged,
float /* page_scale_factor */)
+
+// Sent whenever the contents size (as seen by RenderView) is changed.
+IPC_MESSAGE_ROUTED1(AwViewHostMsg_OnContentsSizeChanged,
+ gfx::Size /* contents_size */)

Powered by Google App Engine
This is Rietveld 408576698