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

Side by Side Diff: chrome/browser/ui/cocoa/extensions/browser_actions_controller.h

Issue 14622003: components: Move PrefRegistrySyncable into user_prefs namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fixes Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
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"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 12
13 class Browser; 13 class Browser;
14 @class BrowserActionButton; 14 @class BrowserActionButton;
15 @class BrowserActionsContainerView; 15 @class BrowserActionsContainerView;
16 @class ExtensionPopupController; 16 @class ExtensionPopupController;
17 class ExtensionToolbarModel; 17 class ExtensionToolbarModel;
18 class ExtensionServiceObserverBridge; 18 class ExtensionServiceObserverBridge;
19 @class MenuButton; 19 @class MenuButton;
20 class PrefRegistrySyncable;
21 class Profile; 20 class Profile;
22 21
23 namespace extensions { 22 namespace extensions {
24 class Extension; 23 class Extension;
25 } 24 }
26 25
26 namespace user_prefs {
27 class PrefRegistrySyncable;
28 }
29
27 // Sent when the visibility of the Browser Actions changes. 30 // Sent when the visibility of the Browser Actions changes.
28 extern NSString* const kBrowserActionVisibilityChangedNotification; 31 extern NSString* const kBrowserActionVisibilityChangedNotification;
29 32
30 // Handles state and provides an interface for controlling the Browser Actions 33 // Handles state and provides an interface for controlling the Browser Actions
31 // container within the Toolbar. 34 // container within the Toolbar.
32 @interface BrowserActionsController : NSObject<NSMenuDelegate> { 35 @interface BrowserActionsController : NSObject<NSMenuDelegate> {
33 @private 36 @private
34 // Reference to the current browser. Weak. 37 // Reference to the current browser. Weak.
35 Browser* browser_; 38 Browser* browser_;
36 39
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 // it is passed an extension that is not a Browser Action, then it will return 102 // it is passed an extension that is not a Browser Action, then it will return
100 // NSZeroPoint. 103 // NSZeroPoint.
101 - (NSPoint)popupPointForBrowserAction:(const extensions::Extension*)extension; 104 - (NSPoint)popupPointForBrowserAction:(const extensions::Extension*)extension;
102 105
103 // Returns whether the chevron button is currently hidden or in the process of 106 // Returns whether the chevron button is currently hidden or in the process of
104 // being hidden (fading out). Will return NO if it is not hidden or is in the 107 // being hidden (fading out). Will return NO if it is not hidden or is in the
105 // process of fading in. 108 // process of fading in.
106 - (BOOL)chevronIsHidden; 109 - (BOOL)chevronIsHidden;
107 110
108 // Registers the user preferences used by this class. 111 // Registers the user preferences used by this class.
109 + (void)registerUserPrefs:(PrefRegistrySyncable*)prefs; 112 + (void)registerUserPrefs:(user_prefs::PrefRegistrySyncable*)prefs;
110 113
111 @end // @interface BrowserActionsController 114 @end // @interface BrowserActionsController
112 115
113 @interface BrowserActionsController(TestingAPI) 116 @interface BrowserActionsController(TestingAPI)
114 - (NSButton*)buttonWithIndex:(NSUInteger)index; 117 - (NSButton*)buttonWithIndex:(NSUInteger)index;
115 @end 118 @end
116 119
117 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ 120 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_ui_prefs.cc ('k') | chrome/browser/ui/cocoa/extensions/browser_actions_controller.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698