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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
144 content::WebContents* new_contents, | 144 content::WebContents* new_contents, |
145 int index, | 145 int index, |
146 int reason) = 0; | 146 int reason) = 0; |
147 | 147 |
148 // Called to force the zoom state to for the active tab to be recalculated. | 148 // Called to force the zoom state to for the active tab to be recalculated. |
149 // |can_show_bubble| is true when a user presses the zoom up or down keyboard | 149 // |can_show_bubble| is true when a user presses the zoom up or down keyboard |
150 // shortcuts and will be false in other cases (e.g. switching tabs, "clicking" | 150 // shortcuts and will be false in other cases (e.g. switching tabs, "clicking" |
151 // + or - in the app menu to change zoom). | 151 // + or - in the app menu to change zoom). |
152 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; | 152 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; |
153 | 153 |
| 154 virtual void SetFullscreen(bool fullscreen) = 0; |
| 155 |
154 // Windows and GTK remove the browser controls in fullscreen, but Mac and Ash | 156 // Windows and GTK remove the browser controls in fullscreen, but Mac and Ash |
155 // keep the controls in a slide-down panel. | 157 // keep the controls in a slide-down panel. |
156 virtual bool ShouldHideUIForFullscreen() const = 0; | 158 virtual bool ShouldHideUIForFullscreen() const = 0; |
157 | 159 |
158 // Returns true if the fullscreen bubble is visible. | 160 // Returns true if the fullscreen bubble is visible. |
159 virtual bool IsFullscreenBubbleVisible() const = 0; | 161 virtual bool IsFullscreenBubbleVisible() const = 0; |
160 | 162 |
161 // Shows a notice teaching the user the new shortcut for going back or forward | 163 // Shows a notice teaching the user the new shortcut for going back or forward |
162 // if the user has pressed the old shortcut more than once in three seconds | 164 // if the user has pressed the old shortcut more than once in three seconds |
163 // and the bubble has been shown less than five times. | 165 // and the bubble has been shown less than five times. |
(...skipping 219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
383 virtual std::string GetWorkspace() const = 0; | 385 virtual std::string GetWorkspace() const = 0; |
384 virtual bool IsVisibleOnAllWorkspaces() const = 0; | 386 virtual bool IsVisibleOnAllWorkspaces() const = 0; |
385 | 387 |
386 protected: | 388 protected: |
387 friend class BrowserCloseManager; | 389 friend class BrowserCloseManager; |
388 friend class BrowserView; | 390 friend class BrowserView; |
389 virtual void DestroyBrowser() = 0; | 391 virtual void DestroyBrowser() = 0; |
390 }; | 392 }; |
391 | 393 |
392 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 394 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |