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

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

Issue 9381030: Let EventTarget be a base class in the frog dom. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: EventsTest passes Created 8 years, 10 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 | « no previous file | client/dom/generated/src/frog/AbstractWorker.dart » ('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 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file 3 // Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
4 // for details. All rights reserved. Use of this source code is governed by a 4 // for details. All rights reserved. Use of this source code is governed by a
5 // BSD-style license that can be found in the LICENSE file. 5 // BSD-style license that can be found in the LICENSE file.
6 6
7 // DO NOT EDIT 7 // DO NOT EDIT
8 // Auto-generated Dart DOM library. 8 // Auto-generated Dart DOM library.
9 9
10 10
11 11
12 12
13 // TODO(sra): What 'window' do we get in a worker? Perhaps this 13 // TODO(sra): What 'window' do we get in a worker? Perhaps this
14 // should return the interface type. 14 // should return the interface type.
15 DOMWindow get window() native "return window;"; 15 DOMWindow get window() native "return window;";
16 16
17 // TODO(vsm): Revert to Dart method when 508 is fixed. 17 // TODO(vsm): Revert to Dart method when 508 is fixed.
18 HTMLDocument get document() native "return window.document;"; 18 HTMLDocument get document() native "return window.document;";
19 19
20 class _AbstractWorkerJs extends _DOMTypeJs implements AbstractWorker native "*Ab stractWorker" { 20 class _AbstractWorkerJs extends _EventTargetJs implements AbstractWorker native "*AbstractWorker" {
21 21
22 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 22 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
23 23
24 bool dispatchEvent(_EventJs evt) native; 24 bool dispatchEvent(_EventJs evt) native;
25 25
26 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 26 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
27 } 27 }
28 28
29 class _ArrayBufferJs extends _DOMTypeJs implements ArrayBuffer native "*ArrayBuf fer" { 29 class _ArrayBufferJs extends _DOMTypeJs implements ArrayBuffer native "*ArrayBuf fer" {
30 30
(...skipping 884 matching lines...) Expand 10 before | Expand all | Expand 10 after
915 void getRandomValues(_ArrayBufferViewJs array) native; 915 void getRandomValues(_ArrayBufferViewJs array) native;
916 } 916 }
917 917
918 class _CustomEventJs extends _EventJs implements CustomEvent native "*CustomEven t" { 918 class _CustomEventJs extends _EventJs implements CustomEvent native "*CustomEven t" {
919 919
920 final Object detail; 920 final Object detail;
921 921
922 void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Ob ject detailArg) native; 922 void initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Ob ject detailArg) native;
923 } 923 }
924 924
925 class _DOMApplicationCacheJs extends _DOMTypeJs implements DOMApplicationCache n ative "*DOMApplicationCache" { 925 class _DOMApplicationCacheJs extends _EventTargetJs implements DOMApplicationCac he native "*DOMApplicationCache" {
926 926
927 static final int CHECKING = 2; 927 static final int CHECKING = 2;
928 928
929 static final int DOWNLOADING = 3; 929 static final int DOWNLOADING = 3;
930 930
931 static final int IDLE = 1; 931 static final int IDLE = 1;
932 932
933 static final int OBSOLETE = 5; 933 static final int OBSOLETE = 5;
934 934
935 static final int UNCACHED = 0; 935 static final int UNCACHED = 0;
(...skipping 236 matching lines...) Expand 10 before | Expand all | Expand 10 after
1172 bool toggle(String token) native; 1172 bool toggle(String token) native;
1173 } 1173 }
1174 1174
1175 class _DOMURLJs extends _DOMTypeJs implements DOMURL native "*DOMURL" { 1175 class _DOMURLJs extends _DOMTypeJs implements DOMURL native "*DOMURL" {
1176 1176
1177 String createObjectURL(_BlobJs blob) native; 1177 String createObjectURL(_BlobJs blob) native;
1178 1178
1179 void revokeObjectURL(String url) native; 1179 void revokeObjectURL(String url) native;
1180 } 1180 }
1181 1181
1182 class _DOMWindowJs extends _DOMTypeJs implements DOMWindow native "@*DOMWindow" { 1182 class _DOMWindowJs extends _EventTargetJs implements DOMWindow native "@*DOMWind ow" {
1183 1183
1184 static final int PERSISTENT = 1; 1184 static final int PERSISTENT = 1;
1185 1185
1186 static final int TEMPORARY = 0; 1186 static final int TEMPORARY = 0;
1187 1187
1188 final _DOMApplicationCacheJs applicationCache; 1188 final _DOMApplicationCacheJs applicationCache;
1189 1189
1190 _NavigatorJs clientInformation; 1190 _NavigatorJs clientInformation;
1191 1191
1192 final bool closed; 1192 final bool closed;
(...skipping 799 matching lines...) Expand 10 before | Expand all | Expand 10 after
1992 1992
1993 final int code; 1993 final int code;
1994 1994
1995 final String message; 1995 final String message;
1996 1996
1997 final String name; 1997 final String name;
1998 1998
1999 String toString() native; 1999 String toString() native;
2000 } 2000 }
2001 2001
2002 class _EventSourceJs extends _DOMTypeJs implements EventSource native "*EventSou rce" { 2002 class _EventSourceJs extends _EventTargetJs implements EventSource native "*Even tSource" {
2003 2003
2004 static final int CLOSED = 2; 2004 static final int CLOSED = 2;
2005 2005
2006 static final int CONNECTING = 0; 2006 static final int CONNECTING = 0;
2007 2007
2008 static final int OPEN = 1; 2008 static final int OPEN = 1;
2009 2009
2010 final String URL; 2010 final String URL;
2011 2011
2012 final int readyState; 2012 final int readyState;
(...skipping 2772 matching lines...) Expand 10 before | Expand all | Expand 10 after
4785 4785
4786 final List ports; 4786 final List ports;
4787 4787
4788 final _DOMWindowJs source; 4788 final _DOMWindowJs source;
4789 4789
4790 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O bject dataArg, String originArg, String lastEventIdArg, _DOMWindowJs sourceArg, List messagePorts) native; 4790 void initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableArg, O bject dataArg, String originArg, String lastEventIdArg, _DOMWindowJs sourceArg, List messagePorts) native;
4791 4791
4792 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable Arg, Object dataArg, String originArg, String lastEventIdArg, _DOMWindowJs sourc eArg, List transferables) native; 4792 void webkitInitMessageEvent(String typeArg, bool canBubbleArg, bool cancelable Arg, Object dataArg, String originArg, String lastEventIdArg, _DOMWindowJs sourc eArg, List transferables) native;
4793 } 4793 }
4794 4794
4795 class _MessagePortJs extends _DOMTypeJs implements MessagePort native "*MessageP ort" { 4795 class _MessagePortJs extends _EventTargetJs implements MessagePort native "*Mess agePort" {
4796 4796
4797 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 4797 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
4798 4798
4799 void close() native; 4799 void close() native;
4800 4800
4801 bool dispatchEvent(_EventJs evt) native; 4801 bool dispatchEvent(_EventJs evt) native;
4802 4802
4803 void postMessage(String message, [List messagePorts = null]) native; 4803 void postMessage(String message, [List messagePorts = null]) native;
4804 4804
4805 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 4805 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
4998 4998
4999 final String vendorSub; 4999 final String vendorSub;
5000 5000
5001 void getStorageUpdates() native; 5001 void getStorageUpdates() native;
5002 5002
5003 bool javaEnabled() native; 5003 bool javaEnabled() native;
5004 5004
5005 void registerProtocolHandler(String scheme, String url, String title) native; 5005 void registerProtocolHandler(String scheme, String url, String title) native;
5006 } 5006 }
5007 5007
5008 class _NodeJs extends _DOMTypeJs implements Node native "*Node" { 5008 class _NodeJs extends _EventTargetJs implements Node native "*Node" {
5009 5009
5010 static final int ATTRIBUTE_NODE = 2; 5010 static final int ATTRIBUTE_NODE = 2;
5011 5011
5012 static final int CDATA_SECTION_NODE = 4; 5012 static final int CDATA_SECTION_NODE = 4;
5013 5013
5014 static final int COMMENT_NODE = 8; 5014 static final int COMMENT_NODE = 8;
5015 5015
5016 static final int DOCUMENT_FRAGMENT_NODE = 11; 5016 static final int DOCUMENT_FRAGMENT_NODE = 11;
5017 5017
5018 static final int DOCUMENT_NODE = 9; 5018 static final int DOCUMENT_NODE = 9;
(...skipping 242 matching lines...) Expand 10 before | Expand all | Expand 10 after
5261 _NodeListJs querySelectorAll(String selectors) native; 5261 _NodeListJs querySelectorAll(String selectors) native;
5262 } 5262 }
5263 5263
5264 class _NotationJs extends _NodeJs implements Notation native "*Notation" { 5264 class _NotationJs extends _NodeJs implements Notation native "*Notation" {
5265 5265
5266 final String publicId; 5266 final String publicId;
5267 5267
5268 final String systemId; 5268 final String systemId;
5269 } 5269 }
5270 5270
5271 class _NotificationJs extends _DOMTypeJs implements Notification native "*Notifi cation" { 5271 class _NotificationJs extends _EventTargetJs implements Notification native "*No tification" {
5272 5272
5273 String dir; 5273 String dir;
5274 5274
5275 String replaceId; 5275 String replaceId;
5276 5276
5277 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 5277 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
5278 5278
5279 void cancel() native; 5279 void cancel() native;
5280 5280
5281 bool dispatchEvent(_EventJs evt) native; 5281 bool dispatchEvent(_EventJs evt) native;
(...skipping 867 matching lines...) Expand 10 before | Expand all | Expand 10 after
6149 6149
6150 String id; 6150 String id;
6151 6151
6152 final _SVGSVGElementJs ownerSVGElement; 6152 final _SVGSVGElementJs ownerSVGElement;
6153 6153
6154 final _SVGElementJs viewportElement; 6154 final _SVGElementJs viewportElement;
6155 6155
6156 String xmlbase; 6156 String xmlbase;
6157 } 6157 }
6158 6158
6159 class _SVGElementInstanceJs extends _DOMTypeJs implements SVGElementInstance nat ive "*SVGElementInstance" { 6159 class _SVGElementInstanceJs extends _EventTargetJs implements SVGElementInstance native "*SVGElementInstance" {
6160 6160
6161 final _SVGElementInstanceListJs childNodes; 6161 final _SVGElementInstanceListJs childNodes;
6162 6162
6163 final _SVGElementJs correspondingElement; 6163 final _SVGElementJs correspondingElement;
6164 6164
6165 final _SVGUseElementJs correspondingUseElement; 6165 final _SVGUseElementJs correspondingUseElement;
6166 6166
6167 final _SVGElementInstanceJs firstChild; 6167 final _SVGElementInstanceJs firstChild;
6168 6168
6169 final _SVGElementInstanceJs lastChild; 6169 final _SVGElementInstanceJs lastChild;
(...skipping 4775 matching lines...) Expand 10 before | Expand all | Expand 10 after
10945 num y; 10945 num y;
10946 } 10946 }
10947 10947
10948 class _WebKitTransitionEventJs extends _EventJs implements WebKitTransitionEvent native "*WebKitTransitionEvent" { 10948 class _WebKitTransitionEventJs extends _EventJs implements WebKitTransitionEvent native "*WebKitTransitionEvent" {
10949 10949
10950 final num elapsedTime; 10950 final num elapsedTime;
10951 10951
10952 final String propertyName; 10952 final String propertyName;
10953 } 10953 }
10954 10954
10955 class _WebSocketJs extends _DOMTypeJs implements WebSocket native "*WebSocket" { 10955 class _WebSocketJs extends _EventTargetJs implements WebSocket native "*WebSocke t" {
10956 10956
10957 static final int CLOSED = 3; 10957 static final int CLOSED = 3;
10958 10958
10959 static final int CLOSING = 2; 10959 static final int CLOSING = 2;
10960 10960
10961 static final int CONNECTING = 0; 10961 static final int CONNECTING = 0;
10962 10962
10963 static final int OPEN = 1; 10963 static final int OPEN = 1;
10964 10964
10965 final String URL; 10965 final String URL;
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
11111 11111
11112 final String appVersion; 11112 final String appVersion;
11113 11113
11114 final bool onLine; 11114 final bool onLine;
11115 11115
11116 final String platform; 11116 final String platform;
11117 11117
11118 final String userAgent; 11118 final String userAgent;
11119 } 11119 }
11120 11120
11121 class _XMLHttpRequestJs extends _DOMTypeJs implements XMLHttpRequest native "*XM LHttpRequest" { 11121 class _XMLHttpRequestJs extends _EventTargetJs implements XMLHttpRequest native "*XMLHttpRequest" {
11122 11122
11123 static final int DONE = 4; 11123 static final int DONE = 4;
11124 11124
11125 static final int HEADERS_RECEIVED = 2; 11125 static final int HEADERS_RECEIVED = 2;
11126 11126
11127 static final int LOADING = 3; 11127 static final int LOADING = 3;
11128 11128
11129 static final int OPENED = 1; 11129 static final int OPENED = 1;
11130 11130
11131 static final int UNSENT = 0; 11131 static final int UNSENT = 0;
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
11188 String toString() native; 11188 String toString() native;
11189 } 11189 }
11190 11190
11191 class _XMLHttpRequestProgressEventJs extends _ProgressEventJs implements XMLHttp RequestProgressEvent native "*XMLHttpRequestProgressEvent" { 11191 class _XMLHttpRequestProgressEventJs extends _ProgressEventJs implements XMLHttp RequestProgressEvent native "*XMLHttpRequestProgressEvent" {
11192 11192
11193 final int position; 11193 final int position;
11194 11194
11195 final int totalSize; 11195 final int totalSize;
11196 } 11196 }
11197 11197
11198 class _XMLHttpRequestUploadJs extends _DOMTypeJs implements XMLHttpRequestUpload native "*XMLHttpRequestUpload" { 11198 class _XMLHttpRequestUploadJs extends _EventTargetJs implements XMLHttpRequestUp load native "*XMLHttpRequestUpload" {
11199 11199
11200 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native; 11200 void addEventListener(String type, EventListener listener, [bool useCapture = null]) native;
11201 11201
11202 bool dispatchEvent(_EventJs evt) native; 11202 bool dispatchEvent(_EventJs evt) native;
11203 11203
11204 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native; 11204 void removeEventListener(String type, EventListener listener, [bool useCapture = null]) native;
11205 } 11205 }
11206 11206
11207 class _XMLSerializerJs extends _DOMTypeJs implements XMLSerializer native "*XMLS erializer" { 11207 class _XMLSerializerJs extends _DOMTypeJs implements XMLSerializer native "*XMLS erializer" {
11208 11208
(...skipping 12287 matching lines...) Expand 10 before | Expand all | Expand 10 after
23496 if (length < 0) throw new IllegalArgumentException('length'); 23496 if (length < 0) throw new IllegalArgumentException('length');
23497 if (start < 0) throw new IndexOutOfRangeException(start); 23497 if (start < 0) throw new IndexOutOfRangeException(start);
23498 int end = start + length; 23498 int end = start + length;
23499 if (end > a.length) throw new IndexOutOfRangeException(end); 23499 if (end > a.length) throw new IndexOutOfRangeException(end);
23500 for (int i = start; i < end; i++) { 23500 for (int i = start; i < end; i++) {
23501 accumulator.add(a[i]); 23501 accumulator.add(a[i]);
23502 } 23502 }
23503 return accumulator; 23503 return accumulator;
23504 } 23504 }
23505 } 23505 }
OLDNEW
« no previous file with comments | « no previous file | client/dom/generated/src/frog/AbstractWorker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698