| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_ACTION_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_H_ |
| 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_H_ | 6 #define CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_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 #import "chrome/browser/ui/cocoa/gradient_button_cell.h" | 12 #import "chrome/browser/ui/cocoa/image_button_cell.h" |
| 13 | 13 |
| 14 class Browser; | 14 class Browser; |
| 15 class ExtensionAction; | 15 class ExtensionAction; |
| 16 class ExtensionImageTrackerBridge; | 16 class ExtensionImageTrackerBridge; |
| 17 | 17 |
| 18 namespace extensions { | 18 namespace extensions { |
| 19 class Extension; | 19 class Extension; |
| 20 } | 20 } |
| 21 | 21 |
| 22 // Fired on each drag event while the user is moving the button. | 22 // Fired on each drag event while the user is moving the button. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 62 // Returns a pointer to an autoreleased NSImage with the badge, shadow and | 62 // Returns a pointer to an autoreleased NSImage with the badge, shadow and |
| 63 // cell image drawn into it. | 63 // cell image drawn into it. |
| 64 - (NSImage*)compositedImage; | 64 - (NSImage*)compositedImage; |
| 65 | 65 |
| 66 @property(readonly, nonatomic) BOOL isBeingDragged; | 66 @property(readonly, nonatomic) BOOL isBeingDragged; |
| 67 @property(readonly, nonatomic) const extensions::Extension* extension; | 67 @property(readonly, nonatomic) const extensions::Extension* extension; |
| 68 @property(readwrite, nonatomic) int tabId; | 68 @property(readwrite, nonatomic) int tabId; |
| 69 | 69 |
| 70 @end | 70 @end |
| 71 | 71 |
| 72 @interface BrowserActionCell : GradientButtonCell { | 72 @interface BrowserActionCell : ImageButtonCell { |
| 73 @private | 73 @private |
| 74 // The current tab ID used when drawing the cell. | 74 // The current tab ID used when drawing the cell. |
| 75 int tabId_; | 75 int tabId_; |
| 76 | 76 |
| 77 // The action we're drawing the cell for. Weak. | 77 // The action we're drawing the cell for. Weak. |
| 78 ExtensionAction* extensionAction_; | 78 ExtensionAction* extensionAction_; |
| 79 } | 79 } |
| 80 | 80 |
| 81 @property(readwrite, nonatomic) int tabId; | 81 @property(readwrite, nonatomic) int tabId; |
| 82 @property(readwrite, nonatomic) ExtensionAction* extensionAction; | 82 @property(readwrite, nonatomic) ExtensionAction* extensionAction; |
| 83 | 83 |
| 84 @end | 84 @end |
| 85 | 85 |
| 86 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_H_ | 86 #endif // CHROME_BROWSER_UI_COCOA_EXTENSIONS_BROWSER_ACTION_BUTTON_H_ |
| OLD | NEW |