Bug 59318

Summary: [GTK] Initial tooltips implementation for WebKit2
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: dbates, mrobinson, xan.lopez
Priority: P2 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Bug Depends on: 57944    
Bug Blocks:    
Attachments:
Description Flags
Patch
none
Patch updated to current git master mrobinson: review+

Description Carlos Garcia Campos 2011-04-25 02:59:50 PDT
Initial tooltips implementation for WebKit2
Comment 1 Carlos Garcia Campos 2011-04-25 03:07:02 PDT
Created attachment 90911 [details]
Patch

It can be tested with both MiniBrowser and GtkLauncher (you need patch attached to bug #57820).
Comment 2 Martin Robinson 2011-04-26 16:53:14 PDT
Comment on attachment 90911 [details]
Patch

Going to remove the review flag here until we can resolve API discussions.
Comment 3 Carlos Garcia Campos 2011-05-30 04:17:02 PDT
Created attachment 95334 [details]
Patch updated to current git master
Comment 4 Martin Robinson 2011-05-30 07:34:37 PDT
Comment on attachment 95334 [details]
Patch updated to current git master

View in context: https://bugs.webkit.org/attachment.cgi?id=95334&action=review

> Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:295
> +    if (keyboardMode) {
> +        notImplemented();
> +        return FALSE;
> +    }

This is for tooltips triggered by keyboard events, right? Is there a bug for this? If so it's probably best to leave the bug link in a comment.

> Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:361
> +    if (tooltip && *tooltip != '\0') {

I think it's clearer to use tooltip[0] here.
Comment 5 Carlos Garcia Campos 2011-05-30 09:18:13 PDT
Committed r87689: <http://trac.webkit.org/changeset/87689>