| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 library dart.dom.html; | 2 library dart.dom.html; |
| 3 | 3 |
| 4 import 'dart:async'; | 4 import 'dart:async'; |
| 5 import 'dart:collection'; | 5 import 'dart:collection'; |
| 6 import 'dart:_collection-dev' hide Symbol; | 6 import 'dart:_collection-dev' hide Symbol; |
| 7 import 'dart:html_common'; | 7 import 'dart:html_common'; |
| 8 import 'dart:indexed_db'; | 8 import 'dart:indexed_db'; |
| 9 import 'dart:isolate'; | 9 import 'dart:isolate'; |
| 10 import 'dart:json' as json; | 10 import 'dart:json' as json; |
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 243 @DocsEditable | 243 @DocsEditable |
| 244 static const EventStreamProvider<Event> progressEvent = const EventStreamProvi
der<Event>('progress'); | 244 static const EventStreamProvider<Event> progressEvent = const EventStreamProvi
der<Event>('progress'); |
| 245 | 245 |
| 246 @DomName('DOMApplicationCache.updatereadyEvent') | 246 @DomName('DOMApplicationCache.updatereadyEvent') |
| 247 @DocsEditable | 247 @DocsEditable |
| 248 static const EventStreamProvider<Event> updateReadyEvent = const EventStreamPr
ovider<Event>('updateready'); | 248 static const EventStreamProvider<Event> updateReadyEvent = const EventStreamPr
ovider<Event>('updateready'); |
| 249 | 249 |
| 250 /// Checks if this type is supported on the current platform. | 250 /// Checks if this type is supported on the current platform. |
| 251 static bool get supported => JS('bool', '!!(window.applicationCache)'); | 251 static bool get supported => JS('bool', '!!(window.applicationCache)'); |
| 252 | 252 |
| 253 @DomName('DOMApplicationCache.CHECKING') |
| 254 @DocsEditable |
| 253 static const int CHECKING = 2; | 255 static const int CHECKING = 2; |
| 254 | 256 |
| 257 @DomName('DOMApplicationCache.DOWNLOADING') |
| 258 @DocsEditable |
| 255 static const int DOWNLOADING = 3; | 259 static const int DOWNLOADING = 3; |
| 256 | 260 |
| 261 @DomName('DOMApplicationCache.IDLE') |
| 262 @DocsEditable |
| 257 static const int IDLE = 1; | 263 static const int IDLE = 1; |
| 258 | 264 |
| 265 @DomName('DOMApplicationCache.OBSOLETE') |
| 266 @DocsEditable |
| 259 static const int OBSOLETE = 5; | 267 static const int OBSOLETE = 5; |
| 260 | 268 |
| 269 @DomName('DOMApplicationCache.UNCACHED') |
| 270 @DocsEditable |
| 261 static const int UNCACHED = 0; | 271 static const int UNCACHED = 0; |
| 262 | 272 |
| 273 @DomName('DOMApplicationCache.UPDATEREADY') |
| 274 @DocsEditable |
| 263 static const int UPDATEREADY = 4; | 275 static const int UPDATEREADY = 4; |
| 264 | 276 |
| 265 @DomName('DOMApplicationCache.status') | 277 @DomName('DOMApplicationCache.status') |
| 266 @DocsEditable | 278 @DocsEditable |
| 267 final int status; | 279 final int status; |
| 268 | 280 |
| 269 @DomName('DOMApplicationCache.abort') | 281 @DomName('DOMApplicationCache.abort') |
| 270 @DocsEditable | 282 @DocsEditable |
| 271 void abort() native; | 283 void abort() native; |
| 272 | 284 |
| (...skipping 1761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2034 } | 2046 } |
| 2035 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2047 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2036 // for details. All rights reserved. Use of this source code is governed by a | 2048 // for details. All rights reserved. Use of this source code is governed by a |
| 2037 // BSD-style license that can be found in the LICENSE file. | 2049 // BSD-style license that can be found in the LICENSE file. |
| 2038 | 2050 |
| 2039 | 2051 |
| 2040 @DocsEditable | 2052 @DocsEditable |
| 2041 @DomName('CSSRule') | 2053 @DomName('CSSRule') |
| 2042 class CssRule native "CSSRule" { | 2054 class CssRule native "CSSRule" { |
| 2043 | 2055 |
| 2056 @DomName('CSSRule.CHARSET_RULE') |
| 2057 @DocsEditable |
| 2044 static const int CHARSET_RULE = 2; | 2058 static const int CHARSET_RULE = 2; |
| 2045 | 2059 |
| 2060 @DomName('CSSRule.FONT_FACE_RULE') |
| 2061 @DocsEditable |
| 2046 static const int FONT_FACE_RULE = 5; | 2062 static const int FONT_FACE_RULE = 5; |
| 2047 | 2063 |
| 2064 @DomName('CSSRule.HOST_RULE') |
| 2065 @DocsEditable |
| 2048 static const int HOST_RULE = 1001; | 2066 static const int HOST_RULE = 1001; |
| 2049 | 2067 |
| 2068 @DomName('CSSRule.IMPORT_RULE') |
| 2069 @DocsEditable |
| 2050 static const int IMPORT_RULE = 3; | 2070 static const int IMPORT_RULE = 3; |
| 2051 | 2071 |
| 2072 @DomName('CSSRule.MEDIA_RULE') |
| 2073 @DocsEditable |
| 2052 static const int MEDIA_RULE = 4; | 2074 static const int MEDIA_RULE = 4; |
| 2053 | 2075 |
| 2076 @DomName('CSSRule.PAGE_RULE') |
| 2077 @DocsEditable |
| 2054 static const int PAGE_RULE = 6; | 2078 static const int PAGE_RULE = 6; |
| 2055 | 2079 |
| 2080 @DomName('CSSRule.STYLE_RULE') |
| 2081 @DocsEditable |
| 2056 static const int STYLE_RULE = 1; | 2082 static const int STYLE_RULE = 1; |
| 2057 | 2083 |
| 2084 @DomName('CSSRule.UNKNOWN_RULE') |
| 2085 @DocsEditable |
| 2058 static const int UNKNOWN_RULE = 0; | 2086 static const int UNKNOWN_RULE = 0; |
| 2059 | 2087 |
| 2088 @DomName('CSSRule.WEBKIT_FILTER_RULE') |
| 2089 @DocsEditable |
| 2060 static const int WEBKIT_FILTER_RULE = 17; | 2090 static const int WEBKIT_FILTER_RULE = 17; |
| 2061 | 2091 |
| 2092 @DomName('CSSRule.WEBKIT_KEYFRAMES_RULE') |
| 2093 @DocsEditable |
| 2062 static const int WEBKIT_KEYFRAMES_RULE = 7; | 2094 static const int WEBKIT_KEYFRAMES_RULE = 7; |
| 2063 | 2095 |
| 2096 @DomName('CSSRule.WEBKIT_KEYFRAME_RULE') |
| 2097 @DocsEditable |
| 2064 static const int WEBKIT_KEYFRAME_RULE = 8; | 2098 static const int WEBKIT_KEYFRAME_RULE = 8; |
| 2065 | 2099 |
| 2100 @DomName('CSSRule.WEBKIT_REGION_RULE') |
| 2101 @DocsEditable |
| 2066 static const int WEBKIT_REGION_RULE = 16; | 2102 static const int WEBKIT_REGION_RULE = 16; |
| 2067 | 2103 |
| 2068 @DomName('CSSRule.cssText') | 2104 @DomName('CSSRule.cssText') |
| 2069 @DocsEditable | 2105 @DocsEditable |
| 2070 String cssText; | 2106 String cssText; |
| 2071 | 2107 |
| 2072 @DomName('CSSRule.parentRule') | 2108 @DomName('CSSRule.parentRule') |
| 2073 @DocsEditable | 2109 @DocsEditable |
| 2074 final CssRule parentRule; | 2110 final CssRule parentRule; |
| 2075 | 2111 |
| (...skipping 5938 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8014 @DocsEditable | 8050 @DocsEditable |
| 8015 @SupportedBrowser(SupportedBrowser.CHROME) | 8051 @SupportedBrowser(SupportedBrowser.CHROME) |
| 8016 @SupportedBrowser(SupportedBrowser.SAFARI) | 8052 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 8017 @Experimental | 8053 @Experimental |
| 8018 String dropzone; | 8054 String dropzone; |
| 8019 | 8055 |
| 8020 @DomName('Element.click') | 8056 @DomName('Element.click') |
| 8021 @DocsEditable | 8057 @DocsEditable |
| 8022 void click() native; | 8058 void click() native; |
| 8023 | 8059 |
| 8060 @DomName('Element.ALLOW_KEYBOARD_INPUT') |
| 8061 @DocsEditable |
| 8024 static const int ALLOW_KEYBOARD_INPUT = 1; | 8062 static const int ALLOW_KEYBOARD_INPUT = 1; |
| 8025 | 8063 |
| 8026 @JSName('attributes') | 8064 @JSName('attributes') |
| 8027 @DomName('Element.attributes') | 8065 @DomName('Element.attributes') |
| 8028 @DocsEditable | 8066 @DocsEditable |
| 8029 final _NamedNodeMap $dom_attributes; | 8067 final _NamedNodeMap $dom_attributes; |
| 8030 | 8068 |
| 8031 @JSName('childElementCount') | 8069 @JSName('childElementCount') |
| 8032 @DomName('Element.childElementCount') | 8070 @DomName('Element.childElementCount') |
| 8033 @DocsEditable | 8071 @DocsEditable |
| (...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8891 * | 8929 * |
| 8892 * var e = new Event.type('MouseEvent', 'mousedown', true, true); | 8930 * var e = new Event.type('MouseEvent', 'mousedown', true, true); |
| 8893 */ | 8931 */ |
| 8894 factory Event.eventType(String type, String name, {bool canBubble: true, | 8932 factory Event.eventType(String type, String name, {bool canBubble: true, |
| 8895 bool cancelable: true}) { | 8933 bool cancelable: true}) { |
| 8896 final Event e = document.$dom_createEvent(type); | 8934 final Event e = document.$dom_createEvent(type); |
| 8897 e.$dom_initEvent(name, canBubble, cancelable); | 8935 e.$dom_initEvent(name, canBubble, cancelable); |
| 8898 return e; | 8936 return e; |
| 8899 } | 8937 } |
| 8900 | 8938 |
| 8939 @DomName('Event.AT_TARGET') |
| 8940 @DocsEditable |
| 8901 static const int AT_TARGET = 2; | 8941 static const int AT_TARGET = 2; |
| 8902 | 8942 |
| 8943 @DomName('Event.BLUR') |
| 8944 @DocsEditable |
| 8903 static const int BLUR = 8192; | 8945 static const int BLUR = 8192; |
| 8904 | 8946 |
| 8947 @DomName('Event.BUBBLING_PHASE') |
| 8948 @DocsEditable |
| 8905 static const int BUBBLING_PHASE = 3; | 8949 static const int BUBBLING_PHASE = 3; |
| 8906 | 8950 |
| 8951 @DomName('Event.CAPTURING_PHASE') |
| 8952 @DocsEditable |
| 8907 static const int CAPTURING_PHASE = 1; | 8953 static const int CAPTURING_PHASE = 1; |
| 8908 | 8954 |
| 8955 @DomName('Event.CHANGE') |
| 8956 @DocsEditable |
| 8909 static const int CHANGE = 32768; | 8957 static const int CHANGE = 32768; |
| 8910 | 8958 |
| 8959 @DomName('Event.CLICK') |
| 8960 @DocsEditable |
| 8911 static const int CLICK = 64; | 8961 static const int CLICK = 64; |
| 8912 | 8962 |
| 8963 @DomName('Event.DBLCLICK') |
| 8964 @DocsEditable |
| 8913 static const int DBLCLICK = 128; | 8965 static const int DBLCLICK = 128; |
| 8914 | 8966 |
| 8967 @DomName('Event.DRAGDROP') |
| 8968 @DocsEditable |
| 8915 static const int DRAGDROP = 2048; | 8969 static const int DRAGDROP = 2048; |
| 8916 | 8970 |
| 8971 @DomName('Event.FOCUS') |
| 8972 @DocsEditable |
| 8917 static const int FOCUS = 4096; | 8973 static const int FOCUS = 4096; |
| 8918 | 8974 |
| 8975 @DomName('Event.KEYDOWN') |
| 8976 @DocsEditable |
| 8919 static const int KEYDOWN = 256; | 8977 static const int KEYDOWN = 256; |
| 8920 | 8978 |
| 8979 @DomName('Event.KEYPRESS') |
| 8980 @DocsEditable |
| 8921 static const int KEYPRESS = 1024; | 8981 static const int KEYPRESS = 1024; |
| 8922 | 8982 |
| 8983 @DomName('Event.KEYUP') |
| 8984 @DocsEditable |
| 8923 static const int KEYUP = 512; | 8985 static const int KEYUP = 512; |
| 8924 | 8986 |
| 8987 @DomName('Event.MOUSEDOWN') |
| 8988 @DocsEditable |
| 8925 static const int MOUSEDOWN = 1; | 8989 static const int MOUSEDOWN = 1; |
| 8926 | 8990 |
| 8991 @DomName('Event.MOUSEDRAG') |
| 8992 @DocsEditable |
| 8927 static const int MOUSEDRAG = 32; | 8993 static const int MOUSEDRAG = 32; |
| 8928 | 8994 |
| 8995 @DomName('Event.MOUSEMOVE') |
| 8996 @DocsEditable |
| 8929 static const int MOUSEMOVE = 16; | 8997 static const int MOUSEMOVE = 16; |
| 8930 | 8998 |
| 8999 @DomName('Event.MOUSEOUT') |
| 9000 @DocsEditable |
| 8931 static const int MOUSEOUT = 8; | 9001 static const int MOUSEOUT = 8; |
| 8932 | 9002 |
| 9003 @DomName('Event.MOUSEOVER') |
| 9004 @DocsEditable |
| 8933 static const int MOUSEOVER = 4; | 9005 static const int MOUSEOVER = 4; |
| 8934 | 9006 |
| 9007 @DomName('Event.MOUSEUP') |
| 9008 @DocsEditable |
| 8935 static const int MOUSEUP = 2; | 9009 static const int MOUSEUP = 2; |
| 8936 | 9010 |
| 9011 @DomName('Event.NONE') |
| 9012 @DocsEditable |
| 8937 static const int NONE = 0; | 9013 static const int NONE = 0; |
| 8938 | 9014 |
| 9015 @DomName('Event.SELECT') |
| 9016 @DocsEditable |
| 8939 static const int SELECT = 16384; | 9017 static const int SELECT = 16384; |
| 8940 | 9018 |
| 8941 @DomName('Event.bubbles') | 9019 @DomName('Event.bubbles') |
| 8942 @DocsEditable | 9020 @DocsEditable |
| 8943 final bool bubbles; | 9021 final bool bubbles; |
| 8944 | 9022 |
| 8945 @DomName('Event.cancelBubble') | 9023 @DomName('Event.cancelBubble') |
| 8946 @DocsEditable | 9024 @DocsEditable |
| 8947 bool cancelBubble; | 9025 bool cancelBubble; |
| 8948 | 9026 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9009 } | 9087 } |
| 9010 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9088 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9011 // for details. All rights reserved. Use of this source code is governed by a | 9089 // for details. All rights reserved. Use of this source code is governed by a |
| 9012 // BSD-style license that can be found in the LICENSE file. | 9090 // BSD-style license that can be found in the LICENSE file. |
| 9013 | 9091 |
| 9014 | 9092 |
| 9015 @DocsEditable | 9093 @DocsEditable |
| 9016 @DomName('EventException') | 9094 @DomName('EventException') |
| 9017 class EventException native "EventException" { | 9095 class EventException native "EventException" { |
| 9018 | 9096 |
| 9097 @DomName('EventException.DISPATCH_REQUEST_ERR') |
| 9098 @DocsEditable |
| 9019 static const int DISPATCH_REQUEST_ERR = 1; | 9099 static const int DISPATCH_REQUEST_ERR = 1; |
| 9020 | 9100 |
| 9101 @DomName('EventException.UNSPECIFIED_EVENT_TYPE_ERR') |
| 9102 @DocsEditable |
| 9021 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; | 9103 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; |
| 9022 | 9104 |
| 9023 @DomName('EventException.code') | 9105 @DomName('EventException.code') |
| 9024 @DocsEditable | 9106 @DocsEditable |
| 9025 final int code; | 9107 final int code; |
| 9026 | 9108 |
| 9027 @DomName('EventException.message') | 9109 @DomName('EventException.message') |
| 9028 @DocsEditable | 9110 @DocsEditable |
| 9029 final String message; | 9111 final String message; |
| 9030 | 9112 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9066 @DocsEditable | 9148 @DocsEditable |
| 9067 static EventSource _factoryEventSource(String url, [Map eventSourceInit]) { | 9149 static EventSource _factoryEventSource(String url, [Map eventSourceInit]) { |
| 9068 if (?eventSourceInit) { | 9150 if (?eventSourceInit) { |
| 9069 return EventSource._create_1(url, eventSourceInit); | 9151 return EventSource._create_1(url, eventSourceInit); |
| 9070 } | 9152 } |
| 9071 return EventSource._create_2(url); | 9153 return EventSource._create_2(url); |
| 9072 } | 9154 } |
| 9073 static EventSource _create_1(url, eventSourceInit) => JS('EventSource', 'new E
ventSource(#,#)', url, eventSourceInit); | 9155 static EventSource _create_1(url, eventSourceInit) => JS('EventSource', 'new E
ventSource(#,#)', url, eventSourceInit); |
| 9074 static EventSource _create_2(url) => JS('EventSource', 'new EventSource(#)', u
rl); | 9156 static EventSource _create_2(url) => JS('EventSource', 'new EventSource(#)', u
rl); |
| 9075 | 9157 |
| 9158 @DomName('EventSource.CLOSED') |
| 9159 @DocsEditable |
| 9076 static const int CLOSED = 2; | 9160 static const int CLOSED = 2; |
| 9077 | 9161 |
| 9162 @DomName('EventSource.CONNECTING') |
| 9163 @DocsEditable |
| 9078 static const int CONNECTING = 0; | 9164 static const int CONNECTING = 0; |
| 9079 | 9165 |
| 9166 @DomName('EventSource.OPEN') |
| 9167 @DocsEditable |
| 9080 static const int OPEN = 1; | 9168 static const int OPEN = 1; |
| 9081 | 9169 |
| 9082 @DomName('EventSource.readyState') | 9170 @DomName('EventSource.readyState') |
| 9083 @DocsEditable | 9171 @DocsEditable |
| 9084 final int readyState; | 9172 final int readyState; |
| 9085 | 9173 |
| 9086 @DomName('EventSource.url') | 9174 @DomName('EventSource.url') |
| 9087 @DocsEditable | 9175 @DocsEditable |
| 9088 final String url; | 9176 final String url; |
| 9089 | 9177 |
| (...skipping 246 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9336 } | 9424 } |
| 9337 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9425 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9338 // for details. All rights reserved. Use of this source code is governed by a | 9426 // for details. All rights reserved. Use of this source code is governed by a |
| 9339 // BSD-style license that can be found in the LICENSE file. | 9427 // BSD-style license that can be found in the LICENSE file. |
| 9340 | 9428 |
| 9341 | 9429 |
| 9342 @DocsEditable | 9430 @DocsEditable |
| 9343 @DomName('FileError') | 9431 @DomName('FileError') |
| 9344 class FileError native "FileError" { | 9432 class FileError native "FileError" { |
| 9345 | 9433 |
| 9434 @DomName('FileError.ABORT_ERR') |
| 9435 @DocsEditable |
| 9346 static const int ABORT_ERR = 3; | 9436 static const int ABORT_ERR = 3; |
| 9347 | 9437 |
| 9438 @DomName('FileError.ENCODING_ERR') |
| 9439 @DocsEditable |
| 9348 static const int ENCODING_ERR = 5; | 9440 static const int ENCODING_ERR = 5; |
| 9349 | 9441 |
| 9442 @DomName('FileError.INVALID_MODIFICATION_ERR') |
| 9443 @DocsEditable |
| 9350 static const int INVALID_MODIFICATION_ERR = 9; | 9444 static const int INVALID_MODIFICATION_ERR = 9; |
| 9351 | 9445 |
| 9446 @DomName('FileError.INVALID_STATE_ERR') |
| 9447 @DocsEditable |
| 9352 static const int INVALID_STATE_ERR = 7; | 9448 static const int INVALID_STATE_ERR = 7; |
| 9353 | 9449 |
| 9450 @DomName('FileError.NOT_FOUND_ERR') |
| 9451 @DocsEditable |
| 9354 static const int NOT_FOUND_ERR = 1; | 9452 static const int NOT_FOUND_ERR = 1; |
| 9355 | 9453 |
| 9454 @DomName('FileError.NOT_READABLE_ERR') |
| 9455 @DocsEditable |
| 9356 static const int NOT_READABLE_ERR = 4; | 9456 static const int NOT_READABLE_ERR = 4; |
| 9357 | 9457 |
| 9458 @DomName('FileError.NO_MODIFICATION_ALLOWED_ERR') |
| 9459 @DocsEditable |
| 9358 static const int NO_MODIFICATION_ALLOWED_ERR = 6; | 9460 static const int NO_MODIFICATION_ALLOWED_ERR = 6; |
| 9359 | 9461 |
| 9462 @DomName('FileError.PATH_EXISTS_ERR') |
| 9463 @DocsEditable |
| 9360 static const int PATH_EXISTS_ERR = 12; | 9464 static const int PATH_EXISTS_ERR = 12; |
| 9361 | 9465 |
| 9466 @DomName('FileError.QUOTA_EXCEEDED_ERR') |
| 9467 @DocsEditable |
| 9362 static const int QUOTA_EXCEEDED_ERR = 10; | 9468 static const int QUOTA_EXCEEDED_ERR = 10; |
| 9363 | 9469 |
| 9470 @DomName('FileError.SECURITY_ERR') |
| 9471 @DocsEditable |
| 9364 static const int SECURITY_ERR = 2; | 9472 static const int SECURITY_ERR = 2; |
| 9365 | 9473 |
| 9474 @DomName('FileError.SYNTAX_ERR') |
| 9475 @DocsEditable |
| 9366 static const int SYNTAX_ERR = 8; | 9476 static const int SYNTAX_ERR = 8; |
| 9367 | 9477 |
| 9478 @DomName('FileError.TYPE_MISMATCH_ERR') |
| 9479 @DocsEditable |
| 9368 static const int TYPE_MISMATCH_ERR = 11; | 9480 static const int TYPE_MISMATCH_ERR = 11; |
| 9369 | 9481 |
| 9370 @DomName('FileError.code') | 9482 @DomName('FileError.code') |
| 9371 @DocsEditable | 9483 @DocsEditable |
| 9372 final int code; | 9484 final int code; |
| 9373 } | 9485 } |
| 9374 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9486 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9375 // for details. All rights reserved. Use of this source code is governed by a | 9487 // for details. All rights reserved. Use of this source code is governed by a |
| 9376 // BSD-style license that can be found in the LICENSE file. | 9488 // BSD-style license that can be found in the LICENSE file. |
| 9377 | 9489 |
| 9378 | 9490 |
| 9379 @DocsEditable | 9491 @DocsEditable |
| 9380 @DomName('FileException') | 9492 @DomName('FileException') |
| 9381 class FileException native "FileException" { | 9493 class FileException native "FileException" { |
| 9382 | 9494 |
| 9495 @DomName('FileException.ABORT_ERR') |
| 9496 @DocsEditable |
| 9383 static const int ABORT_ERR = 3; | 9497 static const int ABORT_ERR = 3; |
| 9384 | 9498 |
| 9499 @DomName('FileException.ENCODING_ERR') |
| 9500 @DocsEditable |
| 9385 static const int ENCODING_ERR = 5; | 9501 static const int ENCODING_ERR = 5; |
| 9386 | 9502 |
| 9503 @DomName('FileException.INVALID_MODIFICATION_ERR') |
| 9504 @DocsEditable |
| 9387 static const int INVALID_MODIFICATION_ERR = 9; | 9505 static const int INVALID_MODIFICATION_ERR = 9; |
| 9388 | 9506 |
| 9507 @DomName('FileException.INVALID_STATE_ERR') |
| 9508 @DocsEditable |
| 9389 static const int INVALID_STATE_ERR = 7; | 9509 static const int INVALID_STATE_ERR = 7; |
| 9390 | 9510 |
| 9511 @DomName('FileException.NOT_FOUND_ERR') |
| 9512 @DocsEditable |
| 9391 static const int NOT_FOUND_ERR = 1; | 9513 static const int NOT_FOUND_ERR = 1; |
| 9392 | 9514 |
| 9515 @DomName('FileException.NOT_READABLE_ERR') |
| 9516 @DocsEditable |
| 9393 static const int NOT_READABLE_ERR = 4; | 9517 static const int NOT_READABLE_ERR = 4; |
| 9394 | 9518 |
| 9519 @DomName('FileException.NO_MODIFICATION_ALLOWED_ERR') |
| 9520 @DocsEditable |
| 9395 static const int NO_MODIFICATION_ALLOWED_ERR = 6; | 9521 static const int NO_MODIFICATION_ALLOWED_ERR = 6; |
| 9396 | 9522 |
| 9523 @DomName('FileException.PATH_EXISTS_ERR') |
| 9524 @DocsEditable |
| 9397 static const int PATH_EXISTS_ERR = 12; | 9525 static const int PATH_EXISTS_ERR = 12; |
| 9398 | 9526 |
| 9527 @DomName('FileException.QUOTA_EXCEEDED_ERR') |
| 9528 @DocsEditable |
| 9399 static const int QUOTA_EXCEEDED_ERR = 10; | 9529 static const int QUOTA_EXCEEDED_ERR = 10; |
| 9400 | 9530 |
| 9531 @DomName('FileException.SECURITY_ERR') |
| 9532 @DocsEditable |
| 9401 static const int SECURITY_ERR = 2; | 9533 static const int SECURITY_ERR = 2; |
| 9402 | 9534 |
| 9535 @DomName('FileException.SYNTAX_ERR') |
| 9536 @DocsEditable |
| 9403 static const int SYNTAX_ERR = 8; | 9537 static const int SYNTAX_ERR = 8; |
| 9404 | 9538 |
| 9539 @DomName('FileException.TYPE_MISMATCH_ERR') |
| 9540 @DocsEditable |
| 9405 static const int TYPE_MISMATCH_ERR = 11; | 9541 static const int TYPE_MISMATCH_ERR = 11; |
| 9406 | 9542 |
| 9407 @DomName('FileException.code') | 9543 @DomName('FileException.code') |
| 9408 @DocsEditable | 9544 @DocsEditable |
| 9409 final int code; | 9545 final int code; |
| 9410 | 9546 |
| 9411 @DomName('FileException.message') | 9547 @DomName('FileException.message') |
| 9412 @DocsEditable | 9548 @DocsEditable |
| 9413 final String message; | 9549 final String message; |
| 9414 | 9550 |
| (...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9485 @DocsEditable | 9621 @DocsEditable |
| 9486 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr
eamProvider<ProgressEvent>('progress'); | 9622 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr
eamProvider<ProgressEvent>('progress'); |
| 9487 | 9623 |
| 9488 @DomName('FileReader.FileReader') | 9624 @DomName('FileReader.FileReader') |
| 9489 @DocsEditable | 9625 @DocsEditable |
| 9490 factory FileReader() { | 9626 factory FileReader() { |
| 9491 return FileReader._create_1(); | 9627 return FileReader._create_1(); |
| 9492 } | 9628 } |
| 9493 static FileReader _create_1() => JS('FileReader', 'new FileReader()'); | 9629 static FileReader _create_1() => JS('FileReader', 'new FileReader()'); |
| 9494 | 9630 |
| 9631 @DomName('FileReader.DONE') |
| 9632 @DocsEditable |
| 9495 static const int DONE = 2; | 9633 static const int DONE = 2; |
| 9496 | 9634 |
| 9635 @DomName('FileReader.EMPTY') |
| 9636 @DocsEditable |
| 9497 static const int EMPTY = 0; | 9637 static const int EMPTY = 0; |
| 9498 | 9638 |
| 9639 @DomName('FileReader.LOADING') |
| 9640 @DocsEditable |
| 9499 static const int LOADING = 1; | 9641 static const int LOADING = 1; |
| 9500 | 9642 |
| 9501 @DomName('FileReader.error') | 9643 @DomName('FileReader.error') |
| 9502 @DocsEditable | 9644 @DocsEditable |
| 9503 final FileError error; | 9645 final FileError error; |
| 9504 | 9646 |
| 9505 @DomName('FileReader.readyState') | 9647 @DomName('FileReader.readyState') |
| 9506 @DocsEditable | 9648 @DocsEditable |
| 9507 final int readyState; | 9649 final int readyState; |
| 9508 | 9650 |
| (...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9626 static const EventStreamProvider<ProgressEvent> writeEvent = const EventStream
Provider<ProgressEvent>('write'); | 9768 static const EventStreamProvider<ProgressEvent> writeEvent = const EventStream
Provider<ProgressEvent>('write'); |
| 9627 | 9769 |
| 9628 @DomName('FileWriter.writeendEvent') | 9770 @DomName('FileWriter.writeendEvent') |
| 9629 @DocsEditable | 9771 @DocsEditable |
| 9630 static const EventStreamProvider<ProgressEvent> writeEndEvent = const EventStr
eamProvider<ProgressEvent>('writeend'); | 9772 static const EventStreamProvider<ProgressEvent> writeEndEvent = const EventStr
eamProvider<ProgressEvent>('writeend'); |
| 9631 | 9773 |
| 9632 @DomName('FileWriter.writestartEvent') | 9774 @DomName('FileWriter.writestartEvent') |
| 9633 @DocsEditable | 9775 @DocsEditable |
| 9634 static const EventStreamProvider<ProgressEvent> writeStartEvent = const EventS
treamProvider<ProgressEvent>('writestart'); | 9776 static const EventStreamProvider<ProgressEvent> writeStartEvent = const EventS
treamProvider<ProgressEvent>('writestart'); |
| 9635 | 9777 |
| 9778 @DomName('FileWriter.DONE') |
| 9779 @DocsEditable |
| 9636 static const int DONE = 2; | 9780 static const int DONE = 2; |
| 9637 | 9781 |
| 9782 @DomName('FileWriter.INIT') |
| 9783 @DocsEditable |
| 9638 static const int INIT = 0; | 9784 static const int INIT = 0; |
| 9639 | 9785 |
| 9786 @DomName('FileWriter.WRITING') |
| 9787 @DocsEditable |
| 9640 static const int WRITING = 1; | 9788 static const int WRITING = 1; |
| 9641 | 9789 |
| 9642 @DomName('FileWriter.error') | 9790 @DomName('FileWriter.error') |
| 9643 @DocsEditable | 9791 @DocsEditable |
| 9644 final FileError error; | 9792 final FileError error; |
| 9645 | 9793 |
| 9646 @DomName('FileWriter.length') | 9794 @DomName('FileWriter.length') |
| 9647 @DocsEditable | 9795 @DocsEditable |
| 9648 final int length; | 9796 final int length; |
| 9649 | 9797 |
| (...skipping 1039 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10689 * var request = new HttpRequest.get('http://dartlang.org', | 10837 * var request = new HttpRequest.get('http://dartlang.org', |
| 10690 * (event) => print('Request complete')); | 10838 * (event) => print('Request complete')); |
| 10691 */ | 10839 */ |
| 10692 @DomName('XMLHttpRequest.XMLHttpRequest') | 10840 @DomName('XMLHttpRequest.XMLHttpRequest') |
| 10693 @DocsEditable | 10841 @DocsEditable |
| 10694 factory HttpRequest() { | 10842 factory HttpRequest() { |
| 10695 return HttpRequest._create_1(); | 10843 return HttpRequest._create_1(); |
| 10696 } | 10844 } |
| 10697 static HttpRequest _create_1() => JS('HttpRequest', 'new XMLHttpRequest()'); | 10845 static HttpRequest _create_1() => JS('HttpRequest', 'new XMLHttpRequest()'); |
| 10698 | 10846 |
| 10847 @DomName('XMLHttpRequest.DONE') |
| 10848 @DocsEditable |
| 10699 static const int DONE = 4; | 10849 static const int DONE = 4; |
| 10700 | 10850 |
| 10851 @DomName('XMLHttpRequest.HEADERS_RECEIVED') |
| 10852 @DocsEditable |
| 10701 static const int HEADERS_RECEIVED = 2; | 10853 static const int HEADERS_RECEIVED = 2; |
| 10702 | 10854 |
| 10855 @DomName('XMLHttpRequest.LOADING') |
| 10856 @DocsEditable |
| 10703 static const int LOADING = 3; | 10857 static const int LOADING = 3; |
| 10704 | 10858 |
| 10859 @DomName('XMLHttpRequest.OPENED') |
| 10860 @DocsEditable |
| 10705 static const int OPENED = 1; | 10861 static const int OPENED = 1; |
| 10706 | 10862 |
| 10863 @DomName('XMLHttpRequest.UNSENT') |
| 10864 @DocsEditable |
| 10707 static const int UNSENT = 0; | 10865 static const int UNSENT = 0; |
| 10708 | 10866 |
| 10709 /** | 10867 /** |
| 10710 * Indicator of the current state of the request: | 10868 * Indicator of the current state of the request: |
| 10711 * | 10869 * |
| 10712 * <table> | 10870 * <table> |
| 10713 * <tr> | 10871 * <tr> |
| 10714 * <td>Value</td> | 10872 * <td>Value</td> |
| 10715 * <td>State</td> | 10873 * <td>State</td> |
| 10716 * <td>Meaning</td> | 10874 * <td>Meaning</td> |
| (...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10985 } | 11143 } |
| 10986 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11144 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10987 // for details. All rights reserved. Use of this source code is governed by a | 11145 // for details. All rights reserved. Use of this source code is governed by a |
| 10988 // BSD-style license that can be found in the LICENSE file. | 11146 // BSD-style license that can be found in the LICENSE file. |
| 10989 | 11147 |
| 10990 | 11148 |
| 10991 @DocsEditable | 11149 @DocsEditable |
| 10992 @DomName('XMLHttpRequestException') | 11150 @DomName('XMLHttpRequestException') |
| 10993 class HttpRequestException native "XMLHttpRequestException" { | 11151 class HttpRequestException native "XMLHttpRequestException" { |
| 10994 | 11152 |
| 11153 @DomName('XMLHttpRequestException.ABORT_ERR') |
| 11154 @DocsEditable |
| 10995 static const int ABORT_ERR = 102; | 11155 static const int ABORT_ERR = 102; |
| 10996 | 11156 |
| 11157 @DomName('XMLHttpRequestException.NETWORK_ERR') |
| 11158 @DocsEditable |
| 10997 static const int NETWORK_ERR = 101; | 11159 static const int NETWORK_ERR = 101; |
| 10998 | 11160 |
| 10999 @DomName('XMLHttpRequestException.code') | 11161 @DomName('XMLHttpRequestException.code') |
| 11000 @DocsEditable | 11162 @DocsEditable |
| 11001 final int code; | 11163 final int code; |
| 11002 | 11164 |
| 11003 @DomName('XMLHttpRequestException.message') | 11165 @DomName('XMLHttpRequestException.message') |
| 11004 @DocsEditable | 11166 @DocsEditable |
| 11005 final String message; | 11167 final String message; |
| 11006 | 11168 |
| (...skipping 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12743 @Experimental | 12905 @Experimental |
| 12744 static const EventStreamProvider<MediaKeyEvent> keyMessageEvent = const EventS
treamProvider<MediaKeyEvent>('webkitkeymessage'); | 12906 static const EventStreamProvider<MediaKeyEvent> keyMessageEvent = const EventS
treamProvider<MediaKeyEvent>('webkitkeymessage'); |
| 12745 | 12907 |
| 12746 @DomName('HTMLMediaElement.webkitneedkeyEvent') | 12908 @DomName('HTMLMediaElement.webkitneedkeyEvent') |
| 12747 @DocsEditable | 12909 @DocsEditable |
| 12748 @SupportedBrowser(SupportedBrowser.CHROME) | 12910 @SupportedBrowser(SupportedBrowser.CHROME) |
| 12749 @SupportedBrowser(SupportedBrowser.SAFARI) | 12911 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 12750 @Experimental | 12912 @Experimental |
| 12751 static const EventStreamProvider<MediaKeyEvent> needKeyEvent = const EventStre
amProvider<MediaKeyEvent>('webkitneedkey'); | 12913 static const EventStreamProvider<MediaKeyEvent> needKeyEvent = const EventStre
amProvider<MediaKeyEvent>('webkitneedkey'); |
| 12752 | 12914 |
| 12915 @DomName('HTMLMediaElement.HAVE_CURRENT_DATA') |
| 12916 @DocsEditable |
| 12753 static const int HAVE_CURRENT_DATA = 2; | 12917 static const int HAVE_CURRENT_DATA = 2; |
| 12754 | 12918 |
| 12919 @DomName('HTMLMediaElement.HAVE_ENOUGH_DATA') |
| 12920 @DocsEditable |
| 12755 static const int HAVE_ENOUGH_DATA = 4; | 12921 static const int HAVE_ENOUGH_DATA = 4; |
| 12756 | 12922 |
| 12923 @DomName('HTMLMediaElement.HAVE_FUTURE_DATA') |
| 12924 @DocsEditable |
| 12757 static const int HAVE_FUTURE_DATA = 3; | 12925 static const int HAVE_FUTURE_DATA = 3; |
| 12758 | 12926 |
| 12927 @DomName('HTMLMediaElement.HAVE_METADATA') |
| 12928 @DocsEditable |
| 12759 static const int HAVE_METADATA = 1; | 12929 static const int HAVE_METADATA = 1; |
| 12760 | 12930 |
| 12931 @DomName('HTMLMediaElement.HAVE_NOTHING') |
| 12932 @DocsEditable |
| 12761 static const int HAVE_NOTHING = 0; | 12933 static const int HAVE_NOTHING = 0; |
| 12762 | 12934 |
| 12935 @DomName('HTMLMediaElement.NETWORK_EMPTY') |
| 12936 @DocsEditable |
| 12763 static const int NETWORK_EMPTY = 0; | 12937 static const int NETWORK_EMPTY = 0; |
| 12764 | 12938 |
| 12939 @DomName('HTMLMediaElement.NETWORK_IDLE') |
| 12940 @DocsEditable |
| 12765 static const int NETWORK_IDLE = 1; | 12941 static const int NETWORK_IDLE = 1; |
| 12766 | 12942 |
| 12943 @DomName('HTMLMediaElement.NETWORK_LOADING') |
| 12944 @DocsEditable |
| 12767 static const int NETWORK_LOADING = 2; | 12945 static const int NETWORK_LOADING = 2; |
| 12768 | 12946 |
| 12947 @DomName('HTMLMediaElement.NETWORK_NO_SOURCE') |
| 12948 @DocsEditable |
| 12769 static const int NETWORK_NO_SOURCE = 3; | 12949 static const int NETWORK_NO_SOURCE = 3; |
| 12770 | 12950 |
| 12771 @DomName('HTMLMediaElement.autoplay') | 12951 @DomName('HTMLMediaElement.autoplay') |
| 12772 @DocsEditable | 12952 @DocsEditable |
| 12773 bool autoplay; | 12953 bool autoplay; |
| 12774 | 12954 |
| 12775 @DomName('HTMLMediaElement.buffered') | 12955 @DomName('HTMLMediaElement.buffered') |
| 12776 @DocsEditable | 12956 @DocsEditable |
| 12777 final TimeRanges buffered; | 12957 final TimeRanges buffered; |
| 12778 | 12958 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13062 } | 13242 } |
| 13063 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13243 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13064 // for details. All rights reserved. Use of this source code is governed by a | 13244 // for details. All rights reserved. Use of this source code is governed by a |
| 13065 // BSD-style license that can be found in the LICENSE file. | 13245 // BSD-style license that can be found in the LICENSE file. |
| 13066 | 13246 |
| 13067 | 13247 |
| 13068 @DocsEditable | 13248 @DocsEditable |
| 13069 @DomName('MediaError') | 13249 @DomName('MediaError') |
| 13070 class MediaError native "MediaError" { | 13250 class MediaError native "MediaError" { |
| 13071 | 13251 |
| 13252 @DomName('MediaError.MEDIA_ERR_ABORTED') |
| 13253 @DocsEditable |
| 13072 static const int MEDIA_ERR_ABORTED = 1; | 13254 static const int MEDIA_ERR_ABORTED = 1; |
| 13073 | 13255 |
| 13256 @DomName('MediaError.MEDIA_ERR_DECODE') |
| 13257 @DocsEditable |
| 13074 static const int MEDIA_ERR_DECODE = 3; | 13258 static const int MEDIA_ERR_DECODE = 3; |
| 13075 | 13259 |
| 13260 @DomName('MediaError.MEDIA_ERR_ENCRYPTED') |
| 13261 @DocsEditable |
| 13076 static const int MEDIA_ERR_ENCRYPTED = 5; | 13262 static const int MEDIA_ERR_ENCRYPTED = 5; |
| 13077 | 13263 |
| 13264 @DomName('MediaError.MEDIA_ERR_NETWORK') |
| 13265 @DocsEditable |
| 13078 static const int MEDIA_ERR_NETWORK = 2; | 13266 static const int MEDIA_ERR_NETWORK = 2; |
| 13079 | 13267 |
| 13268 @DomName('MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED') |
| 13269 @DocsEditable |
| 13080 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; | 13270 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; |
| 13081 | 13271 |
| 13082 @DomName('MediaError.code') | 13272 @DomName('MediaError.code') |
| 13083 @DocsEditable | 13273 @DocsEditable |
| 13084 final int code; | 13274 final int code; |
| 13085 } | 13275 } |
| 13086 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13276 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13087 // for details. All rights reserved. Use of this source code is governed by a | 13277 // for details. All rights reserved. Use of this source code is governed by a |
| 13088 // BSD-style license that can be found in the LICENSE file. | 13278 // BSD-style license that can be found in the LICENSE file. |
| 13089 | 13279 |
| 13090 | 13280 |
| 13091 @DocsEditable | 13281 @DocsEditable |
| 13092 @DomName('MediaKeyError') | 13282 @DomName('MediaKeyError') |
| 13093 class MediaKeyError native "MediaKeyError" { | 13283 class MediaKeyError native "MediaKeyError" { |
| 13094 | 13284 |
| 13285 @DomName('MediaKeyError.MEDIA_KEYERR_CLIENT') |
| 13286 @DocsEditable |
| 13095 static const int MEDIA_KEYERR_CLIENT = 2; | 13287 static const int MEDIA_KEYERR_CLIENT = 2; |
| 13096 | 13288 |
| 13289 @DomName('MediaKeyError.MEDIA_KEYERR_DOMAIN') |
| 13290 @DocsEditable |
| 13097 static const int MEDIA_KEYERR_DOMAIN = 6; | 13291 static const int MEDIA_KEYERR_DOMAIN = 6; |
| 13098 | 13292 |
| 13293 @DomName('MediaKeyError.MEDIA_KEYERR_HARDWARECHANGE') |
| 13294 @DocsEditable |
| 13099 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; | 13295 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; |
| 13100 | 13296 |
| 13297 @DomName('MediaKeyError.MEDIA_KEYERR_OUTPUT') |
| 13298 @DocsEditable |
| 13101 static const int MEDIA_KEYERR_OUTPUT = 4; | 13299 static const int MEDIA_KEYERR_OUTPUT = 4; |
| 13102 | 13300 |
| 13301 @DomName('MediaKeyError.MEDIA_KEYERR_SERVICE') |
| 13302 @DocsEditable |
| 13103 static const int MEDIA_KEYERR_SERVICE = 3; | 13303 static const int MEDIA_KEYERR_SERVICE = 3; |
| 13104 | 13304 |
| 13305 @DomName('MediaKeyError.MEDIA_KEYERR_UNKNOWN') |
| 13306 @DocsEditable |
| 13105 static const int MEDIA_KEYERR_UNKNOWN = 1; | 13307 static const int MEDIA_KEYERR_UNKNOWN = 1; |
| 13106 | 13308 |
| 13107 @DomName('MediaKeyError.code') | 13309 @DomName('MediaKeyError.code') |
| 13108 @DocsEditable | 13310 @DocsEditable |
| 13109 final int code; | 13311 final int code; |
| 13110 } | 13312 } |
| 13111 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13313 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13112 // for details. All rights reserved. Use of this source code is governed by a | 13314 // for details. All rights reserved. Use of this source code is governed by a |
| 13113 // BSD-style license that can be found in the LICENSE file. | 13315 // BSD-style license that can be found in the LICENSE file. |
| 13114 | 13316 |
| (...skipping 922 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14037 factory MutationEvent(String type, | 14239 factory MutationEvent(String type, |
| 14038 {bool canBubble: false, bool cancelable: false, Node relatedNode, | 14240 {bool canBubble: false, bool cancelable: false, Node relatedNode, |
| 14039 String prevValue, String newValue, String attrName, int attrChange: 0}) { | 14241 String prevValue, String newValue, String attrName, int attrChange: 0}) { |
| 14040 | 14242 |
| 14041 var event = document.$dom_createEvent('MutationEvent'); | 14243 var event = document.$dom_createEvent('MutationEvent'); |
| 14042 event.$dom_initMutationEvent(type, canBubble, cancelable, relatedNode, | 14244 event.$dom_initMutationEvent(type, canBubble, cancelable, relatedNode, |
| 14043 prevValue, newValue, attrName, attrChange); | 14245 prevValue, newValue, attrName, attrChange); |
| 14044 return event; | 14246 return event; |
| 14045 } | 14247 } |
| 14046 | 14248 |
| 14249 @DomName('MutationEvent.ADDITION') |
| 14250 @DocsEditable |
| 14047 static const int ADDITION = 2; | 14251 static const int ADDITION = 2; |
| 14048 | 14252 |
| 14253 @DomName('MutationEvent.MODIFICATION') |
| 14254 @DocsEditable |
| 14049 static const int MODIFICATION = 1; | 14255 static const int MODIFICATION = 1; |
| 14050 | 14256 |
| 14257 @DomName('MutationEvent.REMOVAL') |
| 14258 @DocsEditable |
| 14051 static const int REMOVAL = 3; | 14259 static const int REMOVAL = 3; |
| 14052 | 14260 |
| 14053 @DomName('MutationEvent.attrChange') | 14261 @DomName('MutationEvent.attrChange') |
| 14054 @DocsEditable | 14262 @DocsEditable |
| 14055 final int attrChange; | 14263 final int attrChange; |
| 14056 | 14264 |
| 14057 @DomName('MutationEvent.attrName') | 14265 @DomName('MutationEvent.attrName') |
| 14058 @DocsEditable | 14266 @DocsEditable |
| 14059 final String attrName; | 14267 final String attrName; |
| 14060 | 14268 |
| (...skipping 427 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14488 } | 14696 } |
| 14489 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14697 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14490 // for details. All rights reserved. Use of this source code is governed by a | 14698 // for details. All rights reserved. Use of this source code is governed by a |
| 14491 // BSD-style license that can be found in the LICENSE file. | 14699 // BSD-style license that can be found in the LICENSE file. |
| 14492 | 14700 |
| 14493 | 14701 |
| 14494 @DocsEditable | 14702 @DocsEditable |
| 14495 @DomName('NavigatorUserMediaError') | 14703 @DomName('NavigatorUserMediaError') |
| 14496 class NavigatorUserMediaError native "NavigatorUserMediaError" { | 14704 class NavigatorUserMediaError native "NavigatorUserMediaError" { |
| 14497 | 14705 |
| 14706 @DomName('NavigatorUserMediaError.PERMISSION_DENIED') |
| 14707 @DocsEditable |
| 14498 static const int PERMISSION_DENIED = 1; | 14708 static const int PERMISSION_DENIED = 1; |
| 14499 | 14709 |
| 14500 @DomName('NavigatorUserMediaError.code') | 14710 @DomName('NavigatorUserMediaError.code') |
| 14501 @DocsEditable | 14711 @DocsEditable |
| 14502 final int code; | 14712 final int code; |
| 14503 } | 14713 } |
| 14504 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14714 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14505 // for details. All rights reserved. Use of this source code is governed by a | 14715 // for details. All rights reserved. Use of this source code is governed by a |
| 14506 // BSD-style license that can be found in the LICENSE file. | 14716 // BSD-style license that can be found in the LICENSE file. |
| 14507 | 14717 |
| (...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14783 __instanceTerminatorCount = value; | 14993 __instanceTerminatorCount = value; |
| 14784 } | 14994 } |
| 14785 | 14995 |
| 14786 /** Gets the template instance that instantiated this node, if any. */ | 14996 /** Gets the template instance that instantiated this node, if any. */ |
| 14787 @Experimental | 14997 @Experimental |
| 14788 TemplateInstance get templateInstance => | 14998 TemplateInstance get templateInstance => |
| 14789 _templateInstance != null ? _templateInstance : | 14999 _templateInstance != null ? _templateInstance : |
| 14790 (parent != null ? parent.templateInstance : null); | 15000 (parent != null ? parent.templateInstance : null); |
| 14791 | 15001 |
| 14792 | 15002 |
| 15003 @DomName('Node.ATTRIBUTE_NODE') |
| 15004 @DocsEditable |
| 14793 static const int ATTRIBUTE_NODE = 2; | 15005 static const int ATTRIBUTE_NODE = 2; |
| 14794 | 15006 |
| 15007 @DomName('Node.CDATA_SECTION_NODE') |
| 15008 @DocsEditable |
| 14795 static const int CDATA_SECTION_NODE = 4; | 15009 static const int CDATA_SECTION_NODE = 4; |
| 14796 | 15010 |
| 15011 @DomName('Node.COMMENT_NODE') |
| 15012 @DocsEditable |
| 14797 static const int COMMENT_NODE = 8; | 15013 static const int COMMENT_NODE = 8; |
| 14798 | 15014 |
| 15015 @DomName('Node.DOCUMENT_FRAGMENT_NODE') |
| 15016 @DocsEditable |
| 14799 static const int DOCUMENT_FRAGMENT_NODE = 11; | 15017 static const int DOCUMENT_FRAGMENT_NODE = 11; |
| 14800 | 15018 |
| 15019 @DomName('Node.DOCUMENT_NODE') |
| 15020 @DocsEditable |
| 14801 static const int DOCUMENT_NODE = 9; | 15021 static const int DOCUMENT_NODE = 9; |
| 14802 | 15022 |
| 15023 @DomName('Node.DOCUMENT_TYPE_NODE') |
| 15024 @DocsEditable |
| 14803 static const int DOCUMENT_TYPE_NODE = 10; | 15025 static const int DOCUMENT_TYPE_NODE = 10; |
| 14804 | 15026 |
| 15027 @DomName('Node.ELEMENT_NODE') |
| 15028 @DocsEditable |
| 14805 static const int ELEMENT_NODE = 1; | 15029 static const int ELEMENT_NODE = 1; |
| 14806 | 15030 |
| 15031 @DomName('Node.ENTITY_NODE') |
| 15032 @DocsEditable |
| 14807 static const int ENTITY_NODE = 6; | 15033 static const int ENTITY_NODE = 6; |
| 14808 | 15034 |
| 15035 @DomName('Node.ENTITY_REFERENCE_NODE') |
| 15036 @DocsEditable |
| 14809 static const int ENTITY_REFERENCE_NODE = 5; | 15037 static const int ENTITY_REFERENCE_NODE = 5; |
| 14810 | 15038 |
| 15039 @DomName('Node.NOTATION_NODE') |
| 15040 @DocsEditable |
| 14811 static const int NOTATION_NODE = 12; | 15041 static const int NOTATION_NODE = 12; |
| 14812 | 15042 |
| 15043 @DomName('Node.PROCESSING_INSTRUCTION_NODE') |
| 15044 @DocsEditable |
| 14813 static const int PROCESSING_INSTRUCTION_NODE = 7; | 15045 static const int PROCESSING_INSTRUCTION_NODE = 7; |
| 14814 | 15046 |
| 15047 @DomName('Node.TEXT_NODE') |
| 15048 @DocsEditable |
| 14815 static const int TEXT_NODE = 3; | 15049 static const int TEXT_NODE = 3; |
| 14816 | 15050 |
| 14817 @JSName('childNodes') | 15051 @JSName('childNodes') |
| 14818 @DomName('Node.childNodes') | 15052 @DomName('Node.childNodes') |
| 14819 @DocsEditable | 15053 @DocsEditable |
| 14820 @Returns('NodeList') | 15054 @Returns('NodeList') |
| 14821 @Creates('NodeList') | 15055 @Creates('NodeList') |
| 14822 final List<Node> $dom_childNodes; | 15056 final List<Node> $dom_childNodes; |
| 14823 | 15057 |
| 14824 @JSName('firstChild') | 15058 @JSName('firstChild') |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 14926 } | 15160 } |
| 14927 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14928 // for details. All rights reserved. Use of this source code is governed by a | 15162 // for details. All rights reserved. Use of this source code is governed by a |
| 14929 // BSD-style license that can be found in the LICENSE file. | 15163 // BSD-style license that can be found in the LICENSE file. |
| 14930 | 15164 |
| 14931 | 15165 |
| 14932 @DocsEditable | 15166 @DocsEditable |
| 14933 @DomName('NodeFilter') | 15167 @DomName('NodeFilter') |
| 14934 class NodeFilter native "NodeFilter" { | 15168 class NodeFilter native "NodeFilter" { |
| 14935 | 15169 |
| 15170 @DomName('NodeFilter.FILTER_ACCEPT') |
| 15171 @DocsEditable |
| 14936 static const int FILTER_ACCEPT = 1; | 15172 static const int FILTER_ACCEPT = 1; |
| 14937 | 15173 |
| 15174 @DomName('NodeFilter.FILTER_REJECT') |
| 15175 @DocsEditable |
| 14938 static const int FILTER_REJECT = 2; | 15176 static const int FILTER_REJECT = 2; |
| 14939 | 15177 |
| 15178 @DomName('NodeFilter.FILTER_SKIP') |
| 15179 @DocsEditable |
| 14940 static const int FILTER_SKIP = 3; | 15180 static const int FILTER_SKIP = 3; |
| 14941 | 15181 |
| 15182 @DomName('NodeFilter.SHOW_ALL') |
| 15183 @DocsEditable |
| 14942 static const int SHOW_ALL = 0xFFFFFFFF; | 15184 static const int SHOW_ALL = 0xFFFFFFFF; |
| 14943 | 15185 |
| 15186 @DomName('NodeFilter.SHOW_ATTRIBUTE') |
| 15187 @DocsEditable |
| 14944 static const int SHOW_ATTRIBUTE = 0x00000002; | 15188 static const int SHOW_ATTRIBUTE = 0x00000002; |
| 14945 | 15189 |
| 15190 @DomName('NodeFilter.SHOW_CDATA_SECTION') |
| 15191 @DocsEditable |
| 14946 static const int SHOW_CDATA_SECTION = 0x00000008; | 15192 static const int SHOW_CDATA_SECTION = 0x00000008; |
| 14947 | 15193 |
| 15194 @DomName('NodeFilter.SHOW_COMMENT') |
| 15195 @DocsEditable |
| 14948 static const int SHOW_COMMENT = 0x00000080; | 15196 static const int SHOW_COMMENT = 0x00000080; |
| 14949 | 15197 |
| 15198 @DomName('NodeFilter.SHOW_DOCUMENT') |
| 15199 @DocsEditable |
| 14950 static const int SHOW_DOCUMENT = 0x00000100; | 15200 static const int SHOW_DOCUMENT = 0x00000100; |
| 14951 | 15201 |
| 15202 @DomName('NodeFilter.SHOW_DOCUMENT_FRAGMENT') |
| 15203 @DocsEditable |
| 14952 static const int SHOW_DOCUMENT_FRAGMENT = 0x00000400; | 15204 static const int SHOW_DOCUMENT_FRAGMENT = 0x00000400; |
| 14953 | 15205 |
| 15206 @DomName('NodeFilter.SHOW_DOCUMENT_TYPE') |
| 15207 @DocsEditable |
| 14954 static const int SHOW_DOCUMENT_TYPE = 0x00000200; | 15208 static const int SHOW_DOCUMENT_TYPE = 0x00000200; |
| 14955 | 15209 |
| 15210 @DomName('NodeFilter.SHOW_ELEMENT') |
| 15211 @DocsEditable |
| 14956 static const int SHOW_ELEMENT = 0x00000001; | 15212 static const int SHOW_ELEMENT = 0x00000001; |
| 14957 | 15213 |
| 15214 @DomName('NodeFilter.SHOW_ENTITY') |
| 15215 @DocsEditable |
| 14958 static const int SHOW_ENTITY = 0x00000020; | 15216 static const int SHOW_ENTITY = 0x00000020; |
| 14959 | 15217 |
| 15218 @DomName('NodeFilter.SHOW_ENTITY_REFERENCE') |
| 15219 @DocsEditable |
| 14960 static const int SHOW_ENTITY_REFERENCE = 0x00000010; | 15220 static const int SHOW_ENTITY_REFERENCE = 0x00000010; |
| 14961 | 15221 |
| 15222 @DomName('NodeFilter.SHOW_NOTATION') |
| 15223 @DocsEditable |
| 14962 static const int SHOW_NOTATION = 0x00000800; | 15224 static const int SHOW_NOTATION = 0x00000800; |
| 14963 | 15225 |
| 15226 @DomName('NodeFilter.SHOW_PROCESSING_INSTRUCTION') |
| 15227 @DocsEditable |
| 14964 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; | 15228 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; |
| 14965 | 15229 |
| 15230 @DomName('NodeFilter.SHOW_TEXT') |
| 15231 @DocsEditable |
| 14966 static const int SHOW_TEXT = 0x00000004; | 15232 static const int SHOW_TEXT = 0x00000004; |
| 14967 } | 15233 } |
| 14968 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 15234 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 14969 // for details. All rights reserved. Use of this source code is governed by a | 15235 // for details. All rights reserved. Use of this source code is governed by a |
| 14970 // BSD-style license that can be found in the LICENSE file. | 15236 // BSD-style license that can be found in the LICENSE file. |
| 14971 | 15237 |
| 14972 | 15238 |
| 14973 @DomName('NodeIterator') | 15239 @DomName('NodeIterator') |
| 14974 class NodeIterator native "NodeIterator" { | 15240 class NodeIterator native "NodeIterator" { |
| 14975 factory NodeIterator(Node root, int whatToShow) { | 15241 factory NodeIterator(Node root, int whatToShow) { |
| (...skipping 508 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15484 } | 15750 } |
| 15485 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15751 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15486 // for details. All rights reserved. Use of this source code is governed by a | 15752 // for details. All rights reserved. Use of this source code is governed by a |
| 15487 // BSD-style license that can be found in the LICENSE file. | 15753 // BSD-style license that can be found in the LICENSE file. |
| 15488 | 15754 |
| 15489 | 15755 |
| 15490 @DocsEditable | 15756 @DocsEditable |
| 15491 @DomName('OverflowEvent') | 15757 @DomName('OverflowEvent') |
| 15492 class OverflowEvent extends Event native "OverflowEvent" { | 15758 class OverflowEvent extends Event native "OverflowEvent" { |
| 15493 | 15759 |
| 15760 @DomName('OverflowEvent.BOTH') |
| 15761 @DocsEditable |
| 15494 static const int BOTH = 2; | 15762 static const int BOTH = 2; |
| 15495 | 15763 |
| 15764 @DomName('OverflowEvent.HORIZONTAL') |
| 15765 @DocsEditable |
| 15496 static const int HORIZONTAL = 0; | 15766 static const int HORIZONTAL = 0; |
| 15497 | 15767 |
| 15768 @DomName('OverflowEvent.VERTICAL') |
| 15769 @DocsEditable |
| 15498 static const int VERTICAL = 1; | 15770 static const int VERTICAL = 1; |
| 15499 | 15771 |
| 15500 @DomName('OverflowEvent.horizontalOverflow') | 15772 @DomName('OverflowEvent.horizontalOverflow') |
| 15501 @DocsEditable | 15773 @DocsEditable |
| 15502 final bool horizontalOverflow; | 15774 final bool horizontalOverflow; |
| 15503 | 15775 |
| 15504 @DomName('OverflowEvent.orient') | 15776 @DomName('OverflowEvent.orient') |
| 15505 @DocsEditable | 15777 @DocsEditable |
| 15506 final int orient; | 15778 final int orient; |
| 15507 | 15779 |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15780 } | 16052 } |
| 15781 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16053 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15782 // for details. All rights reserved. Use of this source code is governed by a | 16054 // for details. All rights reserved. Use of this source code is governed by a |
| 15783 // BSD-style license that can be found in the LICENSE file. | 16055 // BSD-style license that can be found in the LICENSE file. |
| 15784 | 16056 |
| 15785 | 16057 |
| 15786 @DocsEditable | 16058 @DocsEditable |
| 15787 @DomName('PerformanceNavigation') | 16059 @DomName('PerformanceNavigation') |
| 15788 class PerformanceNavigation native "PerformanceNavigation" { | 16060 class PerformanceNavigation native "PerformanceNavigation" { |
| 15789 | 16061 |
| 16062 @DomName('PerformanceNavigation.TYPE_BACK_FORWARD') |
| 16063 @DocsEditable |
| 15790 static const int TYPE_BACK_FORWARD = 2; | 16064 static const int TYPE_BACK_FORWARD = 2; |
| 15791 | 16065 |
| 16066 @DomName('PerformanceNavigation.TYPE_NAVIGATE') |
| 16067 @DocsEditable |
| 15792 static const int TYPE_NAVIGATE = 0; | 16068 static const int TYPE_NAVIGATE = 0; |
| 15793 | 16069 |
| 16070 @DomName('PerformanceNavigation.TYPE_RELOAD') |
| 16071 @DocsEditable |
| 15794 static const int TYPE_RELOAD = 1; | 16072 static const int TYPE_RELOAD = 1; |
| 15795 | 16073 |
| 16074 @DomName('PerformanceNavigation.TYPE_RESERVED') |
| 16075 @DocsEditable |
| 15796 static const int TYPE_RESERVED = 255; | 16076 static const int TYPE_RESERVED = 255; |
| 15797 | 16077 |
| 15798 @DomName('PerformanceNavigation.redirectCount') | 16078 @DomName('PerformanceNavigation.redirectCount') |
| 15799 @DocsEditable | 16079 @DocsEditable |
| 15800 final int redirectCount; | 16080 final int redirectCount; |
| 15801 | 16081 |
| 15802 @DomName('PerformanceNavigation.type') | 16082 @DomName('PerformanceNavigation.type') |
| 15803 @DocsEditable | 16083 @DocsEditable |
| 15804 final int type; | 16084 final int type; |
| 15805 } | 16085 } |
| (...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16057 typedef void _PositionCallback(Geoposition position); | 16337 typedef void _PositionCallback(Geoposition position); |
| 16058 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16338 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16059 // for details. All rights reserved. Use of this source code is governed by a | 16339 // for details. All rights reserved. Use of this source code is governed by a |
| 16060 // BSD-style license that can be found in the LICENSE file. | 16340 // BSD-style license that can be found in the LICENSE file. |
| 16061 | 16341 |
| 16062 | 16342 |
| 16063 @DocsEditable | 16343 @DocsEditable |
| 16064 @DomName('PositionError') | 16344 @DomName('PositionError') |
| 16065 class PositionError native "PositionError" { | 16345 class PositionError native "PositionError" { |
| 16066 | 16346 |
| 16347 @DomName('PositionError.PERMISSION_DENIED') |
| 16348 @DocsEditable |
| 16067 static const int PERMISSION_DENIED = 1; | 16349 static const int PERMISSION_DENIED = 1; |
| 16068 | 16350 |
| 16351 @DomName('PositionError.POSITION_UNAVAILABLE') |
| 16352 @DocsEditable |
| 16069 static const int POSITION_UNAVAILABLE = 2; | 16353 static const int POSITION_UNAVAILABLE = 2; |
| 16070 | 16354 |
| 16355 @DomName('PositionError.TIMEOUT') |
| 16356 @DocsEditable |
| 16071 static const int TIMEOUT = 3; | 16357 static const int TIMEOUT = 3; |
| 16072 | 16358 |
| 16073 @DomName('PositionError.code') | 16359 @DomName('PositionError.code') |
| 16074 @DocsEditable | 16360 @DocsEditable |
| 16075 final int code; | 16361 final int code; |
| 16076 | 16362 |
| 16077 @DomName('PositionError.message') | 16363 @DomName('PositionError.message') |
| 16078 @DocsEditable | 16364 @DocsEditable |
| 16079 final String message; | 16365 final String message; |
| 16080 } | 16366 } |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16225 // BSD-style license that can be found in the LICENSE file. | 16511 // BSD-style license that can be found in the LICENSE file. |
| 16226 | 16512 |
| 16227 // WARNING: Do not edit - generated code. | 16513 // WARNING: Do not edit - generated code. |
| 16228 | 16514 |
| 16229 | 16515 |
| 16230 @DomName('Range') | 16516 @DomName('Range') |
| 16231 class Range native "Range" { | 16517 class Range native "Range" { |
| 16232 factory Range() => document.$dom_createRange(); | 16518 factory Range() => document.$dom_createRange(); |
| 16233 | 16519 |
| 16234 | 16520 |
| 16521 @DomName('Range.END_TO_END') |
| 16522 @DocsEditable |
| 16235 static const int END_TO_END = 2; | 16523 static const int END_TO_END = 2; |
| 16236 | 16524 |
| 16525 @DomName('Range.END_TO_START') |
| 16526 @DocsEditable |
| 16237 static const int END_TO_START = 3; | 16527 static const int END_TO_START = 3; |
| 16238 | 16528 |
| 16529 @DomName('Range.NODE_AFTER') |
| 16530 @DocsEditable |
| 16239 static const int NODE_AFTER = 1; | 16531 static const int NODE_AFTER = 1; |
| 16240 | 16532 |
| 16533 @DomName('Range.NODE_BEFORE') |
| 16534 @DocsEditable |
| 16241 static const int NODE_BEFORE = 0; | 16535 static const int NODE_BEFORE = 0; |
| 16242 | 16536 |
| 16537 @DomName('Range.NODE_BEFORE_AND_AFTER') |
| 16538 @DocsEditable |
| 16243 static const int NODE_BEFORE_AND_AFTER = 2; | 16539 static const int NODE_BEFORE_AND_AFTER = 2; |
| 16244 | 16540 |
| 16541 @DomName('Range.NODE_INSIDE') |
| 16542 @DocsEditable |
| 16245 static const int NODE_INSIDE = 3; | 16543 static const int NODE_INSIDE = 3; |
| 16246 | 16544 |
| 16545 @DomName('Range.START_TO_END') |
| 16546 @DocsEditable |
| 16247 static const int START_TO_END = 1; | 16547 static const int START_TO_END = 1; |
| 16248 | 16548 |
| 16549 @DomName('Range.START_TO_START') |
| 16550 @DocsEditable |
| 16249 static const int START_TO_START = 0; | 16551 static const int START_TO_START = 0; |
| 16250 | 16552 |
| 16251 @DomName('Range.collapsed') | 16553 @DomName('Range.collapsed') |
| 16252 @DocsEditable | 16554 @DocsEditable |
| 16253 final bool collapsed; | 16555 final bool collapsed; |
| 16254 | 16556 |
| 16255 @DomName('Range.commonAncestorContainer') | 16557 @DomName('Range.commonAncestorContainer') |
| 16256 @DocsEditable | 16558 @DocsEditable |
| 16257 final Node commonAncestorContainer; | 16559 final Node commonAncestorContainer; |
| 16258 | 16560 |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16387 } | 16689 } |
| 16388 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16690 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16389 // for details. All rights reserved. Use of this source code is governed by a | 16691 // for details. All rights reserved. Use of this source code is governed by a |
| 16390 // BSD-style license that can be found in the LICENSE file. | 16692 // BSD-style license that can be found in the LICENSE file. |
| 16391 | 16693 |
| 16392 | 16694 |
| 16393 @DocsEditable | 16695 @DocsEditable |
| 16394 @DomName('RangeException') | 16696 @DomName('RangeException') |
| 16395 class RangeException native "RangeException" { | 16697 class RangeException native "RangeException" { |
| 16396 | 16698 |
| 16699 @DomName('RangeException.BAD_BOUNDARYPOINTS_ERR') |
| 16700 @DocsEditable |
| 16397 static const int BAD_BOUNDARYPOINTS_ERR = 1; | 16701 static const int BAD_BOUNDARYPOINTS_ERR = 1; |
| 16398 | 16702 |
| 16703 @DomName('RangeException.INVALID_NODE_TYPE_ERR') |
| 16704 @DocsEditable |
| 16399 static const int INVALID_NODE_TYPE_ERR = 2; | 16705 static const int INVALID_NODE_TYPE_ERR = 2; |
| 16400 | 16706 |
| 16401 @DomName('RangeException.code') | 16707 @DomName('RangeException.code') |
| 16402 @DocsEditable | 16708 @DocsEditable |
| 16403 final int code; | 16709 final int code; |
| 16404 | 16710 |
| 16405 @DomName('RangeException.message') | 16711 @DomName('RangeException.message') |
| 16406 @DocsEditable | 16712 @DocsEditable |
| 16407 final String message; | 16713 final String message; |
| 16408 | 16714 |
| (...skipping 1827 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 18236 | 18542 |
| 18237 } | 18543 } |
| 18238 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 18544 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 18239 // for details. All rights reserved. Use of this source code is governed by a | 18545 // for details. All rights reserved. Use of this source code is governed by a |
| 18240 // BSD-style license that can be found in the LICENSE file. | 18546 // BSD-style license that can be found in the LICENSE file. |
| 18241 | 18547 |
| 18242 | 18548 |
| 18243 @DomName('StorageInfo') | 18549 @DomName('StorageInfo') |
| 18244 class StorageInfo native "StorageInfo" { | 18550 class StorageInfo native "StorageInfo" { |
| 18245 | 18551 |
| 18552 @DomName('StorageInfo.PERSISTENT') |
| 18553 @DocsEditable |
| 18246 static const int PERSISTENT = 1; | 18554 static const int PERSISTENT = 1; |
| 18247 | 18555 |
| 18556 @DomName('StorageInfo.TEMPORARY') |
| 18557 @DocsEditable |
| 18248 static const int TEMPORARY = 0; | 18558 static const int TEMPORARY = 0; |
| 18249 | 18559 |
| 18250 @JSName('queryUsageAndQuota') | 18560 @JSName('queryUsageAndQuota') |
| 18251 @DomName('StorageInfo.queryUsageAndQuota') | 18561 @DomName('StorageInfo.queryUsageAndQuota') |
| 18252 @DocsEditable | 18562 @DocsEditable |
| 18253 void _queryUsageAndQuota(int storageType, [StorageUsageCallback usageCallback,
StorageErrorCallback errorCallback]) native; | 18563 void _queryUsageAndQuota(int storageType, [StorageUsageCallback usageCallback,
StorageErrorCallback errorCallback]) native; |
| 18254 | 18564 |
| 18255 @JSName('requestQuota') | 18565 @JSName('requestQuota') |
| 18256 @DomName('StorageInfo.requestQuota') | 18566 @DomName('StorageInfo.requestQuota') |
| 18257 @DocsEditable | 18567 @DocsEditable |
| (...skipping 1287 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 19545 @SupportedBrowser(SupportedBrowser.SAFARI) | 19855 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 19546 class TrackElement extends Element native "HTMLTrackElement" { | 19856 class TrackElement extends Element native "HTMLTrackElement" { |
| 19547 | 19857 |
| 19548 @DomName('HTMLTrackElement.HTMLTrackElement') | 19858 @DomName('HTMLTrackElement.HTMLTrackElement') |
| 19549 @DocsEditable | 19859 @DocsEditable |
| 19550 factory TrackElement() => document.$dom_createElement("track"); | 19860 factory TrackElement() => document.$dom_createElement("track"); |
| 19551 | 19861 |
| 19552 /// Checks if this type is supported on the current platform. | 19862 /// Checks if this type is supported on the current platform. |
| 19553 static bool get supported => Element.isTagSupported('track'); | 19863 static bool get supported => Element.isTagSupported('track'); |
| 19554 | 19864 |
| 19865 @DomName('HTMLTrackElement.ERROR') |
| 19866 @DocsEditable |
| 19555 static const int ERROR = 3; | 19867 static const int ERROR = 3; |
| 19556 | 19868 |
| 19869 @DomName('HTMLTrackElement.LOADED') |
| 19870 @DocsEditable |
| 19557 static const int LOADED = 2; | 19871 static const int LOADED = 2; |
| 19558 | 19872 |
| 19873 @DomName('HTMLTrackElement.LOADING') |
| 19874 @DocsEditable |
| 19559 static const int LOADING = 1; | 19875 static const int LOADING = 1; |
| 19560 | 19876 |
| 19877 @DomName('HTMLTrackElement.NONE') |
| 19878 @DocsEditable |
| 19561 static const int NONE = 0; | 19879 static const int NONE = 0; |
| 19562 | 19880 |
| 19563 @JSName('default') | 19881 @JSName('default') |
| 19564 @DomName('HTMLTrackElement.default') | 19882 @DomName('HTMLTrackElement.default') |
| 19565 @DocsEditable | 19883 @DocsEditable |
| 19566 bool defaultValue; | 19884 bool defaultValue; |
| 19567 | 19885 |
| 19568 @DomName('HTMLTrackElement.kind') | 19886 @DomName('HTMLTrackElement.kind') |
| 19569 @DocsEditable | 19887 @DocsEditable |
| 19570 String kind; | 19888 String kind; |
| (...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20050 } | 20368 } |
| 20051 throw new ArgumentError("Incorrect number or type of arguments"); | 20369 throw new ArgumentError("Incorrect number or type of arguments"); |
| 20052 } | 20370 } |
| 20053 static WebSocket _create_1(url) => JS('WebSocket', 'new WebSocket(#)', url); | 20371 static WebSocket _create_1(url) => JS('WebSocket', 'new WebSocket(#)', url); |
| 20054 static WebSocket _create_2(url, protocol_OR_protocols) => JS('WebSocket', 'new
WebSocket(#,#)', url, protocol_OR_protocols); | 20372 static WebSocket _create_2(url, protocol_OR_protocols) => JS('WebSocket', 'new
WebSocket(#,#)', url, protocol_OR_protocols); |
| 20055 static WebSocket _create_3(url, protocol_OR_protocols) => JS('WebSocket', 'new
WebSocket(#,#)', url, protocol_OR_protocols); | 20373 static WebSocket _create_3(url, protocol_OR_protocols) => JS('WebSocket', 'new
WebSocket(#,#)', url, protocol_OR_protocols); |
| 20056 | 20374 |
| 20057 /// Checks if this type is supported on the current platform. | 20375 /// Checks if this type is supported on the current platform. |
| 20058 static bool get supported => JS('bool', 'typeof window.WebSocket != "undefined
"'); | 20376 static bool get supported => JS('bool', 'typeof window.WebSocket != "undefined
"'); |
| 20059 | 20377 |
| 20378 @DomName('WebSocket.CLOSED') |
| 20379 @DocsEditable |
| 20060 static const int CLOSED = 3; | 20380 static const int CLOSED = 3; |
| 20061 | 20381 |
| 20382 @DomName('WebSocket.CLOSING') |
| 20383 @DocsEditable |
| 20062 static const int CLOSING = 2; | 20384 static const int CLOSING = 2; |
| 20063 | 20385 |
| 20386 @DomName('WebSocket.CONNECTING') |
| 20387 @DocsEditable |
| 20064 static const int CONNECTING = 0; | 20388 static const int CONNECTING = 0; |
| 20065 | 20389 |
| 20390 @DomName('WebSocket.OPEN') |
| 20391 @DocsEditable |
| 20066 static const int OPEN = 1; | 20392 static const int OPEN = 1; |
| 20067 | 20393 |
| 20068 @JSName('URL') | 20394 @JSName('URL') |
| 20069 @DomName('WebSocket.URL') | 20395 @DomName('WebSocket.URL') |
| 20070 @DocsEditable | 20396 @DocsEditable |
| 20071 final String Url; | 20397 final String Url; |
| 20072 | 20398 |
| 20073 @DomName('WebSocket.binaryType') | 20399 @DomName('WebSocket.binaryType') |
| 20074 @DocsEditable | 20400 @DocsEditable |
| 20075 String binaryType; | 20401 String binaryType; |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20204 event.$dom_initWebKitWheelEvent(deltaX, | 20530 event.$dom_initWebKitWheelEvent(deltaX, |
| 20205 deltaY ~/ 120, // Chrome does an auto-convert to pixels. | 20531 deltaY ~/ 120, // Chrome does an auto-convert to pixels. |
| 20206 view, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, | 20532 view, screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, |
| 20207 metaKey); | 20533 metaKey); |
| 20208 } | 20534 } |
| 20209 | 20535 |
| 20210 return event; | 20536 return event; |
| 20211 } | 20537 } |
| 20212 | 20538 |
| 20213 | 20539 |
| 20540 @DomName('WheelEvent.DOM_DELTA_LINE') |
| 20541 @DocsEditable |
| 20214 static const int DOM_DELTA_LINE = 0x01; | 20542 static const int DOM_DELTA_LINE = 0x01; |
| 20215 | 20543 |
| 20544 @DomName('WheelEvent.DOM_DELTA_PAGE') |
| 20545 @DocsEditable |
| 20216 static const int DOM_DELTA_PAGE = 0x02; | 20546 static const int DOM_DELTA_PAGE = 0x02; |
| 20217 | 20547 |
| 20548 @DomName('WheelEvent.DOM_DELTA_PIXEL') |
| 20549 @DocsEditable |
| 20218 static const int DOM_DELTA_PIXEL = 0x00; | 20550 static const int DOM_DELTA_PIXEL = 0x00; |
| 20219 | 20551 |
| 20220 @JSName('webkitDirectionInvertedFromDevice') | 20552 @JSName('webkitDirectionInvertedFromDevice') |
| 20221 @DomName('WheelEvent.webkitDirectionInvertedFromDevice') | 20553 @DomName('WheelEvent.webkitDirectionInvertedFromDevice') |
| 20222 @DocsEditable | 20554 @DocsEditable |
| 20223 @SupportedBrowser(SupportedBrowser.CHROME) | 20555 @SupportedBrowser(SupportedBrowser.CHROME) |
| 20224 @SupportedBrowser(SupportedBrowser.SAFARI) | 20556 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 20225 @Experimental | 20557 @Experimental |
| 20226 final bool directionInvertedFromDevice; | 20558 final bool directionInvertedFromDevice; |
| 20227 | 20559 |
| (...skipping 453 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20681 @Experimental | 21013 @Experimental |
| 20682 static const EventStreamProvider<AnimationEvent> animationIterationEvent = con
st EventStreamProvider<AnimationEvent>('webkitAnimationIteration'); | 21014 static const EventStreamProvider<AnimationEvent> animationIterationEvent = con
st EventStreamProvider<AnimationEvent>('webkitAnimationIteration'); |
| 20683 | 21015 |
| 20684 @DomName('Window.webkitAnimationStartEvent') | 21016 @DomName('Window.webkitAnimationStartEvent') |
| 20685 @DocsEditable | 21017 @DocsEditable |
| 20686 @SupportedBrowser(SupportedBrowser.CHROME) | 21018 @SupportedBrowser(SupportedBrowser.CHROME) |
| 20687 @SupportedBrowser(SupportedBrowser.SAFARI) | 21019 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 20688 @Experimental | 21020 @Experimental |
| 20689 static const EventStreamProvider<AnimationEvent> animationStartEvent = const E
ventStreamProvider<AnimationEvent>('webkitAnimationStart'); | 21021 static const EventStreamProvider<AnimationEvent> animationStartEvent = const E
ventStreamProvider<AnimationEvent>('webkitAnimationStart'); |
| 20690 | 21022 |
| 21023 @DomName('Window.PERSISTENT') |
| 21024 @DocsEditable |
| 20691 static const int PERSISTENT = 1; | 21025 static const int PERSISTENT = 1; |
| 20692 | 21026 |
| 21027 @DomName('Window.TEMPORARY') |
| 21028 @DocsEditable |
| 20693 static const int TEMPORARY = 0; | 21029 static const int TEMPORARY = 0; |
| 20694 | 21030 |
| 20695 @DomName('Window.applicationCache') | 21031 @DomName('Window.applicationCache') |
| 20696 @DocsEditable | 21032 @DocsEditable |
| 20697 final ApplicationCache applicationCache; | 21033 final ApplicationCache applicationCache; |
| 20698 | 21034 |
| 20699 @DomName('Window.closed') | 21035 @DomName('Window.closed') |
| 20700 @DocsEditable | 21036 @DocsEditable |
| 20701 final bool closed; | 21037 final bool closed; |
| 20702 | 21038 |
| (...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21452 } | 21788 } |
| 21453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21789 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21454 // for details. All rights reserved. Use of this source code is governed by a | 21790 // for details. All rights reserved. Use of this source code is governed by a |
| 21455 // BSD-style license that can be found in the LICENSE file. | 21791 // BSD-style license that can be found in the LICENSE file. |
| 21456 | 21792 |
| 21457 | 21793 |
| 21458 @DocsEditable | 21794 @DocsEditable |
| 21459 @DomName('XPathException') | 21795 @DomName('XPathException') |
| 21460 class XPathException native "XPathException" { | 21796 class XPathException native "XPathException" { |
| 21461 | 21797 |
| 21798 @DomName('XPathException.INVALID_EXPRESSION_ERR') |
| 21799 @DocsEditable |
| 21462 static const int INVALID_EXPRESSION_ERR = 51; | 21800 static const int INVALID_EXPRESSION_ERR = 51; |
| 21463 | 21801 |
| 21802 @DomName('XPathException.TYPE_ERR') |
| 21803 @DocsEditable |
| 21464 static const int TYPE_ERR = 52; | 21804 static const int TYPE_ERR = 52; |
| 21465 | 21805 |
| 21466 @DomName('XPathException.code') | 21806 @DomName('XPathException.code') |
| 21467 @DocsEditable | 21807 @DocsEditable |
| 21468 final int code; | 21808 final int code; |
| 21469 | 21809 |
| 21470 @DomName('XPathException.message') | 21810 @DomName('XPathException.message') |
| 21471 @DocsEditable | 21811 @DocsEditable |
| 21472 final String message; | 21812 final String message; |
| 21473 | 21813 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21508 } | 21848 } |
| 21509 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21849 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21510 // for details. All rights reserved. Use of this source code is governed by a | 21850 // for details. All rights reserved. Use of this source code is governed by a |
| 21511 // BSD-style license that can be found in the LICENSE file. | 21851 // BSD-style license that can be found in the LICENSE file. |
| 21512 | 21852 |
| 21513 | 21853 |
| 21514 @DocsEditable | 21854 @DocsEditable |
| 21515 @DomName('XPathResult') | 21855 @DomName('XPathResult') |
| 21516 class XPathResult native "XPathResult" { | 21856 class XPathResult native "XPathResult" { |
| 21517 | 21857 |
| 21858 @DomName('XPathResult.ANY_TYPE') |
| 21859 @DocsEditable |
| 21518 static const int ANY_TYPE = 0; | 21860 static const int ANY_TYPE = 0; |
| 21519 | 21861 |
| 21862 @DomName('XPathResult.ANY_UNORDERED_NODE_TYPE') |
| 21863 @DocsEditable |
| 21520 static const int ANY_UNORDERED_NODE_TYPE = 8; | 21864 static const int ANY_UNORDERED_NODE_TYPE = 8; |
| 21521 | 21865 |
| 21866 @DomName('XPathResult.BOOLEAN_TYPE') |
| 21867 @DocsEditable |
| 21522 static const int BOOLEAN_TYPE = 3; | 21868 static const int BOOLEAN_TYPE = 3; |
| 21523 | 21869 |
| 21870 @DomName('XPathResult.FIRST_ORDERED_NODE_TYPE') |
| 21871 @DocsEditable |
| 21524 static const int FIRST_ORDERED_NODE_TYPE = 9; | 21872 static const int FIRST_ORDERED_NODE_TYPE = 9; |
| 21525 | 21873 |
| 21874 @DomName('XPathResult.NUMBER_TYPE') |
| 21875 @DocsEditable |
| 21526 static const int NUMBER_TYPE = 1; | 21876 static const int NUMBER_TYPE = 1; |
| 21527 | 21877 |
| 21878 @DomName('XPathResult.ORDERED_NODE_ITERATOR_TYPE') |
| 21879 @DocsEditable |
| 21528 static const int ORDERED_NODE_ITERATOR_TYPE = 5; | 21880 static const int ORDERED_NODE_ITERATOR_TYPE = 5; |
| 21529 | 21881 |
| 21882 @DomName('XPathResult.ORDERED_NODE_SNAPSHOT_TYPE') |
| 21883 @DocsEditable |
| 21530 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7; | 21884 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7; |
| 21531 | 21885 |
| 21886 @DomName('XPathResult.STRING_TYPE') |
| 21887 @DocsEditable |
| 21532 static const int STRING_TYPE = 2; | 21888 static const int STRING_TYPE = 2; |
| 21533 | 21889 |
| 21890 @DomName('XPathResult.UNORDERED_NODE_ITERATOR_TYPE') |
| 21891 @DocsEditable |
| 21534 static const int UNORDERED_NODE_ITERATOR_TYPE = 4; | 21892 static const int UNORDERED_NODE_ITERATOR_TYPE = 4; |
| 21535 | 21893 |
| 21894 @DomName('XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE') |
| 21895 @DocsEditable |
| 21536 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6; | 21896 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6; |
| 21537 | 21897 |
| 21538 @DomName('XPathResult.booleanValue') | 21898 @DomName('XPathResult.booleanValue') |
| 21539 @DocsEditable | 21899 @DocsEditable |
| 21540 final bool booleanValue; | 21900 final bool booleanValue; |
| 21541 | 21901 |
| 21542 @DomName('XPathResult.invalidIteratorState') | 21902 @DomName('XPathResult.invalidIteratorState') |
| 21543 @DocsEditable | 21903 @DocsEditable |
| 21544 final bool invalidIteratorState; | 21904 final bool invalidIteratorState; |
| 21545 | 21905 |
| (...skipping 5389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 26935 _position = nextPosition; | 27295 _position = nextPosition; |
| 26936 return true; | 27296 return true; |
| 26937 } | 27297 } |
| 26938 _current = null; | 27298 _current = null; |
| 26939 _position = _array.length; | 27299 _position = _array.length; |
| 26940 return false; | 27300 return false; |
| 26941 } | 27301 } |
| 26942 | 27302 |
| 26943 T get current => _current; | 27303 T get current => _current; |
| 26944 } | 27304 } |
| OLD | NEW |