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

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

Issue 125133: Make tooltips work correctly, allowing for multiple tooltips w/out the mouse ... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 6 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
Index: chrome/browser/renderer_host/render_widget_host_view_mac.h
===================================================================
--- chrome/browser/renderer_host/render_widget_host_view_mac.h (revision 18390)
+++ chrome/browser/renderer_host/render_widget_host_view_mac.h (working copy)
@@ -7,6 +7,7 @@
#import <Cocoa/Cocoa.h>
+#include "base/scoped_nsobject.h"
#include "base/task.h"
#include "base/time.h"
#include "chrome/browser/cocoa/base_view.h"
@@ -14,6 +15,7 @@
#include "webkit/glue/webcursor.h"
class RenderWidgetHostViewMac;
+@class ToolTip;
// This is the view that lives in the Cocoa view hierarchy. In Windows-land,
// RenderWidgetHostViewWin is both the view and the delegate. We split the roles
@@ -133,6 +135,10 @@
// 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 the view and NSView isn't set up for that to happen.
stuartmorgan 2009/06/15 16:52:26 s/the view/a region/ to make it more clear why we
+ scoped_nsobject<ToolTip> tooltip_;
// Factory used to safely scope delayed calls to ShutdownHost().
ScopedRunnableMethodFactory<RenderWidgetHostViewMac> shutdown_factory_;

Powered by Google App Engine
This is Rietveld 408576698