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

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

Issue 9702055: Automated tests for full screen & mouse lock M16 features (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Valgrind error fix, merge to 130358 Created 8 years, 9 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 e3bc44604a4a246e27e620154e9a52d484be567d..9284c19a545faf7e993bdfec8014dd101a109163 100644
--- a/chrome/browser/ui/fullscreen_controller.h
+++ b/chrome/browser/ui/fullscreen_controller.h
@@ -40,10 +40,21 @@ class FullscreenController : public base::RefCounted<FullscreenController> {
virtual ~FullscreenController();
// Querying.
- bool IsFullscreenForTab() const;
- bool IsFullscreenForTab(const content::WebContents* tab) const;
+
+ // Returns true if the window is currently fullscreen and was initially
+ // transitioned to fullscreen by a browser (vs tab) mode transition.
+ bool IsFullscreenForBrowser() const;
+
+ // Returns true if fullscreen has been caused by a tab.
+ // The window may still be transitioning, and window_->IsFullscreen()
+ // may still return false.
+ bool IsFullscreenForTabOrPending() const;
bool IsFullscreenForTabOrPending(const content::WebContents* tab) const;
+ // Returns true if the mouse has been locked or a lock request is pending
+ // user confirmation.
+ bool IsMouseLockedOrPending() const;
+
// Requests.
void RequestToLockMouse(content::WebContents* tab);
void ToggleFullscreenModeForTab(content::WebContents* tab,
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller_private.mm ('k') | chrome/browser/ui/fullscreen_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698