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

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

Issue 2769014: Mac/clang: Possibly contentious changes. (Closed)
Patch Set: comments2 Created 10 years, 6 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
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_ACTION_BUTTON_H_ 5 #ifndef CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_H_
6 #define CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_H_ 6 #define CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_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"
11 #include "base/scoped_ptr.h" 11 #include "base/scoped_ptr.h"
12 #import "chrome/browser/cocoa/gradient_button_cell.h" 12 #import "chrome/browser/cocoa/gradient_button_cell.h"
13 13
14 class Extension; 14 class Extension;
15 class ExtensionAction; 15 class ExtensionAction;
16 class ExtensionImageTrackerBridge; 16 class ExtensionImageTrackerBridge;
17 class Profile; 17 class Profile;
18 18
19 // Fired when the Browser Action's state has changed. Usually the image needs to 19 // Fired when the Browser Action's state has changed. Usually the image needs to
20 // be updated. 20 // be updated.
21 extern const NSString* kBrowserActionButtonUpdatedNotification; 21 extern NSString* const kBrowserActionButtonUpdatedNotification;
22 22
23 // Fired on each drag event while the user is moving the button. 23 // Fired on each drag event while the user is moving the button.
24 extern const NSString* kBrowserActionButtonDraggingNotification; 24 extern NSString* const kBrowserActionButtonDraggingNotification;
25 // Fired when the user drops the button. 25 // Fired when the user drops the button.
26 extern const NSString* kBrowserActionButtonDragEndNotification; 26 extern NSString* const kBrowserActionButtonDragEndNotification;
27 27
28 extern const CGFloat kBrowserActionWidth; 28 extern const CGFloat kBrowserActionWidth;
29 29
30 @interface BrowserActionButton : NSButton { 30 @interface BrowserActionButton : NSButton {
31 @private 31 @private
32 // Bridge to proxy Chrome notifications to the Obj-C class as well as load the 32 // Bridge to proxy Chrome notifications to the Obj-C class as well as load the
33 // extension's icon. 33 // extension's icon.
34 scoped_ptr<ExtensionImageTrackerBridge> imageLoadingBridge_; 34 scoped_ptr<ExtensionImageTrackerBridge> imageLoadingBridge_;
35 35
36 // The default icon of the Button. 36 // The default icon of the Button.
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 // The action we're drawing the cell for. Weak. 89 // The action we're drawing the cell for. Weak.
90 ExtensionAction* extensionAction_; 90 ExtensionAction* extensionAction_;
91 } 91 }
92 92
93 @property(readwrite, nonatomic) int tabId; 93 @property(readwrite, nonatomic) int tabId;
94 @property(readwrite, nonatomic) ExtensionAction* extensionAction; 94 @property(readwrite, nonatomic) ExtensionAction* extensionAction;
95 95
96 @end 96 @end
97 97
98 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_H_ 98 #endif // CHROME_BROWSER_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698