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