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

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

Issue 1412803012: Revert "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: 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_BROWSER_WINDOW_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
7 7
8 // A class acting as the Objective-C controller for the Browser 8 // A class acting as the Objective-C controller for the Browser
9 // object. Handles interactions between Cocoa and the cross-platform 9 // object. Handles interactions between Cocoa and the cross-platform
10 // code. Each window has a single toolbar and, by virtue of being a 10 // code. Each window has a single toolbar and, by virtue of being a
11 // TabWindowController, a tab strip along the top. 11 // TabWindowController, a tab strip along the top.
12 12
13 #import <Cocoa/Cocoa.h> 13 #import <Cocoa/Cocoa.h>
14 14
15 #include "base/mac/scoped_nsobject.h" 15 #include "base/mac/scoped_nsobject.h"
16 #include "base/memory/scoped_ptr.h" 16 #include "base/memory/scoped_ptr.h"
17 #include "chrome/browser/translate/chrome_translate_client.h" 17 #include "chrome/browser/translate/chrome_translate_client.h"
18 #include "chrome/browser/ui/tabs/tab_utils.h"
19 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h" 18 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bar_controller.h"
20 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.h" 19 #import "chrome/browser/ui/cocoa/bookmarks/bookmark_bubble_controller.h"
21 #import "chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.h" 20 #import "chrome/browser/ui/cocoa/exclusive_access_bubble_window_controller.h"
22 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h" 21 #import "chrome/browser/ui/cocoa/tabs/tab_strip_controller.h"
23 #import "chrome/browser/ui/cocoa/tabs/tab_window_controller.h" 22 #import "chrome/browser/ui/cocoa/tabs/tab_window_controller.h"
24 #import "chrome/browser/ui/cocoa/themed_window.h" 23 #import "chrome/browser/ui/cocoa/themed_window.h"
25 #import "chrome/browser/ui/cocoa/url_drop_target.h" 24 #import "chrome/browser/ui/cocoa/url_drop_target.h"
26 #import "chrome/browser/ui/cocoa/view_resizer.h" 25 #import "chrome/browser/ui/cocoa/view_resizer.h"
27 #include "components/translate/core/common/translate_errors.h" 26 #include "components/translate/core/common/translate_errors.h"
28 #include "ui/base/accelerators/accelerator_manager.h" 27 #include "ui/base/accelerators/accelerator_manager.h"
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
369 368
370 // Called when the Add Search Engine dialog is closed. 369 // Called when the Add Search Engine dialog is closed.
371 - (void)sheetDidEnd:(NSWindow*)sheet 370 - (void)sheetDidEnd:(NSWindow*)sheet
372 returnCode:(NSInteger)code 371 returnCode:(NSInteger)code
373 context:(void*)context; 372 context:(void*)context;
374 373
375 // Executes the command registered by the extension that has the given id. 374 // Executes the command registered by the extension that has the given id.
376 - (void)executeExtensionCommand:(const std::string&)extension_id 375 - (void)executeExtensionCommand:(const std::string&)extension_id
377 command:(const extensions::Command&)command; 376 command:(const extensions::Command&)command;
378 377
379 // To set whether the window has a tab playing audio or muted audio playing.
380 - (void)setMediaState:(TabMediaState)mediaState;
381
382 // Returns current media state, determined by the media state of tabs, set by
383 // UpdateMediaState.
384 - (TabMediaState)mediaState;
385
386 @end // @interface BrowserWindowController 378 @end // @interface BrowserWindowController
387 379
388 380
389 // Methods having to do with the window type (normal/popup/app, and whether the 381 // Methods having to do with the window type (normal/popup/app, and whether the
390 // window has various features; fullscreen and presentation mode methods are 382 // window has various features; fullscreen and presentation mode methods are
391 // separate). 383 // separate).
392 @interface BrowserWindowController(WindowType) 384 @interface BrowserWindowController(WindowType)
393 385
394 // Determines whether this controller's window supports a given feature (i.e., 386 // Determines whether this controller's window supports a given feature (i.e.,
395 // whether a given feature is or can be shown in the window). 387 // whether a given feature is or can be shown in the window).
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after
619 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController; 611 - (ExclusiveAccessBubbleWindowController*)exclusiveAccessBubbleWindowController;
620 612
621 // Gets the rect, in window base coordinates, that the omnibox popup should be 613 // Gets the rect, in window base coordinates, that the omnibox popup should be
622 // positioned relative to. 614 // positioned relative to.
623 - (NSRect)omniboxPopupAnchorRect; 615 - (NSRect)omniboxPopupAnchorRect;
624 616
625 @end // @interface BrowserWindowController (TestingAPI) 617 @end // @interface BrowserWindowController (TestingAPI)
626 618
627 619
628 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_ 620 #endif // CHROME_BROWSER_UI_COCOA_BROWSER_WINDOW_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/browser_window_cocoa_unittest.mm ('k') | chrome/browser/ui/cocoa/browser_window_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698