RESOLVED FIXED 100079
[chromium] use relative paths for includes in the TestRunner's public API
https://bugs.webkit.org/show_bug.cgi?id=100079
Summary [chromium] use relative paths for includes in the TestRunner's public API
jochen
Reported 2012-10-22 23:19:42 PDT
[chromium] use relative paths for includes in the TestRunner's public API
Attachments
Patch (2.18 KB, patch)
2012-10-22 23:20 PDT, jochen
no flags
Patch (1.72 KB, patch)
2012-10-23 13:15 PDT, jochen
no flags
Patch (3.15 KB, patch)
2012-10-23 15:51 PDT, jochen
no flags
jochen
Comment 1 2012-10-22 23:20:23 PDT
Adam Barth
Comment 2 2012-10-22 23:29:04 PDT
Comment on attachment 170068 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=170068&action=review > Tools/DumpRenderTree/chromium/TestRunner/public/WebEventSender.h:34 > -#include "WebDragOperation.h" > +#include "../../../../../Source/WebKit/chromium/public/WebDragOperation.h" Yuck. I think we should just add "Source" to the include path and be able to include these headers as: #include "WebKit/chromium/public/WebDragOperation.h" That would also solve our problem of including Platform/chromium/public headers in WebKit/chromium/public.
James Robinson
Comment 3 2012-10-23 11:07:07 PDT
Comment on attachment 170068 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=170068&action=review > Tools/ChangeLog:8 > + When including the headers from chromium, we need to specify the full path. Gross! And not really true. What target is including these headers? It almost certainly has quite a few things on the include path already, one of which we could definitely use
jochen
Comment 4 2012-10-23 11:56:10 PDT
Comment on attachment 170068 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=170068&action=review >> Tools/ChangeLog:8 >> + When including the headers from chromium, we need to specify the full path. > > Gross! And not really true. What target is including these headers? It almost certainly has quite a few things on the include path already, one of which we could definitely use content_shell_lib in chromium (i can post a patch, it's not yet landed) Note that the headers in e.g. Source/WebKit/chromium/public/platform have similar includes.
jochen
Comment 5 2012-10-23 12:13:00 PDT
(In reply to comment #4) > (From update of attachment 170068 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=170068&action=review > > >> Tools/ChangeLog:8 > >> + When including the headers from chromium, we need to specify the full path. > > > > Gross! And not really true. What target is including these headers? It almost certainly has quite a few things on the include path already, one of which we could definitely use > > content_shell_lib in chromium (i can post a patch, it's not yet landed) > > Note that the headers in e.g. Source/WebKit/chromium/public/platform have similar includes. https://codereview.chromium.org/11245004/
James Robinson
Comment 6 2012-10-23 12:23:04 PDT
Can you make the DumpRenderTree.gyp:TestRunner target put something reasonable on the include path of direct_dependent_settings?
jochen
Comment 7 2012-10-23 13:15:06 PDT
jochen
Comment 8 2012-10-23 13:15:12 PDT
(In reply to comment #6) > Can you make the DumpRenderTree.gyp:TestRunner target put something reasonable on the include path of direct_dependent_settings? that seems to be working
Adam Barth
Comment 9 2012-10-23 13:51:40 PDT
Comment on attachment 170213 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=170213&action=review > Tools/DumpRenderTree/DumpRenderTree.gyp/DumpRenderTree.gyp:112 > + ['inside_chromium_build==1', { > + 'direct_dependent_settings': { > + 'include_dirs': [ > + '../../../Source/WebKit/chromium/public', > + ], > + }, > + }], Is this better than adding ../../../Source ? I guess it depends how explicit we want to be about where these headers come from.
Adam Barth
Comment 10 2012-10-23 13:52:38 PDT
We eventually want to get rid of the "forwarding" headers in WebKit/chromium/public/platform. We should pick something here that can scale to that case too.
jochen
Comment 11 2012-10-23 15:51:03 PDT
jochen
Comment 12 2012-10-23 15:51:22 PDT
(In reply to comment #10) > We eventually want to get rid of the "forwarding" headers in WebKit/chromium/public/platform. We should pick something here that can scale to that case too. like this?
Adam Barth
Comment 13 2012-10-23 23:42:48 PDT
Comment on attachment 170255 [details] Patch I'm happy with that. @jamesr ? (Jochen, please feel free to land this patch if its blocking you. We can iterate based on jamesr's feedback.)
James Robinson
Comment 14 2012-10-24 10:39:21 PDT
Comment on attachment 170255 [details] Patch Looks good to me!
jochen
Comment 15 2012-10-24 10:40:00 PDT
Comment on attachment 170255 [details] Patch James ack'd via chat
WebKit Review Bot
Comment 16 2012-10-24 10:44:18 PDT
Comment on attachment 170255 [details] Patch Clearing flags on attachment: 170255 Committed r132370: <http://trac.webkit.org/changeset/132370>
WebKit Review Bot
Comment 17 2012-10-24 10:44:22 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.