Changeset 158907 in webkit
- Timestamp:
- Nov 8, 2013 12:09:23 AM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r158906 r158907 1 2013-11-07 Carlos Garcia Campos <cgarcia@igalia.com> 2 3 [GTK] Use deprecation guards around deprecated API in GObject DOM bindings 4 https://bugs.webkit.org/show_bug.cgi?id=123899 5 6 Reviewed by Martin Robinson. 7 8 Do not include deprecated API when compiling with 9 WEBKIT_DISABLE_DEPRECATED option. 10 11 * bindings/scripts/CodeGeneratorGObject.pm: 12 (GenerateFunction): 13 * bindings/scripts/test/GObject/WebKitDOMTestEventTarget.cpp: 14 * bindings/scripts/test/GObject/WebKitDOMTestEventTarget.h: 15 1 16 2013-11-07 Brady Eidson <beidson@apple.com> 2 17 -
trunk/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm
r158200 r158907 959 959 push(@symbols, "$returnType $functionName($symbolSig)\n"); 960 960 961 if ($deprecationVersion) { 962 push(@hBody, "#if !defined(WEBKIT_DISABLE_DEPRECATED)\n"); 963 } 964 961 965 # Insert introspection annotations 962 966 push(@hBody, "/**\n"); … … 1002 1006 } 1003 1007 push(@hBody, "$returnType\n$functionName($functionSig);\n"); 1008 if ($deprecationVersion) { 1009 push(@hBody, "#endif /* WEBKIT_DISABLE_DEPRECATED */\n"); 1010 } 1004 1011 push(@hBody, "\n"); 1005 1012 1013 if ($deprecationVersion) { 1014 push(@cBody, "#if !defined(WEBKIT_DISABLE_DEPRECATED)\n"); 1015 } 1006 1016 push(@cBody, "$returnType $functionName($functionSig)\n{\n"); 1007 1017 push(@cBody, "#if ${parentConditionalString}\n") if $parentConditionalString; … … 1219 1229 } 1220 1230 1221 push(@cBody, "}\n\n"); 1231 push(@cBody, "}\n"); 1232 1233 if ($deprecationVersion) { 1234 push(@cBody, "#endif // WEBKIT_DISABLE_DEPRECATED\n"); 1235 } 1236 1237 push(@cBody, "\n"); 1222 1238 } 1223 1239 -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestEventTarget.cpp
r157918 r158907 148 148 } 149 149 150 #if !defined(WEBKIT_DISABLE_DEPRECATED) 150 151 gboolean webkit_dom_test_event_target_dispatch_event(WebKitDOMTestEventTarget* self, WebKitDOMEvent* evt, GError** error) 151 152 { … … 164 165 return result; 165 166 } 167 #endif // WEBKIT_DISABLE_DEPRECATED 166 168 -
trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestEventTarget.h
r158200 r158907 60 60 webkit_dom_test_event_target_item(WebKitDOMTestEventTarget* self, gulong index); 61 61 62 #if !defined(WEBKIT_DISABLE_DEPRECATED) 62 63 /** 63 64 * webkit_dom_test_event_target_dispatch_event: … … 72 73 WEBKIT_DEPRECATED_FOR(webkit_dom_event_target_dispatch_event) gboolean 73 74 webkit_dom_test_event_target_dispatch_event(WebKitDOMTestEventTarget* self, WebKitDOMEvent* evt, GError** error); 75 #endif /* WEBKIT_DISABLE_DEPRECATED */ 74 76 75 77 G_END_DECLS
Note: See TracChangeset
for help on using the changeset viewer.