| 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" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 // or tooltip bubble. | 26 // or tooltip bubble. |
| 27 BOOL shouldDisplayTooltip_; | 27 BOOL shouldDisplayTooltip_; |
| 28 | 28 |
| 29 // Tracks whether mouse pointer currently hovers above bubble. | 29 // Tracks whether mouse pointer currently hovers above bubble. |
| 30 BOOL isHoveringOnBubble_; | 30 BOOL isHoveringOnBubble_; |
| 31 } | 31 } |
| 32 | 32 |
| 33 // |message| to display in the tooltip. | 33 // |message| to display in the tooltip. |
| 34 @property(copy, nonatomic) NSString* message; | 34 @property(copy, nonatomic) NSString* message; |
| 35 | 35 |
| 36 // Maximal width of the text excluding insets. |
| 37 @property(nonatomic) CGFloat maxTooltipWidth; |
| 38 |
| 36 - (id)initWithArrowLocation:(info_bubble::BubbleArrowLocation)arrowLocation; | 39 - (id)initWithArrowLocation:(info_bubble::BubbleArrowLocation)arrowLocation; |
| 37 - (void)setImage:(NSImage*)image; | 40 - (void)setImage:(NSImage*)image; |
| 38 | 41 |
| 39 @end; | 42 @end; |
| 40 | 43 |
| 41 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_ | 44 #endif // CHROME_BROWSER_UI_COCOA_AUTOFILL_AUTOFILL_TOOLTIP_CONTROLLER_H_ |
| OLD | NEW |