Changeset 106643 in webkit


Ignore:
Timestamp:
Feb 3, 2012 2:31:41 AM (12 years ago)
Author:
haraken@chromium.org
Message:

Add the "CPP" prefix to CPP specific IDL attributes
https://bugs.webkit.org/show_bug.cgi?id=77707

Reviewed by Adam Barth.

This patch adds the "CPP" prefix to a CPP specific IDL attribute.
Specifically, this patch renames [PureInterface] to [CPPPureInterface]

No tests. No change in behavior.

  • bindings/scripts/CodeGeneratorCPP.pm:

(GenerateHeader):
(GenerateImplementation):

  • css/MediaQueryListListener.idl:
  • dom/EventListener.idl:
  • dom/EventTarget.idl:
  • dom/NodeFilter.idl:
Location:
trunk/Source/WebCore
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r106642 r106643  
     12012-02-03  Kentaro Hara  <haraken@chromium.org>
     2
     3        Add the "CPP" prefix to CPP specific IDL attributes
     4        https://bugs.webkit.org/show_bug.cgi?id=77707
     5
     6        Reviewed by Adam Barth.
     7
     8        This patch adds the "CPP" prefix to a CPP specific IDL attribute.
     9        Specifically, this patch renames [PureInterface] to [CPPPureInterface]
     10
     11        No tests. No change in behavior.
     12
     13        * bindings/scripts/CodeGeneratorCPP.pm:
     14        (GenerateHeader):
     15        (GenerateImplementation):
     16        * css/MediaQueryListListener.idl:
     17        * dom/EventListener.idl:
     18        * dom/EventTarget.idl:
     19        * dom/NodeFilter.idl:
     20
    1212012-01-27  Alexander Pavlov  <apavlov@chromium.org>
    222
  • trunk/Source/WebCore/bindings/scripts/CodeGeneratorCPP.pm

    r106640 r106643  
    482482            }
    483483            $functionSig .= ")";
    484             if ($dataNode->extendedAttributes->{"PureInterface"}) {
     484            if ($dataNode->extendedAttributes->{"CPPPureInterface"}) {
    485485                push(@interfaceFunctions, "    virtual " . $functionSig . " = 0;\n");
    486486            }
     
    514514    push(@headerContent, "};\n\n");
    515515
    516     # for PureInterface classes also add the interface that the client code needs to
     516    # for CPPPureInterface classes also add the interface that the client code needs to
    517517    # implement
    518     if ($dataNode->extendedAttributes->{"PureInterface"}) {
     518    if ($dataNode->extendedAttributes->{"CPPPureInterface"}) {
    519519        push(@headerContent, "class WebUser$interfaceName {\n");
    520520        push(@headerContent, "public:\n");
     
    530530    push(@headerContent, "$namespace" . "::$implClassName* toWebCore(const $className&);\n");
    531531    push(@headerContent, "$className toWebKit($namespace" . "::$implClassName*);\n");
    532     if ($dataNode->extendedAttributes->{"PureInterface"}) {
     532    if ($dataNode->extendedAttributes->{"CPPPureInterface"}) {
    533533        push(@headerContent, "$className toWebKit(WebUser$interfaceName*);\n");
    534534    }
     
    784784    if ($numFunctions > 0) {
    785785        foreach my $function (@{$dataNode->functions}) {
    786             # Treat PureInterface as Custom as well, since the WebCore versions will take a script context as well
    787             next if ShouldSkipType($function) || $dataNode->extendedAttributes->{"PureInterface"};
     786            # Treat CPPPureInterface as Custom as well, since the WebCore versions will take a script context as well
     787            next if ShouldSkipType($function) || $dataNode->extendedAttributes->{"CPPPureInterface"};
    788788            AddIncludesForType($function->signature->type);
    789789
  • trunk/Source/WebCore/css/MediaQueryListListener.idl

    r92236 r106643  
    2222        NoStaticTables,
    2323        ObjCProtocol,
    24         PureInterface,
     24        CPPPureInterface,
    2525        OmitConstructor
    2626    ] MediaQueryListListener {
  • trunk/Source/WebCore/dom/EventListener.idl

    r92433 r106643  
    2525        NoStaticTables,
    2626        ObjCProtocol,
    27         PureInterface,
     27        CPPPureInterface,
    2828        OmitConstructor
    2929    ] EventListener {
  • trunk/Source/WebCore/dom/EventTarget.idl

    r92433 r106643  
    2424    interface [
    2525        ObjCProtocol,
    26         PureInterface,
     26        CPPPureInterface,
    2727        OmitConstructor
    2828    ] EventTarget {
  • trunk/Source/WebCore/dom/NodeFilter.idl

    r92433 r106643  
    2626        CustomNativeConverter,
    2727        ObjCProtocol,
    28         PureInterface
     28        CPPPureInterface
    2929    ] NodeFilter {
    3030        // Constants returned by acceptNode
Note: See TracChangeset for help on using the changeset viewer.