Bug 20173 - wx port does not show tooltips
Summary: wx port does not show tooltips
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebKit wx (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Kevin Ollivier
Depends on:
Reported: 2008-07-25 14:09 PDT by Kevin Watters
Modified: 2008-07-29 22:34 PDT (History)
0 users

See Also:

implement ChromeClientWx::setToolTip (1.83 KB, patch)
2008-07-25 14:12 PDT, Kevin Watters
eric: review-
Details | Formatted Diff | Diff
Revised tooltip support patch for the wx port. (1.88 KB, patch)
2008-07-27 13:10 PDT, Kevin Watters
sam: review+
Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin Watters 2008-07-25 14:09:17 PDT
The wx port's ChromeClient didn't implement the setToolTip method.
Comment 1 Kevin Watters 2008-07-25 14:12:27 PDT
Created attachment 22481 [details]
implement ChromeClientWx::setToolTip

Implements ChromeClientWx::setToolTip and modifies wxWebView's mouse event handler to use EventHandler::mouseMoved instead of handleMouseMoveEvent.
Comment 2 Eric Seidel 2008-07-26 22:52:31 PDT
Comment on attachment 22481 [details]
implement ChromeClientWx::setToolTip

Looks fine except for the tabs.  WebCore uses 4 spaces, not tabs.

Also, which way is the easier conversion?

+	if (!tooltip || tooltip->GetTip() != wxString(tip))
+		m_webView->SetToolTip(tip);

From wxString to String or the other way?  I'm surprised that you need the explicit wxString conversion there at all.

Since you don't have the ability to commit your own patches (yet), please upload a new patch without tabs.

Comment 3 Kevin Watters 2008-07-27 13:10:40 PDT
Created attachment 22508 [details]
Revised tooltip support patch for the wx port.

Removed all the tabs.

Unfortunately, the explicit wxString conversion is necessary at the moment--the compiler complains about ambiguous overloads.  Perhaps a future patch could resolve this.
Comment 4 Kevin Ollivier 2008-07-29 22:34:54 PDT
Landed in r35437, thanks! :)