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

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

Issue 15012015: Dart.idl cleanup (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 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 | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/htmlrenamer.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 [Supplemental, 3 [Supplemental,
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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 152
153 [Custom] any getTexParameter(unsigned long target, unsigned long pname); 153 [Custom] any getTexParameter(unsigned long target, unsigned long pname);
154 [Suppressed, StrictTypeChecking, Custom] void getTexParameter(); 154 [Suppressed, StrictTypeChecking, Custom] void getTexParameter();
155 155
156 [Custom] any getUniform(WebGLProgram program, WebGLUniformLocation location); 156 [Custom] any getUniform(WebGLProgram program, WebGLUniformLocation location);
157 [Suppressed, StrictTypeChecking, Custom] void getUniform(); 157 [Suppressed, StrictTypeChecking, Custom] void getUniform();
158 158
159 [Custom] any getVertexAttrib(unsigned long index, unsigned long pname); 159 [Custom] any getVertexAttrib(unsigned long index, unsigned long pname);
160 [Suppressed, StrictTypeChecking, Custom] void getVertexAttrib(); 160 [Suppressed, StrictTypeChecking, Custom] void getVertexAttrib();
161 }; 161 };
162 [Supplemental]
163 interface CSSStyleDeclaration {
164 void setProperty(DOMString propertyName, DOMString value, [ForceOptional] opti onal DOMString priority);
165 [DartName=_getPropertyValue] DOMString getPropertyValue(DOMString propertyName );
166 };
167 162
168 // TODO(vsm): Define new names for these (see b/4436830). 163 // TODO(vsm): Define new names for these (see b/4436830).
169 [Supplemental] 164 [Supplemental]
170 interface IDBCursor { 165 interface IDBCursor {
171 [DartName=next, CallWith=ScriptExecutionContext, ImplementedAs=continueFunctio n, RaisesException] void continue([ForceOptional] optional any key); 166 [DartName=next, CallWith=ScriptExecutionContext, ImplementedAs=continueFunctio n, RaisesException] void continue([ForceOptional] optional any key);
172 }; 167 };
173 [Supplemental] 168 [Supplemental]
174 interface IDBIndex { 169 interface IDBIndex {
175 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openCursor([Fo rceOptional] optional IDBKeyRange? range, [ForceOptional] optional DOMString dir ection); 170 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openCursor([Fo rceOptional] optional IDBKeyRange? range, [ForceOptional] optional DOMString dir ection);
176 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openCursor(any key, [ForceOptional] optional DOMString direction); 171 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openCursor(any key, [ForceOptional] optional DOMString direction);
177 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openKeyCursor( [ForceOptional] optional IDBKeyRange? range, [ForceOptional] optional DOMString direction); 172 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openKeyCursor( [ForceOptional] optional IDBKeyRange? range, [ForceOptional] optional DOMString direction);
178 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openKeyCursor( any key, 173 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest openKeyCursor( any key,
179 [ForceOptional] optional DOMString direction); 174 [ForceOptional] optional DOMString direction);
180 175
181 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest count([ForceOp tional] optional IDBKeyRange? range); 176 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest count([ForceOp tional] optional IDBKeyRange? range);
182 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest count(any key) ; 177 [CallWith=ScriptExecutionContext, RaisesException] IDBRequest count(any key) ;
183 }; 178 };
184 [Supplemental]
185 interface IDBDatabase {
186 // These variants are slated for removal from WebKit. Suppress to bring our
187 // API in line with the most recent spec.
188 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(DOMSt ringList storeNames, unsigned short mode);
189 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(DOMSt ring[] storeNames, unsigned short mode);
190 [Suppressed, CallWith=ScriptExecutionContext] IDBTransaction transaction(DOMSt ring storeName, unsigned short mode);
191 };
192 179
193 [Supplemental] 180 [Supplemental]
194 interface IDBKeyRange { 181 interface IDBKeyRange {
195 [DartName=only_] static IDBKeyRange only(any value); 182 [DartName=only_] static IDBKeyRange only(any value);
196 [DartName=lowerBound_] static IDBKeyRange lowerBound(any bound, [ForceOptional ] optional boolean open); 183 [DartName=lowerBound_] static IDBKeyRange lowerBound(any bound, [ForceOptional ] optional boolean open);
197 [DartName=upperBound_] static IDBKeyRange upperBound(any bound, [ForceOptional ] optional boolean open); 184 [DartName=upperBound_] static IDBKeyRange upperBound(any bound, [ForceOptional ] optional boolean open);
198 [DartName=bound_] static IDBKeyRange bound(any lower, any upper, [ForceOptiona l] optional boolean lowerOpen, [ForceOptional] optional boolean upperOpen); 185 [DartName=bound_] static IDBKeyRange bound(any lower, any upper, [ForceOptiona l] optional boolean lowerOpen, [ForceOptional] optional boolean upperOpen);
199 }; 186 };
200 [Supplemental] 187 [Supplemental]
201 interface IDBObjectStore { 188 interface IDBObjectStore {
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 Callback 227 Callback
241 ] interface MutationCallback { 228 ] interface MutationCallback {
242 [Custom] boolean handleEvent(MutationRecordArray mutations, MutationObserver o bserver); 229 [Custom] boolean handleEvent(MutationRecordArray mutations, MutationObserver o bserver);
243 }; 230 };
244 231
245 [Supplemental, 232 [Supplemental,
246 CustomConstructor, 233 CustomConstructor,
247 // Provide missing constructor signature. 234 // Provide missing constructor signature.
248 Constructor(MutationCallback callback)] 235 Constructor(MutationCallback callback)]
249 interface MutationObserver { 236 interface MutationObserver {
250 // Rename 'observe' so we can define a new 'observe' API that calls the
251 // original.
252 [DartName=_observe] void observe(Node target, Dictionary options);
253 }; 237 };
254 238
255 [Supplemental, 239 [Supplemental,
256 CustomConstructor, 240 CustomConstructor,
257 // Provide missing constructor signature. 241 // Provide missing constructor signature.
258 Constructor(optional HTMLFormElement form)] 242 Constructor(optional HTMLFormElement form)]
259 interface DOMFormData { 243 interface DOMFormData {
260 [Suppressed] void append(DOMString name, DOMString value, DOMString filename ); 244 [Suppressed] void append(DOMString name, DOMString value, DOMString filename);
261 [Custom] void append(DOMString name, DOMString value); 245 [Custom] void append(DOMString name, DOMString value);
262 [Custom] void append(DOMString name, Blob value, optional DOMString filename ); 246 [Custom] void append(DOMString name, Blob value, optional DOMString filename);
263 }; 247 };
264 248
265 [Supplemental] 249 [Supplemental]
266 interface SQLResultSetRowList { 250 interface SQLResultSetRowList {
267 // Change the return type to Dictionary so that rows are exposed in the Dart 251 // Change the return type to Dictionary so that rows are exposed in the Dart
268 // API as a Maps, with the appropriate conversion in JavaScript. 252 // API as a Maps, with the appropriate conversion in JavaScript.
269 [Suppressed] any item(unsigned long index); 253 [Suppressed] any item(unsigned long index);
270 [Custom] Dictionary item(unsigned long index); 254 [Custom] Dictionary item(unsigned long index);
271 }; 255 };
272 256
273 [Supplemental] 257 [Supplemental]
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
308 [Suppressed] 292 [Suppressed]
309 interface InspectorFrontendHost {}; 293 interface InspectorFrontendHost {};
310 294
311 295
312 [Suppressed] 296 [Suppressed]
313 interface JavaScriptCallFrame {}; 297 interface JavaScriptCallFrame {};
314 298
315 299
316 [Suppressed] 300 [Suppressed]
317 interface Entity {}; 301 interface Entity {};
OLDNEW
« no previous file with comments | « sdk/lib/html/dartium/html_dartium.dart ('k') | tools/dom/scripts/htmlrenamer.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698