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" |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
265 | 265 |
266 // Returns the currently active TabContentsController. | 266 // Returns the currently active TabContentsController. |
267 - (TabContentsController*)activeTabContentsController; | 267 - (TabContentsController*)activeTabContentsController; |
268 | 268 |
269 // Adds custom traffic light buttons to the tab strip. Idempotent. | 269 // Adds custom traffic light buttons to the tab strip. Idempotent. |
270 - (void)addCustomWindowControls; | 270 - (void)addCustomWindowControls; |
271 | 271 |
272 // Removes custom traffic light buttons from the tab strip. Idempotent. | 272 // Removes custom traffic light buttons from the tab strip. Idempotent. |
273 - (void)removeCustomWindowControls; | 273 - (void)removeCustomWindowControls; |
274 | 274 |
275 // Gets the tab and the media state to check whether the window | 275 // Gets the tab and the alert state to check whether the window |
276 // media state should be updated or not. If the tab media state is | 276 // alert state should be updated or not. If the tab alert state is |
277 // AUDIO_PLAYING, the window media state should be set to AUDIO_PLAYING. | 277 // AUDIO_PLAYING, the window alert state should be set to AUDIO_PLAYING. |
278 // If the tab media state is AUDIO_MUTING, this method would check if the | 278 // If the tab alert state is AUDIO_MUTING, this method will check if the |
279 // window has no other tab with state AUDIO_PLAYING, then the window | 279 // window has no other tabs with state AUDIO_PLAYING. If so the window |
280 // media state will be set to AUDIO_MUTING. If the tab media state is NONE, | 280 // alert state will be set to AUDIO_MUTING. If the tab alert state is NONE, |
281 // this method checks if the window has no playing or muting tab, then window | 281 // this method checks if the window has no playing or muting tab, then window |
282 // media state will be set as NONE. | 282 // alert state will be set to NONE. |
283 - (void)updateWindowMediaState:(TabMediaState)mediaState | 283 - (void)updateWindowAlertState:(TabAlertState)alertState |
284 forWebContents:(content::WebContents*)changed; | 284 forWebContents:(content::WebContents*)changed; |
285 | 285 |
286 // Returns the media state associated with the contents. | 286 // Returns the alert state associated with the contents. |
287 - (TabMediaState)mediaStateForContents:(content::WebContents*)contents; | 287 - (TabAlertState)alertStateForContents:(content::WebContents*)contents; |
288 | 288 |
289 @end | 289 @end |
290 | 290 |
291 @interface TabStripController(TestingAPI) | 291 @interface TabStripController(TestingAPI) |
292 - (void)setTabTitle:(TabController*)tab | 292 - (void)setTabTitle:(TabController*)tab |
293 withContents:(content::WebContents*)contents; | 293 withContents:(content::WebContents*)contents; |
294 @end | 294 @end |
295 | 295 |
296 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ | 296 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |