Chromium Code Reviews| Index: chrome/browser/ui/browser.h |
| diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h |
| index fe2c1e14012b07c6a88fc31869cb1d2a497fe507..dd337b56f27f4afca378249b1aeed9d3686e84e1 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 |
| @@ -836,8 +834,6 @@ class Browser : public TabHandlerDelegate, |
| void OnAcceptFullscreenPermission(const GURL& url, |
|
yzshen1
2011/11/04 01:56:32
You could make fullscreen exit bubble directly not
koz (OOO until 15th September)
2011/11/06 23:30:20
Would you mind if I do that in a follow up change?
yzshen1
2011/11/08 00:55:41
Okay.
On 2011/11/06 23:30:20, koz wrote:
|
| 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 +847,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 +905,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 +1147,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 +1266,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,21 +1406,11 @@ 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_; |
| - |
| // True if the browser window has been shown at least once. |
| bool window_has_shown_; |
| + FullscreenController* fullscreen_controller_; |
|
Peter Kasting
2011/11/03 18:24:56
Nit: I'd put this above |window_has_shown_|
tfarina
2011/11/04 01:09:31
Aren't we leaking this? Could you use scoped_ptr?
koz (OOO until 15th September)
2011/11/06 23:30:20
Done.
koz (OOO until 15th September)
2011/11/06 23:30:20
Done.
|
| + |
| DISALLOW_COPY_AND_ASSIGN(Browser); |
| }; |