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

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: respond to comments 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 // An NSiew that allows tooltip text to be set at the current mouse location. It
13 // can take effect immediately, but won't appear unless the tooltip delay has
14 // elapsed.
15 UI_BASE_EXPORT
16 @interface ToolTipBaseView : BaseView {
17 @private
18 // These are part of the magic tooltip code from WebKit's WebHTMLView:
19 id trackingRectOwner_; // (not retained)
20 void* trackingRectUserData_;
21 NSTrackingRectTag lastToolTipTag_;
22 base::scoped_nsobject<NSString> toolTip_;
23 }
24
25 // Set the current tooltip. It is the responsibility of the caller to set a nil
26 // tooltip when the mouse cursor leaves the appropriate region.
27 - (void)setToolTipAtMousePoint:(NSString*)string;
28
29 @end
30
31 #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