OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ |
6 #define CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ | 6 #define CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
11 #import "base/scoped_nsobject.h" | 11 #import "base/scoped_nsobject.h" |
12 #include "base/scoped_ptr.h" | 12 #include "base/scoped_ptr.h" |
13 | 13 |
14 class Browser; | 14 class Browser; |
15 @class BrowserActionButton; | 15 @class BrowserActionButton; |
16 @class BrowserActionsContainerView; | 16 @class BrowserActionsContainerView; |
17 class Extension; | 17 class Extension; |
18 @class ExtensionPopupController; | 18 @class ExtensionPopupController; |
19 class ExtensionToolbarModel; | 19 class ExtensionToolbarModel; |
20 class ExtensionsServiceObserverBridge; | 20 class ExtensionsServiceObserverBridge; |
21 @class MenuButton; | 21 @class MenuButton; |
22 class PrefService; | 22 class PrefService; |
23 class Profile; | 23 class Profile; |
24 | 24 |
25 // The padding between browser action buttons. | |
26 extern const CGFloat kBrowserActionButtonPadding; | |
27 | |
28 // Sent when the visibility of the Browser Actions changes. | 25 // Sent when the visibility of the Browser Actions changes. |
29 extern NSString* const kBrowserActionVisibilityChangedNotification; | 26 extern NSString* const kBrowserActionVisibilityChangedNotification; |
30 | 27 |
31 // Handles state and provides an interface for controlling the Browser Actions | 28 // Handles state and provides an interface for controlling the Browser Actions |
32 // container within the Toolbar. | 29 // container within the Toolbar. |
33 @interface BrowserActionsController : NSObject { | 30 @interface BrowserActionsController : NSObject { |
34 @private | 31 @private |
35 // Reference to the current browser. Weak. | 32 // Reference to the current browser. Weak. |
36 Browser* browser_; | 33 Browser* browser_; |
37 | 34 |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 // Registers the user preferences used by this class. | 108 // Registers the user preferences used by this class. |
112 + (void)registerUserPrefs:(PrefService*)prefs; | 109 + (void)registerUserPrefs:(PrefService*)prefs; |
113 | 110 |
114 @end // @interface BrowserActionsController | 111 @end // @interface BrowserActionsController |
115 | 112 |
116 @interface BrowserActionsController(TestingAPI) | 113 @interface BrowserActionsController(TestingAPI) |
117 - (NSButton*)buttonWithIndex:(NSUInteger)index; | 114 - (NSButton*)buttonWithIndex:(NSUInteger)index; |
118 @end | 115 @end |
119 | 116 |
120 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ | 117 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ |
OLD | NEW |