Disable view source for Developer Tools.
[chromium-blink-merge.git] / chrome / browser / ui / cocoa / autofill / autofill_tooltip_controller.h
blobcfcf958913b3e592c9aa0638b047b8cd05965b35
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 @protocol AutofillTooltipDelegate
17 - (void)didBeginHover;
18 - (void)didEndHover;
19 @end
21 // Controller for the Tooltip view, which handles displaying/hiding the
22 // tooltip bubble on hover.
23 @interface AutofillTooltipController
24 : NSViewController<AutofillTooltipDelegate> {
25 @private
26 base::scoped_nsobject<AutofillTooltip> view_;
27 AutofillBubbleController* bubbleController_;
28 NSString* message_;
29 info_bubble::BubbleArrowLocation arrowLocation_;
32 // |message| to display in the tooltip.
33 @property(copy, nonatomic) NSString* message;
35 - (id)initWithArrowLocation:(info_bubble::BubbleArrowLocation)arrowLocation;
36 - (void)setImage:(NSImage*)image;
38 @end;
40 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_