| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright (C) 2013 Google Inc. All rights reserved. |    2  * Copyright (C) 2013 Google Inc. All rights reserved. | 
|    3  * |    3  * | 
|    4  * Redistribution and use in source and binary forms, with or without |    4  * Redistribution and use in source and binary forms, with or without | 
|    5  * modification, are permitted provided that the following conditions are |    5  * modification, are permitted provided that the following conditions are | 
|    6  * met: |    6  * met: | 
|    7  * |    7  * | 
|    8  *     * Redistributions of source code must retain the above copyright |    8  *     * Redistributions of source code must retain the above copyright | 
|    9  * notice, this list of conditions and the following disclaimer. |    9  * notice, this list of conditions and the following disclaimer. | 
|   10  *     * Redistributions in binary form must reproduce the above |   10  *     * Redistributions in binary form must reproduce the above | 
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|   81     // TestInterfaceEmpty is used as a stub interface type, for testing behavior |   81     // TestInterfaceEmpty is used as a stub interface type, for testing behavior | 
|   82     // that should not depend on particular type (beyond "interface or not"). |   82     // that should not depend on particular type (beyond "interface or not"). | 
|   83     // read only |   83     // read only | 
|   84     readonly attribute DOMString readonlyStringAttribute; |   84     readonly attribute DOMString readonlyStringAttribute; | 
|   85     readonly attribute TestInterfaceEmpty readonlyTestInterfaceEmptyAttribute; |   85     readonly attribute TestInterfaceEmpty readonlyTestInterfaceEmptyAttribute; | 
|   86     readonly attribute long readonlyLongAttribute; |   86     readonly attribute long readonlyLongAttribute; | 
|   87     // Basic types |   87     // Basic types | 
|   88     attribute Date dateAttribute; |   88     attribute Date dateAttribute; | 
|   89     attribute DOMString stringAttribute; |   89     attribute DOMString stringAttribute; | 
|   90     attribute ByteString byteStringAttribute; |   90     attribute ByteString byteStringAttribute; | 
|   91     attribute ScalarValueString scalarValueStringAttribute; |   91     attribute USVString usvStringAttribute; | 
|   92     attribute DOMTimeStamp domTimeStampAttribute; |   92     attribute DOMTimeStamp domTimeStampAttribute; | 
|   93     attribute boolean booleanAttribute; |   93     attribute boolean booleanAttribute; | 
|   94     attribute byte byteAttribute; |   94     attribute byte byteAttribute; | 
|   95     attribute double doubleAttribute; |   95     attribute double doubleAttribute; | 
|   96     attribute float floatAttribute; |   96     attribute float floatAttribute; | 
|   97     attribute long longAttribute; |   97     attribute long longAttribute; | 
|   98     attribute long long longLongAttribute; |   98     attribute long long longLongAttribute; | 
|   99     attribute octet octetAttribute; |   99     attribute octet octetAttribute; | 
|  100     attribute short shortAttribute; |  100     attribute short shortAttribute; | 
|  101     attribute unrestricted double unrestrictedDoubleAttribute; |  101     attribute unrestricted double unrestrictedDoubleAttribute; | 
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  237     [Conditional=CONDITION, RuntimeEnabled=FeatureName] attribute long condition
     alRuntimeEnabledLongAttribute; |  237     [Conditional=CONDITION, RuntimeEnabled=FeatureName] attribute long condition
     alRuntimeEnabledLongAttribute; | 
|  238     [SetterCallWith=(ActiveWindow,FirstWindow)] attribute DOMString setterCallWi
     thActiveWindowAndFirstWindowStringAttribute; |  238     [SetterCallWith=(ActiveWindow,FirstWindow)] attribute DOMString setterCallWi
     thActiveWindowAndFirstWindowStringAttribute; | 
|  239     [SetterCallWith=ExecutionContext] attribute DOMString setterCallWithExecutio
     nContextStringAttribute; |  239     [SetterCallWith=ExecutionContext] attribute DOMString setterCallWithExecutio
     nContextStringAttribute; | 
|  240     [TreatNullAs=EmptyString] attribute DOMString treatNullAsEmptyStringStringAt
     tribute; |  240     [TreatNullAs=EmptyString] attribute DOMString treatNullAsEmptyStringStringAt
     tribute; | 
|  241     [TreatNullAs=NullString] attribute DOMString treatNullAsNullStringStringAttr
     ibute; |  241     [TreatNullAs=NullString] attribute DOMString treatNullAsNullStringStringAttr
     ibute; | 
|  242     [TreatReturnedNullStringAs=Null] attribute DOMString treatReturnedNullString
     AsNullStringAttribute; |  242     [TreatReturnedNullStringAs=Null] attribute DOMString treatReturnedNullString
     AsNullStringAttribute; | 
|  243     [TreatReturnedNullStringAs=Undefined] attribute DOMString treatReturnedNullS
     tringAsUndefinedStringAttribute; |  243     [TreatReturnedNullStringAs=Undefined] attribute DOMString treatReturnedNullS
     tringAsUndefinedStringAttribute; | 
|  244     [TreatReturnedNullStringAs=Undefined, CachedAttribute=isStringDirty] attribu
     te DOMString cachedTreatReturnedNullStringAsUndefinedStringAttribute; |  244     [TreatReturnedNullStringAs=Undefined, CachedAttribute=isStringDirty] attribu
     te DOMString cachedTreatReturnedNullStringAsUndefinedStringAttribute; | 
|  245     [TreatReturnedNullStringAs=Null] attribute ByteString treatReturnedNullStrin
     gAsNullByteStringAttribute; |  245     [TreatReturnedNullStringAs=Null] attribute ByteString treatReturnedNullStrin
     gAsNullByteStringAttribute; | 
|  246     [TreatReturnedNullStringAs=Undefined] attribute ByteString treatReturnedNull
     StringAsUndefinedByteStringAttribute; |  246     [TreatReturnedNullStringAs=Undefined] attribute ByteString treatReturnedNull
     StringAsUndefinedByteStringAttribute; | 
|  247     [TreatReturnedNullStringAs=Null] attribute ScalarValueString treatReturnedNu
     llStringAsNullScalarValueStringAttribute; |  247     [TreatReturnedNullStringAs=Null] attribute USVString treatReturnedNullString
     AsNullUSVStringAttribute; | 
|  248     [TreatReturnedNullStringAs=Undefined] attribute ScalarValueString treatRetur
     nedNullStringAsUndefinedScalarValueStringAttribute; |  248     [TreatReturnedNullStringAs=Undefined] attribute USVString treatReturnedNullS
     tringAsUndefinedUSVStringAttribute; | 
|  249     [TypeChecking=Interface] attribute float typeCheckingInterfaceFloatAttribute
     ; // nop for non-interface types |  249     [TypeChecking=Interface] attribute float typeCheckingInterfaceFloatAttribute
     ; // nop for non-interface types | 
|  250     [TypeChecking=Interface] attribute TestInterface typeCheckingInterfaceTestIn
     terfaceAttribute; |  250     [TypeChecking=Interface] attribute TestInterface typeCheckingInterfaceTestIn
     terfaceAttribute; | 
|  251     [TypeChecking=Interface] attribute TestInterface? typeCheckingInterfaceTestI
     nterfaceOrNullAttribute; |  251     [TypeChecking=Interface] attribute TestInterface? typeCheckingInterfaceTestI
     nterfaceOrNullAttribute; | 
|  252     [Reflect, URL] attribute DOMString urlStringAttribute; |  252     [Reflect, URL] attribute DOMString urlStringAttribute; | 
|  253     [Reflect=reflectUrlAttribute, URL] attribute DOMString urlStringAttribute; |  253     [Reflect=reflectUrlAttribute, URL] attribute DOMString urlStringAttribute; | 
|  254     [Unforgeable] attribute long unforgeableLongAttribute; |  254     [Unforgeable] attribute long unforgeableLongAttribute; | 
|  255  |  255  | 
|  256  |  256  | 
|  257     // Methods |  257     // Methods | 
|  258     // |  258     // | 
|  259     // Naming convention: |  259     // Naming convention: | 
|  260     // ReturnType returnTypeMethodTypeName1ArgTypeName2Arg(Type1 typeName1Arg, T
     ype2 typeName2Arg); |  260     // ReturnType returnTypeMethodTypeName1ArgTypeName2Arg(Type1 typeName1Arg, T
     ype2 typeName2Arg); | 
|  261     // E.g., |  261     // E.g., | 
|  262     // void voidMethodStringArgLongArrayArg(DOMString stringArg, long[] longArra
     yArg); |  262     // void voidMethodStringArgLongArrayArg(DOMString stringArg, long[] longArra
     yArg); | 
|  263     void voidMethod(); |  263     void voidMethod(); | 
|  264     static void staticVoidMethod(); |  264     static void staticVoidMethod(); | 
|  265  |  265  | 
|  266     // Types |  266     // Types | 
|  267     // Basic types |  267     // Basic types | 
|  268     Date dateMethod(); |  268     Date dateMethod(); | 
|  269     DOMString stringMethod(); |  269     DOMString stringMethod(); | 
|  270     ByteString byteStringMethod(); |  270     ByteString byteStringMethod(); | 
|  271     ScalarValueString scalarValueStringMethod(); |  271     USVString usvStringMethod(); | 
|  272     DOMTimeStamp readonlyDOMTimeStampMethod(); |  272     DOMTimeStamp readonlyDOMTimeStampMethod(); | 
|  273     boolean booleanMethod(); |  273     boolean booleanMethod(); | 
|  274     byte byteMethod(); |  274     byte byteMethod(); | 
|  275     double doubleMethod(); |  275     double doubleMethod(); | 
|  276     float floatMethod(); |  276     float floatMethod(); | 
|  277     long longMethod(); |  277     long longMethod(); | 
|  278     long long longLongMethod(); |  278     long long longLongMethod(); | 
|  279     octet octetMethod(); |  279     octet octetMethod(); | 
|  280     short shortMethod(); |  280     short shortMethod(); | 
|  281     unsigned long unsignedLongMethod(); |  281     unsigned long unsignedLongMethod(); | 
|  282     unsigned long long unsignedLongLongMethod(); |  282     unsigned long long unsignedLongLongMethod(); | 
|  283     unsigned short unsignedShortMethod(); |  283     unsigned short unsignedShortMethod(); | 
|  284  |  284  | 
|  285     void voidMethodDateArg(Date dateArg); |  285     void voidMethodDateArg(Date dateArg); | 
|  286     void voidMethodStringArg(DOMString stringArg); |  286     void voidMethodStringArg(DOMString stringArg); | 
|  287     void voidMethodByteStringArg(ByteString stringArg); |  287     void voidMethodByteStringArg(ByteString stringArg); | 
|  288     void voidMethodScalarValueStringArg(ScalarValueString scalarValueStringArg); |  288     void voidMethodUSVStringArg(USVString usvStringArg); | 
|  289     void voidMethodDOMTimeStampArg(DOMTimeStamp domTimeStampArg); |  289     void voidMethodDOMTimeStampArg(DOMTimeStamp domTimeStampArg); | 
|  290     void voidMethodBooleanArg(boolean booleanArg); |  290     void voidMethodBooleanArg(boolean booleanArg); | 
|  291     void voidMethodByteArg(byte byteArg); |  291     void voidMethodByteArg(byte byteArg); | 
|  292     void voidMethodDoubleArg(double doubleArg); |  292     void voidMethodDoubleArg(double doubleArg); | 
|  293     void voidMethodFloatArg(float floatArg); |  293     void voidMethodFloatArg(float floatArg); | 
|  294     void voidMethodLongArg(long longArg); |  294     void voidMethodLongArg(long longArg); | 
|  295     void voidMethodLongLongArg(long long longLongArg); |  295     void voidMethodLongLongArg(long long longLongArg); | 
|  296     void voidMethodOctetArg(octet octetArg); |  296     void voidMethodOctetArg(octet octetArg); | 
|  297     void voidMethodShortArg(short shortArg); |  297     void voidMethodShortArg(short shortArg); | 
|  298     void voidMethodUnsignedLongArg(unsigned long unsignedLongArg); |  298     void voidMethodUnsignedLongArg(unsigned long unsignedLongArg); | 
| (...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  512     [PerWorldBindings, RuntimeEnabled=FeatureName] void perWorldBindingsRuntimeE
     nabledVoidMethod(); |  512     [PerWorldBindings, RuntimeEnabled=FeatureName] void perWorldBindingsRuntimeE
     nabledVoidMethod(); | 
|  513     [RuntimeEnabled=FeatureName] void runtimeEnabledOverloadedVoidMethod(DOMStri
     ng stringArg); |  513     [RuntimeEnabled=FeatureName] void runtimeEnabledOverloadedVoidMethod(DOMStri
     ng stringArg); | 
|  514     [RuntimeEnabled=FeatureName] void runtimeEnabledOverloadedVoidMethod(long lo
     ngArg); |  514     [RuntimeEnabled=FeatureName] void runtimeEnabledOverloadedVoidMethod(long lo
     ngArg); | 
|  515     [RuntimeEnabled=FeatureName1] void partiallyRuntimeEnabledOverloadedVoidMeth
     od(DOMString stringArg); |  515     [RuntimeEnabled=FeatureName1] void partiallyRuntimeEnabledOverloadedVoidMeth
     od(DOMString stringArg); | 
|  516     [RuntimeEnabled=FeatureName2] void partiallyRuntimeEnabledOverloadedVoidMeth
     od(TestInterface testInterface); |  516     [RuntimeEnabled=FeatureName2] void partiallyRuntimeEnabledOverloadedVoidMeth
     od(TestInterface testInterface); | 
|  517     void partiallyRuntimeEnabledOverloadedVoidMethod(long longArg); |  517     void partiallyRuntimeEnabledOverloadedVoidMethod(long longArg); | 
|  518     [TreatReturnedNullStringAs=Null] DOMString treatReturnedNullStringAsNullStri
     ngMethod(); |  518     [TreatReturnedNullStringAs=Null] DOMString treatReturnedNullStringAsNullStri
     ngMethod(); | 
|  519     [TreatReturnedNullStringAs=Undefined] DOMString treatReturnedNullStringAsUnd
     efinedStringMethod(); |  519     [TreatReturnedNullStringAs=Undefined] DOMString treatReturnedNullStringAsUnd
     efinedStringMethod(); | 
|  520     [TreatReturnedNullStringAs=Null] ByteString treatReturnedNullStringAsNullByt
     eStringMethod(); |  520     [TreatReturnedNullStringAs=Null] ByteString treatReturnedNullStringAsNullByt
     eStringMethod(); | 
|  521     [TreatReturnedNullStringAs=Undefined] ByteString treatReturnedNullStringAsUn
     definedByteStringMethod(); |  521     [TreatReturnedNullStringAs=Undefined] ByteString treatReturnedNullStringAsUn
     definedByteStringMethod(); | 
|  522     [TreatReturnedNullStringAs=Null] ScalarValueString treatReturnedNullStringAs
     NullScalarValueStringMethod(); |  522     [TreatReturnedNullStringAs=Null] USVString treatReturnedNullStringAsNullUSVS
     tringMethod(); | 
|  523     [TreatReturnedNullStringAs=Undefined] ScalarValueString treatReturnedNullStr
     ingAsUndefinedScalarValueStringMethod(); |  523     [TreatReturnedNullStringAs=Undefined] USVString treatReturnedNullStringAsUnd
     efinedUSVStringMethod(); | 
|  524     [TypeChecking=Interface] void typeCheckingInterfaceVoidMethodTestInterfaceEm
     ptyArg(TestInterfaceEmpty testInterfaceEmptyArg); |  524     [TypeChecking=Interface] void typeCheckingInterfaceVoidMethodTestInterfaceEm
     ptyArg(TestInterfaceEmpty testInterfaceEmptyArg); | 
|  525     [TypeChecking=Interface] void typeCheckingInterfaceVoidMethodTestInterfaceEm
     ptyVariadicArg(TestInterfaceEmpty... testInterfaceEmptyArg); |  525     [TypeChecking=Interface] void typeCheckingInterfaceVoidMethodTestInterfaceEm
     ptyVariadicArg(TestInterfaceEmpty... testInterfaceEmptyArg); | 
|  526     // Avoid redundant type checking |  526     // Avoid redundant type checking | 
|  527     [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithOptio
     nalArg(Node node1, optional Node node2); |  527     [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithOptio
     nalArg(Node node1, optional Node node2); | 
|  528     [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithNulla
     bleArg(Node node1, Node? node2); |  528     [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithNulla
     bleArg(Node node1, Node? node2); | 
|  529     [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithUndef
     inedArg(Node node1, [Default=Undefined] optional Node node2); |  529     [TypeChecking=Interface] void useToImpl4ArgumentsCheckingIfPossibleWithUndef
     inedArg(Node node1, [Default=Undefined] optional Node node2); | 
|  530     [TypeChecking=Unrestricted] void typeCheckingUnrestrictedVoidMethodFloatArgD
     oubleArg(float floatArg, double doubleArg); |  530     [TypeChecking=Unrestricted] void typeCheckingUnrestrictedVoidMethodFloatArgD
     oubleArg(float floatArg, double doubleArg); | 
|  531     [Unforgeable] void unforgeableVoidMethod(); |  531     [Unforgeable] void unforgeableVoidMethod(); | 
|  532     void voidMethodTestInterfaceGarbageCollectedSequenceArg(sequence<TestInterfa
     ceGarbageCollected> testInterfaceGarbageCollectedSequenceArg); |  532     void voidMethodTestInterfaceGarbageCollectedSequenceArg(sequence<TestInterfa
     ceGarbageCollected> testInterfaceGarbageCollectedSequenceArg); | 
|  533     void voidMethodTestInterfaceGarbageCollectedArrayArg(TestInterfaceGarbageCol
     lected[] testInterfaceGarbageCollectedArrayArg); |  533     void voidMethodTestInterfaceGarbageCollectedArrayArg(TestInterfaceGarbageCol
     lected[] testInterfaceGarbageCollectedArrayArg); | 
| (...skipping 18 matching lines...) Expand all  Loading... | 
|  552     [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute
     ; |  552     [ImplementedInPrivateScript] readonly attribute short readonlyShortAttribute
     ; | 
|  553     [ImplementedInPrivateScript] attribute short shortAttribute; |  553     [ImplementedInPrivateScript] attribute short shortAttribute; | 
|  554     [ImplementedInPrivateScript] attribute DOMString stringAttribute; |  554     [ImplementedInPrivateScript] attribute DOMString stringAttribute; | 
|  555     [ImplementedInPrivateScript] attribute Node nodeAttribute; |  555     [ImplementedInPrivateScript] attribute Node nodeAttribute; | 
|  556     [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl
     y(short value1, short value2); |  556     [OnlyExposedToPrivateScript] short methodImplementedInCPPForPrivateScriptOnl
     y(short value1, short value2); | 
|  557     [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo
     rPrivateScriptOnly; |  557     [OnlyExposedToPrivateScript] attribute DOMString attributeImplementedInCPPFo
     rPrivateScriptOnly; | 
|  558     [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv
     ateScriptOnly(short value1, short value2); |  558     [ImplementedInPrivateScript, OnlyExposedToPrivateScript] short methodForPriv
     ateScriptOnly(short value1, short value2); | 
|  559     [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString
      attributeForPrivateScriptOnly; |  559     [ImplementedInPrivateScript, OnlyExposedToPrivateScript] attribute DOMString
      attributeForPrivateScriptOnly; | 
|  560     [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; |  560     [ImplementedInPrivateScript] attribute TestEnum enumForPrivateScript; | 
|  561 }; |  561 }; | 
| OLD | NEW |