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

Unified Diff: chrome/browser/renderer_host/render_widget_host_view_mac.h

Issue 150188: Use native Cocoa tooltips instead of Mozilla's ToolTip class. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 11 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/renderer_host/render_widget_host_view_mac.h
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_mac.h (revision 19944)
+++ chrome/browser/renderer_host/render_widget_host_view_mac.h (working copy)
@@ -35,10 +35,17 @@
BOOL canBeKeyView_;
BOOL closeOnDeactivate_;
scoped_ptr<RWHVMEditCommandHelper> editCommand_helper_;
+
+ // These are part of the magic tooltip code from WebKit's WebHTMLView:
+ id trackingRectOwner_; // (not retained)
+ void *trackingRectUserData_;
+ NSTrackingRectTag lastToolTipTag_;
+ NSString* toolTip_;
}
- (void)setCanBeKeyView:(BOOL)can;
- (void)setCloseOnDeactivate:(BOOL)b;
+- (void)setToolTipAtMousePoint:(NSString *)string;
@end
@@ -141,13 +148,8 @@
// true if the View is not visible.
bool is_hidden_;
- // Tooltips
// The text to be shown in the tooltip, supplied by the renderer.
std::wstring tooltip_text_;
- // Used to display tooltips. We can't use the [NSView -setToolTip:] methods
- // because we need to be able to show and hide the tooltip without the mouse
- // leaving a region and NSView isn't set up for that to happen.
- scoped_nsobject<ToolTip> tooltip_;
// Factory used to safely scope delayed calls to ShutdownHost().
ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_;
« no previous file with comments | « no previous file | chrome/browser/renderer_host/render_widget_host_view_mac.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698