OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #import "chrome/browser/ui/cocoa/has_weak_browser_pointer.h" | 12 #import "chrome/browser/ui/cocoa/has_weak_browser_pointer.h" |
13 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h" | 13 #import "chrome/browser/ui/cocoa/tabs/tab_controller_target.h" |
14 #import "chrome/browser/ui/cocoa/url_drop_target.h" | 14 #import "chrome/browser/ui/cocoa/url_drop_target.h" |
15 #include "chrome/browser/ui/tabs/hover_tab_selector.h" | 15 #include "chrome/browser/ui/tabs/hover_tab_selector.h" |
16 #include "chrome/browser/ui/tabs/tab_utils.h" | |
17 | 16 |
18 @class CrTrackingArea; | 17 @class CrTrackingArea; |
19 @class CustomWindowControlsView; | 18 @class CustomWindowControlsView; |
20 @class NewTabButton; | 19 @class NewTabButton; |
21 @class TabContentsController; | 20 @class TabContentsController; |
22 @class TabView; | 21 @class TabView; |
23 @class TabStripDragController; | 22 @class TabStripDragController; |
24 @class TabStripView; | 23 @class TabStripView; |
25 | 24 |
26 class Browser; | 25 class Browser; |
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 264 |
266 // Returns the currently active TabContentsController. | 265 // Returns the currently active TabContentsController. |
267 - (TabContentsController*)activeTabContentsController; | 266 - (TabContentsController*)activeTabContentsController; |
268 | 267 |
269 // Adds custom traffic light buttons to the tab strip. Idempotent. | 268 // Adds custom traffic light buttons to the tab strip. Idempotent. |
270 - (void)addCustomWindowControls; | 269 - (void)addCustomWindowControls; |
271 | 270 |
272 // Removes custom traffic light buttons from the tab strip. Idempotent. | 271 // Removes custom traffic light buttons from the tab strip. Idempotent. |
273 - (void)removeCustomWindowControls; | 272 - (void)removeCustomWindowControls; |
274 | 273 |
275 // Gets the tab and the media state to check whether the window | |
276 // media state should be updated or not. If the tab media state is | |
277 // AUDIO_PLAYING, the window media state should be set to AUDIO_PLAYING. | |
278 // If the tab media state is AUDIO_MUTING, this method would check if the | |
279 // window has no other tab with state AUDIO_PLAYING, then the window | |
280 // media state will be set to AUDIO_MUTING. If the tab media state is NONE, | |
281 // this method checks if the window has no playing or muting tab, then window | |
282 // media state will be set as NONE. | |
283 - (void)updateWindowMediaState:(TabMediaState)mediaState | |
284 on:(content::WebContents*)changed; | |
285 | |
286 // Returns the media state associated with the contents. | |
287 - (TabMediaState)mediaStateForContents:(content::WebContents*)contents; | |
288 | |
289 @end | 274 @end |
290 | 275 |
291 @interface TabStripController(TestingAPI) | 276 @interface TabStripController(TestingAPI) |
292 - (void)setTabTitle:(TabController*)tab | 277 - (void)setTabTitle:(TabController*)tab |
293 withContents:(content::WebContents*)contents; | 278 withContents:(content::WebContents*)contents; |
294 @end | 279 @end |
295 | 280 |
296 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ | 281 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |