diff options
author | scheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-09 23:37:10 +0000 |
---|---|---|
committer | scheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-07-09 23:37:10 +0000 |
commit | d2b67a475c1f0c4b649e48b58d0fb1dd6c284e14 (patch) | |
tree | befea18c13a926fde2bdded23b99298db7f4b7f9 /chrome/browser/ui/fullscreen_controller.h | |
parent | 9cbcbbb3bb2cfbc7dfc50cb65d9b2e0a4ab7a240 (diff) | |
download | chromium_src-d2b67a475c1f0c4b649e48b58d0fb1dd6c284e14.zip chromium_src-d2b67a475c1f0c4b649e48b58d0fb1dd6c284e14.tar.gz chromium_src-d2b67a475c1f0c4b649e48b58d0fb1dd6c284e14.tar.bz2 |
Merge 143417 - Exit mouse lock or fullscreen on navigation and reload.
Merge approved in roll-up issue crbug.com/134196#c9.
BUG=131702, 132669, 130301
Review URL: https://chromiumcodereview.appspot.com/10559071
TBR=scheib@chromium.org
git-svn-id: svn://svn.chromium.org/chrome/branches/1180/src@145788 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/ui/fullscreen_controller.h')
-rw-r--r-- | chrome/browser/ui/fullscreen_controller.h | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/chrome/browser/ui/fullscreen_controller.h b/chrome/browser/ui/fullscreen_controller.h index ef7eac8..e6d26c2 100644 --- a/chrome/browser/ui/fullscreen_controller.h +++ b/chrome/browser/ui/fullscreen_controller.h @@ -119,11 +119,7 @@ class FullscreenController : public base::RefCounted<FullscreenController>, // mode if necessary. void NotifyTabOfExitIfNecessary(); - // Makes the browser exit fullscreen mode when a navigation occurs. - void EnterCancelFullscreenOnNavigateMode(); - - // Makes the browser no longer exit fullscreen mode when a navigation occurs. - void ExitCancelFullscreenOnNavigateMode(); + void UpdateNotificationRegistrations(); // Make the current tab exit fullscreen mode or mouse lock if it is in it. void ExitTabFullscreenOrMouseLockIfNecessary(); @@ -139,12 +135,16 @@ class FullscreenController : public base::RefCounted<FullscreenController>, // TODO(koz): Change |for_tab| to an enum. void ToggleFullscreenModeInternal(bool for_tab); + void SetFullscreenedTab(TabContents* tab); + void SetMouseLockTab(TabContents* tab); + BrowserWindow* window_; Profile* profile_; Browser* browser_; // If there is currently a tab in fullscreen mode (entered via // webkitRequestFullScreen), this is its TabContents. + // Assign using SetFullscreenedTab(). TabContents* fullscreened_tab_; // The URL of the extension which trigerred "browser fullscreen" mode. @@ -160,16 +160,13 @@ class FullscreenController : public base::RefCounted<FullscreenController>, bool toggled_into_fullscreen_; // TabContents for current tab requesting or currently in mouse lock. + // Assign using SetMouseLockTab(). TabContents* mouse_lock_tab_; MouseLockState mouse_lock_state_; content::NotificationRegistrar registrar_; - // If this is true then we are listening for navigation events and will - // cancel fullscreen when one occurs. - bool cancel_fullscreen_on_navigate_mode_; - DISALLOW_COPY_AND_ASSIGN(FullscreenController); }; |