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" |
11 #include "chrome/browser/ssl/security_state_model.h" | 11 #include "chrome/browser/ssl/security_state_model.h" |
12 #include "chrome/browser/translate/chrome_translate_client.h" | 12 #include "chrome/browser/translate/chrome_translate_client.h" |
13 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" | 13 #include "chrome/browser/ui/bookmarks/bookmark_bar.h" |
14 #include "chrome/browser/ui/browser.h" | 14 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" | 15 #include "chrome/browser/ui/exclusive_access/exclusive_access_bubble_type.h" |
16 #include "chrome/browser/ui/host_desktop.h" | 16 #include "chrome/browser/ui/host_desktop.h" |
17 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" | 17 #include "chrome/browser/ui/sync/one_click_signin_sync_starter.h" |
18 #include "chrome/browser/ui/tabs/tab_utils.h" | |
18 #include "components/content_settings/core/common/content_settings_types.h" | 19 #include "components/content_settings/core/common/content_settings_types.h" |
19 #include "components/signin/core/browser/signin_header_helper.h" | 20 #include "components/signin/core/browser/signin_header_helper.h" |
20 #include "components/translate/core/common/translate_errors.h" | 21 #include "components/translate/core/common/translate_errors.h" |
21 #include "ui/base/base_window.h" | 22 #include "ui/base/base_window.h" |
22 #include "ui/base/window_open_disposition.h" | 23 #include "ui/base/window_open_disposition.h" |
23 #include "ui/gfx/native_widget_types.h" | 24 #include "ui/gfx/native_widget_types.h" |
24 | 25 |
25 class Browser; | 26 class Browser; |
26 class DownloadShelf; | 27 class DownloadShelf; |
27 class ExclusiveAccessContext; | 28 class ExclusiveAccessContext; |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
86 ////////////////////////////////////////////////////////////////////////////// | 87 ////////////////////////////////////////////////////////////////////////////// |
87 // Browser specific methods: | 88 // Browser specific methods: |
88 | 89 |
89 // Return the status bubble associated with the frame | 90 // Return the status bubble associated with the frame |
90 virtual StatusBubble* GetStatusBubble() = 0; | 91 virtual StatusBubble* GetStatusBubble() = 0; |
91 | 92 |
92 // Inform the frame that the selected tab favicon or title has changed. Some | 93 // Inform the frame that the selected tab favicon or title has changed. Some |
93 // frames may need to refresh their title bar. | 94 // frames may need to refresh their title bar. |
94 virtual void UpdateTitleBar() = 0; | 95 virtual void UpdateTitleBar() = 0; |
95 | 96 |
97 #if defined(OS_MACOSX) | |
98 // Update window media state to show if one of the tabs within the window is | |
99 // playing an audio/video or even if it's playing something but it's muted. | |
100 virtual void UpdateMediaState(TabMediaState media_state) = 0; | |
miu
2015/10/21 20:06:52
I'd ask an OWNER (e.g., sky@ or pkasting@) about t
| |
101 #endif | |
102 | |
96 // Invoked when the state of the bookmark bar changes. This is only invoked if | 103 // Invoked when the state of the bookmark bar changes. This is only invoked if |
97 // the state changes for the current tab, it is not sent when switching tabs. | 104 // the state changes for the current tab, it is not sent when switching tabs. |
98 virtual void BookmarkBarStateChanged( | 105 virtual void BookmarkBarStateChanged( |
99 BookmarkBar::AnimateChangeType change_type) = 0; | 106 BookmarkBar::AnimateChangeType change_type) = 0; |
100 | 107 |
101 // Inform the frame that the dev tools window for the selected tab has | 108 // Inform the frame that the dev tools window for the selected tab has |
102 // changed. | 109 // changed. |
103 virtual void UpdateDevTools() = 0; | 110 virtual void UpdateDevTools() = 0; |
104 | 111 |
105 // Update any loading animations running in the window. |should_animate| is | 112 // Update any loading animations running in the window. |should_animate| is |
(...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
391 // Returns object implementing ExclusiveAccessContext interface. | 398 // Returns object implementing ExclusiveAccessContext interface. |
392 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; | 399 virtual ExclusiveAccessContext* GetExclusiveAccessContext() = 0; |
393 | 400 |
394 protected: | 401 protected: |
395 friend class BrowserCloseManager; | 402 friend class BrowserCloseManager; |
396 friend class BrowserView; | 403 friend class BrowserView; |
397 virtual void DestroyBrowser() = 0; | 404 virtual void DestroyBrowser() = 0; |
398 }; | 405 }; |
399 | 406 |
400 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ | 407 #endif // CHROME_BROWSER_UI_BROWSER_WINDOW_H_ |
OLD | NEW |