summaryrefslogtreecommitdiffstats
path: root/android_webview/common
diff options
context:
space:
mode:
authormkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 12:46:38 +0000
committermkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-04-19 12:46:38 +0000
commit5614eae1b3ee87cdc9513f3e75b57d9c29d71a3f (patch)
tree7eb63ebb169d5de3b6b541bad928f0417940dca1 /android_webview/common
parent656d0996620653ee8aa5c8ce4ee3cd48ff35a5f0 (diff)
downloadchromium_src-5614eae1b3ee87cdc9513f3e75b57d9c29d71a3f.zip
chromium_src-5614eae1b3ee87cdc9513f3e75b57d9c29d71a3f.tar.gz
chromium_src-5614eae1b3ee87cdc9513f3e75b57d9c29d71a3f.tar.bz2
[android] Resize the android_webview if it's 0x0 initially.
This changes the content size update path for android_webview to use the preferred size RenderView mechanism instead of the CompositorFrameMetadata. The reason for the change is due to the fact that the CompositorFrameMetadata is not updated when the view size is 0x0, which is a common use case for the WebView when it's layout mode is set to "wrap content". BUG=b/8187850 TEST=AndroidWebViewTests Review URL: https://chromiumcodereview.appspot.com/12567020 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@195135 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'android_webview/common')
-rw-r--r--android_webview/common/render_view_messages.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/android_webview/common/render_view_messages.h b/android_webview/common/render_view_messages.h
index f3c60db..6d4ce7d 100644
--- a/android_webview/common/render_view_messages.h
+++ b/android_webview/common/render_view_messages.h
@@ -87,6 +87,10 @@ IPC_MESSAGE_ROUTED2(AwViewHostMsg_DocumentHasImagesResponse,
IPC_MESSAGE_ROUTED1(AwViewHostMsg_UpdateHitTestData,
android_webview::AwHitTestData)
+// Sent whenever the page scale factor (as seen by RenderView) is changed.
+IPC_MESSAGE_ROUTED1(AwViewHostMsg_PageScaleFactorChanged,
+ float /* page_scale_factor */)
+
// Notification that a new picture becomes available. It is only sent if
// AwViewMsg_EnableCapturePictureCallback was previously enabled.
IPC_MESSAGE_ROUTED0(AwViewHostMsg_PictureUpdated)