Add ICU message format support
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / autofill / autofill_tooltip_controller.h
blob2392c07a620af8568b93c248e9a03dbb838aca39
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 CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_
8 #import <Cocoa/Cocoa.h>
10 #include "base/mac/scoped_nsobject.h"
11 #import "chrome/browser/ui/cocoa/info_bubble_view.h"
13 @class AutofillBubbleController;
14 @class AutofillTooltip;
16 // Controller for the Tooltip view, which handles displaying/hiding the
17 // tooltip bubble on hover.
18 @interface AutofillTooltipController : NSViewController {
19 @private
20 base::scoped_nsobject<AutofillTooltip> view_;
21 AutofillBubbleController* bubbleController_;
22 NSString* message_;
23 info_bubble::BubbleArrowLocation arrowLocation_;
25 // Indicates whether a tooltip bubble should show. YES when hovering on icon
26 // or tooltip bubble.
27 BOOL shouldDisplayTooltip_;
29 // Tracks whether mouse pointer currently hovers above bubble.
30 BOOL isHoveringOnBubble_;
33 // |message| to display in the tooltip.
34 @property(copy, nonatomic) NSString* message;
36 - (id)initWithArrowLocation:(info_bubble::BubbleArrowLocation)arrowLocation;
37 - (void)setImage:(NSImage*)image;
39 @end;
41 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_