Bug 65178

Summary: [GTK] Rename WebKit2 GTK+ API main header as webkit2.h
Product: WebKit Reporter: Carlos Garcia Campos <cgarcia>
Component: WebKit2Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: gustavo, mrobinson, nayankk, pnormand, webkit.review.bot, xan.lopez
Priority: P2 Keywords: Gtk
Version: 528+ (Nightly build)   
Hardware: PC   
OS: Linux   
Bug Depends on: 65616    
Bug Blocks: 67931    
Attachments:
Description Flags
Patch
none
Patch
none
New patch
none
New patch to use <webkit2/webkit2gtk.h>
none
New patch to use <webkit2/webkit2.h>
none
Updated patch to use a symlink mrobinson: review+

Carlos Garcia Campos
Reported 2011-07-26 06:06:59 PDT
We were using webkit/webkit.h header for webkit2, because we were trying to use the exactly same webkit1 api. Now that we have decided it was not a good idea, rename it as WebKit2Gtk.h and move it to the main include dir so that it will be included as <WebKit2/WebKit2Gtk.h> like the other webkit2 headers.
Attachments
Patch (7.10 KB, patch)
2011-07-26 06:10 PDT, Carlos Garcia Campos
no flags
Patch (7.18 KB, patch)
2011-07-26 06:41 PDT, Carlos Garcia Campos
no flags
New patch (9.33 KB, patch)
2011-09-12 02:52 PDT, Carlos Garcia Campos
no flags
New patch to use <webkit2/webkit2gtk.h> (8.98 KB, patch)
2011-09-23 06:06 PDT, Carlos Garcia Campos
no flags
New patch to use <webkit2/webkit2.h> (8.97 KB, patch)
2011-09-27 00:52 PDT, Carlos Garcia Campos
no flags
Updated patch to use a symlink (8.71 KB, patch)
2011-09-27 02:08 PDT, Carlos Garcia Campos
mrobinson: review+
Carlos Garcia Campos
Comment 1 2011-07-26 06:10:05 PDT
Carlos Garcia Campos
Comment 2 2011-07-26 06:41:38 PDT
Created attachment 101996 [details] Patch Fixed changelog entries, I removed the 'Reviewed by' line by mistake.
Martin Robinson
Comment 3 2011-07-26 07:01:08 PDT
Won't this mean the installed header will be WebKit2/WebKit2Gtk.h? Wouldn't it make more sense to install it to a place like webkit2/webkit.h or webkit2/webkit2.h, since GLib headers are usually lower-case?
Carlos Garcia Campos
Comment 4 2011-08-02 06:17:44 PDT
(In reply to comment #3) > Won't this mean the installed header will be WebKit2/WebKit2Gtk.h? Wouldn't it make more sense to install it to a place like webkit2/webkit.h or webkit2/webkit2.h, since GLib headers are usually lower-case? Yes, but C API main header is WebKit2/WebKit2.h, so I used WebKit2/WebKit2Gtk.h to avoid problems with non-case sensitive file systems and for consistency with the C API.
Carlos Garcia Campos
Comment 5 2011-09-12 02:52:27 PDT
Created attachment 107033 [details] New patch This is a new patch following the headers reorganization proposed in bug #65616.
Carlos Garcia Campos
Comment 6 2011-09-23 06:06:09 PDT
Created attachment 108468 [details] New patch to use <webkit2/webkit2gtk.h>
Carlos Garcia Campos
Comment 7 2011-09-23 06:11:50 PDT
This patch doesn't apply because it depends on bug #65616. Note also that this patch breaks all other bugs depending on this, I'll update all other patches if we agree on this approach.
Carlos Garcia Campos
Comment 8 2011-09-27 00:52:40 PDT
Created attachment 108806 [details] New patch to use <webkit2/webkit2.h>
WebKit Review Bot
Comment 9 2011-09-27 00:56:07 PDT
Attachment 108806 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit..." exit_code: 1 Source/WebKit2/UIProcess/API/gtk/webkit2.h:20: #ifndef header guard has wrong style, please use: webkit2_h [build/header_guard] [5] Source/WebKit2/UIProcess/API/gtk/webkit2.h:24: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 2 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Carlos Garcia Campos
Comment 10 2011-09-27 02:08:11 PDT
Created attachment 108815 [details] Updated patch to use a symlink Use a symlink instead of copying the headers as suggested by Martin.
WebKit Review Bot
Comment 11 2011-09-27 02:11:21 PDT
Attachment 108815 [details] did not pass style-queue: Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebKit2/ChangeLog', u'Source/WebKit..." exit_code: 1 Source/WebKit2/UIProcess/API/gtk/webkit2.h:20: #ifndef header guard has wrong style, please use: webkit2_h [build/header_guard] [5] Source/WebKit2/UIProcess/API/gtk/webkit2.h:24: Alphabetical sorting problem. [build/include_order] [4] Total errors found: 2 in 8 files If any of these errors are false positives, please file a bug against check-webkit-style.
Carlos Garcia Campos
Comment 12 2011-09-27 05:26:47 PDT
(In reply to comment #10) > Created an attachment (id=108815) [details] > Updated patch to use a symlink > > Use a symlink instead of copying the headers as suggested by Martin. I've just realized this won't work. Some generated files like marshalers and enum types need to be copied there too, with the symlink they will end up in the sources dir instead of build dir.
Carlos Garcia Campos
Comment 13 2011-09-27 09:39:13 PDT
Note You need to log in before you can comment on or make changes to this bug.