diff options
author | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-14 02:44:38 +0000 |
---|---|---|
committer | robertshield@chromium.org <robertshield@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-14 02:44:38 +0000 |
commit | 77cbe50efd143af46e0c2138f931f186d9e2b529 (patch) | |
tree | bcff4635945d6f149e3422feaca0503c1072ca2c /chrome/browser/ui/fullscreen_controller.h | |
parent | 5d0f00fdedc5c8181c3f1fd5db67a0f81df8462c (diff) | |
download | chromium_src-77cbe50efd143af46e0c2138f931f186d9e2b529.zip chromium_src-77cbe50efd143af46e0c2138f931f186d9e2b529.tar.gz chromium_src-77cbe50efd143af46e0c2138f931f186d9e2b529.tar.bz2 |
First pass at making Chrome support metro snap mode. It creates a fullscreen-alike mode that Chrome may enter when in metro snap mode.
This mode removes the chrome parts of Chrome as well as disabling the F11 key, while clamping Chrome to the size of the snap view portion of the screen.
Identical to http://crrev.com/141723 except for minor fixes in browser_view.cc to compile on Aura.
BUG=130623
TEST=NONE
Review URL: https://chromiumcodereview.appspot.com/10536144
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142074 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/fullscreen_controller.h')
-rw-r--r-- | chrome/browser/ui/fullscreen_controller.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/chrome/browser/ui/fullscreen_controller.h b/chrome/browser/ui/fullscreen_controller.h index b47ec5e..281622f 100644 --- a/chrome/browser/ui/fullscreen_controller.h +++ b/chrome/browser/ui/fullscreen_controller.h @@ -51,6 +51,11 @@ class FullscreenController : public base::RefCounted<FullscreenController> { bool IsFullscreenForTabOrPending( const content::WebContents* web_contents) const; +#if defined(OS_WIN) + // Returns whether we are currently in a Metro snap view. + bool IsInMetroSnapMode(); +#endif + bool IsMouseLockRequested() const; bool IsMouseLocked() const; @@ -60,6 +65,11 @@ class FullscreenController : public base::RefCounted<FullscreenController> { bool last_unlocked_by_target); void ToggleFullscreenModeForTab(content::WebContents* web_contents, bool enter_fullscreen); +#if defined(OS_WIN) + // API that puts the window into a mode suitable for rendering when Chrome + // is rendered in a 20% screen-width Metro snap view on Windows 8. + void SetMetroSnapMode(bool enable); +#endif #if defined(OS_MACOSX) void TogglePresentationMode(); #endif |