Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(509)

Side by Side Diff: ui/base/cocoa/tool_tip_base_view.h

Issue 1137653005: MacViews: Implement Tooltips (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: learn to alphabet tapted Created 5 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/cocoa/tool_tip_base_view.mm » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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_
OLDNEW
« no previous file with comments | « ui/base/BUILD.gn ('k') | ui/base/cocoa/tool_tip_base_view.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698