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/signin_header_helper.h" | 10 #include "chrome/browser/signin/signin_header_helper.h" |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
171 | 171 |
172 // Updates the toolbar with the state for the specified |contents|. | 172 // Updates the toolbar with the state for the specified |contents|. |
173 virtual void UpdateToolbar(content::WebContents* contents) = 0; | 173 virtual void UpdateToolbar(content::WebContents* contents) = 0; |
174 | 174 |
175 // Resets the toolbar's tab state for |contents|. | 175 // Resets the toolbar's tab state for |contents|. |
176 virtual void ResetToolbarTabState(content::WebContents* contents) = 0; | 176 virtual void ResetToolbarTabState(content::WebContents* contents) = 0; |
177 | 177 |
178 // Focuses the toolbar (for accessibility). | 178 // Focuses the toolbar (for accessibility). |
179 virtual void FocusToolbar() = 0; | 179 virtual void FocusToolbar() = 0; |
180 | 180 |
| 181 // Called from toolbar subviews during their show/hide animations. |
| 182 virtual void ToolbarSizeChanged(bool is_animating) = 0; |
| 183 |
181 // Focuses the app menu like it was a menu bar. | 184 // Focuses the app menu like it was a menu bar. |
182 // | 185 // |
183 // Not used on the Mac, which has a "normal" menu bar. | 186 // Not used on the Mac, which has a "normal" menu bar. |
184 virtual void FocusAppMenu() = 0; | 187 virtual void FocusAppMenu() = 0; |
185 | 188 |
186 // Focuses the bookmarks toolbar (for accessibility). | 189 // Focuses the bookmarks toolbar (for accessibility). |
187 virtual void FocusBookmarksToolbar() = 0; | 190 virtual void FocusBookmarksToolbar() = 0; |
188 | 191 |
189 // Focuses an infobar, if shown (for accessibility). | 192 // Focuses an infobar, if shown (for accessibility). |
190 virtual void FocusInfobars() = 0; | 193 virtual void FocusInfobars() = 0; |
(...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
399 // Returns object implementing ExclusiveAccessContext interface. | 402 // Returns object implementing ExclusiveAccessContext interface. |
400 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | 403 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; |
401 | 404 |
402 protected: | 405 protected: |
403 friend class BrowserCloseManager; | 406 friend class BrowserCloseManager; |
404 friend class BrowserView; | 407 friend class BrowserView; |
405 virtual void DestroyBrowser() = 0; | 408 virtual void DestroyBrowser() = 0; |
406 }; | 409 }; |
407 | 410 |
408 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 411 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |