OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_ |
6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_ | 6 #define CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_ |
7 | 7 |
8 #import <Cocoa/Cocoa.h> | 8 #import <Cocoa/Cocoa.h> |
9 | 9 |
10 #include "base/mac/scoped_nsobject.h" | 10 #include "base/mac/scoped_nsobject.h" |
| 11 #import "chrome/browser/ui/cocoa/info_bubble_view.h" |
11 | 12 |
12 @class AutofillBubbleController; | 13 @class AutofillBubbleController; |
13 @class AutofillTooltip; | 14 @class AutofillTooltip; |
14 | 15 |
15 @protocol AutofillTooltipDelegate | 16 @protocol AutofillTooltipDelegate |
16 - (void)didBeginHover; | 17 - (void)didBeginHover; |
17 - (void)didEndHover; | 18 - (void)didEndHover; |
18 @end | 19 @end |
19 | 20 |
20 // Controller for the Tooltip view, which handles displaying/hiding the | 21 // Controller for the Tooltip view, which handles displaying/hiding the |
21 // tooltip bubble on hover. | 22 // tooltip bubble on hover. |
22 @interface AutofillTooltipController | 23 @interface AutofillTooltipController |
23 : NSViewController<AutofillTooltipDelegate> { | 24 : NSViewController<AutofillTooltipDelegate> { |
24 @private | 25 @private |
25 base::scoped_nsobject<AutofillTooltip> view_; | 26 base::scoped_nsobject<AutofillTooltip> view_; |
26 AutofillBubbleController* bubbleController_; | 27 AutofillBubbleController* bubbleController_; |
27 NSString* message_; | 28 NSString* message_; |
| 29 info_bubble::BubbleArrowLocation arrowLocation_; |
28 } | 30 } |
29 | 31 |
30 // |message| to display in the tooltip. | 32 // |message| to display in the tooltip. |
31 @property(copy, nonatomic) NSString* message; | 33 @property(copy, nonatomic) NSString* message; |
32 | 34 |
33 - (id)init; | 35 - (id)initWithArrowLocation:(info_bubble::BubbleArrowLocation)arrowLocation; |
34 - (void)setImage:(NSImage*)image; | 36 - (void)setImage:(NSImage*)image; |
35 | 37 |
36 @end; | 38 @end; |
37 | 39 |
38 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_ | 40 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_ |
OLD | NEW |