diff options
author | boliu <boliu@chromium.org> | 2015-08-14 08:57:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2015-08-14 15:58:50 +0000 |
commit | 7b59e502d7ce400a101705e063c11c2173a178ad (patch) | |
tree | 5e90d7fc1e70c3225630e681a3bd0b85c13d451d /android_webview/common | |
parent | b1256514fd77d87d64ac55afe14e9f1a94e88d34 (diff) | |
download | chromium_src-7b59e502d7ce400a101705e063c11c2173a178ad.zip chromium_src-7b59e502d7ce400a101705e063c11c2173a178ad.tar.gz chromium_src-7b59e502d7ce400a101705e063c11c2173a178ad.tar.bz2 |
aw: Page visiblity behind switch
Enable page visibility behind a command line switch. There should be
no change in behavior if enable-page-visibility switch is missing.
When it's added:
* Visibility is changed to
(view visible) && (!attached or window visible) && (!onPause-ed)
The existing implementation is simply !onPaused.
* Pass page visibility signal into blink, and in turn, the compositor.
BUG=520089
Review URL: https://codereview.chromium.org/1291653004
Cr-Commit-Position: refs/heads/master@{#343396}
Diffstat (limited to 'android_webview/common')
-rw-r--r-- | android_webview/common/aw_switches.cc | 1 | ||||
-rw-r--r-- | android_webview/common/aw_switches.h | 1 |
2 files changed, 2 insertions, 0 deletions
diff --git a/android_webview/common/aw_switches.cc b/android_webview/common/aw_switches.cc index 98b3b03..f9bc2fe 100644 --- a/android_webview/common/aw_switches.cc +++ b/android_webview/common/aw_switches.cc @@ -6,6 +6,7 @@ namespace switches { +const char kEnablePageVisibility[] = "enable-page-visibility"; const char kUseInProcCommandBuffer[] = "use-in-proc-command-buffer"; } // namespace switches diff --git a/android_webview/common/aw_switches.h b/android_webview/common/aw_switches.h index 866bbe3..4dd4a6d 100644 --- a/android_webview/common/aw_switches.h +++ b/android_webview/common/aw_switches.h @@ -7,6 +7,7 @@ namespace switches { +extern const char kEnablePageVisibility[]; extern const char kUseInProcCommandBuffer[]; } // namespace switches |