| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| 7 | 7 |
| 8 #include "base/callback_forward.h" | 8 #include "base/callback_forward.h" |
| 9 #include "chrome/browser/lifetime/browser_close_manager.h" | 9 #include "chrome/browser/lifetime/browser_close_manager.h" |
| 10 #include "chrome/browser/signin/chrome_signin_helper.h" | 10 #include "chrome/browser/signin/chrome_signin_helper.h" |
| (...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 141 // Windows and GTK remove the top controls in fullscreen, but Mac and Ash | 141 // Windows and GTK remove the top controls in fullscreen, but Mac and Ash |
| 142 // keep the controls in a slide-down panel. | 142 // keep the controls in a slide-down panel. |
| 143 virtual bool ShouldHideUIForFullscreen() const = 0; | 143 virtual bool ShouldHideUIForFullscreen() const = 0; |
| 144 | 144 |
| 145 // Returns true if the fullscreen bubble is visible. | 145 // Returns true if the fullscreen bubble is visible. |
| 146 virtual bool IsFullscreenBubbleVisible() const = 0; | 146 virtual bool IsFullscreenBubbleVisible() const = 0; |
| 147 | 147 |
| 148 // Show or hide the tab strip, toolbar and bookmark bar when in browser | 148 // Show or hide the tab strip, toolbar and bookmark bar when in browser |
| 149 // fullscreen. | 149 // fullscreen. |
| 150 // Currently only supported on Mac. | 150 // Currently only supported on Mac. |
| 151 virtual bool SupportsFullscreenWithToolbar() const = 0; | |
| 152 virtual void UpdateFullscreenWithToolbar(bool with_toolbar) = 0; | 151 virtual void UpdateFullscreenWithToolbar(bool with_toolbar) = 0; |
| 152 virtual void ToggleFullscreenToolbar() = 0; |
| 153 virtual bool IsFullscreenWithToolbar() const = 0; | 153 virtual bool IsFullscreenWithToolbar() const = 0; |
| 154 virtual bool ShouldHideFullscreenToolbar() const = 0; |
| 154 | 155 |
| 155 #if defined(OS_WIN) | 156 #if defined(OS_WIN) |
| 156 // Sets state for entering or exiting Win8 Metro snap mode. | 157 // Sets state for entering or exiting Win8 Metro snap mode. |
| 157 virtual void SetMetroSnapMode(bool enable) = 0; | 158 virtual void SetMetroSnapMode(bool enable) = 0; |
| 158 | 159 |
| 159 // Returns whether the window is currently in Win8 Metro snap mode. | 160 // Returns whether the window is currently in Win8 Metro snap mode. |
| 160 virtual bool IsInMetroSnapMode() const = 0; | 161 virtual bool IsInMetroSnapMode() const = 0; |
| 161 #endif | 162 #endif |
| 162 | 163 |
| 163 // Returns the location bar. | 164 // Returns the location bar. |
| (...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 391 // Returns object implementing ExclusiveAccessContext interface. | 392 // Returns object implementing ExclusiveAccessContext interface. |
| 392 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | 393 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; |
| 393 | 394 |
| 394 protected: | 395 protected: |
| 395 friend class BrowserCloseManager; | 396 friend class BrowserCloseManager; |
| 396 friend class BrowserView; | 397 friend class BrowserView; |
| 397 virtual void DestroyBrowser() = 0; | 398 virtual void DestroyBrowser() = 0; |
| 398 }; | 399 }; |
| 399 | 400 |
| 400 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 401 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |