OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_TOOLBAR_BUTTON_CELL_H_ | 5 #ifndef CHROME_BROWSER_COCOA_TOOLBAR_BUTTON_CELL_H_ |
6 #define CHROME_BROWSER_COCOA_TOOLBAR_BUTTON_CELL_H_ | 6 #define CHROME_BROWSER_COCOA_TOOLBAR_BUTTON_CELL_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 // A button cell that handles drawing/highlighting of buttons in the | 10 // A button cell that handles drawing/highlighting of buttons in the |
11 // toolbar bar. The appearance is determined by setting the cell's tag (not the | 11 // toolbar bar. The appearance is determined by setting the cell's tag (not the |
12 // view's) to one of the constants below (ButtonType). | 12 // view's) to one of the constants below (ButtonType). |
13 | 13 |
14 enum { | 14 enum { |
15 kLeftButtonType = -1, | 15 kLeftButtonType = -1, |
16 kLeftButtonWithShadowType = -2, | 16 kLeftButtonWithShadowType = -2, |
17 kStandardButtonType = 0, | 17 kStandardButtonType = 0, |
18 kRightButtonType» = 1, | 18 kRightButtonType = 1, |
19 }; | 19 }; |
20 typedef NSInteger ButtonType; | 20 typedef NSInteger ButtonType; |
21 | 21 |
22 @interface ToolbarButtonCell : NSButtonCell { | 22 @interface ToolbarButtonCell : NSButtonCell { |
23 } | 23 } |
24 @end | 24 @end |
25 | 25 |
26 #endif // CHROME_BROWSER_COCOA_TOOLBAR_BUTTON_CELL_H_ | 26 #endif // CHROME_BROWSER_COCOA_TOOLBAR_BUTTON_CELL_H_ |
OLD | NEW |