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" | |
16 | 17 |
17 @class CrTrackingArea; | 18 @class CrTrackingArea; |
18 @class CustomWindowControlsView; | 19 @class CustomWindowControlsView; |
19 @class NewTabButton; | 20 @class NewTabButton; |
20 @class TabContentsController; | 21 @class TabContentsController; |
21 @class TabView; | 22 @class TabView; |
22 @class TabStripDragController; | 23 @class TabStripDragController; |
23 @class TabStripView; | 24 @class TabStripView; |
24 | 25 |
25 class Browser; | 26 class Browser; |
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
260 | 261 |
261 // Returns the currently active TabContentsController. | 262 // Returns the currently active TabContentsController. |
262 - (TabContentsController*)activeTabContentsController; | 263 - (TabContentsController*)activeTabContentsController; |
263 | 264 |
264 // Adds custom traffic light buttons to the tab strip. Idempotent. | 265 // Adds custom traffic light buttons to the tab strip. Idempotent. |
265 - (void)addCustomWindowControls; | 266 - (void)addCustomWindowControls; |
266 | 267 |
267 // Removes custom traffic light buttons from the tab strip. Idempotent. | 268 // Removes custom traffic light buttons from the tab strip. Idempotent. |
268 - (void)removeCustomWindowControls; | 269 - (void)removeCustomWindowControls; |
269 | 270 |
271 - (void)updateWindowMediaState:(TabMediaState)mediaState | |
Robert Sesek
2015/10/28 18:45:58
Comment these two new methods, too.
| |
272 on:(content::WebContents*)changed; | |
273 | |
274 - (TabMediaState)getMediaStateForContents:(content::WebContents*)contents; | |
Robert Sesek
2015/10/28 18:45:58
naming: No, "get" here, either.
| |
275 | |
270 @end | 276 @end |
271 | 277 |
272 @interface TabStripController(TestingAPI) | 278 @interface TabStripController(TestingAPI) |
273 - (void)setTabTitle:(TabController*)tab | 279 - (void)setTabTitle:(TabController*)tab |
274 withContents:(content::WebContents*)contents; | 280 withContents:(content::WebContents*)contents; |
275 @end | 281 @end |
276 | 282 |
277 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ | 283 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ |
OLD | NEW |