OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_BROWSER_WINDOW_H_ | 5 #ifndef CHROME_BROWSER_BROWSER_WINDOW_H_ |
6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ | 6 #define CHROME_BROWSER_BROWSER_WINDOW_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include "chrome/browser/tab_contents/navigation_entry.h" | 9 #include "chrome/browser/tab_contents/navigation_entry.h" |
10 #include "chrome/common/content_settings_types.h" | 10 #include "chrome/common/content_settings_types.h" |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 | 80 |
81 // Return the status bubble associated with the frame | 81 // Return the status bubble associated with the frame |
82 virtual StatusBubble* GetStatusBubble() = 0; | 82 virtual StatusBubble* GetStatusBubble() = 0; |
83 | 83 |
84 // Inform the receiving frame that an animation has progressed in the | 84 // Inform the receiving frame that an animation has progressed in the |
85 // selected tab. | 85 // selected tab. |
86 // TODO(beng): Remove. Infobars/Boomarks bars should talk directly to | 86 // TODO(beng): Remove. Infobars/Boomarks bars should talk directly to |
87 // BrowserView. | 87 // BrowserView. |
88 virtual void SelectedTabToolbarSizeChanged(bool is_animating) = 0; | 88 virtual void SelectedTabToolbarSizeChanged(bool is_animating) = 0; |
89 | 89 |
90 // Notification for the Extension Shelf changing its size. | |
91 virtual void SelectedTabExtensionShelfSizeChanged() = 0; | |
92 | |
93 // Inform the frame that the selected tab favicon or title has changed. Some | 90 // Inform the frame that the selected tab favicon or title has changed. Some |
94 // frames may need to refresh their title bar. | 91 // frames may need to refresh their title bar. |
95 virtual void UpdateTitleBar() = 0; | 92 virtual void UpdateTitleBar() = 0; |
96 | 93 |
97 // Invoked when the visibility of the bookmark bar or extension shelf changes. | 94 // Invoked when the visibility of the bookmark bar. |
98 // NOTE: this is NOT sent when the user toggles the visibility of one of | 95 // NOTE: this is NOT sent when the user toggles the visibility of this, |
99 // these shelves, but rather when the user transitions from a page that forces | 96 // but rather when the user transitions from a page that forces |
100 // the shelves to be visibile to one that doesn't have them visible (or | 97 // it to be visibile to one that doesn't have it visible (or |
101 // vice-versa). | 98 // vice-versa). |
102 // TODO(sky): see about routing visibility pref changing through here too. | 99 // TODO(sky): see about routing visibility pref changing through here too. |
103 virtual void ShelfVisibilityChanged() = 0; | 100 virtual void ShelfVisibilityChanged() = 0; |
104 | 101 |
105 // Inform the frame that the dev tools window for the selected tab has | 102 // Inform the frame that the dev tools window for the selected tab has |
106 // changed. | 103 // changed. |
107 virtual void UpdateDevTools() = 0; | 104 virtual void UpdateDevTools() = 0; |
108 | 105 |
109 // Update any loading animations running in the window. |should_animate| is | 106 // Update any loading animations running in the window. |should_animate| is |
110 // 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 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
183 virtual void DisableInactiveFrame() {} | 180 virtual void DisableInactiveFrame() {} |
184 | 181 |
185 // Shows a confirmation dialog box for adding a search engine described by | 182 // Shows a confirmation dialog box for adding a search engine described by |
186 // |template_url|. | 183 // |template_url|. |
187 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, | 184 virtual void ConfirmAddSearchProvider(const TemplateURL* template_url, |
188 Profile* profile) = 0; | 185 Profile* profile) = 0; |
189 | 186 |
190 // Shows or hides the bookmark bar depending on its current visibility. | 187 // Shows or hides the bookmark bar depending on its current visibility. |
191 virtual void ToggleBookmarkBar() = 0; | 188 virtual void ToggleBookmarkBar() = 0; |
192 | 189 |
193 // Shows or hides the extension shelf depending on its current visibility. | |
194 virtual void ToggleExtensionShelf() = 0; | |
195 | |
196 // Shows the About Chrome dialog box. | 190 // Shows the About Chrome dialog box. |
197 virtual views::Window* ShowAboutChromeDialog() = 0; | 191 virtual views::Window* ShowAboutChromeDialog() = 0; |
198 | 192 |
199 // Shows the Update Recommended dialog box. | 193 // Shows the Update Recommended dialog box. |
200 virtual void ShowUpdateChromeDialog() = 0; | 194 virtual void ShowUpdateChromeDialog() = 0; |
201 | 195 |
202 // Shows the Task manager. | 196 // Shows the Task manager. |
203 virtual void ShowTaskManager() = 0; | 197 virtual void ShowTaskManager() = 0; |
204 | 198 |
205 // Shows the Bookmark bubble. |url| is the URL being bookmarked, | 199 // Shows the Bookmark bubble. |url| is the URL being bookmarked, |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 | 351 |
358 // Returns the ToolbarView. | 352 // Returns the ToolbarView. |
359 virtual ToolbarView* GetToolbarView() const = 0; | 353 virtual ToolbarView* GetToolbarView() const = 0; |
360 #endif | 354 #endif |
361 | 355 |
362 protected: | 356 protected: |
363 virtual ~BrowserWindowTesting() {} | 357 virtual ~BrowserWindowTesting() {} |
364 }; | 358 }; |
365 | 359 |
366 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ | 360 #endif // CHROME_BROWSER_BROWSER_WINDOW_H_ |
OLD | NEW |