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