Changeset 143212 in webkit
- Timestamp:
- Feb 18, 2013 6:45:15 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 18 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r143210 r143212 1 2013-02-18 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] Force single header includes in GObject DOM bindings 4 https://bugs.webkit.org/show_bug.cgi?id=104676 5 6 Reviewed by Xan Lopez. 7 8 Only including <webkitdom/webkitdom.h> should be allowed from 9 apps. 10 11 * bindings/scripts/CodeGeneratorGObject.pm: 12 (GenerateHeader): 13 * bindings/scripts/gobject-generate-headers.pl: 14 * bindings/scripts/test/GObject/WebKitDOMFloat64Array.h: 15 * bindings/scripts/test/GObject/WebKitDOMTestActiveDOMObject.h: 16 * bindings/scripts/test/GObject/WebKitDOMTestCallback.h: 17 * bindings/scripts/test/GObject/WebKitDOMTestCustomNamedGetter.h: 18 * bindings/scripts/test/GObject/WebKitDOMTestEventConstructor.h: 19 * bindings/scripts/test/GObject/WebKitDOMTestEventTarget.h: 20 * bindings/scripts/test/GObject/WebKitDOMTestException.h: 21 * bindings/scripts/test/GObject/WebKitDOMTestInterface.h: 22 * bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.h: 23 * bindings/scripts/test/GObject/WebKitDOMTestNamedConstructor.h: 24 * bindings/scripts/test/GObject/WebKitDOMTestNode.h: 25 * bindings/scripts/test/GObject/WebKitDOMTestObj.h: 26 * bindings/scripts/test/GObject/WebKitDOMTestOverloadedConstructors.h: 27 * bindings/scripts/test/GObject/WebKitDOMTestSerializedScriptValueInterface.h: 28 1 29 2013-02-16 Antti Koivisto <antti@apple.com> 2 30 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm
r142935 r143212 762 762 push(@hPrefix, "\n"); 763 763 764 #Header guard 764 # Force single header include. 765 my $headerCheck = << "EOF"; 766 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 767 #error "Only <webkitdom/webkitdom.h> can be included directly." 768 #endif 769 770 EOF 771 push(@hPrefix, $headerCheck); 772 773 # Header guard 765 774 my $guard = $className . "_h"; 766 775 -
trunk/Source/WebCore/bindings/scripts/gobject-generate-headers.pl
r137329 r143212 85 85 } 86 86 } elsif ($outType eq "gdom") { 87 print "#define __WEBKITDOM_H_INSIDE__\n\n"; 87 88 foreach my $class (@classes) { 88 89 print "#include <webkitdom/WebKitDOM${class}.h>\n"; 89 90 } 91 print "\n#undef __WEBKITDOM_H_INSIDE__\n"; 90 92 } 91 93 -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMFloat64Array.h
r137329 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMFloat64Array_h -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestActiveDOMObject.h
r137329 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMTestActiveDOMObject_h -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCallback.h
r137329 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMTestCallback_h -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestCustomNamedGetter.h
r137329 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMTestCustomNamedGetter_h -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestEventConstructor.h
r137329 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMTestEventConstructor_h -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestEventTarget.h
r137329 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMTestEventTarget_h -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestException.h
r137329 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMTestException_h -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestInterface.h
r137329 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMTestInterface_h -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestMediaQueryListListener.h
r137329 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMTestMediaQueryListListener_h -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestNamedConstructor.h
r137329 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMTestNamedConstructor_h -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestNode.h
r137329 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMTestNode_h -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestObj.h
r140488 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMTestObj_h -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestOverloadedConstructors.h
r137329 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMTestOverloadedConstructors_h -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestSerializedScriptValueInterface.h
r137329 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMTestSerializedScriptValueInterface_h -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestTypedefs.h
r142865 r143212 18 18 Boston, MA 02110-1301, USA. 19 19 */ 20 21 #if !defined(__WEBKITDOM_H_INSIDE__) && !defined(BUILDING_WEBKIT) 22 #error "Only <webkitdom/webkitdom.h> can be included directly." 23 #endif 20 24 21 25 #ifndef WebKitDOMTestTypedefs_h
Note: See TracChangeset
for help on using the changeset viewer.