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

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: FileURL & BrowserTest compilation fixes 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 9af0e7da935ed4fe2cafa61b70df2705773c05e8..9a54bf3793c7a3d4c57a4f5f8b808a4d1413e42f 100644
--- a/chrome/browser/ui/fullscreen_controller.h
+++ b/chrome/browser/ui/fullscreen_controller.h
@@ -41,9 +41,17 @@ 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;
sky 2012/03/22 22:48:10 Add some whitespace between methods to make it mor
scheib 2012/03/26 23:30:46 Done.
+ // 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);

Powered by Google App Engine
This is Rietveld 408576698