Changeset 158907 in webkit


Ignore:
Timestamp:
Nov 8, 2013 12:09:23 AM (11 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK] Use deprecation guards around deprecated API in GObject DOM bindings
https://bugs.webkit.org/show_bug.cgi?id=123899

Reviewed by Martin Robinson.

Do not include deprecated API when compiling with
WEBKIT_DISABLE_DEPRECATED option.

  • bindings/scripts/CodeGeneratorGObject.pm:

(GenerateFunction):

  • bindings/scripts/test/GObject/WebKitDOMTestEventTarget.cpp:
  • bindings/scripts/test/GObject/WebKitDOMTestEventTarget.h:
Location:
trunk/Source/WebCore
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r158906 r158907  
     12013-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
    1162013-11-07  Brady Eidson  <beidson@apple.com>
    217
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorGObject.pm

    r158200 r158907  
    959959    push(@symbols, "$returnType $functionName($symbolSig)\n");
    960960
     961    if ($deprecationVersion) {
     962        push(@hBody, "#if !defined(WEBKIT_DISABLE_DEPRECATED)\n");
     963    }
     964
    961965    # Insert introspection annotations
    962966    push(@hBody, "/**\n");
     
    10021006    }
    10031007    push(@hBody, "$returnType\n$functionName($functionSig);\n");
     1008    if ($deprecationVersion) {
     1009        push(@hBody, "#endif /* WEBKIT_DISABLE_DEPRECATED */\n");
     1010    }
    10041011    push(@hBody, "\n");
    10051012
     1013    if ($deprecationVersion) {
     1014        push(@cBody, "#if !defined(WEBKIT_DISABLE_DEPRECATED)\n");
     1015    }
    10061016    push(@cBody, "$returnType $functionName($functionSig)\n{\n");
    10071017    push(@cBody, "#if ${parentConditionalString}\n") if $parentConditionalString;
     
    12191229    }
    12201230
    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");
    12221238}
    12231239
  • trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestEventTarget.cpp

    r157918 r158907  
    148148}
    149149
     150#if !defined(WEBKIT_DISABLE_DEPRECATED)
    150151gboolean webkit_dom_test_event_target_dispatch_event(WebKitDOMTestEventTarget* self, WebKitDOMEvent* evt, GError** error)
    151152{
     
    164165    return result;
    165166}
     167#endif // WEBKIT_DISABLE_DEPRECATED
    166168
  • trunk/Source/WebCore/bindings/scripts/test/GObject/WebKitDOMTestEventTarget.h

    r158200 r158907  
    6060webkit_dom_test_event_target_item(WebKitDOMTestEventTarget* self, gulong index);
    6161
     62#if !defined(WEBKIT_DISABLE_DEPRECATED)
    6263/**
    6364 * webkit_dom_test_event_target_dispatch_event:
     
    7273WEBKIT_DEPRECATED_FOR(webkit_dom_event_target_dispatch_event) gboolean
    7374webkit_dom_test_event_target_dispatch_event(WebKitDOMTestEventTarget* self, WebKitDOMEvent* evt, GError** error);
     75#endif /* WEBKIT_DISABLE_DEPRECATED */
    7476
    7577G_END_DECLS
Note: See TracChangeset for help on using the changeset viewer.