Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(392)

Unified Diff: chrome/browser/ui/fullscreen_controller.h

Issue 10559071: Exit mouse lock or fullscreen on navigation and reload. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/fullscreen_controller.h
diff --git a/chrome/browser/ui/fullscreen_controller.h b/chrome/browser/ui/fullscreen_controller.h
index ef7eac81743823fe6fa389736663f4f1ae982ab7..f8ff72d2fbcaa21298b3741cb460eb4c88ab7840 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,6 +135,9 @@ class FullscreenController : public base::RefCounted<FullscreenController>,
// TODO(koz): Change |for_tab| to an enum.
void ToggleFullscreenModeInternal(bool for_tab);
+ void set_fullscreened_tab(TabContents* tab);
yzshen1 2012/06/20 18:07:54 - nit: please use SetFullscreenedTab. - optional:
scheib 2012/06/20 20:38:24 Done.
+ void set_mouse_lock_tab(TabContents* tab);
+
BrowserWindow* window_;
Profile* profile_;
Browser* browser_;
@@ -166,10 +165,6 @@ class FullscreenController : public base::RefCounted<FullscreenController>,
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);
};
« no previous file with comments | « no previous file | chrome/browser/ui/fullscreen_controller.cc » ('j') | chrome/browser/ui/fullscreen_controller.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698