Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(193)

Side by Side Diff: chrome/browser/ui/cocoa/tabs/tab_strip_controller.h

Issue 1432803002: Removed emojis from generated_resources.grd and update the code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Inlined emojis and remove accessors Created 5 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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 // Gets the tab and the media state to check whether the window
272 // media state should be updated or not. If the tab media state is
273 // AUDIO_PLAYING, the window media state should be set to AUDIO_PLAYING.
274 // If the tab media state is AUDIO_MUTING, this method would check if the
275 // window has no other tab with state AUDIO_PLAYING, then the window
276 // media state will be set to AUDIO_MUTING. If the tab media state is NONE,
277 // this method checks if the window has no playing or muting tab, then window
278 // media state will be set as NONE.
279 - (void)updateWindowMediaState:(TabMediaState)mediaState
280 on:(content::WebContents*)changed;
Robert Sesek 2015/11/09 23:41:25 naming: instead of just "on:", this would be more
281
282 // Returns the media state associated with the contents.
283 - (TabMediaState)mediaStateForContents:(content::WebContents*)contents;
284
270 @end 285 @end
271 286
272 @interface TabStripController(TestingAPI) 287 @interface TabStripController(TestingAPI)
273 - (void)setTabTitle:(TabController*)tab 288 - (void)setTabTitle:(TabController*)tab
274 withContents:(content::WebContents*)contents; 289 withContents:(content::WebContents*)contents;
275 @end 290 @end
276 291
277 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_ 292 #endif // CHROME_BROWSER_UI_COCOA_TABS_TAB_STRIP_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698