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

Unified Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

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: Prevent leaking strings in the unit test 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/browser_window_controller.mm
diff --git a/chrome/browser/ui/cocoa/browser_window_controller.mm b/chrome/browser/ui/cocoa/browser_window_controller.mm
index 6249badd7ecd7afcaa690004463ea1efd5542bb9..ad203225feeb84c83244f3b952fcbffc1d2adf36 100644
--- a/chrome/browser/ui/cocoa/browser_window_controller.mm
+++ b/chrome/browser/ui/cocoa/browser_window_controller.mm
@@ -1895,6 +1895,15 @@ willAnimateFromState:(BookmarkBar::State)oldState
command.accelerator());
}
+- (void)setMediaState:(TabMediaState)mediaState {
+ static_cast<BrowserWindowCocoa*>([self browserWindow])
+ ->UpdateMediaState(mediaState);
+}
+
+- (TabMediaState)mediaState {
+ return static_cast<BrowserWindowCocoa*>([self browserWindow])->media_state();
+}
+
@end // @implementation BrowserWindowController
@implementation BrowserWindowController(Fullscreen)
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_controller.h ('k') | chrome/browser/ui/cocoa/tabs/tab_strip_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698