OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #import <Cocoa/Cocoa.h> |
| 6 #include "chrome/browser/view_ids.h" |
| 7 |
| 8 // Class for buttons that have ViewIDs. |
| 9 @interface ButtonWithViewID : NSButton { |
| 10 @private |
| 11 // An optional command associated to this button, such as IDC_STOP, etc. |
| 12 int command_; |
| 13 } |
| 14 |
| 15 @property(assign, nonatomic) int command; |
| 16 |
| 17 // We use NSView's tag property for ViewID support. This method just stores |
| 18 // the ViewID to the tag property. So do not use the tag property for other |
| 19 // purpose. |
| 20 - (void)setViewID:(ViewID)viewID; |
| 21 |
| 22 @end // @interface ButtonWithViewID |
OLD | NEW |