| Index: chrome/browser/ui/browser.h
|
| diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
|
| index fe2c1e14012b07c6a88fc31869cb1d2a497fe507..adc4da7ca0d981279cdc33e5c2fb1b4162075e7a 100644
|
| --- a/chrome/browser/ui/browser.h
|
| +++ b/chrome/browser/ui/browser.h
|
| @@ -55,6 +55,7 @@ class BrowserTabRestoreServiceDelegate;
|
| class BrowserWindow;
|
| class Extension;
|
| class FindBarController;
|
| +class FullscreenController;
|
| class InstantController;
|
| class InstantUnloadHandler;
|
| class PrefService;
|
| @@ -494,9 +495,6 @@ class Browser : public TabHandlerDelegate,
|
| // fullscreen.
|
| void WindowFullscreenStateChanged();
|
|
|
| - // Sends a notification that the fullscreen state has changed.
|
| - void NotifyFullscreenChange();
|
| -
|
| // Assorted browser commands ////////////////////////////////////////////////
|
|
|
| // NOTE: Within each of the following sections, the IDs are ordered roughly by
|
| @@ -833,11 +831,10 @@ class Browser : public TabHandlerDelegate,
|
| virtual void TabStripEmpty();
|
|
|
| // Fullscreen permission infobar callbacks.
|
| + // TODO(koz): Remove this and have callers call FullscreenController directly.
|
| void OnAcceptFullscreenPermission(const GURL& url,
|
| FullscreenExitBubbleType bubble_type);
|
| void OnDenyFullscreenPermission(FullscreenExitBubbleType bubble_type);
|
| - ContentSetting GetFullscreenSetting(const GURL& url);
|
| - ContentSetting GetMouseLockSetting(const GURL& url);
|
|
|
| // Figure out if there are tabs that have beforeunload handlers.
|
| bool TabsNeedBeforeUnloadFired();
|
| @@ -851,7 +848,7 @@ class Browser : public TabHandlerDelegate,
|
|
|
| // True when the current tab is in fullscreen mode, requested by
|
| // webkitRequestFullScreen.
|
| - bool is_fullscreen_for_tab() const { return fullscreened_tab_ != NULL; }
|
| + bool IsFullscreenForTab() const;
|
|
|
| // Called each time the browser window is shown.
|
| void OnWindowDidShow();
|
| @@ -909,15 +906,6 @@ class Browser : public TabHandlerDelegate,
|
| BOOKMARK_BAR_STATE_CHANGE_TOGGLE_FULLSCREEN,
|
| };
|
|
|
| - enum MouseLockState {
|
| - MOUSELOCK_NOT_REQUESTED,
|
| - // The page requests to lock the mouse and the user hasn't responded to the
|
| - // request.
|
| - MOUSELOCK_REQUESTED,
|
| - // Mouse lock has been allowed by the user.
|
| - MOUSELOCK_ACCEPTED
|
| - };
|
| -
|
| // Overridden from TabContentsDelegate:
|
| // Deprecated. Please use two-argument variant.
|
| // TODO(adriansc): Remove this method once refactoring changed all call sites.
|
| @@ -1160,25 +1148,6 @@ class Browser : public TabHandlerDelegate,
|
| // >= index.
|
| void SyncHistoryWithTabs(int index);
|
|
|
| - // Tab fullscreen functions /////////////////////////////////////////////////
|
| -
|
| - // There are two different kinds of fullscreen mode - "tab fullscreen" and
|
| - // "browser fullscreen". "Tab fullscreen" refers to when a tab enters
|
| - // fullscreen mode via the JS fullscreen API, and "browser fullscreen"
|
| - // refers to the user putting the browser itself into fullscreen mode from
|
| - // the UI. The difference is that tab fullscreen has implications for how
|
| - // the contents of the tab render (eg: a video element may grow to consume
|
| - // the whole tab), whereas browser fullscreen mode doesn't. Therefore if a
|
| - // user forces an exit from fullscreen, we need to notify the tab so it can
|
| - // stop rendering in its fullscreen mode.
|
| -
|
| - // Make the current tab exit fullscreen mode if it is in it.
|
| - void ExitTabbedFullscreenModeIfNecessary();
|
| -
|
| - // Notifies the tab that it has been forced out of fullscreen mode if
|
| - // necessary.
|
| - void NotifyTabOfFullscreenExitIfNecessary();
|
| -
|
| // OnBeforeUnload handling //////////////////////////////////////////////////
|
|
|
| typedef std::set<TabContents*> UnloadListenerSet;
|
| @@ -1298,12 +1267,6 @@ class Browser : public TabHandlerDelegate,
|
| // Notifies the tab that it has been forced out of fullscreen mode.
|
| void NotifyTabOfFullscreenExit();
|
|
|
| - // Determines what should be shown in the fullscreen exit bubble.
|
| - FullscreenExitBubbleType GetFullscreenExitBubbleType() const;
|
| -
|
| - // Updates the content of the fullscreen exit bubble.
|
| - void UpdateFullscreenExitBubbleContent();
|
| -
|
| // Data members /////////////////////////////////////////////////////////////
|
|
|
| content::NotificationRegistrar registrar_;
|
| @@ -1444,17 +1407,7 @@ class Browser : public TabHandlerDelegate,
|
|
|
| BookmarkBar::State bookmark_bar_state_;
|
|
|
| - // If there is currently a tab in fullscreen mode (entered via
|
| - // webkitRequestFullScreen), this is its wrapper.
|
| - TabContentsWrapper* fullscreened_tab_;
|
| -
|
| - // True if the current tab entered fullscreen mode via webkitRequestFullScreen
|
| - bool tab_caused_fullscreen_;
|
| - // True if tab fullscreen has been allowed, either by settings or by user
|
| - // clicking the allow button on the fullscreen infobar.
|
| - bool tab_fullscreen_accepted_;
|
| -
|
| - MouseLockState mouse_lock_state_;
|
| + scoped_refptr<FullscreenController> fullscreen_controller_;
|
|
|
| // True if the browser window has been shown at least once.
|
| bool window_has_shown_;
|
|
|