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 "build/build_config.h" | 9 #include "build/build_config.h" |
10 #include "chrome/browser/lifetime/browser_close_manager.h" | 10 #include "chrome/browser/lifetime/browser_close_manager.h" |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 // + or - in the app menu to change zoom). | 137 // + or - in the app menu to change zoom). |
138 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; | 138 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; |
139 | 139 |
140 // Windows and GTK remove the top controls in fullscreen, but Mac and Ash | 140 // Windows and GTK remove the top controls in fullscreen, but Mac and Ash |
141 // keep the controls in a slide-down panel. | 141 // keep the controls in a slide-down panel. |
142 virtual bool ShouldHideUIForFullscreen() const = 0; | 142 virtual bool ShouldHideUIForFullscreen() const = 0; |
143 | 143 |
144 // Returns true if the fullscreen bubble is visible. | 144 // Returns true if the fullscreen bubble is visible. |
145 virtual bool IsFullscreenBubbleVisible() const = 0; | 145 virtual bool IsFullscreenBubbleVisible() const = 0; |
146 | 146 |
147 // Show or hide the tab strip, toolbar and bookmark bar when in browser | |
148 // fullscreen. | |
149 // Currently only supported on Mac. | |
150 virtual bool SupportsFullscreenWithToolbar() const = 0; | |
151 virtual void UpdateFullscreenWithToolbar(bool with_toolbar) = 0; | |
152 virtual void ToggleFullscreenToolbar() = 0; | |
153 virtual bool IsFullscreenWithToolbar() const = 0; | |
154 virtual bool ShouldHideFullscreenToolbar() const = 0; | |
155 | |
156 #if defined(OS_WIN) | 147 #if defined(OS_WIN) |
157 // Sets state for entering or exiting Win8 Metro snap mode. | 148 // Sets state for entering or exiting Win8 Metro snap mode. |
158 virtual void SetMetroSnapMode(bool enable) = 0; | 149 virtual void SetMetroSnapMode(bool enable) = 0; |
159 | 150 |
160 // Returns whether the window is currently in Win8 Metro snap mode. | 151 // Returns whether the window is currently in Win8 Metro snap mode. |
161 virtual bool IsInMetroSnapMode() const = 0; | 152 virtual bool IsInMetroSnapMode() const = 0; |
162 #endif | 153 #endif |
163 | 154 |
164 // Returns the location bar. | 155 // Returns the location bar. |
165 virtual LocationBar* GetLocationBar() const = 0; | 156 virtual LocationBar* GetLocationBar() const = 0; |
(...skipping 237 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
403 // Returns object implementing ExclusiveAccessContext interface. | 394 // Returns object implementing ExclusiveAccessContext interface. |
404 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | 395 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; |
405 | 396 |
406 protected: | 397 protected: |
407 friend class BrowserCloseManager; | 398 friend class BrowserCloseManager; |
408 friend class BrowserView; | 399 friend class BrowserView; |
409 virtual void DestroyBrowser() = 0; | 400 virtual void DestroyBrowser() = 0; |
410 }; | 401 }; |
411 | 402 |
412 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 403 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |