Bug 20173

Summary: wx port does not show tooltips
Product: WebKit Reporter: Kevin Watters <kevinwatters>
Component: WebKit wxAssignee: Kevin Ollivier <kevino>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: PC   
OS: OS X 10.5   
Attachments:
Description Flags
implement ChromeClientWx::setToolTip
eric: review-
Revised tooltip support patch for the wx port. sam: review+

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 (no email) 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.

Thanks!
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! :)