diff options
author | mkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-19 12:46:38 +0000 |
---|---|---|
committer | mkosiba@chromium.org <mkosiba@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-19 12:46:38 +0000 |
commit | 5614eae1b3ee87cdc9513f3e75b57d9c29d71a3f (patch) | |
tree | 7eb63ebb169d5de3b6b541bad928f0417940dca1 /android_webview/native/aw_settings.h | |
parent | 656d0996620653ee8aa5c8ce4ee3cd48ff35a5f0 (diff) | |
download | chromium_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/native/aw_settings.h')
-rw-r--r-- | android_webview/native/aw_settings.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/android_webview/native/aw_settings.h b/android_webview/native/aw_settings.h index cc0af1d..a8658c8 100644 --- a/android_webview/native/aw_settings.h +++ b/android_webview/native/aw_settings.h @@ -31,6 +31,9 @@ class AwSettings : public content::WebContentsObserver { AwRenderViewHostExt* GetAwRenderViewHostExt(); void UpdateInitialPageScale(); void UpdateTextZoom(); + void UpdatePreferredSizeMode(content::RenderViewHost* render_view_host); + void UpdateRenderViewHostExtSettings(); + void UpdateRenderViewHostSettings(content::RenderViewHost* render_view_host); // WebContentsObserver overrides: virtual void RenderViewCreated( |