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

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

Issue 1551009: [Mac] Prep for animating the Browser Action Buttons in and out.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 8 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) 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 7
8 #import <Cocoa/Cocoa.h> 8 #import <Cocoa/Cocoa.h>
9 9
10 #import "base/scoped_nsobject.h" 10 #import "base/scoped_nsobject.h"
(...skipping 13 matching lines...) Expand all
24 // The padding between browser action buttons. 24 // The padding between browser action buttons.
25 extern const CGFloat kBrowserActionButtonPadding; 25 extern const CGFloat kBrowserActionButtonPadding;
26 26
27 // Sent when the visibility of the Browser Actions changes. 27 // Sent when the visibility of the Browser Actions changes.
28 extern const NSString* kBrowserActionVisibilityChangedNotification; 28 extern const NSString* 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 {
33 @private 33 @private
34 // Whether the container has already done initial setup and layout of the
35 // buttons.
36 BOOL isInitialized_;
37
34 // Reference to the current browser. Weak. 38 // Reference to the current browser. Weak.
35 Browser* browser_; 39 Browser* browser_;
36 40
37 // The view from Toolbar.xib we'll be rendering our browser actions in. Weak. 41 // The view from Toolbar.xib we'll be rendering our browser actions in. Weak.
38 BrowserActionsContainerView* containerView_; 42 BrowserActionsContainerView* containerView_;
39 43
40 // The current profile. Weak. 44 // The current profile. Weak.
41 Profile* profile_; 45 Profile* profile_;
42 46
43 // The model that tracks the order of the toolbar icons. Weak. 47 // The model that tracks the order of the toolbar icons. Weak.
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // Registers the user preferences used by this class. 114 // Registers the user preferences used by this class.
111 + (void)registerUserPrefs:(PrefService*)prefs; 115 + (void)registerUserPrefs:(PrefService*)prefs;
112 116
113 @end // @interface BrowserActionsController 117 @end // @interface BrowserActionsController
114 118
115 @interface BrowserActionsController(TestingAPI) 119 @interface BrowserActionsController(TestingAPI)
116 - (NSButton*)buttonWithIndex:(NSUInteger)index; 120 - (NSButton*)buttonWithIndex:(NSUInteger)index;
117 @end 121 @end
118 122
119 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_ 123 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTIONS_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698