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

Side by Side Diff: chrome/browser/ui/cocoa/browser_window_controller.mm

Issue 1412083002: Indicate in the Window menu which Chrome window has an active sound playing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: To show which Chromium window has an active/muted sound playing Created 5 years, 2 months 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 5 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
6 6
7 #include <cmath> 7 #include <cmath>
8 #include <numeric> 8 #include <numeric>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 1877 matching lines...) Expand 10 before | Expand all | Expand 10 after
1888 1888
1889 - (void)executeExtensionCommand:(const std::string&)extension_id 1889 - (void)executeExtensionCommand:(const std::string&)extension_id
1890 command:(const extensions::Command&)command { 1890 command:(const extensions::Command&)command {
1891 // Global commands are handled by the ExtensionCommandsGlobalRegistry 1891 // Global commands are handled by the ExtensionCommandsGlobalRegistry
1892 // instance. 1892 // instance.
1893 DCHECK(!command.global()); 1893 DCHECK(!command.global());
1894 extension_keybinding_registry_->ExecuteCommand(extension_id, 1894 extension_keybinding_registry_->ExecuteCommand(extension_id,
1895 command.accelerator()); 1895 command.accelerator());
1896 } 1896 }
1897 1897
1898 - (void)setMediaState:(TabMediaState)media_state
1899 on:(content::WebContents*)contents {
1900 [self browserWindow]->UpdateMediaState(media_state, contents);
1901 }
1902
1898 @end // @implementation BrowserWindowController 1903 @end // @implementation BrowserWindowController
1899 1904
1900 @implementation BrowserWindowController(Fullscreen) 1905 @implementation BrowserWindowController(Fullscreen)
1901 1906
1902 - (void)handleLionToggleFullscreen { 1907 - (void)handleLionToggleFullscreen {
1903 DCHECK(base::mac::IsOSLionOrLater()); 1908 DCHECK(base::mac::IsOSLionOrLater());
1904 chrome::ExecuteCommand(browser_.get(), IDC_FULLSCREEN); 1909 chrome::ExecuteCommand(browser_.get(), IDC_FULLSCREEN);
1905 } 1910 }
1906 1911
1907 - (void)enterBrowserFullscreenWithToolbar:(BOOL)withToolbar { 1912 - (void)enterBrowserFullscreenWithToolbar:(BOOL)withToolbar {
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
2060 2065
2061 - (BOOL)supportsBookmarkBar { 2066 - (BOOL)supportsBookmarkBar {
2062 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR]; 2067 return [self supportsWindowFeature:Browser::FEATURE_BOOKMARKBAR];
2063 } 2068 }
2064 2069
2065 - (BOOL)isTabbedWindow { 2070 - (BOOL)isTabbedWindow {
2066 return browser_->is_type_tabbed(); 2071 return browser_->is_type_tabbed();
2067 } 2072 }
2068 2073
2069 @end // @implementation BrowserWindowController(WindowType) 2074 @end // @implementation BrowserWindowController(WindowType)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698