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_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_ |
6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_ | 6 #define CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #import "chrome/browser/ui/cocoa/tracking_area.h" | 10 #import "ui/base/cocoa/tracking_area.h" |
11 | 11 |
12 // A push button for use in a constrained window. Specialized constrained | 12 // A push button for use in a constrained window. Specialized constrained |
13 // windows that need a push button should use this class instead of NSButton. | 13 // windows that need a push button should use this class instead of NSButton. |
14 @interface ConstrainedWindowButton : NSButton { | 14 @interface ConstrainedWindowButton : NSButton { |
15 @private | 15 @private |
16 ScopedCrTrackingArea trackingArea_; | 16 ui::ScopedCrTrackingArea trackingArea_; |
17 } | 17 } |
18 | 18 |
19 @end | 19 @end |
20 | 20 |
21 // A button cell used by ConstrainedWindowButton. | 21 // A button cell used by ConstrainedWindowButton. |
22 @interface ConstrainedWindowButtonCell : NSButtonCell { | 22 @interface ConstrainedWindowButtonCell : NSButtonCell { |
23 @private | 23 @private |
24 BOOL isMouseInside_; | 24 BOOL isMouseInside_; |
25 } | 25 } |
26 | 26 |
27 @property(nonatomic, assign) BOOL isMouseInside; | 27 @property(nonatomic, assign) BOOL isMouseInside; |
28 | 28 |
29 @end | 29 @end |
30 | 30 |
31 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_ | 31 #endif // CHROME_BROWSER_UI_COCOA_CONSTRAINED_WINDOW_CONSTRAINED_WINDOW_BUTTON_ |
OLD | NEW |