diff options
| author | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 18:29:45 +0000 |
|---|---|---|
| committer | pinkerton@chromium.org <pinkerton@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-06-15 18:29:45 +0000 |
| commit | 1b5d23dfa22d8858dc9ab35d373fcf328aadbcba (patch) | |
| tree | c0e3b61de8b3a7037ec3b135211a2a974879d134 /chrome/browser/renderer_host/render_widget_host_view_mac.h | |
| parent | 055a9406124ab9642e444d07fad1b98b1485bf86 (diff) | |
| download | chromium_src-1b5d23dfa22d8858dc9ab35d373fcf328aadbcba.zip chromium_src-1b5d23dfa22d8858dc9ab35d373fcf328aadbcba.tar.gz chromium_src-1b5d23dfa22d8858dc9ab35d373fcf328aadbcba.tar.bz2 | |
Make tooltips work correctly, allowing for multiple tooltips w/out the mouse leaving the view (which is all NSView can handle by itself). Adds some Camino code to do so.
BUG=13995
TEST=tooltips in web pages, pages with multiple tooltips, expose and spaces.
Review URL: http://codereview.chromium.org/125133
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@18408 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/renderer_host/render_widget_host_view_mac.h')
| -rw-r--r-- | chrome/browser/renderer_host/render_widget_host_view_mac.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_mac.h b/chrome/browser/renderer_host/render_widget_host_view_mac.h index b663cf4..ab97232 100644 --- a/chrome/browser/renderer_host/render_widget_host_view_mac.h +++ b/chrome/browser/renderer_host/render_widget_host_view_mac.h @@ -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 @@ class RenderWidgetHostViewMac : public RenderWidgetHostView { // 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_; |
