| 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/ui/bookmarks/bookmark_bar.h" | 10 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
| (...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 virtual void UpdateDevTools() = 0; | 104 virtual void UpdateDevTools() = 0; |
| 105 | 105 |
| 106 // Update any loading animations running in the window. |should_animate| is | 106 // Update any loading animations running in the window. |should_animate| is |
| 107 // true if there are tabs loading and the animations should continue, false | 107 // true if there are tabs loading and the animations should continue, false |
| 108 // if there are no active loads and the animations should end. | 108 // if there are no active loads and the animations should end. |
| 109 virtual void UpdateLoadingAnimations(bool should_animate) = 0; | 109 virtual void UpdateLoadingAnimations(bool should_animate) = 0; |
| 110 | 110 |
| 111 // Sets the starred state for the current tab. | 111 // Sets the starred state for the current tab. |
| 112 virtual void SetStarredState(bool is_starred) = 0; | 112 virtual void SetStarredState(bool is_starred) = 0; |
| 113 | 113 |
| 114 // Called when the active tab changes. Subclasses which implement |
| 115 // TabStripModelObserver should implement this instead of ActiveTabChanged(); |
| 116 // the Browser will call this method while processing that one. |
| 117 virtual void OnActiveTabChanged(content::WebContents* old_contents, |
| 118 content::WebContents* new_contents, |
| 119 int index, |
| 120 int reason) = 0; |
| 121 |
| 114 // Called to force the zoom state to for the active tab to be recalculated. | 122 // Called to force the zoom state to for the active tab to be recalculated. |
| 115 // |can_show_bubble| is true when a user presses the zoom up or down keyboard | 123 // |can_show_bubble| is true when a user presses the zoom up or down keyboard |
| 116 // shortcuts and will be false in other cases (e.g. switching tabs, "clicking" | 124 // shortcuts and will be false in other cases (e.g. switching tabs, "clicking" |
| 117 // + or - in the wrench menu to change zoom). | 125 // + or - in the wrench menu to change zoom). |
| 118 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; | 126 virtual void ZoomChangedForActiveTab(bool can_show_bubble) = 0; |
| 119 | 127 |
| 120 // Accessors for fullscreen mode state. | 128 // Accessors for fullscreen mode state. |
| 121 virtual void EnterFullscreen(const GURL& url, | 129 virtual void EnterFullscreen(const GURL& url, |
| 122 FullscreenExitBubbleType bubble_type) = 0; | 130 FullscreenExitBubbleType bubble_type) = 0; |
| 123 virtual void ExitFullscreen() = 0; | 131 virtual void ExitFullscreen() = 0; |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 399 | 407 |
| 400 // Returns the ToolbarView. | 408 // Returns the ToolbarView. |
| 401 virtual ToolbarView* GetToolbarView() const = 0; | 409 virtual ToolbarView* GetToolbarView() const = 0; |
| 402 #endif | 410 #endif |
| 403 | 411 |
| 404 protected: | 412 protected: |
| 405 virtual ~BrowserWindowTesting() {} | 413 virtual ~BrowserWindowTesting() {} |
| 406 }; | 414 }; |
| 407 | 415 |
| 408 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 416 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
| OLD | NEW |