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

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

Issue 7890056: FullscreenExitBubble temp UI for Mac. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: add test Created 9 years, 3 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/browser.h
diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
index 00f644074f9a84ccbdbb0e5203827f63393130ce..edee85b2f84bb4150e67627ccc4c5f5b363f2e5e 100644
--- a/chrome/browser/ui/browser.h
+++ b/chrome/browser/ui/browser.h
@@ -839,6 +839,10 @@ class Browser : public TabHandlerDelegate,
bool is_app() const;
bool is_devtools() const;
+ // True when the current tab is in fullscreen mode, requested by
+ // webkitRequestFullScreen.
Nico 2011/09/15 20:09:14 Do you document what's special about webkitRequest
jeremya 2011/09/16 03:39:58 I don't think there's a central place- but it's th
+ bool is_fullscreen_for_tab() const { return fullscreened_tab_ != NULL; }
+
protected:
// Wrapper for the factory method in BrowserWindow. This allows subclasses to
// set their own window.
@@ -1421,10 +1425,11 @@ class Browser : public TabHandlerDelegate,
BookmarkBar::State bookmark_bar_state_;
- // Tab to notify when the browser exits fullscreen mode.
+ // If there is currently a tab in fullscreen mode (entered via
+ // webkitRequestFullScreen), this is its wrapper.
TabContentsWrapper* fullscreened_tab_;
- // True if the current tab is in fullscreen mode.
+ // True if the current tab entered fullscreen mode via webkitRequestFullScreen
bool tab_caused_fullscreen_;
DISALLOW_COPY_AND_ASSIGN(Browser);

Powered by Google App Engine
This is Rietveld 408576698