Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 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. | |
| 4 | |
| 5 #ifndef UI_BASE_COCOA_TOOL_TIP_BASE_VIEW_H_ | |
| 6 #define UI_BASE_COCOA_TOOL_TIP_BASE_VIEW_H_ | |
| 7 | |
| 8 #import <AppKit/AppKit.h> | |
| 9 | |
| 10 #import "ui/base/cocoa/base_view.h" | |
| 11 | |
| 12 @class ToolTip; | |
|
tapted
2015/05/13 03:09:38
this came from render_widget_host_view_mac.h, but
| |
| 13 | |
| 14 // An NSiew that allows tooltip text to be set at the current mouse location. It | |
| 15 // can take effect immediately, but won't appear unless the tooltip delay has | |
| 16 // elapsed. | |
| 17 UI_BASE_EXPORT | |
| 18 @interface ToolTipBaseView : BaseView { | |
| 19 @private | |
| 20 // These are part of the magic tooltip code from WebKit's WebHTMLView: | |
| 21 id trackingRectOwner_; // (not retained) | |
| 22 void* trackingRectUserData_; | |
| 23 NSTrackingRectTag lastToolTipTag_; | |
| 24 base::scoped_nsobject<NSString> toolTip_; | |
| 25 } | |
| 26 | |
| 27 // Set the current tooltip. It is the responsibility of the caller to set a nil | |
| 28 // tooltip when the mouse cursor leaves the appropriate region. | |
| 29 - (void)setToolTipAtMousePoint:(NSString*)string; | |
| 30 | |
| 31 @end | |
| 32 | |
| 33 #endif // UI_BASE_COCOA_TOOL_TIP_BASE_VIEW_H_ | |
| OLD | NEW |