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 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 top 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 | 149 // Shows a notice teaching the user the new shortcut for going back or forward |
150 // Forward. | 150 // if the user has pressed the old shortcut more than once in three seconds |
151 virtual void ShowNewBackShortcutBubble(bool forward) = 0; | 151 // and the bubble has been shown less than five times. |
| 152 virtual void MaybeShowNewBackShortcutBubble(bool forward) = 0; |
| 153 |
| 154 // Hides the new back shortcut bubble, if showing, by fading it out. |
| 155 virtual void HideNewBackShortcutBubble() = 0; |
152 | 156 |
153 // Returns the size of WebContents in the browser. This may be called before | 157 // Returns the size of WebContents in the browser. This may be called before |
154 // the TabStripModel has an active tab. | 158 // the TabStripModel has an active tab. |
155 virtual gfx::Size GetContentsSize() const = 0; | 159 virtual gfx::Size GetContentsSize() const = 0; |
156 | 160 |
157 // Returns the location bar. | 161 // Returns the location bar. |
158 virtual LocationBar* GetLocationBar() const = 0; | 162 virtual LocationBar* GetLocationBar() const = 0; |
159 | 163 |
160 // Tries to focus the location bar. Clears the window focus (to avoid | 164 // Tries to focus the location bar. Clears the window focus (to avoid |
161 // inconsistent state) if this fails. | 165 // inconsistent state) if this fails. |
(...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
382 // currently resides in. | 386 // currently resides in. |
383 virtual std::string GetWorkspace() const = 0; | 387 virtual std::string GetWorkspace() const = 0; |
384 | 388 |
385 protected: | 389 protected: |
386 friend class BrowserCloseManager; | 390 friend class BrowserCloseManager; |
387 friend class BrowserView; | 391 friend class BrowserView; |
388 virtual void DestroyBrowser() = 0; | 392 virtual void DestroyBrowser() = 0; |
389 }; | 393 }; |
390 | 394 |
391 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 395 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |