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_; |