| OLD | NEW | 
|    1 /* |    1 /* | 
|    2  * Copyright (C) 2009 Google Inc. All rights reserved. |    2  * Copyright (C) 2009 Google Inc. All rights reserved. | 
|    3  * Copyright (C) 2010 Apple Inc. All rights reserved. |    3  * Copyright (C) 2010 Apple Inc. All rights reserved. | 
|    4  * |    4  * | 
|    5  * Redistribution and use in source and binary formstrArg, with or without |    5  * Redistribution and use in source and binary formstrArg, with or without | 
|    6  * modification, are permitted provided that the following conditions |    6  * modification, are permitted provided that the following conditions | 
|    7  * are met: |    7  * are met: | 
|    8  * |    8  * | 
|    9  * 1.  Redistributions of source code must retain the above copyright |    9  * 1.  Redistributions of source code must retain the above copyright | 
|   10  *     notice, this list of conditions and the following disclaimer. |   10  *     notice, this list of conditions and the following disclaimer. | 
| (...skipping 27 matching lines...) Expand all  Loading... | 
|   38 ] interface TestObject { |   38 ] interface TestObject { | 
|   39     // Attributes |   39     // Attributes | 
|   40     readonly attribute long            readOnlyLongAttr; |   40     readonly attribute long            readOnlyLongAttr; | 
|   41     readonly attribute DOMString       readOnlyStringAttr; |   41     readonly attribute DOMString       readOnlyStringAttr; | 
|   42     readonly attribute TestObject         readOnlyTestObjectAttr; |   42     readonly attribute TestObject         readOnlyTestObjectAttr; | 
|   43     static readonly attribute long     staticReadOnlyLongAttr; |   43     static readonly attribute long     staticReadOnlyLongAttr; | 
|   44     static attribute DOMString         staticStringAttr; |   44     static attribute DOMString         staticStringAttr; | 
|   45     static readonly attribute TestSubObjConstructor TestSubObj; |   45     static readonly attribute TestSubObjConstructor TestSubObj; | 
|   46     attribute TestEnumType             enumAttr; |   46     attribute TestEnumType             enumAttr; | 
|   47     readonly attribute TestEnumType    readOnlyEnumAttr; |   47     readonly attribute TestEnumType    readOnlyEnumAttr; | 
 |   48     attribute byte                     byteAttr; | 
 |   49     attribute octet                    octetAttr; | 
|   48     attribute short                    shortAttr; |   50     attribute short                    shortAttr; | 
|   49     attribute unsigned short           unsignedShortAttr; |   51     attribute unsigned short           unsignedShortAttr; | 
|   50     attribute long                     longAttr; |   52     attribute long                     longAttr; | 
|   51     attribute long long                longLongAttr; |   53     attribute long long                longLongAttr; | 
|   52     attribute unsigned long long       unsignedLongLongAttr; |   54     attribute unsigned long long       unsignedLongLongAttr; | 
|   53     attribute DOMString                stringAttr; |   55     attribute DOMString                stringAttr; | 
|   54     [MeasureAs=TestFeature] attribute TestObject testObjAttr; |   56     [MeasureAs=TestFeature] attribute TestObject testObjAttr; | 
|   55  |   57  | 
|   56     // WK_ucfirst, WK_lcfirst exceptional cases. |   58     // WK_ucfirst, WK_lcfirst exceptional cases. | 
|   57     attribute TestObject                  XMLObjAttr; |   59     attribute TestObject                  XMLObjAttr; | 
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  141  |  143  | 
|  142     // Callback parameters |  144     // Callback parameters | 
|  143     void    methodWithCallbackArg(TestCallback callback); |  145     void    methodWithCallbackArg(TestCallback callback); | 
|  144     void    methodWithNonCallbackArgAndCallbackArg(long nonCallback, TestCallbac
     k callback); |  146     void    methodWithNonCallbackArgAndCallbackArg(long nonCallback, TestCallbac
     k callback); | 
|  145     void    methodWithCallbackAndOptionalArg(optional TestCallback callback); |  147     void    methodWithCallbackAndOptionalArg(optional TestCallback callback); | 
|  146     // static methods with Callback parameter |  148     // static methods with Callback parameter | 
|  147     static void    staticMethodWithCallbackAndOptionalArg(optional TestCallback 
     callback); |  149     static void    staticMethodWithCallbackAndOptionalArg(optional TestCallback 
     callback); | 
|  148     static void    staticMethodWithCallbackArg(TestCallback callback); |  150     static void    staticMethodWithCallbackArg(TestCallback callback); | 
|  149  |  151  | 
|  150     // 'EnforceRange' extended attribute |  152     // 'EnforceRange' extended attribute | 
 |  153     void    methodWithEnforceRangeInt8([EnforceRange] byte value); | 
 |  154     void    methodWithEnforceRangeUInt8([EnforceRange] octet value); | 
|  151     void    methodWithEnforceRangeInt32([EnforceRange] long value); |  155     void    methodWithEnforceRangeInt32([EnforceRange] long value); | 
|  152     void    methodWithEnforceRangeUInt32([EnforceRange] unsigned long value); |  156     void    methodWithEnforceRangeUInt32([EnforceRange] unsigned long value); | 
|  153     void    methodWithEnforceRangeInt64([EnforceRange] long long value); |  157     void    methodWithEnforceRangeInt64([EnforceRange] long long value); | 
|  154     void    methodWithEnforceRangeUInt64([EnforceRange] unsigned long long value
     ); |  158     void    methodWithEnforceRangeUInt64([EnforceRange] unsigned long long value
     ); | 
|  155  |  159  | 
 |  160     [EnforceRange] attribute byte enforcedRangeByteAttr; | 
 |  161     [EnforceRange] attribute octet enforcedRangeOctetAttr; | 
|  156     [EnforceRange] attribute long enforcedRangeLongAttr; |  162     [EnforceRange] attribute long enforcedRangeLongAttr; | 
|  157     [EnforceRange] attribute unsigned long enforcedRangeUnsignedLongAttr; |  163     [EnforceRange] attribute unsigned long enforcedRangeUnsignedLongAttr; | 
|  158     [EnforceRange] attribute long long enforcedRangeLongLongAttr; |  164     [EnforceRange] attribute long long enforcedRangeLongLongAttr; | 
|  159     [EnforceRange] attribute unsigned long long enforcedRangeUnsignedLongLongAtt
     r; |  165     [EnforceRange] attribute unsigned long long enforcedRangeUnsignedLongLongAtt
     r; | 
|  160  |  166  | 
|  161     // 'Conditional' extended attribute |  167     // 'Conditional' extended attribute | 
|  162     [Conditional=Condition1] attribute long conditionalAttr1; |  168     [Conditional=Condition1] attribute long conditionalAttr1; | 
|  163     [Conditional=Condition1&Condition2] attribute long conditionalAttr2; |  169     [Conditional=Condition1&Condition2] attribute long conditionalAttr2; | 
|  164     [Conditional=Condition1|Condition2] attribute long conditionalAttr3; |  170     [Conditional=Condition1|Condition2] attribute long conditionalAttr3; | 
|  165  |  171  | 
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  301     [DeprecateAs=StaticReadonlyAttribute] static readonly attribute long depreca
     tedStaticReadOnlyAttr; |  307     [DeprecateAs=StaticReadonlyAttribute] static readonly attribute long depreca
     tedStaticReadOnlyAttr; | 
|  302     [DeprecateAs=StaticAttribute] static attribute long deprecatedStaticAttr; |  308     [DeprecateAs=StaticAttribute] static attribute long deprecatedStaticAttr; | 
|  303     [DeprecateAs=ReadonlyAttribute] readonly attribute long deprecatedReadonlyAt
     tr; |  309     [DeprecateAs=ReadonlyAttribute] readonly attribute long deprecatedReadonlyAt
     tr; | 
|  304     [DeprecateAs=Attribute] attribute long deprecatedAttr; |  310     [DeprecateAs=Attribute] attribute long deprecatedAttr; | 
|  305  |  311  | 
|  306     [DeprecateAs=Method] void deprecatedMethod(); |  312     [DeprecateAs=Method] void deprecatedMethod(); | 
|  307     [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); |  313     [DeprecateAs=StaticMethod] static void deprecatedStaticMethod(); | 
|  308  |  314  | 
|  309     [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; |  315     [DeprecateAs=Constant] const unsigned short DEPRECATED_CONSTANT = 1; | 
|  310 }; |  316 }; | 
| OLD | NEW |