OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #import "base/memory/scoped_nsobject.h" | 10 #import "base/memory/scoped_nsobject.h" |
(...skipping 11 matching lines...) Expand all Loading... |
22 | 22 |
23 namespace extensions { | 23 namespace extensions { |
24 class Extension; | 24 class Extension; |
25 } | 25 } |
26 | 26 |
27 // Sent when the visibility of the Browser Actions changes. | 27 // Sent when the visibility of the Browser Actions changes. |
28 extern NSString* const kBrowserActionVisibilityChangedNotification; | 28 extern NSString* const kBrowserActionVisibilityChangedNotification; |
29 | 29 |
30 // Handles state and provides an interface for controlling the Browser Actions | 30 // Handles state and provides an interface for controlling the Browser Actions |
31 // container within the Toolbar. | 31 // container within the Toolbar. |
32 @interface BrowserActionsController : NSObject { | 32 @interface BrowserActionsController : NSObject<NSMenuDelegate> { |
33 @private | 33 @private |
34 // Reference to the current browser. Weak. | 34 // Reference to the current browser. Weak. |
35 Browser* browser_; | 35 Browser* browser_; |
36 | 36 |
37 // The view from Toolbar.xib we'll be rendering our browser actions in. Weak. | 37 // The view from Toolbar.xib we'll be rendering our browser actions in. Weak. |
38 BrowserActionsContainerView* containerView_; | 38 BrowserActionsContainerView* containerView_; |
39 | 39 |
40 // The current profile. Weak. | 40 // The current profile. Weak. |
41 Profile* profile_; | 41 Profile* profile_; |
42 | 42 |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // Registers the user preferences used by this class. | 108 // Registers the user preferences used by this class. |
109 + (void)registerUserPrefs:(PrefService*)prefs; | 109 + (void)registerUserPrefs:(PrefService*)prefs; |
110 | 110 |
111 @end // @interface BrowserActionsController | 111 @end // @interface BrowserActionsController |
112 | 112 |
113 @interface BrowserActionsController(TestingAPI) | 113 @interface BrowserActionsController(TestingAPI) |
114 - (NSButton*)buttonWithIndex:(NSUInteger)index; | 114 - (NSButton*)buttonWithIndex:(NSUInteger)index; |
115 @end | 115 @end |
116 | 116 |
117 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ | 117 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ |
OLD | NEW |