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 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 // TabStripModelObserver should implement this instead of ActiveTabChanged(); | 122 // TabStripModelObserver should implement this instead of ActiveTabChanged(); |
123 // the Browser will call this method while processing that one. | 123 // the Browser will call this method while processing that one. |
124 virtual void OnActiveTabChanged(content::WebContents* old_contents, | 124 virtual void OnActiveTabChanged(content::WebContents* old_contents, |
125 content::WebContents* new_contents, | 125 content::WebContents* new_contents, |
126 int index, | 126 int index, |
127 int reason) = 0; | 127 int reason) = 0; |
128 | 128 |
129 // Called to force the zoom state to for the active tab to be recalculated. | 129 // Called to force the zoom state to for the active tab to be recalculated. |
130 // |can_show_bubble| is true when a user presses the zoom up or down keyboard | 130 // |can_show_bubble| is true when a user presses the zoom up or down keyboard |
131 // shortcuts and will be false in other cases (e.g. switching tabs, "clicking" | 131 // shortcuts and will be false in other cases (e.g. switching tabs, "clicking" |
132 // + or - in the wrench menu to change zoom). | 132 // + or - in the app menu to change zoom). |
133 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; | 133 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; |
134 | 134 |
135 // Windows and GTK remove the top controls in fullscreen, but Mac and Ash | 135 // Windows and GTK remove the top controls in fullscreen, but Mac and Ash |
136 // keep the controls in a slide-down panel. | 136 // keep the controls in a slide-down panel. |
137 virtual bool ShouldHideUIForFullscreen() const = 0; | 137 virtual bool ShouldHideUIForFullscreen() const = 0; |
138 | 138 |
139 // Returns true if the fullscreen bubble is visible. | 139 // Returns true if the fullscreen bubble is visible. |
140 virtual bool IsFullscreenBubbleVisible() const = 0; | 140 virtual bool IsFullscreenBubbleVisible() const = 0; |
141 | 141 |
142 // Show or hide the tab strip, toolbar and bookmark bar when in browser | 142 // Show or hide the tab strip, toolbar and bookmark bar when in browser |
(...skipping 252 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
395 // Returns object implementing ExclusiveAccessContext interface. | 395 // Returns object implementing ExclusiveAccessContext interface. |
396 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | 396 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; |
397 | 397 |
398 protected: | 398 protected: |
399 friend class BrowserCloseManager; | 399 friend class BrowserCloseManager; |
400 friend class BrowserView; | 400 friend class BrowserView; |
401 virtual void DestroyBrowser() = 0; | 401 virtual void DestroyBrowser() = 0; |
402 }; | 402 }; |
403 | 403 |
404 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 404 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |