| 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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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 wrench 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 // Methods that change fullscreen state. | |
| 136 // On Mac, the tab strip and toolbar will be shown if |with_toolbar| is true, | |
| 137 // |with_toolbar| is ignored on other platforms. | |
| 138 virtual void EnterFullscreen(const GURL& url, | |
| 139 ExclusiveAccessBubbleType bubble_type, | |
| 140 bool with_toolbar) = 0; | |
| 141 virtual void ExitFullscreen() = 0; | |
| 142 virtual void UpdateExclusiveAccessExitBubbleContent( | |
| 143 const GURL& url, | |
| 144 ExclusiveAccessBubbleType bubble_type) = 0; | |
| 145 | |
| 146 // 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 |
| 147 // keep the controls in a slide-down panel. | 136 // keep the controls in a slide-down panel. |
| 148 virtual bool ShouldHideUIForFullscreen() const = 0; | 137 virtual bool ShouldHideUIForFullscreen() const = 0; |
| 149 | 138 |
| 150 // Returns true if the fullscreen bubble is visible. | 139 // Returns true if the fullscreen bubble is visible. |
| 151 virtual bool IsFullscreenBubbleVisible() const = 0; | 140 virtual bool IsFullscreenBubbleVisible() const = 0; |
| 152 | 141 |
| 153 // 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 |
| 154 // fullscreen. | 143 // fullscreen. |
| 155 // Currently only supported on Mac. | 144 // Currently only supported on Mac. |
| (...skipping 243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 // Returns object implementing ExclusiveAccessContext interface. | 388 // Returns object implementing ExclusiveAccessContext interface. |
| 400 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | 389 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; |
| 401 | 390 |
| 402 protected: | 391 protected: |
| 403 friend class BrowserCloseManager; | 392 friend class BrowserCloseManager; |
| 404 friend class BrowserView; | 393 friend class BrowserView; |
| 405 virtual void DestroyBrowser() = 0; | 394 virtual void DestroyBrowser() = 0; |
| 406 }; | 395 }; |
| 407 | 396 |
| 408 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 397 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |