Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1194)

Side by Side Diff: third_party/WebCore/bindings/scripts/test/TestObj.idl

Issue 11000007: Revert "Roll IDL to multivm@910" (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « third_party/WebCore/README ('k') | third_party/WebCore/dom/CharacterData.idl » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 static readonly attribute long staticReadOnlyLongAttr; 42 static readonly attribute long staticReadOnlyLongAttr;
43 static attribute DOMString staticStringAttr; 43 static attribute DOMString staticStringAttr;
44 static readonly attribute TestSubObjConstructor TestSubObj; 44 static readonly attribute TestSubObjConstructor TestSubObj;
45 #endif 45 #endif
46 attribute short shortAttr; 46 attribute short shortAttr;
47 attribute unsigned short unsignedShortAttr; 47 attribute unsigned short unsignedShortAttr;
48 attribute long longAttr; 48 attribute long longAttr;
49 attribute long long longLongAttr; 49 attribute long long longLongAttr;
50 attribute unsigned long long unsignedLongLongAttr; 50 attribute unsigned long long unsignedLongLongAttr;
51 attribute DOMString stringAttr; 51 attribute DOMString stringAttr;
52 attribute [V8MeasureAs=TestFeature] TestObj testObjAttr; 52 attribute TestObj testObjAttr;
53 53
54 JS, V8 54 JS, V8
55 // WK_ucfirst, WK_lcfirst exceptional cases. 55 // WK_ucfirst, WK_lcfirst exceptional cases.
56 attribute TestObj XMLObjAttr; 56 attribute TestObj XMLObjAttr;
57 attribute boolean create; 57 attribute boolean create;
58 58
59 // Reflected DOM attributes 59 // Reflected DOM attributes
60 attribute [Reflect] DOMString reflectedStringAttr; 60 attribute [Reflect] DOMString reflectedStringAttr;
61 attribute [Reflect] long reflectedIntegralAttr; 61 attribute [Reflect] long reflectedIntegralAttr;
62 attribute [Reflect] unsigned long reflectedUnsignedIntegralAttr; 62 attribute [Reflect] unsigned long reflectedUnsignedIntegralAttr;
63 attribute [Reflect] boolean reflectedBooleanAttr; 63 attribute [Reflect] boolean reflectedBooleanAttr;
64 attribute [Reflect, URL] DOMString reflectedURLAttr; 64 attribute [Reflect, URL] DOMString reflectedURLAttr;
65 attribute [Reflect=customContentStringAttr] DOMString reflectedStringAtt r; 65 attribute [Reflect=customContentStringAttr] DOMString reflectedStringAtt r;
66 attribute [Reflect=customContentIntegralAttr] long reflectedCustomIntegr alAttr; 66 attribute [Reflect=customContentIntegralAttr] long reflectedCustomIntegr alAttr;
67 attribute [Reflect=customContentBooleanAttr] boolean reflectedCustomBool eanAttr; 67 attribute [Reflect=customContentBooleanAttr] boolean reflectedCustomBool eanAttr;
68 attribute [Reflect=customContentURLAttr, URL] DOMString reflectedCustomU RLAttr; 68 attribute [Reflect=customContentURLAttr, URL] DOMString reflectedCustomU RLAttr;
69 69
70 // TypedArray attribute 70 // TypedArray attribute
71 attribute Float32Array typedArrayAttr; 71 attribute Float32Array typedArrayAttr;
72 72
73 // Methods 73 // Methods
74 void voidMethod(); 74 void voidMethod();
75 void voidMethodWithArgs(in long longArg, in DOMString strArg, in Test Obj objArg); 75 void voidMethodWithArgs(in long longArg, in DOMString strArg, in Test Obj objArg);
76 long longMethod(); 76 long longMethod();
77 long longMethodWithArgs(in long longArg, in DOMString strArg, in Test Obj objArg); 77 long longMethodWithArgs(in long longArg, in DOMString strArg, in Test Obj objArg);
78 [V8MeasureAs=TestFeature] TestObj objMethod(); 78 TestObj objMethod();
79 TestObj objMethodWithArgs(in long longArg, in DOMString strArg, in TestO bj objArg); 79 TestObj objMethodWithArgs(in long longArg, in DOMString strArg, in TestO bj objArg);
80 80
81 void methodWithSequenceArg(in sequence<ScriptProfile> sequenceArg); 81 void methodWithSequenceArg(in sequence<ScriptProfile> sequenceArg);
82 sequence<ScriptProfile> methodReturningSequence(in long longArg); 82 sequence<ScriptProfile> methodReturningSequence(in long longArg);
83 83
84 TestObj methodThatRequiresAllArgsAndThrows(in DOMString strArg, in TestO bj objArg) 84 TestObj methodThatRequiresAllArgsAndThrows(in DOMString strArg, in TestO bj objArg)
85 raises(DOMException); 85 raises(DOMException);
86 86
87 void serializedValue(in SerializedScriptValue serializedArg); 87 void serializedValue(in SerializedScriptValue serializedArg);
88 void idbKey(in IDBKey key); 88 void idbKey(in IDBKey key);
89 void optionsObject(in Dictionary oo, in [Optional] Dictionary ooo); 89 void optionsObject(in Dictionary oo, in [Optional] Dictionary ooo);
90 90
91 // Exceptions 91 // Exceptions
92 void methodWithException() raises(DOMException); 92 void methodWithException() raises(DOMException);
93 attribute long attrWithGetterException getter raises(DOMException); 93 attribute long attrWithGetterException getter raises(DOMException);
94 attribute long attrWithSetterException setter raises(DOMException); 94 attribute long attrWithSetterException setter raises(DOMException);
95 attribute DOMString stringAttrWithGetterException getter raises(DOMExcep tion); 95 attribute DOMString stringAttrWithGetterException getter raises(DOMExcep tion);
96 attribute DOMString stringAttrWithSetterException setter raises(DOMExcep tion); 96 attribute DOMString stringAttrWithSetterException setter raises(DOMExcep tion);
97 97
98 // 'Custom' extended attribute 98 // 'Custom' extended attribute
99 attribute [Custom] long customAttr; 99 attribute [Custom] long customAttr;
100 [Custom, V8MeasureAs=CustomTestFeature] void customMethod(); 100 [Custom] void customMethod();
101 [Custom] void customMethodWithArgs(in long longArg, in DOMString strArg, in TestObj objArg); 101 [Custom] void customMethodWithArgs(in long longArg, in DOMString strArg, in TestObj objArg);
102 102
103 void addEventListener(in DOMString type, 103 void addEventListener(in DOMString type,
104 in EventListener listener, 104 in EventListener listener,
105 in [Optional] boolean useCapture); 105 in [Optional] boolean useCapture);
106 void removeEventListener(in DOMString type, 106 void removeEventListener(in DOMString type,
107 in EventListener listener, 107 in EventListener listener,
108 in [Optional] boolean useCapture); 108 in [Optional] boolean useCapture);
109 109
110 // 'CallWith' extended attribute 110 // 'CallWith' extended attribute
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 attribute [Conditional=Condition1] TestObjectAConstructor conditionalAtt r4; 161 attribute [Conditional=Condition1] TestObjectAConstructor conditionalAtt r4;
162 attribute [Conditional=Condition1&Condition2] TestObjectBConstructor con ditionalAttr5; 162 attribute [Conditional=Condition1&Condition2] TestObjectBConstructor con ditionalAttr5;
163 attribute [Conditional=Condition1|Condition2] TestObjectCConstructor con ditionalAttr6; 163 attribute [Conditional=Condition1|Condition2] TestObjectCConstructor con ditionalAttr6;
164 164
165 [Conditional=Condition1] const unsigned short CONDITIONAL_CONST = 0; 165 [Conditional=Condition1] const unsigned short CONDITIONAL_CONST = 0;
166 166
167 #if defined(TESTING_V8) || defined(TESTING_JS) 167 #if defined(TESTING_V8) || defined(TESTING_JS)
168 readonly attribute [CachedAttribute] any cachedAttribute1; 168 readonly attribute [CachedAttribute] any cachedAttribute1;
169 readonly attribute [CachedAttribute] any cachedAttribute2; 169 readonly attribute [CachedAttribute] any cachedAttribute2;
170 #endif 170 #endif
171
172 attribute any anyAttribute;
173 171
174 #if defined(TESTING_V8) || defined(TESTING_JS) 172 #if defined(TESTING_V8) || defined(TESTING_JS)
175 // Overloads 173 // Overloads
176 void overloadedMethod(in TestObj? objArg, in DOMString strArg); 174 void overloadedMethod(in TestObj? objArg, in DOMString strArg);
177 void overloadedMethod(in TestObj? objArg, in [Optional] long longArg) ; 175 void overloadedMethod(in TestObj? objArg, in [Optional] long longArg) ;
178 void overloadedMethod(in DOMString strArg); 176 void overloadedMethod(in DOMString strArg);
179 void overloadedMethod(in long longArg); 177 void overloadedMethod(in long longArg);
180 void overloadedMethod(in [Callback] TestCallback callback); 178 void overloadedMethod(in [Callback] TestCallback callback);
181 void overloadedMethod(in DOMStringList? listArg); 179 void overloadedMethod(in DOMStringList? listArg);
182 void overloadedMethod(in DOMString[]? arrayArg); 180 void overloadedMethod(in DOMString[]? arrayArg);
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 const DOMString CONST_VALUE_10 = "my constant string"; 256 const DOMString CONST_VALUE_10 = "my constant string";
259 const unsigned short CONST_VALUE_11 = 0xffffffff; 257 const unsigned short CONST_VALUE_11 = 0xffffffff;
260 const unsigned short CONST_VALUE_12 = 0x01; 258 const unsigned short CONST_VALUE_12 = 0x01;
261 const unsigned short CONST_VALUE_13 = 0X20; 259 const unsigned short CONST_VALUE_13 = 0X20;
262 const unsigned short CONST_VALUE_14 = 0x1abc; 260 const unsigned short CONST_VALUE_14 = 0x1abc;
263 [Reflect=CONST_IMPL] const unsigned short CONST_JAVASCRIPT = 15; 261 [Reflect=CONST_IMPL] const unsigned short CONST_JAVASCRIPT = 15;
264 262
265 attribute [Replaceable] long replaceableAttribute; 263 attribute [Replaceable] long replaceableAttribute;
266 }; 264 };
267 } 265 }
OLDNEW
« no previous file with comments | « third_party/WebCore/README ('k') | third_party/WebCore/dom/CharacterData.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698