OLD | NEW |
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_UI_COCOA_WRENCH_MENU_MENU_TRACKED_BUTTON_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_WRENCH_MENU_MENU_TRACKED_BUTTON_H_ |
6 #define CHROME_BROWSER_UI_COCOA_WRENCH_MENU_MENU_TRACKED_BUTTON_H_ | 6 #define CHROME_BROWSER_UI_COCOA_WRENCH_MENU_MENU_TRACKED_BUTTON_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #import <Cocoa/Cocoa.h> | 9 #import <Cocoa/Cocoa.h> |
10 | 10 |
(...skipping 18 matching lines...) Expand all Loading... |
29 | 29 |
30 // Whether or not the user is in a click-drag-release event sequence. If so | 30 // Whether or not the user is in a click-drag-release event sequence. If so |
31 // and this receives a |-mouseUp:|, then this will click itself. | 31 // and this receives a |-mouseUp:|, then this will click itself. |
32 BOOL tracking_; | 32 BOOL tracking_; |
33 | 33 |
34 // In order to get hover effects when the menu is sticky-opened, a tracking | 34 // In order to get hover effects when the menu is sticky-opened, a tracking |
35 // rect needs to be installed on the button. | 35 // rect needs to be installed on the button. |
36 NSTrackingRectTag trackingTag_; | 36 NSTrackingRectTag trackingTag_; |
37 } | 37 } |
38 | 38 |
39 @property (nonatomic, readonly, getter=isTracking) BOOL tracking; | 39 @property(nonatomic, readonly, getter=isTracking) BOOL tracking; |
40 | 40 |
41 @end | 41 @end |
42 | 42 |
43 #endif // CHROME_BROWSER_UI_COCOA_WRENCH_MENU_MENU_TRACKED_BUTTON_H_ | 43 #endif // CHROME_BROWSER_UI_COCOA_WRENCH_MENU_MENU_TRACKED_BUTTON_H_ |
OLD | NEW |