Update V8 to version 4.7.45.
[chromium-blink-merge.git] / ui / base / cocoa / controls / hover_image_menu_button.h
blob86914192e02548b4b28368a0c0aa2f017520e793
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.
5 #ifndef UI_BASE_COCOA_CONTROLS_HOVER_IMAGE_MENU_BUTTON_H_
6 #define UI_BASE_COCOA_CONTROLS_HOVER_IMAGE_MENU_BUTTON_H_
8 #import <Cocoa/Cocoa.h>
10 #import "ui/base/cocoa/tracking_area.h"
11 #include "ui/base/ui_base_export.h"
13 @class HoverImageMenuButtonCell;
15 // An NSPopUpButton that additionally tracks mouseover state and calls
16 // [[self cell] setHovered:flag] when the hover state changes. Uses
17 // HoverImageMenuButtonCell as the default cellClass. Note that the menu item at
18 // index 0 is ignored and client code should populate it with a dummy item.
19 UI_BASE_EXPORT
20 @interface HoverImageMenuButton : NSPopUpButton {
21 @private
22 ui::ScopedCrTrackingArea trackingArea_;
25 - (HoverImageMenuButtonCell*)hoverImageMenuButtonCell;
27 @end
29 #endif // UI_BASE_COCOA_CONTROLS_HOVER_IMAGE_MENU_BUTTON_H_