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

Side by Side Diff: client/dom/frog/frog_dom.dart

Issue 8894029: Generate EventListener attributes of non-EventTarget classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: merge Created 9 years 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 | « no previous file | client/dom/generated/monkey_dom.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #library('dom'); 1 #library('dom');
2 2
3 #native('frog_dom.js'); 3 #native('frog_dom.js');
4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 4 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
5 // for details. All rights reserved. Use of this source code is governed by a 5 // for details. All rights reserved. Use of this source code is governed by a
6 // BSD-style license that can be found in the LICENSE file. 6 // BSD-style license that can be found in the LICENSE file.
7 7
8 // DO NOT EDIT 8 // DO NOT EDIT
9 // Auto-generated Dart DOM library. 9 // Auto-generated Dart DOM library.
10 10
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
117 class AudioContext native "*AudioContext" { 117 class AudioContext native "*AudioContext" {
118 AudioContext() native; 118 AudioContext() native;
119 119
120 120
121 num currentTime; 121 num currentTime;
122 122
123 AudioDestinationNode destination; 123 AudioDestinationNode destination;
124 124
125 AudioListener listener; 125 AudioListener listener;
126 126
127 EventListener oncomplete;
128
127 num sampleRate; 129 num sampleRate;
128 130
129 RealtimeAnalyserNode createAnalyser() native; 131 RealtimeAnalyserNode createAnalyser() native;
130 132
131 BiquadFilterNode createBiquadFilter() native; 133 BiquadFilterNode createBiquadFilter() native;
132 134
133 AudioBuffer createBuffer() native; 135 AudioBuffer createBuffer() native;
134 136
135 AudioBufferSourceNode createBufferSource() native; 137 AudioBufferSourceNode createBufferSource() native;
136 138
(...skipping 1406 matching lines...) Expand 10 before | Expand all | Expand 10 after
1543 1545
1544 void transaction(SQLTransactionSyncCallback callback) native; 1546 void transaction(SQLTransactionSyncCallback callback) native;
1545 1547
1546 var dartObjectLocalStorage; 1548 var dartObjectLocalStorage;
1547 1549
1548 String get typeName() native; 1550 String get typeName() native;
1549 } 1551 }
1550 1552
1551 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte xt" { 1553 class DedicatedWorkerContext extends WorkerContext native "*DedicatedWorkerConte xt" {
1552 1554
1555 EventListener onmessage;
1556
1553 void postMessage(Object message, [List messagePorts = null]) native; 1557 void postMessage(Object message, [List messagePorts = null]) native;
1554 1558
1555 void webkitPostMessage(Object message, [List transferList = null]) native; 1559 void webkitPostMessage(Object message, [List transferList = null]) native;
1556 } 1560 }
1557 1561
1558 class DelayNode extends AudioNode native "*DelayNode" { 1562 class DelayNode extends AudioNode native "*DelayNode" {
1559 1563
1560 AudioParam delayTime; 1564 AudioParam delayTime;
1561 } 1565 }
1562 1566
(...skipping 718 matching lines...) Expand 10 before | Expand all | Expand 10 after
2281 2285
2282 2286
2283 static final int DONE = 2; 2287 static final int DONE = 2;
2284 2288
2285 static final int EMPTY = 0; 2289 static final int EMPTY = 0;
2286 2290
2287 static final int LOADING = 1; 2291 static final int LOADING = 1;
2288 2292
2289 FileError error; 2293 FileError error;
2290 2294
2295 EventListener onabort;
2296
2297 EventListener onerror;
2298
2299 EventListener onload;
2300
2301 EventListener onloadend;
2302
2303 EventListener onloadstart;
2304
2305 EventListener onprogress;
2306
2291 int readyState; 2307 int readyState;
2292 2308
2293 Object result; 2309 Object result;
2294 2310
2295 void abort() native; 2311 void abort() native;
2296 2312
2297 void readAsArrayBuffer(Blob blob) native; 2313 void readAsArrayBuffer(Blob blob) native;
2298 2314
2299 void readAsBinaryString(Blob blob) native; 2315 void readAsBinaryString(Blob blob) native;
2300 2316
(...skipping 26 matching lines...) Expand all
2327 static final int DONE = 2; 2343 static final int DONE = 2;
2328 2344
2329 static final int INIT = 0; 2345 static final int INIT = 0;
2330 2346
2331 static final int WRITING = 1; 2347 static final int WRITING = 1;
2332 2348
2333 FileError error; 2349 FileError error;
2334 2350
2335 int length; 2351 int length;
2336 2352
2353 EventListener onabort;
2354
2355 EventListener onerror;
2356
2357 EventListener onprogress;
2358
2359 EventListener onwrite;
2360
2361 EventListener onwriteend;
2362
2363 EventListener onwritestart;
2364
2337 int position; 2365 int position;
2338 2366
2339 int readyState; 2367 int readyState;
2340 2368
2341 void abort() native; 2369 void abort() native;
2342 2370
2343 void seek(int position) native; 2371 void seek(int position) native;
2344 2372
2345 void truncate(int size) native; 2373 void truncate(int size) native;
2346 2374
(...skipping 1631 matching lines...) Expand 10 before | Expand all | Expand 10 after
3978 4006
3979 class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" { 4007 class IDBCursorWithValue extends IDBCursor native "*IDBCursorWithValue" {
3980 4008
3981 IDBAny value; 4009 IDBAny value;
3982 } 4010 }
3983 4011
3984 class IDBDatabase native "*IDBDatabase" { 4012 class IDBDatabase native "*IDBDatabase" {
3985 4013
3986 String name; 4014 String name;
3987 4015
4016 EventListener onabort;
4017
4018 EventListener onerror;
4019
4020 EventListener onversionchange;
4021
3988 String version; 4022 String version;
3989 4023
3990 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 4024 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
3991 4025
3992 void close() native; 4026 void close() native;
3993 4027
3994 IDBObjectStore createObjectStore(String name) native; 4028 IDBObjectStore createObjectStore(String name) native;
3995 4029
3996 void deleteObjectStore(String name) native; 4030 void deleteObjectStore(String name) native;
3997 4031
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
4162 } 4196 }
4163 4197
4164 class IDBRequest native "*IDBRequest" { 4198 class IDBRequest native "*IDBRequest" {
4165 4199
4166 static final int DONE = 2; 4200 static final int DONE = 2;
4167 4201
4168 static final int LOADING = 1; 4202 static final int LOADING = 1;
4169 4203
4170 int errorCode; 4204 int errorCode;
4171 4205
4206 EventListener onerror;
4207
4208 EventListener onsuccess;
4209
4172 int readyState; 4210 int readyState;
4173 4211
4174 IDBAny result; 4212 IDBAny result;
4175 4213
4176 IDBAny source; 4214 IDBAny source;
4177 4215
4178 IDBTransaction transaction; 4216 IDBTransaction transaction;
4179 4217
4180 String webkitErrorMessage; 4218 String webkitErrorMessage;
4181 4219
(...skipping 13 matching lines...) Expand all
4195 static final int READ_ONLY = 0; 4233 static final int READ_ONLY = 0;
4196 4234
4197 static final int READ_WRITE = 1; 4235 static final int READ_WRITE = 1;
4198 4236
4199 static final int VERSION_CHANGE = 2; 4237 static final int VERSION_CHANGE = 2;
4200 4238
4201 IDBDatabase db; 4239 IDBDatabase db;
4202 4240
4203 int mode; 4241 int mode;
4204 4242
4243 EventListener onabort;
4244
4245 EventListener oncomplete;
4246
4247 EventListener onerror;
4248
4205 void abort() native; 4249 void abort() native;
4206 4250
4207 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 4251 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
4208 4252
4209 bool dispatchEvent(Event evt) native; 4253 bool dispatchEvent(Event evt) native;
4210 4254
4211 IDBObjectStore objectStore(String name) native; 4255 IDBObjectStore objectStore(String name) native;
4212 4256
4213 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 4257 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
4214 4258
4215 var dartObjectLocalStorage; 4259 var dartObjectLocalStorage;
4216 4260
4217 String get typeName() native; 4261 String get typeName() native;
4218 } 4262 }
4219 4263
4220 class IDBVersionChangeEvent extends Event native "*IDBVersionChangeEvent" { 4264 class IDBVersionChangeEvent extends Event native "*IDBVersionChangeEvent" {
4221 4265
4222 String version; 4266 String version;
4223 } 4267 }
4224 4268
4225 class IDBVersionChangeRequest extends IDBRequest native "*IDBVersionChangeReques t" { 4269 class IDBVersionChangeRequest extends IDBRequest native "*IDBVersionChangeReques t" {
4270
4271 EventListener onblocked;
4226 } 4272 }
4227 4273
4228 class ImageData native "*ImageData" { 4274 class ImageData native "*ImageData" {
4229 4275
4230 CanvasPixelArray data; 4276 CanvasPixelArray data;
4231 4277
4232 int height; 4278 int height;
4233 4279
4234 int width; 4280 int width;
4235 4281
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
4380 4426
4381 void operator[]=(int index, int value) native; 4427 void operator[]=(int index, int value) native;
4382 4428
4383 Int8Array subarray(int start, [int end = null]) native; 4429 Int8Array subarray(int start, [int end = null]) native;
4384 } 4430 }
4385 4431
4386 class JavaScriptAudioNode extends AudioNode native "*JavaScriptAudioNode" { 4432 class JavaScriptAudioNode extends AudioNode native "*JavaScriptAudioNode" {
4387 4433
4388 int bufferSize; 4434 int bufferSize;
4389 4435
4390 // From EventTarget 4436 EventListener onaudioprocess;
4391
4392 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
4393
4394 bool dispatchEvent(Event event) native;
4395
4396 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
4397 } 4437 }
4398 4438
4399 class JavaScriptCallFrame native "*JavaScriptCallFrame" { 4439 class JavaScriptCallFrame native "*JavaScriptCallFrame" {
4400 4440
4401 static final int CATCH_SCOPE = 4; 4441 static final int CATCH_SCOPE = 4;
4402 4442
4403 static final int CLOSURE_SCOPE = 3; 4443 static final int CLOSURE_SCOPE = 3;
4404 4444
4405 static final int GLOBAL_SCOPE = 0; 4445 static final int GLOBAL_SCOPE = 0;
4406 4446
(...skipping 4574 matching lines...) Expand 10 before | Expand all | Expand 10 after
8981 } 9021 }
8982 9022
8983 class SharedWorker extends AbstractWorker native "*SharedWorker" { 9023 class SharedWorker extends AbstractWorker native "*SharedWorker" {
8984 9024
8985 MessagePort port; 9025 MessagePort port;
8986 } 9026 }
8987 9027
8988 class SharedWorkercontext extends WorkerContext native "*SharedWorkercontext" { 9028 class SharedWorkercontext extends WorkerContext native "*SharedWorkercontext" {
8989 9029
8990 String name; 9030 String name;
9031
9032 EventListener onconnect;
8991 } 9033 }
8992 9034
8993 class SpeechInputEvent extends Event native "*SpeechInputEvent" { 9035 class SpeechInputEvent extends Event native "*SpeechInputEvent" {
8994 9036
8995 SpeechInputResultList results; 9037 SpeechInputResultList results;
8996 } 9038 }
8997 9039
8998 class SpeechInputResult native "*SpeechInputResult" { 9040 class SpeechInputResult native "*SpeechInputResult" {
8999 9041
9000 num confidence; 9042 num confidence;
(...skipping 1820 matching lines...) Expand 10 before | Expand all | Expand 10 after
10821 class WorkerContext native "*WorkerContext" { 10863 class WorkerContext native "*WorkerContext" {
10822 10864
10823 static final int PERSISTENT = 1; 10865 static final int PERSISTENT = 1;
10824 10866
10825 static final int TEMPORARY = 0; 10867 static final int TEMPORARY = 0;
10826 10868
10827 WorkerLocation location; 10869 WorkerLocation location;
10828 10870
10829 WorkerNavigator navigator; 10871 WorkerNavigator navigator;
10830 10872
10873 EventListener onerror;
10874
10831 WorkerContext self; 10875 WorkerContext self;
10832 10876
10833 NotificationCenter webkitNotifications; 10877 NotificationCenter webkitNotifications;
10834 10878
10835 DOMURL webkitURL; 10879 DOMURL webkitURL;
10836 10880
10837 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 10881 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
10838 10882
10839 void clearInterval(int handle) native; 10883 void clearInterval(int handle) native;
10840 10884
(...skipping 1112 matching lines...) Expand 10 before | Expand all | Expand 10 after
11953 startIndex = a.length - 1; 11997 startIndex = a.length - 1;
11954 } 11998 }
11955 for (int i = startIndex; i >= 0; i--) { 11999 for (int i = startIndex; i >= 0; i--) {
11956 if (a[i] == element) { 12000 if (a[i] == element) {
11957 return i; 12001 return i;
11958 } 12002 }
11959 } 12003 }
11960 return -1; 12004 return -1;
11961 } 12005 }
11962 } 12006 }
OLDNEW
« no previous file with comments | « no previous file | client/dom/generated/monkey_dom.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698