| Index: chrome/browser/ui/fullscreen/fullscreen_controller.h
|
| diff --git a/chrome/browser/ui/fullscreen/fullscreen_controller.h b/chrome/browser/ui/fullscreen/fullscreen_controller.h
|
| index 6a5aa4b517bc6ab06f0a79d1e676c35cca2d5ead..6d4394a66a5417f928692a1dd6b70dc2ecaf55d8 100644
|
| --- a/chrome/browser/ui/fullscreen/fullscreen_controller.h
|
| +++ b/chrome/browser/ui/fullscreen/fullscreen_controller.h
|
| @@ -64,6 +64,10 @@ class FullscreenController : public content::NotificationObserver {
|
| void ToggleFullscreenModeForTab(content::WebContents* web_contents,
|
| bool enter_fullscreen);
|
|
|
| + // Presentation API Fullscreen //////////////////////////////////////////////
|
| + void TogglePresentationMode();
|
| + bool IsPresentationFullscreen();
|
| +
|
| // Extension API implementation uses this method to toggle fullscreen mode.
|
| // The extension's name is displayed in the full screen bubble UI to attribute
|
| // the cause of the full screen state change.
|
| @@ -144,7 +148,9 @@ class FullscreenController : public content::NotificationObserver {
|
| #if defined(OS_MACOSX)
|
| BROWSER_WITH_CHROME,
|
| #endif
|
| - TAB
|
| + TAB,
|
| + PRESENTATION // a special BROWSER mode with a different Exit Bubble,
|
| + // which leads to closing the browser window.
|
| };
|
|
|
| void UpdateNotificationRegistrations();
|
| @@ -163,6 +169,7 @@ class FullscreenController : public content::NotificationObserver {
|
| void ExitFullscreenModeInternal();
|
| void SetFullscreenedTab(content::WebContents* tab);
|
| void SetMouseLockTab(content::WebContents* tab);
|
| + void SetPresentationTab(content::WebContents* tab);
|
|
|
| // Make the current tab exit fullscreen mode or mouse lock if it is in it.
|
| void ExitTabFullscreenOrMouseLockIfNecessary();
|
| @@ -209,6 +216,8 @@ class FullscreenController : public content::NotificationObserver {
|
| // Assign using SetMouseLockTab().
|
| content::WebContents* mouse_lock_tab_;
|
|
|
| + bool is_presentation_browser_fullscreen;
|
| +
|
| MouseLockState mouse_lock_state_;
|
|
|
| content::NotificationRegistrar registrar_;
|
|
|