OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2013 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 #ifndef UI_BASE_COCOA_CONTROLS_HOVER_IMAGE_MENU_BUTTON_H_ | |
6 #define UI_BASE_COCOA_CONTROLS_HOVER_IMAGE_MENU_BUTTON_H_ | |
7 | |
8 #import <Cocoa/Cocoa.h> | |
9 | |
10 #import "ui/base/cocoa/controls/hover_image_menu_button_cell.h" | |
tapted
2013/05/31 09:37:39
Not sure if this is conventional.. it felt weird t
sail
2013/05/31 19:07:03
I think it's ok. But you don't actually use it in
tapted
2013/06/03 12:49:18
Done.
| |
11 #import "ui/base/cocoa/tracking_area.h" | |
12 | |
13 // An NSPopUpButton that additionally tracks mouseover state, and calls | |
14 // [[self cell] setHovered:flag] when the hover state changes. Uses | |
15 // HoverImageMenuButtonCell as the default cellClass. Note that the menu item at | |
16 // index 0 is ignored and will be pre-populated with a dummy item. | |
17 // Initialize with initWithFrame:pullsDown:. | |
sail
2013/05/31 19:07:03
Don't need this comment. This is the designated in
tapted
2013/06/03 12:49:18
Done.
| |
18 @interface HoverImageMenuButton : NSPopUpButton { | |
19 @private | |
20 ui::ScopedCrTrackingArea trackingArea_; | |
21 } | |
22 | |
sail
2013/05/31 19:07:03
Maybe add a
- (HoverImageMenuButtonCell*)hoverImag
tapted
2013/06/03 12:49:18
Done.
| |
23 @end | |
24 | |
25 #endif // UI_BASE_COCOA_CONTROLS_HOVER_IMAGE_MENU_BUTTON_H_ | |
OLD | NEW |