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

Side by Side Diff: tools/dom/idl/dart/dart.idl

Issue 569783002: Migrate to Chrome 37 IDL (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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 | « tools/dom/dom.json ('k') | tools/dom/scripts/dartdomgenerator.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // This file introduces / supplements and forces Dart declarations. 1 // This file introduces / supplements and forces Dart declarations.
2 2
3 [DartSupplemental, 3 [DartSupplemental,
4 Constructor] 4 Constructor]
5 interface AudioContext { 5 interface AudioContext {
6 // TODO(ager): Auto-generate this custom method when the info about retaining 6 // TODO(ager): Auto-generate this custom method when the info about retaining
7 // typed arrays is in the IDL. 7 // typed arrays is in the IDL.
8 [Custom] void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback succe ssCallback, AudioBufferCallback errorCallback); 8 [Custom] void decodeAudioData(ArrayBuffer audioData, AudioBufferCallback succe ssCallback, AudioBufferCallback errorCallback);
9 }; 9 };
10 10
(...skipping 25 matching lines...) Expand all
36 [DartSuppress] readonly attribute Element nextElementSibling; 36 [DartSuppress] readonly attribute Element nextElementSibling;
37 [DartSuppress] readonly attribute Element previousElementSibling; 37 [DartSuppress] readonly attribute Element previousElementSibling;
38 }; 38 };
39 39
40 [DartSupplemental] 40 [DartSupplemental]
41 interface ScriptProcessorNode { 41 interface ScriptProcessorNode {
42 [DartSuppress] attribute EventListener onaudioprocess; 42 [DartSuppress] attribute EventListener onaudioprocess;
43 [Custom] void _setEventListener(EventListener eventListener); 43 [Custom] void _setEventListener(EventListener eventListener);
44 }; 44 };
45 45
46 /*
47 // TODO(vsm): How should this interact with the new ChildNode and
48 // ParentNode interfaces?
49 // Force ElementTraversal. WebKit defines these directly.
50 interface ElementTraversal : ChildNode, ParentNode {
51 readonly attribute unsigned long childElementCount;
52 readonly attribute Element firstElementChild;
53 readonly attribute Element lastElementChild;
54 readonly attribute Element nextElementSibling;
55 readonly attribute Element previousElementSibling;
56 };
57 Element implements ElementTraversal;
58 */
59
60 [DartSupplemental] 46 [DartSupplemental]
61 interface Element { 47 interface Element {
62 readonly attribute Element nextElementSibling; 48 readonly attribute Element nextElementSibling;
63 readonly attribute Element previousElementSibling; 49 readonly attribute Element previousElementSibling;
64 }; 50 };
65 51
66 [DartSupplemental] 52 [DartSupplemental]
67 interface CharacterData { 53 interface CharacterData {
68 readonly attribute Element nextElementSibling; 54 readonly attribute Element nextElementSibling;
69 readonly attribute Element previousElementSibling; 55 readonly attribute Element previousElementSibling;
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 [DartName=lowerBound_] static IDBKeyRange lowerBound(any bound, [DartForceOpti onal] optional boolean open); 208 [DartName=lowerBound_] static IDBKeyRange lowerBound(any bound, [DartForceOpti onal] optional boolean open);
223 [DartName=upperBound_] static IDBKeyRange upperBound(any bound, [DartForceOpti onal] optional boolean open); 209 [DartName=upperBound_] static IDBKeyRange upperBound(any bound, [DartForceOpti onal] optional boolean open);
224 [DartName=bound_] static IDBKeyRange bound(any lower, any upper, [DartForceOpt ional] optional boolean lowerOpen, [DartForceOptional] optional boolean upperOpe n); 210 [DartName=bound_] static IDBKeyRange bound(any lower, any upper, [DartForceOpt ional] optional boolean lowerOpen, [DartForceOptional] optional boolean upperOpe n);
225 }; 211 };
226 212
227 [DartSupplemental] 213 [DartSupplemental]
228 interface IDBObjectStore { 214 interface IDBObjectStore {
229 [CallWith=ScriptState, RaisesException] IDBRequest put(any value, [DartForce Optional] optional any key); 215 [CallWith=ScriptState, RaisesException] IDBRequest put(any value, [DartForce Optional] optional any key);
230 [CallWith=ScriptState, RaisesException] IDBRequest add(any value, [DartForce Optional] optional any key); 216 [CallWith=ScriptState, RaisesException] IDBRequest add(any value, [DartForce Optional] optional any key);
231 // [CallWith=ExecutionContext, ImplementedAs=deleteFunction, RaisesException ] IDBRequest delete(any key); 217 // [CallWith=ExecutionContext, ImplementedAs=deleteFunction, RaisesException ] IDBRequest delete(any key);
232 [CallWith=ExecutionContext, RaisesException] IDBRequest openCursor(any key, [DartForceOptional] optional DOMString direction); 218 [CallWith=ExecutionContext, RaisesException] IDBRequest openCursor([Default= Undefined] optional any range, [DartForceOptional] optional DOMString direction) ;
233 [CallWith=ExecutionContext, RaisesException] IDBRequest count(any key); 219 [CallWith=ExecutionContext, RaisesException] IDBRequest count([Default=Undef ined] any key);
234 }; 220 };
235 221
236 interface EntrySync { 222 interface EntrySync {
237 // Native implementation is declared to return EntrySync. 223 // Native implementation is declared to return EntrySync.
238 [DartSuppress] DirectoryEntrySync getParent(); 224 [DartSuppress] DirectoryEntrySync getParent();
239 EntrySync getParent(); 225 EntrySync getParent();
240 }; 226 };
241 227
242
243 [DartSupplemental, 228 [DartSupplemental,
244 CustomConstructor, 229 CustomConstructor,
245 Constructor(Array blobParts, optional DOMString type, optional DOMString endin gs) 230 Constructor(Array blobParts, optional DOMString type, optional DOMString endin gs)
246 ] 231 ]
247 interface Blob { 232 interface Blob {
248 }; 233 };
249 234
250 [DartSupplemental, 235 [DartSupplemental,
251 Constructor(float x, float y) 236 Constructor(float x, float y)
252 ] 237 ]
(...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 [DartSuppress] void webkitRequestPointerLock(); 442 [DartSuppress] void webkitRequestPointerLock();
458 }; 443 };
459 444
460 [DartSupplemental] interface CSSStyleDeclaration { 445 [DartSupplemental] interface CSSStyleDeclaration {
461 // Expose __propertyQuery__ a getter with a special operation in the IDL 446 // Expose __propertyQuery__ a getter with a special operation in the IDL
462 // when used with Custom=PropertyQuery will emit __propertyQuery__. 447 // when used with Custom=PropertyQuery will emit __propertyQuery__.
463 [Custom=PropertyQuery] getter boolean (DOMString name); 448 [Custom=PropertyQuery] getter boolean (DOMString name);
464 }; 449 };
465 450
466 Element implements GlobalEventHandlers; 451 Element implements GlobalEventHandlers;
OLDNEW
« no previous file with comments | « tools/dom/dom.json ('k') | tools/dom/scripts/dartdomgenerator.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698