Touch MLP CL1: Enable mobile-like behavior of webpages in tablet mode
When in tablet mode on Chrome OS, webpages should have a
mobile-like behavior such as:
- Shrink viewport contents to fit the window size.
- Mobile viewport style.
This also exposes WebContents::NotifyPreferencesChanged() so
that it's possible to trigger an update of all RVHs associated
with a WebContents including OOPIFs
BUG=822455,828697
TEST=browser_tests --gtest_filter=TabletModePageBehaviorTest.*
Change-Id: Id80316fdb7c504a8a6f40ca9127c13ca58a9eee9
Reviewed-on: https://chromium-review.googlesource.com/978519
Commit-Queue: Ahmed Fakhry <[email protected]>
Reviewed-by: Alex Moshchuk <[email protected]>
Reviewed-by: Scott Violet <[email protected]>
Cr-Commit-Position: refs/heads/master@{#548104}
diff --git a/content/browser/web_contents/web_contents_impl.h b/content/browser/web_contents/web_contents_impl.h
index 69e7122..3e8fa75 100644
--- a/content/browser/web_contents/web_contents_impl.h
+++ b/content/browser/web_contents/web_contents_impl.h
@@ -367,6 +367,7 @@
RenderFrameHost* outer_contents_frame) override;
WebContentsImpl* GetOuterWebContents() override;
void DidChangeVisibleSecurityState() override;
+ void NotifyPreferencesChanged() override;
void Stop() override;
void FreezePage() override;
@@ -1325,10 +1326,6 @@
// certificate via --allow-insecure-localhost.
void ShowInsecureLocalhostWarningIfNeeded();
- // Notify this WebContents that the preferences have changed. This will send
- // an IPC to all the renderer process associated with this WebContents.
- void NotifyPreferencesChanged();
-
// Format of |headers| is a new line separated list of key value pairs:
// "<key1>: <value1>\r\n<key2>: <value2>".
static download::DownloadUrlParameters::RequestHeadersType