Chromium Code Reviews| 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); |