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

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

Issue 98523003: Implement "presentation" feature for window.open() Base URL: https://github.com/drott/cameo.git@presentationWindowSquashed
Patch Set: Created 7 years 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
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/fullscreen/fullscreen_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « chrome/browser/ui/browser_navigator.cc ('k') | chrome/browser/ui/fullscreen/fullscreen_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698