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

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

Issue 5730004: Rename ExtensionsService to ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 10 years 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) 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_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 #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 ExtensionServiceObserverBridge;
21 @class MenuButton; 21 @class MenuButton;
22 class PrefService; 22 class PrefService;
23 class Profile; 23 class Profile;
24 24
25 // Sent when the visibility of the Browser Actions changes. 25 // Sent when the visibility of the Browser Actions changes.
26 extern NSString* const kBrowserActionVisibilityChangedNotification; 26 extern NSString* const kBrowserActionVisibilityChangedNotification;
27 27
28 // Handles state and provides an interface for controlling the Browser Actions 28 // Handles state and provides an interface for controlling the Browser Actions
29 // container within the Toolbar. 29 // container within the Toolbar.
30 @interface BrowserActionsController : NSObject { 30 @interface BrowserActionsController : NSObject {
31 @private 31 @private
32 // Reference to the current browser. Weak. 32 // Reference to the current browser. Weak.
33 Browser* browser_; 33 Browser* browser_;
34 34
35 // The view from Toolbar.xib we'll be rendering our browser actions in. Weak. 35 // The view from Toolbar.xib we'll be rendering our browser actions in. Weak.
36 BrowserActionsContainerView* containerView_; 36 BrowserActionsContainerView* containerView_;
37 37
38 // The current profile. Weak. 38 // The current profile. Weak.
39 Profile* profile_; 39 Profile* profile_;
40 40
41 // The model that tracks the order of the toolbar icons. Weak. 41 // The model that tracks the order of the toolbar icons. Weak.
42 ExtensionToolbarModel* toolbarModel_; 42 ExtensionToolbarModel* toolbarModel_;
43 43
44 // The observer for the ExtensionsService we're getting events from. 44 // The observer for the ExtensionService we're getting events from.
45 scoped_ptr<ExtensionsServiceObserverBridge> observer_; 45 scoped_ptr<ExtensionServiceObserverBridge> observer_;
46 46
47 // A dictionary of Extension ID -> BrowserActionButton pairs representing the 47 // A dictionary of Extension ID -> BrowserActionButton pairs representing the
48 // buttons present in the container view. The ID is a string unique to each 48 // buttons present in the container view. The ID is a string unique to each
49 // extension. 49 // extension.
50 scoped_nsobject<NSMutableDictionary> buttons_; 50 scoped_nsobject<NSMutableDictionary> buttons_;
51 51
52 // Array of hidden buttons in the correct order in which the user specified. 52 // Array of hidden buttons in the correct order in which the user specified.
53 scoped_nsobject<NSMutableArray> hiddenButtons_; 53 scoped_nsobject<NSMutableArray> hiddenButtons_;
54 54
55 // The currently running chevron animation (fade in/out). 55 // The currently running chevron animation (fade in/out).
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
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_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_init.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