| OLD | NEW |
| 1 /// The Dart HTML library. | 1 /// The Dart HTML library. |
| 2 /// | 2 /// |
| 3 /// For examples, see | 3 /// For examples, see |
| 4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) | 4 /// [Dart HTML5 Samples](https://github.com/dart-lang/dart-html5-samples) |
| 5 /// on Github. | 5 /// on Github. |
| 6 library dart.dom.html; | 6 library dart.dom.html; |
| 7 | 7 |
| 8 import 'dart:async'; | 8 import 'dart:async'; |
| 9 import 'dart:collection'; | 9 import 'dart:collection'; |
| 10 import 'dart:_collection-dev' hide Symbol; | 10 import 'dart:_collection-dev' hide Symbol; |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); | 68 return JS('var', r'ReceivePortSync.dispatchCall(#, #)', id, message); |
| 69 } | 69 } |
| 70 | 70 |
| 71 Future<SendPort> spawnDomFunction(Function f) => | 71 Future<SendPort> spawnDomFunction(Function f) => |
| 72 new Future.value(IsolateNatives.spawnDomFunction(f)); | 72 new Future.value(IsolateNatives.spawnDomFunction(f)); |
| 73 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 73 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 74 // for details. All rights reserved. Use of this source code is governed by a | 74 // for details. All rights reserved. Use of this source code is governed by a |
| 75 // BSD-style license that can be found in the LICENSE file. | 75 // BSD-style license that can be found in the LICENSE file. |
| 76 | 76 |
| 77 | 77 |
| 78 @DocsEditable | 78 @DocsEditable() |
| 79 @DomName('AbstractWorker') | 79 @DomName('AbstractWorker') |
| 80 class AbstractWorker extends EventTarget native "AbstractWorker" { | 80 class AbstractWorker extends EventTarget native "AbstractWorker" { |
| 81 // To suppress missing implicit constructor warnings. | 81 // To suppress missing implicit constructor warnings. |
| 82 factory AbstractWorker._() { throw new UnsupportedError("Not supported"); } | 82 factory AbstractWorker._() { throw new UnsupportedError("Not supported"); } |
| 83 | 83 |
| 84 @DomName('AbstractWorker.errorEvent') | 84 @DomName('AbstractWorker.errorEvent') |
| 85 @DocsEditable | 85 @DocsEditable() |
| 86 static const EventStreamProvider<ErrorEvent> errorEvent = const EventStreamPro
vider<ErrorEvent>('error'); | 86 static const EventStreamProvider<ErrorEvent> errorEvent = const EventStreamPro
vider<ErrorEvent>('error'); |
| 87 | 87 |
| 88 @JSName('addEventListener') | 88 @JSName('addEventListener') |
| 89 @DomName('AbstractWorker.addEventListener') | 89 @DomName('AbstractWorker.addEventListener') |
| 90 @DocsEditable | 90 @DocsEditable() |
| 91 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 91 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 92 | 92 |
| 93 @DomName('AbstractWorker.dispatchEvent') | 93 @DomName('AbstractWorker.dispatchEvent') |
| 94 @DocsEditable | 94 @DocsEditable() |
| 95 bool dispatchEvent(Event evt) native; | 95 bool dispatchEvent(Event evt) native; |
| 96 | 96 |
| 97 @JSName('removeEventListener') | 97 @JSName('removeEventListener') |
| 98 @DomName('AbstractWorker.removeEventListener') | 98 @DomName('AbstractWorker.removeEventListener') |
| 99 @DocsEditable | 99 @DocsEditable() |
| 100 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 100 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 101 | 101 |
| 102 @DomName('AbstractWorker.onerror') | 102 @DomName('AbstractWorker.onerror') |
| 103 @DocsEditable | 103 @DocsEditable() |
| 104 Stream<ErrorEvent> get onError => errorEvent.forTarget(this); | 104 Stream<ErrorEvent> get onError => errorEvent.forTarget(this); |
| 105 } | 105 } |
| 106 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 106 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 107 // for details. All rights reserved. Use of this source code is governed by a | 107 // for details. All rights reserved. Use of this source code is governed by a |
| 108 // BSD-style license that can be found in the LICENSE file. | 108 // BSD-style license that can be found in the LICENSE file. |
| 109 | 109 |
| 110 | 110 |
| 111 @DocsEditable | 111 @DocsEditable() |
| 112 @DomName('HTMLAnchorElement') | 112 @DomName('HTMLAnchorElement') |
| 113 class AnchorElement extends _HTMLElement native "HTMLAnchorElement" { | 113 class AnchorElement extends _HTMLElement native "HTMLAnchorElement" { |
| 114 // To suppress missing implicit constructor warnings. | 114 // To suppress missing implicit constructor warnings. |
| 115 factory AnchorElement._() { throw new UnsupportedError("Not supported"); } | 115 factory AnchorElement._() { throw new UnsupportedError("Not supported"); } |
| 116 | 116 |
| 117 @DomName('HTMLAnchorElement.HTMLAnchorElement') | 117 @DomName('HTMLAnchorElement.HTMLAnchorElement') |
| 118 @DocsEditable | 118 @DocsEditable() |
| 119 factory AnchorElement({String href}) { | 119 factory AnchorElement({String href}) { |
| 120 var e = document.$dom_createElement("a"); | 120 var e = document.$dom_createElement("a"); |
| 121 if (href != null) e.href = href; | 121 if (href != null) e.href = href; |
| 122 return e; | 122 return e; |
| 123 } | 123 } |
| 124 | 124 |
| 125 @DomName('HTMLAnchorElement.download') | 125 @DomName('HTMLAnchorElement.download') |
| 126 @DocsEditable | 126 @DocsEditable() |
| 127 String download; | 127 String download; |
| 128 | 128 |
| 129 @DomName('HTMLAnchorElement.hash') | 129 @DomName('HTMLAnchorElement.hash') |
| 130 @DocsEditable | 130 @DocsEditable() |
| 131 String hash; | 131 String hash; |
| 132 | 132 |
| 133 @DomName('HTMLAnchorElement.host') | 133 @DomName('HTMLAnchorElement.host') |
| 134 @DocsEditable | 134 @DocsEditable() |
| 135 String host; | 135 String host; |
| 136 | 136 |
| 137 @DomName('HTMLAnchorElement.hostname') | 137 @DomName('HTMLAnchorElement.hostname') |
| 138 @DocsEditable | 138 @DocsEditable() |
| 139 String hostname; | 139 String hostname; |
| 140 | 140 |
| 141 @DomName('HTMLAnchorElement.href') | 141 @DomName('HTMLAnchorElement.href') |
| 142 @DocsEditable | 142 @DocsEditable() |
| 143 String href; | 143 String href; |
| 144 | 144 |
| 145 @DomName('HTMLAnchorElement.hreflang') | 145 @DomName('HTMLAnchorElement.hreflang') |
| 146 @DocsEditable | 146 @DocsEditable() |
| 147 String hreflang; | 147 String hreflang; |
| 148 | 148 |
| 149 @DomName('HTMLAnchorElement.name') | 149 @DomName('HTMLAnchorElement.name') |
| 150 @DocsEditable | 150 @DocsEditable() |
| 151 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLAnchorElement-partial | 151 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLAnchorElement-partial |
| 152 @deprecated // deprecated | 152 @deprecated // deprecated |
| 153 String name; | 153 String name; |
| 154 | 154 |
| 155 @DomName('HTMLAnchorElement.origin') | 155 @DomName('HTMLAnchorElement.origin') |
| 156 @DocsEditable | 156 @DocsEditable() |
| 157 // WebKit only | 157 // WebKit only |
| 158 @deprecated // nonstandard | 158 @deprecated // nonstandard |
| 159 final String origin; | 159 final String origin; |
| 160 | 160 |
| 161 @DomName('HTMLAnchorElement.pathname') | 161 @DomName('HTMLAnchorElement.pathname') |
| 162 @DocsEditable | 162 @DocsEditable() |
| 163 String pathname; | 163 String pathname; |
| 164 | 164 |
| 165 @DomName('HTMLAnchorElement.ping') | 165 @DomName('HTMLAnchorElement.ping') |
| 166 @DocsEditable | 166 @DocsEditable() |
| 167 // http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-sema
ntics.html#the-a-element | 167 // http://www.whatwg.org/specs/web-apps/current-work/multipage/text-level-sema
ntics.html#the-a-element |
| 168 @deprecated // deprecated | 168 @deprecated // deprecated |
| 169 String ping; | 169 String ping; |
| 170 | 170 |
| 171 @DomName('HTMLAnchorElement.port') | 171 @DomName('HTMLAnchorElement.port') |
| 172 @DocsEditable | 172 @DocsEditable() |
| 173 String port; | 173 String port; |
| 174 | 174 |
| 175 @DomName('HTMLAnchorElement.protocol') | 175 @DomName('HTMLAnchorElement.protocol') |
| 176 @DocsEditable | 176 @DocsEditable() |
| 177 String protocol; | 177 String protocol; |
| 178 | 178 |
| 179 @DomName('HTMLAnchorElement.rel') | 179 @DomName('HTMLAnchorElement.rel') |
| 180 @DocsEditable | 180 @DocsEditable() |
| 181 String rel; | 181 String rel; |
| 182 | 182 |
| 183 @DomName('HTMLAnchorElement.search') | 183 @DomName('HTMLAnchorElement.search') |
| 184 @DocsEditable | 184 @DocsEditable() |
| 185 String search; | 185 String search; |
| 186 | 186 |
| 187 @DomName('HTMLAnchorElement.target') | 187 @DomName('HTMLAnchorElement.target') |
| 188 @DocsEditable | 188 @DocsEditable() |
| 189 String target; | 189 String target; |
| 190 | 190 |
| 191 @DomName('HTMLAnchorElement.type') | 191 @DomName('HTMLAnchorElement.type') |
| 192 @DocsEditable | 192 @DocsEditable() |
| 193 String type; | 193 String type; |
| 194 | 194 |
| 195 @DomName('HTMLAnchorElement.toString') | 195 @DomName('HTMLAnchorElement.toString') |
| 196 @DocsEditable | 196 @DocsEditable() |
| 197 String toString() native; | 197 String toString() native; |
| 198 } | 198 } |
| 199 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 199 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 200 // for details. All rights reserved. Use of this source code is governed by a | 200 // for details. All rights reserved. Use of this source code is governed by a |
| 201 // BSD-style license that can be found in the LICENSE file. | 201 // BSD-style license that can be found in the LICENSE file. |
| 202 | 202 |
| 203 | 203 |
| 204 @DocsEditable | 204 @DocsEditable() |
| 205 @DomName('WebKitAnimationEvent') | 205 @DomName('WebKitAnimationEvent') |
| 206 @SupportedBrowser(SupportedBrowser.CHROME) | 206 @SupportedBrowser(SupportedBrowser.CHROME) |
| 207 @SupportedBrowser(SupportedBrowser.SAFARI) | 207 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 208 @Experimental | 208 @Experimental() |
| 209 class AnimationEvent extends Event native "WebKitAnimationEvent" { | 209 class AnimationEvent extends Event native "WebKitAnimationEvent" { |
| 210 // To suppress missing implicit constructor warnings. | 210 // To suppress missing implicit constructor warnings. |
| 211 factory AnimationEvent._() { throw new UnsupportedError("Not supported"); } | 211 factory AnimationEvent._() { throw new UnsupportedError("Not supported"); } |
| 212 | 212 |
| 213 @DomName('WebKitAnimationEvent.animationName') | 213 @DomName('WebKitAnimationEvent.animationName') |
| 214 @DocsEditable | 214 @DocsEditable() |
| 215 final String animationName; | 215 final String animationName; |
| 216 | 216 |
| 217 @DomName('WebKitAnimationEvent.elapsedTime') | 217 @DomName('WebKitAnimationEvent.elapsedTime') |
| 218 @DocsEditable | 218 @DocsEditable() |
| 219 final num elapsedTime; | 219 final num elapsedTime; |
| 220 } | 220 } |
| 221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 222 // for details. All rights reserved. Use of this source code is governed by a | 222 // for details. All rights reserved. Use of this source code is governed by a |
| 223 // BSD-style license that can be found in the LICENSE file. | 223 // BSD-style license that can be found in the LICENSE file. |
| 224 | 224 |
| 225 | 225 |
| 226 @DocsEditable | 226 @DocsEditable() |
| 227 @DomName('DOMApplicationCache') | 227 @DomName('DOMApplicationCache') |
| 228 @SupportedBrowser(SupportedBrowser.CHROME) | 228 @SupportedBrowser(SupportedBrowser.CHROME) |
| 229 @SupportedBrowser(SupportedBrowser.FIREFOX) | 229 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 230 @SupportedBrowser(SupportedBrowser.IE, '10') | 230 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 231 @SupportedBrowser(SupportedBrowser.OPERA) | 231 @SupportedBrowser(SupportedBrowser.OPERA) |
| 232 @SupportedBrowser(SupportedBrowser.SAFARI) | 232 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 233 @Unstable | 233 @Unstable() |
| 234 class ApplicationCache extends EventTarget native "ApplicationCache,DOMApplicati
onCache,OfflineResourceList" { | 234 class ApplicationCache extends EventTarget native "ApplicationCache,DOMApplicati
onCache,OfflineResourceList" { |
| 235 // To suppress missing implicit constructor warnings. | 235 // To suppress missing implicit constructor warnings. |
| 236 factory ApplicationCache._() { throw new UnsupportedError("Not supported"); } | 236 factory ApplicationCache._() { throw new UnsupportedError("Not supported"); } |
| 237 | 237 |
| 238 @DomName('DOMApplicationCache.cachedEvent') | 238 @DomName('DOMApplicationCache.cachedEvent') |
| 239 @DocsEditable | 239 @DocsEditable() |
| 240 static const EventStreamProvider<Event> cachedEvent = const EventStreamProvide
r<Event>('cached'); | 240 static const EventStreamProvider<Event> cachedEvent = const EventStreamProvide
r<Event>('cached'); |
| 241 | 241 |
| 242 @DomName('DOMApplicationCache.checkingEvent') | 242 @DomName('DOMApplicationCache.checkingEvent') |
| 243 @DocsEditable | 243 @DocsEditable() |
| 244 static const EventStreamProvider<Event> checkingEvent = const EventStreamProvi
der<Event>('checking'); | 244 static const EventStreamProvider<Event> checkingEvent = const EventStreamProvi
der<Event>('checking'); |
| 245 | 245 |
| 246 @DomName('DOMApplicationCache.downloadingEvent') | 246 @DomName('DOMApplicationCache.downloadingEvent') |
| 247 @DocsEditable | 247 @DocsEditable() |
| 248 static const EventStreamProvider<Event> downloadingEvent = const EventStreamPr
ovider<Event>('downloading'); | 248 static const EventStreamProvider<Event> downloadingEvent = const EventStreamPr
ovider<Event>('downloading'); |
| 249 | 249 |
| 250 @DomName('DOMApplicationCache.errorEvent') | 250 @DomName('DOMApplicationCache.errorEvent') |
| 251 @DocsEditable | 251 @DocsEditable() |
| 252 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 252 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 253 | 253 |
| 254 @DomName('DOMApplicationCache.noupdateEvent') | 254 @DomName('DOMApplicationCache.noupdateEvent') |
| 255 @DocsEditable | 255 @DocsEditable() |
| 256 static const EventStreamProvider<Event> noUpdateEvent = const EventStreamProvi
der<Event>('noupdate'); | 256 static const EventStreamProvider<Event> noUpdateEvent = const EventStreamProvi
der<Event>('noupdate'); |
| 257 | 257 |
| 258 @DomName('DOMApplicationCache.obsoleteEvent') | 258 @DomName('DOMApplicationCache.obsoleteEvent') |
| 259 @DocsEditable | 259 @DocsEditable() |
| 260 static const EventStreamProvider<Event> obsoleteEvent = const EventStreamProvi
der<Event>('obsolete'); | 260 static const EventStreamProvider<Event> obsoleteEvent = const EventStreamProvi
der<Event>('obsolete'); |
| 261 | 261 |
| 262 @DomName('DOMApplicationCache.progressEvent') | 262 @DomName('DOMApplicationCache.progressEvent') |
| 263 @DocsEditable | 263 @DocsEditable() |
| 264 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr
eamProvider<ProgressEvent>('progress'); | 264 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr
eamProvider<ProgressEvent>('progress'); |
| 265 | 265 |
| 266 @DomName('DOMApplicationCache.updatereadyEvent') | 266 @DomName('DOMApplicationCache.updatereadyEvent') |
| 267 @DocsEditable | 267 @DocsEditable() |
| 268 static const EventStreamProvider<Event> updateReadyEvent = const EventStreamPr
ovider<Event>('updateready'); | 268 static const EventStreamProvider<Event> updateReadyEvent = const EventStreamPr
ovider<Event>('updateready'); |
| 269 | 269 |
| 270 /// Checks if this type is supported on the current platform. | 270 /// Checks if this type is supported on the current platform. |
| 271 static bool get supported => JS('bool', '!!(window.applicationCache)'); | 271 static bool get supported => JS('bool', '!!(window.applicationCache)'); |
| 272 | 272 |
| 273 @DomName('DOMApplicationCache.CHECKING') | 273 @DomName('DOMApplicationCache.CHECKING') |
| 274 @DocsEditable | 274 @DocsEditable() |
| 275 static const int CHECKING = 2; | 275 static const int CHECKING = 2; |
| 276 | 276 |
| 277 @DomName('DOMApplicationCache.DOWNLOADING') | 277 @DomName('DOMApplicationCache.DOWNLOADING') |
| 278 @DocsEditable | 278 @DocsEditable() |
| 279 static const int DOWNLOADING = 3; | 279 static const int DOWNLOADING = 3; |
| 280 | 280 |
| 281 @DomName('DOMApplicationCache.IDLE') | 281 @DomName('DOMApplicationCache.IDLE') |
| 282 @DocsEditable | 282 @DocsEditable() |
| 283 static const int IDLE = 1; | 283 static const int IDLE = 1; |
| 284 | 284 |
| 285 @DomName('DOMApplicationCache.OBSOLETE') | 285 @DomName('DOMApplicationCache.OBSOLETE') |
| 286 @DocsEditable | 286 @DocsEditable() |
| 287 static const int OBSOLETE = 5; | 287 static const int OBSOLETE = 5; |
| 288 | 288 |
| 289 @DomName('DOMApplicationCache.UNCACHED') | 289 @DomName('DOMApplicationCache.UNCACHED') |
| 290 @DocsEditable | 290 @DocsEditable() |
| 291 static const int UNCACHED = 0; | 291 static const int UNCACHED = 0; |
| 292 | 292 |
| 293 @DomName('DOMApplicationCache.UPDATEREADY') | 293 @DomName('DOMApplicationCache.UPDATEREADY') |
| 294 @DocsEditable | 294 @DocsEditable() |
| 295 static const int UPDATEREADY = 4; | 295 static const int UPDATEREADY = 4; |
| 296 | 296 |
| 297 @DomName('DOMApplicationCache.status') | 297 @DomName('DOMApplicationCache.status') |
| 298 @DocsEditable | 298 @DocsEditable() |
| 299 final int status; | 299 final int status; |
| 300 | 300 |
| 301 @DomName('DOMApplicationCache.abort') | 301 @DomName('DOMApplicationCache.abort') |
| 302 @DocsEditable | 302 @DocsEditable() |
| 303 void abort() native; | 303 void abort() native; |
| 304 | 304 |
| 305 @JSName('addEventListener') | 305 @JSName('addEventListener') |
| 306 @DomName('DOMApplicationCache.addEventListener') | 306 @DomName('DOMApplicationCache.addEventListener') |
| 307 @DocsEditable | 307 @DocsEditable() |
| 308 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 308 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 309 | 309 |
| 310 @DomName('DOMApplicationCache.dispatchEvent') | 310 @DomName('DOMApplicationCache.dispatchEvent') |
| 311 @DocsEditable | 311 @DocsEditable() |
| 312 bool dispatchEvent(Event evt) native; | 312 bool dispatchEvent(Event evt) native; |
| 313 | 313 |
| 314 @JSName('removeEventListener') | 314 @JSName('removeEventListener') |
| 315 @DomName('DOMApplicationCache.removeEventListener') | 315 @DomName('DOMApplicationCache.removeEventListener') |
| 316 @DocsEditable | 316 @DocsEditable() |
| 317 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 317 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 318 | 318 |
| 319 @DomName('DOMApplicationCache.swapCache') | 319 @DomName('DOMApplicationCache.swapCache') |
| 320 @DocsEditable | 320 @DocsEditable() |
| 321 void swapCache() native; | 321 void swapCache() native; |
| 322 | 322 |
| 323 @DomName('DOMApplicationCache.update') | 323 @DomName('DOMApplicationCache.update') |
| 324 @DocsEditable | 324 @DocsEditable() |
| 325 void update() native; | 325 void update() native; |
| 326 | 326 |
| 327 @DomName('DOMApplicationCache.oncached') | 327 @DomName('DOMApplicationCache.oncached') |
| 328 @DocsEditable | 328 @DocsEditable() |
| 329 Stream<Event> get onCached => cachedEvent.forTarget(this); | 329 Stream<Event> get onCached => cachedEvent.forTarget(this); |
| 330 | 330 |
| 331 @DomName('DOMApplicationCache.onchecking') | 331 @DomName('DOMApplicationCache.onchecking') |
| 332 @DocsEditable | 332 @DocsEditable() |
| 333 Stream<Event> get onChecking => checkingEvent.forTarget(this); | 333 Stream<Event> get onChecking => checkingEvent.forTarget(this); |
| 334 | 334 |
| 335 @DomName('DOMApplicationCache.ondownloading') | 335 @DomName('DOMApplicationCache.ondownloading') |
| 336 @DocsEditable | 336 @DocsEditable() |
| 337 Stream<Event> get onDownloading => downloadingEvent.forTarget(this); | 337 Stream<Event> get onDownloading => downloadingEvent.forTarget(this); |
| 338 | 338 |
| 339 @DomName('DOMApplicationCache.onerror') | 339 @DomName('DOMApplicationCache.onerror') |
| 340 @DocsEditable | 340 @DocsEditable() |
| 341 Stream<Event> get onError => errorEvent.forTarget(this); | 341 Stream<Event> get onError => errorEvent.forTarget(this); |
| 342 | 342 |
| 343 @DomName('DOMApplicationCache.onnoupdate') | 343 @DomName('DOMApplicationCache.onnoupdate') |
| 344 @DocsEditable | 344 @DocsEditable() |
| 345 Stream<Event> get onNoUpdate => noUpdateEvent.forTarget(this); | 345 Stream<Event> get onNoUpdate => noUpdateEvent.forTarget(this); |
| 346 | 346 |
| 347 @DomName('DOMApplicationCache.onobsolete') | 347 @DomName('DOMApplicationCache.onobsolete') |
| 348 @DocsEditable | 348 @DocsEditable() |
| 349 Stream<Event> get onObsolete => obsoleteEvent.forTarget(this); | 349 Stream<Event> get onObsolete => obsoleteEvent.forTarget(this); |
| 350 | 350 |
| 351 @DomName('DOMApplicationCache.onprogress') | 351 @DomName('DOMApplicationCache.onprogress') |
| 352 @DocsEditable | 352 @DocsEditable() |
| 353 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); | 353 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); |
| 354 | 354 |
| 355 @DomName('DOMApplicationCache.onupdateready') | 355 @DomName('DOMApplicationCache.onupdateready') |
| 356 @DocsEditable | 356 @DocsEditable() |
| 357 Stream<Event> get onUpdateReady => updateReadyEvent.forTarget(this); | 357 Stream<Event> get onUpdateReady => updateReadyEvent.forTarget(this); |
| 358 } | 358 } |
| 359 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 359 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 360 // for details. All rights reserved. Use of this source code is governed by a | 360 // for details. All rights reserved. Use of this source code is governed by a |
| 361 // BSD-style license that can be found in the LICENSE file. | 361 // BSD-style license that can be found in the LICENSE file. |
| 362 | 362 |
| 363 | 363 |
| 364 @DocsEditable | 364 @DocsEditable() |
| 365 /** | 365 /** |
| 366 * DOM Area Element, which links regions of an image map with a hyperlink. | 366 * DOM Area Element, which links regions of an image map with a hyperlink. |
| 367 * | 367 * |
| 368 * The element can also define an uninteractive region of the map. | 368 * The element can also define an uninteractive region of the map. |
| 369 * | 369 * |
| 370 * See also: | 370 * See also: |
| 371 * | 371 * |
| 372 * * [<area>](https://developer.mozilla.org/en-US/docs/HTML/Element/area) | 372 * * [<area>](https://developer.mozilla.org/en-US/docs/HTML/Element/area) |
| 373 * on MDN. | 373 * on MDN. |
| 374 */ | 374 */ |
| 375 @DomName('HTMLAreaElement') | 375 @DomName('HTMLAreaElement') |
| 376 class AreaElement extends _HTMLElement native "HTMLAreaElement" { | 376 class AreaElement extends _HTMLElement native "HTMLAreaElement" { |
| 377 // To suppress missing implicit constructor warnings. | 377 // To suppress missing implicit constructor warnings. |
| 378 factory AreaElement._() { throw new UnsupportedError("Not supported"); } | 378 factory AreaElement._() { throw new UnsupportedError("Not supported"); } |
| 379 | 379 |
| 380 @DomName('HTMLAreaElement.HTMLAreaElement') | 380 @DomName('HTMLAreaElement.HTMLAreaElement') |
| 381 @DocsEditable | 381 @DocsEditable() |
| 382 factory AreaElement() => document.$dom_createElement("area"); | 382 factory AreaElement() => document.$dom_createElement("area"); |
| 383 | 383 |
| 384 @DomName('HTMLAreaElement.alt') | 384 @DomName('HTMLAreaElement.alt') |
| 385 @DocsEditable | 385 @DocsEditable() |
| 386 String alt; | 386 String alt; |
| 387 | 387 |
| 388 @DomName('HTMLAreaElement.coords') | 388 @DomName('HTMLAreaElement.coords') |
| 389 @DocsEditable | 389 @DocsEditable() |
| 390 String coords; | 390 String coords; |
| 391 | 391 |
| 392 @DomName('HTMLAreaElement.hash') | 392 @DomName('HTMLAreaElement.hash') |
| 393 @DocsEditable | 393 @DocsEditable() |
| 394 final String hash; | 394 final String hash; |
| 395 | 395 |
| 396 @DomName('HTMLAreaElement.host') | 396 @DomName('HTMLAreaElement.host') |
| 397 @DocsEditable | 397 @DocsEditable() |
| 398 final String host; | 398 final String host; |
| 399 | 399 |
| 400 @DomName('HTMLAreaElement.hostname') | 400 @DomName('HTMLAreaElement.hostname') |
| 401 @DocsEditable | 401 @DocsEditable() |
| 402 final String hostname; | 402 final String hostname; |
| 403 | 403 |
| 404 @DomName('HTMLAreaElement.href') | 404 @DomName('HTMLAreaElement.href') |
| 405 @DocsEditable | 405 @DocsEditable() |
| 406 String href; | 406 String href; |
| 407 | 407 |
| 408 @DomName('HTMLAreaElement.pathname') | 408 @DomName('HTMLAreaElement.pathname') |
| 409 @DocsEditable | 409 @DocsEditable() |
| 410 final String pathname; | 410 final String pathname; |
| 411 | 411 |
| 412 @DomName('HTMLAreaElement.ping') | 412 @DomName('HTMLAreaElement.ping') |
| 413 @DocsEditable | 413 @DocsEditable() |
| 414 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLAreaElement-partial | 414 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLAreaElement-partial |
| 415 @deprecated // deprecated | 415 @deprecated // deprecated |
| 416 String ping; | 416 String ping; |
| 417 | 417 |
| 418 @DomName('HTMLAreaElement.port') | 418 @DomName('HTMLAreaElement.port') |
| 419 @DocsEditable | 419 @DocsEditable() |
| 420 final String port; | 420 final String port; |
| 421 | 421 |
| 422 @DomName('HTMLAreaElement.protocol') | 422 @DomName('HTMLAreaElement.protocol') |
| 423 @DocsEditable | 423 @DocsEditable() |
| 424 final String protocol; | 424 final String protocol; |
| 425 | 425 |
| 426 @DomName('HTMLAreaElement.search') | 426 @DomName('HTMLAreaElement.search') |
| 427 @DocsEditable | 427 @DocsEditable() |
| 428 final String search; | 428 final String search; |
| 429 | 429 |
| 430 @DomName('HTMLAreaElement.shape') | 430 @DomName('HTMLAreaElement.shape') |
| 431 @DocsEditable | 431 @DocsEditable() |
| 432 String shape; | 432 String shape; |
| 433 | 433 |
| 434 @DomName('HTMLAreaElement.target') | 434 @DomName('HTMLAreaElement.target') |
| 435 @DocsEditable | 435 @DocsEditable() |
| 436 String target; | 436 String target; |
| 437 } | 437 } |
| 438 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 438 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 439 // for details. All rights reserved. Use of this source code is governed by a | 439 // for details. All rights reserved. Use of this source code is governed by a |
| 440 // BSD-style license that can be found in the LICENSE file. | 440 // BSD-style license that can be found in the LICENSE file. |
| 441 | 441 |
| 442 | 442 |
| 443 @DocsEditable | 443 @DocsEditable() |
| 444 @DomName('HTMLAudioElement') | 444 @DomName('HTMLAudioElement') |
| 445 class AudioElement extends MediaElement native "HTMLAudioElement" { | 445 class AudioElement extends MediaElement native "HTMLAudioElement" { |
| 446 // To suppress missing implicit constructor warnings. | 446 // To suppress missing implicit constructor warnings. |
| 447 factory AudioElement._() { throw new UnsupportedError("Not supported"); } | 447 factory AudioElement._() { throw new UnsupportedError("Not supported"); } |
| 448 | 448 |
| 449 @DomName('HTMLAudioElement.HTMLAudioElement') | 449 @DomName('HTMLAudioElement.HTMLAudioElement') |
| 450 @DocsEditable | 450 @DocsEditable() |
| 451 factory AudioElement([String src]) { | 451 factory AudioElement([String src]) { |
| 452 if (src != null) { | 452 if (src != null) { |
| 453 return AudioElement._create_1(src); | 453 return AudioElement._create_1(src); |
| 454 } | 454 } |
| 455 return AudioElement._create_2(); | 455 return AudioElement._create_2(); |
| 456 } | 456 } |
| 457 static AudioElement _create_1(src) => JS('AudioElement', 'new Audio(#)', src); | 457 static AudioElement _create_1(src) => JS('AudioElement', 'new Audio(#)', src); |
| 458 static AudioElement _create_2() => JS('AudioElement', 'new Audio()'); | 458 static AudioElement _create_2() => JS('AudioElement', 'new Audio()'); |
| 459 } | 459 } |
| 460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 460 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 461 // for details. All rights reserved. Use of this source code is governed by a | 461 // for details. All rights reserved. Use of this source code is governed by a |
| 462 // BSD-style license that can be found in the LICENSE file. | 462 // BSD-style license that can be found in the LICENSE file. |
| 463 | 463 |
| 464 | 464 |
| 465 @DocsEditable | 465 @DocsEditable() |
| 466 @DomName('AutocompleteErrorEvent') | 466 @DomName('AutocompleteErrorEvent') |
| 467 // http://wiki.whatwg.org/wiki/RequestAutocomplete | 467 // http://wiki.whatwg.org/wiki/RequestAutocomplete |
| 468 @Experimental | 468 @Experimental() |
| 469 class AutocompleteErrorEvent extends Event native "AutocompleteErrorEvent" { | 469 class AutocompleteErrorEvent extends Event native "AutocompleteErrorEvent" { |
| 470 // To suppress missing implicit constructor warnings. | 470 // To suppress missing implicit constructor warnings. |
| 471 factory AutocompleteErrorEvent._() { throw new UnsupportedError("Not supported
"); } | 471 factory AutocompleteErrorEvent._() { throw new UnsupportedError("Not supported
"); } |
| 472 | 472 |
| 473 @DomName('AutocompleteErrorEvent.reason') | 473 @DomName('AutocompleteErrorEvent.reason') |
| 474 @DocsEditable | 474 @DocsEditable() |
| 475 final String reason; | 475 final String reason; |
| 476 } | 476 } |
| 477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 477 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 478 // for details. All rights reserved. Use of this source code is governed by a | 478 // for details. All rights reserved. Use of this source code is governed by a |
| 479 // BSD-style license that can be found in the LICENSE file. | 479 // BSD-style license that can be found in the LICENSE file. |
| 480 | 480 |
| 481 | 481 |
| 482 @DocsEditable | 482 @DocsEditable() |
| 483 @DomName('HTMLBRElement') | 483 @DomName('HTMLBRElement') |
| 484 class BRElement extends _HTMLElement native "HTMLBRElement" { | 484 class BRElement extends _HTMLElement native "HTMLBRElement" { |
| 485 // To suppress missing implicit constructor warnings. | 485 // To suppress missing implicit constructor warnings. |
| 486 factory BRElement._() { throw new UnsupportedError("Not supported"); } | 486 factory BRElement._() { throw new UnsupportedError("Not supported"); } |
| 487 | 487 |
| 488 @DomName('HTMLBRElement.HTMLBRElement') | 488 @DomName('HTMLBRElement.HTMLBRElement') |
| 489 @DocsEditable | 489 @DocsEditable() |
| 490 factory BRElement() => document.$dom_createElement("br"); | 490 factory BRElement() => document.$dom_createElement("br"); |
| 491 } | 491 } |
| 492 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 492 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 493 // for details. All rights reserved. Use of this source code is governed by a | 493 // for details. All rights reserved. Use of this source code is governed by a |
| 494 // BSD-style license that can be found in the LICENSE file. | 494 // BSD-style license that can be found in the LICENSE file. |
| 495 | 495 |
| 496 | 496 |
| 497 @DocsEditable | 497 @DocsEditable() |
| 498 @DomName('BarProp') | 498 @DomName('BarProp') |
| 499 // http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#bar
prop | 499 // http://www.whatwg.org/specs/web-apps/current-work/multipage/browsers.html#bar
prop |
| 500 @deprecated // standard | 500 @deprecated // standard |
| 501 class BarProp extends Interceptor native "BarProp" { | 501 class BarProp extends Interceptor native "BarProp" { |
| 502 | 502 |
| 503 @DomName('BarProp.visible') | 503 @DomName('BarProp.visible') |
| 504 @DocsEditable | 504 @DocsEditable() |
| 505 final bool visible; | 505 final bool visible; |
| 506 } | 506 } |
| 507 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 507 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 508 // for details. All rights reserved. Use of this source code is governed by a | 508 // for details. All rights reserved. Use of this source code is governed by a |
| 509 // BSD-style license that can be found in the LICENSE file. | 509 // BSD-style license that can be found in the LICENSE file. |
| 510 | 510 |
| 511 | 511 |
| 512 @DocsEditable | 512 @DocsEditable() |
| 513 @DomName('HTMLBaseElement') | 513 @DomName('HTMLBaseElement') |
| 514 class BaseElement extends _HTMLElement native "HTMLBaseElement" { | 514 class BaseElement extends _HTMLElement native "HTMLBaseElement" { |
| 515 // To suppress missing implicit constructor warnings. | 515 // To suppress missing implicit constructor warnings. |
| 516 factory BaseElement._() { throw new UnsupportedError("Not supported"); } | 516 factory BaseElement._() { throw new UnsupportedError("Not supported"); } |
| 517 | 517 |
| 518 @DomName('HTMLBaseElement.HTMLBaseElement') | 518 @DomName('HTMLBaseElement.HTMLBaseElement') |
| 519 @DocsEditable | 519 @DocsEditable() |
| 520 factory BaseElement() => document.$dom_createElement("base"); | 520 factory BaseElement() => document.$dom_createElement("base"); |
| 521 | 521 |
| 522 @DomName('HTMLBaseElement.href') | 522 @DomName('HTMLBaseElement.href') |
| 523 @DocsEditable | 523 @DocsEditable() |
| 524 String href; | 524 String href; |
| 525 | 525 |
| 526 @DomName('HTMLBaseElement.target') | 526 @DomName('HTMLBaseElement.target') |
| 527 @DocsEditable | 527 @DocsEditable() |
| 528 String target; | 528 String target; |
| 529 } | 529 } |
| 530 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 530 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 531 // for details. All rights reserved. Use of this source code is governed by a | 531 // for details. All rights reserved. Use of this source code is governed by a |
| 532 // BSD-style license that can be found in the LICENSE file. | 532 // BSD-style license that can be found in the LICENSE file. |
| 533 | 533 |
| 534 | 534 |
| 535 @DocsEditable | 535 @DocsEditable() |
| 536 @DomName('BeforeLoadEvent') | 536 @DomName('BeforeLoadEvent') |
| 537 @Experimental | 537 @Experimental() |
| 538 class BeforeLoadEvent extends Event native "BeforeLoadEvent" { | 538 class BeforeLoadEvent extends Event native "BeforeLoadEvent" { |
| 539 // To suppress missing implicit constructor warnings. | 539 // To suppress missing implicit constructor warnings. |
| 540 factory BeforeLoadEvent._() { throw new UnsupportedError("Not supported"); } | 540 factory BeforeLoadEvent._() { throw new UnsupportedError("Not supported"); } |
| 541 | 541 |
| 542 @DomName('BeforeLoadEvent.url') | 542 @DomName('BeforeLoadEvent.url') |
| 543 @DocsEditable | 543 @DocsEditable() |
| 544 final String url; | 544 final String url; |
| 545 } | 545 } |
| 546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 547 // for details. All rights reserved. Use of this source code is governed by a | 547 // for details. All rights reserved. Use of this source code is governed by a |
| 548 // BSD-style license that can be found in the LICENSE file. | 548 // BSD-style license that can be found in the LICENSE file. |
| 549 | 549 |
| 550 | 550 |
| 551 @DomName('Blob') | 551 @DomName('Blob') |
| 552 class Blob extends Interceptor native "Blob" { | 552 class Blob extends Interceptor native "Blob" { |
| 553 | 553 |
| 554 @DomName('Blob.size') | 554 @DomName('Blob.size') |
| 555 @DocsEditable | 555 @DocsEditable() |
| 556 final int size; | 556 final int size; |
| 557 | 557 |
| 558 @DomName('Blob.type') | 558 @DomName('Blob.type') |
| 559 @DocsEditable | 559 @DocsEditable() |
| 560 final String type; | 560 final String type; |
| 561 | 561 |
| 562 @DomName('Blob.slice') | 562 @DomName('Blob.slice') |
| 563 @DocsEditable | 563 @DocsEditable() |
| 564 Blob slice([int start, int end, String contentType]) native; | 564 Blob slice([int start, int end, String contentType]) native; |
| 565 | 565 |
| 566 factory Blob(List blobParts, [String type, String endings]) { | 566 factory Blob(List blobParts, [String type, String endings]) { |
| 567 // TODO: validate that blobParts is a JS Array and convert if not. | 567 // TODO: validate that blobParts is a JS Array and convert if not. |
| 568 // TODO: any coercions on the elements of blobParts, e.g. coerce a typed | 568 // TODO: any coercions on the elements of blobParts, e.g. coerce a typed |
| 569 // array to ArrayBuffer if it is a total view. | 569 // array to ArrayBuffer if it is a total view. |
| 570 if (type == null && endings == null) { | 570 if (type == null && endings == null) { |
| 571 return _create_1(blobParts); | 571 return _create_1(blobParts); |
| 572 } | 572 } |
| 573 var bag = _create_bag(); | 573 var bag = _create_bag(); |
| 574 if (type != null) _bag_set(bag, 'type', type); | 574 if (type != null) _bag_set(bag, 'type', type); |
| 575 if (endings != null) _bag_set(bag, 'endings', endings); | 575 if (endings != null) _bag_set(bag, 'endings', endings); |
| 576 return _create_2(blobParts, bag); | 576 return _create_2(blobParts, bag); |
| 577 } | 577 } |
| 578 | 578 |
| 579 static _create_1(parts) => JS('Blob', 'new Blob(#)', parts); | 579 static _create_1(parts) => JS('Blob', 'new Blob(#)', parts); |
| 580 static _create_2(parts, bag) => JS('Blob', 'new Blob(#, #)', parts, bag); | 580 static _create_2(parts, bag) => JS('Blob', 'new Blob(#, #)', parts, bag); |
| 581 | 581 |
| 582 static _create_bag() => JS('var', '{}'); | 582 static _create_bag() => JS('var', '{}'); |
| 583 static _bag_set(bag, key, value) { JS('void', '#[#] = #', bag, key, value); } | 583 static _bag_set(bag, key, value) { JS('void', '#[#] = #', bag, key, value); } |
| 584 } | 584 } |
| 585 | 585 |
| 586 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 586 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 587 // for details. All rights reserved. Use of this source code is governed by a | 587 // for details. All rights reserved. Use of this source code is governed by a |
| 588 // BSD-style license that can be found in the LICENSE file. | 588 // BSD-style license that can be found in the LICENSE file. |
| 589 | 589 |
| 590 | 590 |
| 591 @DocsEditable | 591 @DocsEditable() |
| 592 @DomName('HTMLBodyElement') | 592 @DomName('HTMLBodyElement') |
| 593 class BodyElement extends _HTMLElement native "HTMLBodyElement" { | 593 class BodyElement extends _HTMLElement native "HTMLBodyElement" { |
| 594 // To suppress missing implicit constructor warnings. | 594 // To suppress missing implicit constructor warnings. |
| 595 factory BodyElement._() { throw new UnsupportedError("Not supported"); } | 595 factory BodyElement._() { throw new UnsupportedError("Not supported"); } |
| 596 | 596 |
| 597 @DomName('HTMLBodyElement.blurEvent') | 597 @DomName('HTMLBodyElement.blurEvent') |
| 598 @DocsEditable | 598 @DocsEditable() |
| 599 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider<
Event>('blur'); | 599 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider<
Event>('blur'); |
| 600 | 600 |
| 601 @DomName('HTMLBodyElement.errorEvent') | 601 @DomName('HTMLBodyElement.errorEvent') |
| 602 @DocsEditable | 602 @DocsEditable() |
| 603 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 603 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 604 | 604 |
| 605 @DomName('HTMLBodyElement.focusEvent') | 605 @DomName('HTMLBodyElement.focusEvent') |
| 606 @DocsEditable | 606 @DocsEditable() |
| 607 static const EventStreamProvider<Event> focusEvent = const EventStreamProvider
<Event>('focus'); | 607 static const EventStreamProvider<Event> focusEvent = const EventStreamProvider
<Event>('focus'); |
| 608 | 608 |
| 609 @DomName('HTMLBodyElement.hashchangeEvent') | 609 @DomName('HTMLBodyElement.hashchangeEvent') |
| 610 @DocsEditable | 610 @DocsEditable() |
| 611 static const EventStreamProvider<Event> hashChangeEvent = const EventStreamPro
vider<Event>('hashchange'); | 611 static const EventStreamProvider<Event> hashChangeEvent = const EventStreamPro
vider<Event>('hashchange'); |
| 612 | 612 |
| 613 @DomName('HTMLBodyElement.loadEvent') | 613 @DomName('HTMLBodyElement.loadEvent') |
| 614 @DocsEditable | 614 @DocsEditable() |
| 615 static const EventStreamProvider<Event> loadEvent = const EventStreamProvider<
Event>('load'); | 615 static const EventStreamProvider<Event> loadEvent = const EventStreamProvider<
Event>('load'); |
| 616 | 616 |
| 617 @DomName('HTMLBodyElement.messageEvent') | 617 @DomName('HTMLBodyElement.messageEvent') |
| 618 @DocsEditable | 618 @DocsEditable() |
| 619 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea
mProvider<MessageEvent>('message'); | 619 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea
mProvider<MessageEvent>('message'); |
| 620 | 620 |
| 621 @DomName('HTMLBodyElement.offlineEvent') | 621 @DomName('HTMLBodyElement.offlineEvent') |
| 622 @DocsEditable | 622 @DocsEditable() |
| 623 static const EventStreamProvider<Event> offlineEvent = const EventStreamProvid
er<Event>('offline'); | 623 static const EventStreamProvider<Event> offlineEvent = const EventStreamProvid
er<Event>('offline'); |
| 624 | 624 |
| 625 @DomName('HTMLBodyElement.onlineEvent') | 625 @DomName('HTMLBodyElement.onlineEvent') |
| 626 @DocsEditable | 626 @DocsEditable() |
| 627 static const EventStreamProvider<Event> onlineEvent = const EventStreamProvide
r<Event>('online'); | 627 static const EventStreamProvider<Event> onlineEvent = const EventStreamProvide
r<Event>('online'); |
| 628 | 628 |
| 629 @DomName('HTMLBodyElement.popstateEvent') | 629 @DomName('HTMLBodyElement.popstateEvent') |
| 630 @DocsEditable | 630 @DocsEditable() |
| 631 static const EventStreamProvider<PopStateEvent> popStateEvent = const EventStr
eamProvider<PopStateEvent>('popstate'); | 631 static const EventStreamProvider<PopStateEvent> popStateEvent = const EventStr
eamProvider<PopStateEvent>('popstate'); |
| 632 | 632 |
| 633 @DomName('HTMLBodyElement.resizeEvent') | 633 @DomName('HTMLBodyElement.resizeEvent') |
| 634 @DocsEditable | 634 @DocsEditable() |
| 635 static const EventStreamProvider<Event> resizeEvent = const EventStreamProvide
r<Event>('resize'); | 635 static const EventStreamProvider<Event> resizeEvent = const EventStreamProvide
r<Event>('resize'); |
| 636 | 636 |
| 637 @DomName('HTMLBodyElement.storageEvent') | 637 @DomName('HTMLBodyElement.storageEvent') |
| 638 @DocsEditable | 638 @DocsEditable() |
| 639 static const EventStreamProvider<StorageEvent> storageEvent = const EventStrea
mProvider<StorageEvent>('storage'); | 639 static const EventStreamProvider<StorageEvent> storageEvent = const EventStrea
mProvider<StorageEvent>('storage'); |
| 640 | 640 |
| 641 @DomName('HTMLBodyElement.unloadEvent') | 641 @DomName('HTMLBodyElement.unloadEvent') |
| 642 @DocsEditable | 642 @DocsEditable() |
| 643 static const EventStreamProvider<Event> unloadEvent = const EventStreamProvide
r<Event>('unload'); | 643 static const EventStreamProvider<Event> unloadEvent = const EventStreamProvide
r<Event>('unload'); |
| 644 | 644 |
| 645 @DomName('HTMLBodyElement.HTMLBodyElement') | 645 @DomName('HTMLBodyElement.HTMLBodyElement') |
| 646 @DocsEditable | 646 @DocsEditable() |
| 647 factory BodyElement() => document.$dom_createElement("body"); | 647 factory BodyElement() => document.$dom_createElement("body"); |
| 648 | 648 |
| 649 @DomName('HTMLBodyElement.onblur') | 649 @DomName('HTMLBodyElement.onblur') |
| 650 @DocsEditable | 650 @DocsEditable() |
| 651 Stream<Event> get onBlur => blurEvent.forTarget(this); | 651 Stream<Event> get onBlur => blurEvent.forTarget(this); |
| 652 | 652 |
| 653 @DomName('HTMLBodyElement.onerror') | 653 @DomName('HTMLBodyElement.onerror') |
| 654 @DocsEditable | 654 @DocsEditable() |
| 655 Stream<Event> get onError => errorEvent.forTarget(this); | 655 Stream<Event> get onError => errorEvent.forTarget(this); |
| 656 | 656 |
| 657 @DomName('HTMLBodyElement.onfocus') | 657 @DomName('HTMLBodyElement.onfocus') |
| 658 @DocsEditable | 658 @DocsEditable() |
| 659 Stream<Event> get onFocus => focusEvent.forTarget(this); | 659 Stream<Event> get onFocus => focusEvent.forTarget(this); |
| 660 | 660 |
| 661 @DomName('HTMLBodyElement.onhashchange') | 661 @DomName('HTMLBodyElement.onhashchange') |
| 662 @DocsEditable | 662 @DocsEditable() |
| 663 Stream<Event> get onHashChange => hashChangeEvent.forTarget(this); | 663 Stream<Event> get onHashChange => hashChangeEvent.forTarget(this); |
| 664 | 664 |
| 665 @DomName('HTMLBodyElement.onload') | 665 @DomName('HTMLBodyElement.onload') |
| 666 @DocsEditable | 666 @DocsEditable() |
| 667 Stream<Event> get onLoad => loadEvent.forTarget(this); | 667 Stream<Event> get onLoad => loadEvent.forTarget(this); |
| 668 | 668 |
| 669 @DomName('HTMLBodyElement.onmessage') | 669 @DomName('HTMLBodyElement.onmessage') |
| 670 @DocsEditable | 670 @DocsEditable() |
| 671 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); | 671 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); |
| 672 | 672 |
| 673 @DomName('HTMLBodyElement.onoffline') | 673 @DomName('HTMLBodyElement.onoffline') |
| 674 @DocsEditable | 674 @DocsEditable() |
| 675 Stream<Event> get onOffline => offlineEvent.forTarget(this); | 675 Stream<Event> get onOffline => offlineEvent.forTarget(this); |
| 676 | 676 |
| 677 @DomName('HTMLBodyElement.ononline') | 677 @DomName('HTMLBodyElement.ononline') |
| 678 @DocsEditable | 678 @DocsEditable() |
| 679 Stream<Event> get onOnline => onlineEvent.forTarget(this); | 679 Stream<Event> get onOnline => onlineEvent.forTarget(this); |
| 680 | 680 |
| 681 @DomName('HTMLBodyElement.onpopstate') | 681 @DomName('HTMLBodyElement.onpopstate') |
| 682 @DocsEditable | 682 @DocsEditable() |
| 683 Stream<PopStateEvent> get onPopState => popStateEvent.forTarget(this); | 683 Stream<PopStateEvent> get onPopState => popStateEvent.forTarget(this); |
| 684 | 684 |
| 685 @DomName('HTMLBodyElement.onresize') | 685 @DomName('HTMLBodyElement.onresize') |
| 686 @DocsEditable | 686 @DocsEditable() |
| 687 Stream<Event> get onResize => resizeEvent.forTarget(this); | 687 Stream<Event> get onResize => resizeEvent.forTarget(this); |
| 688 | 688 |
| 689 @DomName('HTMLBodyElement.onstorage') | 689 @DomName('HTMLBodyElement.onstorage') |
| 690 @DocsEditable | 690 @DocsEditable() |
| 691 Stream<StorageEvent> get onStorage => storageEvent.forTarget(this); | 691 Stream<StorageEvent> get onStorage => storageEvent.forTarget(this); |
| 692 | 692 |
| 693 @DomName('HTMLBodyElement.onunload') | 693 @DomName('HTMLBodyElement.onunload') |
| 694 @DocsEditable | 694 @DocsEditable() |
| 695 Stream<Event> get onUnload => unloadEvent.forTarget(this); | 695 Stream<Event> get onUnload => unloadEvent.forTarget(this); |
| 696 } | 696 } |
| 697 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 697 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 698 // for details. All rights reserved. Use of this source code is governed by a | 698 // for details. All rights reserved. Use of this source code is governed by a |
| 699 // BSD-style license that can be found in the LICENSE file. | 699 // BSD-style license that can be found in the LICENSE file. |
| 700 | 700 |
| 701 | 701 |
| 702 @DocsEditable | 702 @DocsEditable() |
| 703 @DomName('HTMLButtonElement') | 703 @DomName('HTMLButtonElement') |
| 704 class ButtonElement extends _HTMLElement native "HTMLButtonElement" { | 704 class ButtonElement extends _HTMLElement native "HTMLButtonElement" { |
| 705 // To suppress missing implicit constructor warnings. | 705 // To suppress missing implicit constructor warnings. |
| 706 factory ButtonElement._() { throw new UnsupportedError("Not supported"); } | 706 factory ButtonElement._() { throw new UnsupportedError("Not supported"); } |
| 707 | 707 |
| 708 @DomName('HTMLButtonElement.HTMLButtonElement') | 708 @DomName('HTMLButtonElement.HTMLButtonElement') |
| 709 @DocsEditable | 709 @DocsEditable() |
| 710 factory ButtonElement() => document.$dom_createElement("button"); | 710 factory ButtonElement() => document.$dom_createElement("button"); |
| 711 | 711 |
| 712 @DomName('HTMLButtonElement.autofocus') | 712 @DomName('HTMLButtonElement.autofocus') |
| 713 @DocsEditable | 713 @DocsEditable() |
| 714 bool autofocus; | 714 bool autofocus; |
| 715 | 715 |
| 716 @DomName('HTMLButtonElement.disabled') | 716 @DomName('HTMLButtonElement.disabled') |
| 717 @DocsEditable | 717 @DocsEditable() |
| 718 bool disabled; | 718 bool disabled; |
| 719 | 719 |
| 720 @DomName('HTMLButtonElement.form') | 720 @DomName('HTMLButtonElement.form') |
| 721 @DocsEditable | 721 @DocsEditable() |
| 722 final FormElement form; | 722 final FormElement form; |
| 723 | 723 |
| 724 @DomName('HTMLButtonElement.formAction') | 724 @DomName('HTMLButtonElement.formAction') |
| 725 @DocsEditable | 725 @DocsEditable() |
| 726 String formAction; | 726 String formAction; |
| 727 | 727 |
| 728 @DomName('HTMLButtonElement.formEnctype') | 728 @DomName('HTMLButtonElement.formEnctype') |
| 729 @DocsEditable | 729 @DocsEditable() |
| 730 String formEnctype; | 730 String formEnctype; |
| 731 | 731 |
| 732 @DomName('HTMLButtonElement.formMethod') | 732 @DomName('HTMLButtonElement.formMethod') |
| 733 @DocsEditable | 733 @DocsEditable() |
| 734 String formMethod; | 734 String formMethod; |
| 735 | 735 |
| 736 @DomName('HTMLButtonElement.formNoValidate') | 736 @DomName('HTMLButtonElement.formNoValidate') |
| 737 @DocsEditable | 737 @DocsEditable() |
| 738 bool formNoValidate; | 738 bool formNoValidate; |
| 739 | 739 |
| 740 @DomName('HTMLButtonElement.formTarget') | 740 @DomName('HTMLButtonElement.formTarget') |
| 741 @DocsEditable | 741 @DocsEditable() |
| 742 String formTarget; | 742 String formTarget; |
| 743 | 743 |
| 744 @DomName('HTMLButtonElement.labels') | 744 @DomName('HTMLButtonElement.labels') |
| 745 @DocsEditable | 745 @DocsEditable() |
| 746 @Unstable | 746 @Unstable() |
| 747 @Returns('NodeList') | 747 @Returns('NodeList') |
| 748 @Creates('NodeList') | 748 @Creates('NodeList') |
| 749 final List<Node> labels; | 749 final List<Node> labels; |
| 750 | 750 |
| 751 @DomName('HTMLButtonElement.name') | 751 @DomName('HTMLButtonElement.name') |
| 752 @DocsEditable | 752 @DocsEditable() |
| 753 String name; | 753 String name; |
| 754 | 754 |
| 755 @DomName('HTMLButtonElement.type') | 755 @DomName('HTMLButtonElement.type') |
| 756 @DocsEditable | 756 @DocsEditable() |
| 757 String type; | 757 String type; |
| 758 | 758 |
| 759 @DomName('HTMLButtonElement.validationMessage') | 759 @DomName('HTMLButtonElement.validationMessage') |
| 760 @DocsEditable | 760 @DocsEditable() |
| 761 final String validationMessage; | 761 final String validationMessage; |
| 762 | 762 |
| 763 @DomName('HTMLButtonElement.validity') | 763 @DomName('HTMLButtonElement.validity') |
| 764 @DocsEditable | 764 @DocsEditable() |
| 765 final ValidityState validity; | 765 final ValidityState validity; |
| 766 | 766 |
| 767 @DomName('HTMLButtonElement.value') | 767 @DomName('HTMLButtonElement.value') |
| 768 @DocsEditable | 768 @DocsEditable() |
| 769 String value; | 769 String value; |
| 770 | 770 |
| 771 @DomName('HTMLButtonElement.willValidate') | 771 @DomName('HTMLButtonElement.willValidate') |
| 772 @DocsEditable | 772 @DocsEditable() |
| 773 final bool willValidate; | 773 final bool willValidate; |
| 774 | 774 |
| 775 @DomName('HTMLButtonElement.checkValidity') | 775 @DomName('HTMLButtonElement.checkValidity') |
| 776 @DocsEditable | 776 @DocsEditable() |
| 777 bool checkValidity() native; | 777 bool checkValidity() native; |
| 778 | 778 |
| 779 @DomName('HTMLButtonElement.setCustomValidity') | 779 @DomName('HTMLButtonElement.setCustomValidity') |
| 780 @DocsEditable | 780 @DocsEditable() |
| 781 void setCustomValidity(String error) native; | 781 void setCustomValidity(String error) native; |
| 782 } | 782 } |
| 783 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 783 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 784 // for details. All rights reserved. Use of this source code is governed by a | 784 // for details. All rights reserved. Use of this source code is governed by a |
| 785 // BSD-style license that can be found in the LICENSE file. | 785 // BSD-style license that can be found in the LICENSE file. |
| 786 | 786 |
| 787 | 787 |
| 788 @DocsEditable | 788 @DocsEditable() |
| 789 @DomName('CDATASection') | 789 @DomName('CDATASection') |
| 790 // http://dom.spec.whatwg.org/#cdatasection | 790 // http://dom.spec.whatwg.org/#cdatasection |
| 791 @deprecated // deprecated | 791 @deprecated // deprecated |
| 792 class CDataSection extends Text native "CDATASection" { | 792 class CDataSection extends Text native "CDATASection" { |
| 793 // To suppress missing implicit constructor warnings. | 793 // To suppress missing implicit constructor warnings. |
| 794 factory CDataSection._() { throw new UnsupportedError("Not supported"); } | 794 factory CDataSection._() { throw new UnsupportedError("Not supported"); } |
| 795 } | 795 } |
| 796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 796 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 797 // for details. All rights reserved. Use of this source code is governed by a | 797 // for details. All rights reserved. Use of this source code is governed by a |
| 798 // BSD-style license that can be found in the LICENSE file. | 798 // BSD-style license that can be found in the LICENSE file. |
| 799 | 799 |
| 800 | 800 |
| 801 @DocsEditable | 801 @DocsEditable() |
| 802 @DomName('Canvas2DContextAttributes') | 802 @DomName('Canvas2DContextAttributes') |
| 803 // http://wiki.whatwg.org/wiki/CanvasOpaque#Suggested_IDL | 803 // http://wiki.whatwg.org/wiki/CanvasOpaque#Suggested_IDL |
| 804 @Experimental | 804 @Experimental() |
| 805 class Canvas2DContextAttributes extends Interceptor native "Canvas2DContextAttri
butes" { | 805 class Canvas2DContextAttributes extends Interceptor native "Canvas2DContextAttri
butes" { |
| 806 | 806 |
| 807 @DomName('Canvas2DContextAttributes.alpha') | 807 @DomName('Canvas2DContextAttributes.alpha') |
| 808 @DocsEditable | 808 @DocsEditable() |
| 809 bool alpha; | 809 bool alpha; |
| 810 } | 810 } |
| 811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 812 // for details. All rights reserved. Use of this source code is governed by a | 812 // for details. All rights reserved. Use of this source code is governed by a |
| 813 // BSD-style license that can be found in the LICENSE file. | 813 // BSD-style license that can be found in the LICENSE file. |
| 814 | 814 |
| 815 | 815 |
| 816 @DomName('HTMLCanvasElement') | 816 @DomName('HTMLCanvasElement') |
| 817 class CanvasElement extends _HTMLElement implements CanvasImageSource native "HT
MLCanvasElement" { | 817 class CanvasElement extends _HTMLElement implements CanvasImageSource native "HT
MLCanvasElement" { |
| 818 // To suppress missing implicit constructor warnings. | 818 // To suppress missing implicit constructor warnings. |
| 819 factory CanvasElement._() { throw new UnsupportedError("Not supported"); } | 819 factory CanvasElement._() { throw new UnsupportedError("Not supported"); } |
| 820 | 820 |
| 821 @DomName('HTMLCanvasElement.webglcontextlostEvent') | 821 @DomName('HTMLCanvasElement.webglcontextlostEvent') |
| 822 @DocsEditable | 822 @DocsEditable() |
| 823 static const EventStreamProvider<gl.ContextEvent> webGlContextLostEvent = cons
t EventStreamProvider<gl.ContextEvent>('webglcontextlost'); | 823 static const EventStreamProvider<gl.ContextEvent> webGlContextLostEvent = cons
t EventStreamProvider<gl.ContextEvent>('webglcontextlost'); |
| 824 | 824 |
| 825 @DomName('HTMLCanvasElement.webglcontextrestoredEvent') | 825 @DomName('HTMLCanvasElement.webglcontextrestoredEvent') |
| 826 @DocsEditable | 826 @DocsEditable() |
| 827 static const EventStreamProvider<gl.ContextEvent> webGlContextRestoredEvent =
const EventStreamProvider<gl.ContextEvent>('webglcontextrestored'); | 827 static const EventStreamProvider<gl.ContextEvent> webGlContextRestoredEvent =
const EventStreamProvider<gl.ContextEvent>('webglcontextrestored'); |
| 828 | 828 |
| 829 @DomName('HTMLCanvasElement.HTMLCanvasElement') | 829 @DomName('HTMLCanvasElement.HTMLCanvasElement') |
| 830 @DocsEditable | 830 @DocsEditable() |
| 831 factory CanvasElement({int width, int height}) { | 831 factory CanvasElement({int width, int height}) { |
| 832 var e = document.$dom_createElement("canvas"); | 832 var e = document.$dom_createElement("canvas"); |
| 833 if (width != null) e.width = width; | 833 if (width != null) e.width = width; |
| 834 if (height != null) e.height = height; | 834 if (height != null) e.height = height; |
| 835 return e; | 835 return e; |
| 836 } | 836 } |
| 837 | 837 |
| 838 /// The height of this canvas element in CSS pixels. | 838 /// The height of this canvas element in CSS pixels. |
| 839 @DomName('HTMLCanvasElement.height') | 839 @DomName('HTMLCanvasElement.height') |
| 840 @DocsEditable | 840 @DocsEditable() |
| 841 int height; | 841 int height; |
| 842 | 842 |
| 843 /// The width of this canvas element in CSS pixels. | 843 /// The width of this canvas element in CSS pixels. |
| 844 @DomName('HTMLCanvasElement.width') | 844 @DomName('HTMLCanvasElement.width') |
| 845 @DocsEditable | 845 @DocsEditable() |
| 846 int width; | 846 int width; |
| 847 | 847 |
| 848 @DomName('HTMLCanvasElement.getContext') | 848 @DomName('HTMLCanvasElement.getContext') |
| 849 @DocsEditable | 849 @DocsEditable() |
| 850 CanvasRenderingContext getContext(String contextId, [Map attrs]) { | 850 CanvasRenderingContext getContext(String contextId, [Map attrs]) { |
| 851 if (attrs != null) { | 851 if (attrs != null) { |
| 852 var attrs_1 = convertDartToNative_Dictionary(attrs); | 852 var attrs_1 = convertDartToNative_Dictionary(attrs); |
| 853 return _getContext_1(contextId, attrs_1); | 853 return _getContext_1(contextId, attrs_1); |
| 854 } | 854 } |
| 855 return _getContext_2(contextId); | 855 return _getContext_2(contextId); |
| 856 } | 856 } |
| 857 @JSName('getContext') | 857 @JSName('getContext') |
| 858 @DomName('HTMLCanvasElement.getContext') | 858 @DomName('HTMLCanvasElement.getContext') |
| 859 @DocsEditable | 859 @DocsEditable() |
| 860 CanvasRenderingContext _getContext_1(contextId, attrs) native; | 860 CanvasRenderingContext _getContext_1(contextId, attrs) native; |
| 861 @JSName('getContext') | 861 @JSName('getContext') |
| 862 @DomName('HTMLCanvasElement.getContext') | 862 @DomName('HTMLCanvasElement.getContext') |
| 863 @DocsEditable | 863 @DocsEditable() |
| 864 CanvasRenderingContext _getContext_2(contextId) native; | 864 CanvasRenderingContext _getContext_2(contextId) native; |
| 865 | 865 |
| 866 @JSName('toDataURL') | 866 @JSName('toDataURL') |
| 867 /** | 867 /** |
| 868 * Returns a data URI containing a representation of the image in the | 868 * Returns a data URI containing a representation of the image in the |
| 869 * format specified by type (defaults to 'image/png'). | 869 * format specified by type (defaults to 'image/png'). |
| 870 * | 870 * |
| 871 * Data Uri format is as follow `data:[<MIME-type>][;charset=<encoding>][;base
64],<data>` | 871 * Data Uri format is as follow `data:[<MIME-type>][;charset=<encoding>][;base
64],<data>` |
| 872 * | 872 * |
| 873 * Optional parameter [quality] in the range of 0.0 and 1.0 can be used when r
equesting [type] | 873 * Optional parameter [quality] in the range of 0.0 and 1.0 can be used when r
equesting [type] |
| (...skipping 24 matching lines...) Expand all Loading... |
| 898 * | 898 * |
| 899 * See also: | 899 * See also: |
| 900 * | 900 * |
| 901 * * [Data URI Scheme](http://en.wikipedia.org/wiki/Data_URI_scheme) from Wiki
pedia. | 901 * * [Data URI Scheme](http://en.wikipedia.org/wiki/Data_URI_scheme) from Wiki
pedia. |
| 902 * | 902 * |
| 903 * * [HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/DOM/HTMLCanv
asElement) from MDN. | 903 * * [HTMLCanvasElement](https://developer.mozilla.org/en-US/docs/DOM/HTMLCanv
asElement) from MDN. |
| 904 * | 904 * |
| 905 * * [toDataUrl](http://dev.w3.org/html5/spec/the-canvas-element.html#dom-canv
as-todataurl) from W3C. | 905 * * [toDataUrl](http://dev.w3.org/html5/spec/the-canvas-element.html#dom-canv
as-todataurl) from W3C. |
| 906 */ | 906 */ |
| 907 @DomName('HTMLCanvasElement.toDataURL') | 907 @DomName('HTMLCanvasElement.toDataURL') |
| 908 @DocsEditable | 908 @DocsEditable() |
| 909 String toDataUrl(String type, [num quality]) native; | 909 String toDataUrl(String type, [num quality]) native; |
| 910 | 910 |
| 911 @DomName('HTMLCanvasElement.onwebglcontextlost') | 911 @DomName('HTMLCanvasElement.onwebglcontextlost') |
| 912 @DocsEditable | 912 @DocsEditable() |
| 913 Stream<gl.ContextEvent> get onWebGlContextLost => webGlContextLostEvent.forTar
get(this); | 913 Stream<gl.ContextEvent> get onWebGlContextLost => webGlContextLostEvent.forTar
get(this); |
| 914 | 914 |
| 915 @DomName('HTMLCanvasElement.onwebglcontextrestored') | 915 @DomName('HTMLCanvasElement.onwebglcontextrestored') |
| 916 @DocsEditable | 916 @DocsEditable() |
| 917 Stream<gl.ContextEvent> get onWebGlContextRestored => webGlContextRestoredEven
t.forTarget(this); | 917 Stream<gl.ContextEvent> get onWebGlContextRestored => webGlContextRestoredEven
t.forTarget(this); |
| 918 | 918 |
| 919 /** An API for drawing on this canvas. */ | 919 /** An API for drawing on this canvas. */ |
| 920 CanvasRenderingContext2D get context2D => | 920 CanvasRenderingContext2D get context2D => |
| 921 JS('Null|CanvasRenderingContext2D', '#.getContext(#)', this, '2d'); | 921 JS('Null|CanvasRenderingContext2D', '#.getContext(#)', this, '2d'); |
| 922 | 922 |
| 923 @deprecated | 923 @deprecated |
| 924 CanvasRenderingContext2D get context2d => this.context2D; | 924 CanvasRenderingContext2D get context2d => this.context2D; |
| 925 | 925 |
| 926 @SupportedBrowser(SupportedBrowser.CHROME) | 926 @SupportedBrowser(SupportedBrowser.CHROME) |
| 927 @SupportedBrowser(SupportedBrowser.FIREFOX) | 927 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 928 @Experimental | 928 @Experimental() |
| 929 gl.RenderingContext getContext3d({alpha: true, depth: true, stencil: false, | 929 gl.RenderingContext getContext3d({alpha: true, depth: true, stencil: false, |
| 930 antialias: true, premultipliedAlpha: true, preserveDrawingBuffer: false}) { | 930 antialias: true, premultipliedAlpha: true, preserveDrawingBuffer: false}) { |
| 931 | 931 |
| 932 var options = { | 932 var options = { |
| 933 'alpha': alpha, | 933 'alpha': alpha, |
| 934 'depth': depth, | 934 'depth': depth, |
| 935 'stencil': stencil, | 935 'stencil': stencil, |
| 936 'antialias': antialias, | 936 'antialias': antialias, |
| 937 'premultipliedAlpha': premultipliedAlpha, | 937 'premultipliedAlpha': premultipliedAlpha, |
| 938 'preserveDrawingBuffer': preserveDrawingBuffer, | 938 'preserveDrawingBuffer': preserveDrawingBuffer, |
| 939 }; | 939 }; |
| 940 var context = getContext('webgl', options); | 940 var context = getContext('webgl', options); |
| 941 if (context == null) { | 941 if (context == null) { |
| 942 context = getContext('experimental-webgl', options); | 942 context = getContext('experimental-webgl', options); |
| 943 } | 943 } |
| 944 return context; | 944 return context; |
| 945 } | 945 } |
| 946 } | 946 } |
| 947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 948 // for details. All rights reserved. Use of this source code is governed by a | 948 // for details. All rights reserved. Use of this source code is governed by a |
| 949 // BSD-style license that can be found in the LICENSE file. | 949 // BSD-style license that can be found in the LICENSE file. |
| 950 | 950 |
| 951 | 951 |
| 952 @DocsEditable | 952 @DocsEditable() |
| 953 /** | 953 /** |
| 954 * An opaque canvas object representing a gradient. | 954 * An opaque canvas object representing a gradient. |
| 955 * | 955 * |
| 956 * Created by calling [createLinearGradient] or [createRadialGradient] on a | 956 * Created by calling [createLinearGradient] or [createRadialGradient] on a |
| 957 * [CanvasRenderingContext2D] object. | 957 * [CanvasRenderingContext2D] object. |
| 958 * | 958 * |
| 959 * Example usage: | 959 * Example usage: |
| 960 * | 960 * |
| 961 * var canvas = new CanvasElement(width: 600, height: 600); | 961 * var canvas = new CanvasElement(width: 600, height: 600); |
| 962 * var ctx = canvas.context2D; | 962 * var ctx = canvas.context2D; |
| (...skipping 22 matching lines...) Expand all Loading... |
| 985 /** | 985 /** |
| 986 * Adds a color stop to this gradient at the offset. | 986 * Adds a color stop to this gradient at the offset. |
| 987 * | 987 * |
| 988 * The [offset] can range between 0.0 and 1.0. | 988 * The [offset] can range between 0.0 and 1.0. |
| 989 * | 989 * |
| 990 * See also: | 990 * See also: |
| 991 * | 991 * |
| 992 * * [Multiple Color Stops](https://developer.mozilla.org/en-US/docs/CSS/linea
r-gradient#Gradient_with_multiple_color_stops) from MDN. | 992 * * [Multiple Color Stops](https://developer.mozilla.org/en-US/docs/CSS/linea
r-gradient#Gradient_with_multiple_color_stops) from MDN. |
| 993 */ | 993 */ |
| 994 @DomName('CanvasGradient.addColorStop') | 994 @DomName('CanvasGradient.addColorStop') |
| 995 @DocsEditable | 995 @DocsEditable() |
| 996 void addColorStop(num offset, String color) native; | 996 void addColorStop(num offset, String color) native; |
| 997 } | 997 } |
| 998 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 998 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 999 // for details. All rights reserved. Use of this source code is governed by a | 999 // for details. All rights reserved. Use of this source code is governed by a |
| 1000 // BSD-style license that can be found in the LICENSE file. | 1000 // BSD-style license that can be found in the LICENSE file. |
| 1001 | 1001 |
| 1002 | 1002 |
| 1003 @DocsEditable | 1003 @DocsEditable() |
| 1004 /** | 1004 /** |
| 1005 * An opaque object representing a pattern of image, canvas, or video. | 1005 * An opaque object representing a pattern of image, canvas, or video. |
| 1006 * | 1006 * |
| 1007 * Created by calling [createPattern] on a [CanvasRenderingContext2D] object. | 1007 * Created by calling [createPattern] on a [CanvasRenderingContext2D] object. |
| 1008 * | 1008 * |
| 1009 * Example usage: | 1009 * Example usage: |
| 1010 * | 1010 * |
| 1011 * var canvas = new CanvasElement(width: 600, height: 600); | 1011 * var canvas = new CanvasElement(width: 600, height: 600); |
| 1012 * var ctx = canvas.context2D; | 1012 * var ctx = canvas.context2D; |
| 1013 * var img = new ImageElement(); | 1013 * var img = new ImageElement(); |
| (...skipping 15 matching lines...) Expand all Loading... |
| 1029 * * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvaspatt
ern) from W3C. | 1029 * * [CanvasPattern](http://www.w3.org/TR/2010/WD-2dcontext-20100304/#canvaspatt
ern) from W3C. |
| 1030 */ | 1030 */ |
| 1031 @DomName('CanvasPattern') | 1031 @DomName('CanvasPattern') |
| 1032 class CanvasPattern extends Interceptor native "CanvasPattern" { | 1032 class CanvasPattern extends Interceptor native "CanvasPattern" { |
| 1033 } | 1033 } |
| 1034 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1034 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1035 // for details. All rights reserved. Use of this source code is governed by a | 1035 // for details. All rights reserved. Use of this source code is governed by a |
| 1036 // BSD-style license that can be found in the LICENSE file. | 1036 // BSD-style license that can be found in the LICENSE file. |
| 1037 | 1037 |
| 1038 | 1038 |
| 1039 @DocsEditable | 1039 @DocsEditable() |
| 1040 /** | 1040 /** |
| 1041 * A rendering context for a canvas element. | 1041 * A rendering context for a canvas element. |
| 1042 * | 1042 * |
| 1043 * This context is extended by [CanvasRenderingContext2D] and | 1043 * This context is extended by [CanvasRenderingContext2D] and |
| 1044 * [WebGLRenderingContext]. | 1044 * [WebGLRenderingContext]. |
| 1045 */ | 1045 */ |
| 1046 @DomName('CanvasRenderingContext') | 1046 @DomName('CanvasRenderingContext') |
| 1047 class CanvasRenderingContext extends Interceptor native "CanvasRenderingContext"
{ | 1047 class CanvasRenderingContext extends Interceptor native "CanvasRenderingContext"
{ |
| 1048 | 1048 |
| 1049 /// Reference to the canvas element to which this context belongs. | 1049 /// Reference to the canvas element to which this context belongs. |
| 1050 @DomName('CanvasRenderingContext.canvas') | 1050 @DomName('CanvasRenderingContext.canvas') |
| 1051 @DocsEditable | 1051 @DocsEditable() |
| 1052 final CanvasElement canvas; | 1052 final CanvasElement canvas; |
| 1053 } | 1053 } |
| 1054 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1054 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1055 // for details. All rights reserved. Use of this source code is governed by a | 1055 // for details. All rights reserved. Use of this source code is governed by a |
| 1056 // BSD-style license that can be found in the LICENSE file. | 1056 // BSD-style license that can be found in the LICENSE file. |
| 1057 | 1057 |
| 1058 | 1058 |
| 1059 @DomName('CanvasRenderingContext2D') | 1059 @DomName('CanvasRenderingContext2D') |
| 1060 class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
eringContext2D" { | 1060 class CanvasRenderingContext2D extends CanvasRenderingContext native "CanvasRend
eringContext2D" { |
| 1061 // To suppress missing implicit constructor warnings. | 1061 // To suppress missing implicit constructor warnings. |
| 1062 factory CanvasRenderingContext2D._() { throw new UnsupportedError("Not support
ed"); } | 1062 factory CanvasRenderingContext2D._() { throw new UnsupportedError("Not support
ed"); } |
| 1063 | 1063 |
| 1064 @DomName('CanvasRenderingContext2D.currentPath') | 1064 @DomName('CanvasRenderingContext2D.currentPath') |
| 1065 @DocsEditable | 1065 @DocsEditable() |
| 1066 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-elem
ent.html#path-objects | 1066 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-elem
ent.html#path-objects |
| 1067 @Experimental | 1067 @Experimental() |
| 1068 Path currentPath; | 1068 Path currentPath; |
| 1069 | 1069 |
| 1070 @DomName('CanvasRenderingContext2D.fillStyle') | 1070 @DomName('CanvasRenderingContext2D.fillStyle') |
| 1071 @DocsEditable | 1071 @DocsEditable() |
| 1072 @Creates('String|CanvasGradient|CanvasPattern') | 1072 @Creates('String|CanvasGradient|CanvasPattern') |
| 1073 @Returns('String|CanvasGradient|CanvasPattern') | 1073 @Returns('String|CanvasGradient|CanvasPattern') |
| 1074 dynamic fillStyle; | 1074 dynamic fillStyle; |
| 1075 | 1075 |
| 1076 @DomName('CanvasRenderingContext2D.font') | 1076 @DomName('CanvasRenderingContext2D.font') |
| 1077 @DocsEditable | 1077 @DocsEditable() |
| 1078 String font; | 1078 String font; |
| 1079 | 1079 |
| 1080 @DomName('CanvasRenderingContext2D.globalAlpha') | 1080 @DomName('CanvasRenderingContext2D.globalAlpha') |
| 1081 @DocsEditable | 1081 @DocsEditable() |
| 1082 num globalAlpha; | 1082 num globalAlpha; |
| 1083 | 1083 |
| 1084 @DomName('CanvasRenderingContext2D.globalCompositeOperation') | 1084 @DomName('CanvasRenderingContext2D.globalCompositeOperation') |
| 1085 @DocsEditable | 1085 @DocsEditable() |
| 1086 String globalCompositeOperation; | 1086 String globalCompositeOperation; |
| 1087 | 1087 |
| 1088 @DomName('CanvasRenderingContext2D.lineCap') | 1088 @DomName('CanvasRenderingContext2D.lineCap') |
| 1089 @DocsEditable | 1089 @DocsEditable() |
| 1090 String lineCap; | 1090 String lineCap; |
| 1091 | 1091 |
| 1092 @DomName('CanvasRenderingContext2D.lineJoin') | 1092 @DomName('CanvasRenderingContext2D.lineJoin') |
| 1093 @DocsEditable | 1093 @DocsEditable() |
| 1094 String lineJoin; | 1094 String lineJoin; |
| 1095 | 1095 |
| 1096 @DomName('CanvasRenderingContext2D.lineWidth') | 1096 @DomName('CanvasRenderingContext2D.lineWidth') |
| 1097 @DocsEditable | 1097 @DocsEditable() |
| 1098 num lineWidth; | 1098 num lineWidth; |
| 1099 | 1099 |
| 1100 @DomName('CanvasRenderingContext2D.miterLimit') | 1100 @DomName('CanvasRenderingContext2D.miterLimit') |
| 1101 @DocsEditable | 1101 @DocsEditable() |
| 1102 num miterLimit; | 1102 num miterLimit; |
| 1103 | 1103 |
| 1104 @DomName('CanvasRenderingContext2D.shadowBlur') | 1104 @DomName('CanvasRenderingContext2D.shadowBlur') |
| 1105 @DocsEditable | 1105 @DocsEditable() |
| 1106 num shadowBlur; | 1106 num shadowBlur; |
| 1107 | 1107 |
| 1108 @DomName('CanvasRenderingContext2D.shadowColor') | 1108 @DomName('CanvasRenderingContext2D.shadowColor') |
| 1109 @DocsEditable | 1109 @DocsEditable() |
| 1110 String shadowColor; | 1110 String shadowColor; |
| 1111 | 1111 |
| 1112 @DomName('CanvasRenderingContext2D.shadowOffsetX') | 1112 @DomName('CanvasRenderingContext2D.shadowOffsetX') |
| 1113 @DocsEditable | 1113 @DocsEditable() |
| 1114 num shadowOffsetX; | 1114 num shadowOffsetX; |
| 1115 | 1115 |
| 1116 @DomName('CanvasRenderingContext2D.shadowOffsetY') | 1116 @DomName('CanvasRenderingContext2D.shadowOffsetY') |
| 1117 @DocsEditable | 1117 @DocsEditable() |
| 1118 num shadowOffsetY; | 1118 num shadowOffsetY; |
| 1119 | 1119 |
| 1120 @DomName('CanvasRenderingContext2D.strokeStyle') | 1120 @DomName('CanvasRenderingContext2D.strokeStyle') |
| 1121 @DocsEditable | 1121 @DocsEditable() |
| 1122 @Creates('String|CanvasGradient|CanvasPattern') | 1122 @Creates('String|CanvasGradient|CanvasPattern') |
| 1123 @Returns('String|CanvasGradient|CanvasPattern') | 1123 @Returns('String|CanvasGradient|CanvasPattern') |
| 1124 dynamic strokeStyle; | 1124 dynamic strokeStyle; |
| 1125 | 1125 |
| 1126 @DomName('CanvasRenderingContext2D.textAlign') | 1126 @DomName('CanvasRenderingContext2D.textAlign') |
| 1127 @DocsEditable | 1127 @DocsEditable() |
| 1128 String textAlign; | 1128 String textAlign; |
| 1129 | 1129 |
| 1130 @DomName('CanvasRenderingContext2D.textBaseline') | 1130 @DomName('CanvasRenderingContext2D.textBaseline') |
| 1131 @DocsEditable | 1131 @DocsEditable() |
| 1132 String textBaseline; | 1132 String textBaseline; |
| 1133 | 1133 |
| 1134 @JSName('webkitBackingStorePixelRatio') | 1134 @JSName('webkitBackingStorePixelRatio') |
| 1135 @DomName('CanvasRenderingContext2D.webkitBackingStorePixelRatio') | 1135 @DomName('CanvasRenderingContext2D.webkitBackingStorePixelRatio') |
| 1136 @DocsEditable | 1136 @DocsEditable() |
| 1137 @SupportedBrowser(SupportedBrowser.CHROME) | 1137 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1138 @SupportedBrowser(SupportedBrowser.SAFARI) | 1138 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1139 @Experimental | 1139 @Experimental() |
| 1140 final num backingStorePixelRatio; | 1140 final num backingStorePixelRatio; |
| 1141 | 1141 |
| 1142 @JSName('webkitImageSmoothingEnabled') | 1142 @JSName('webkitImageSmoothingEnabled') |
| 1143 @DomName('CanvasRenderingContext2D.webkitImageSmoothingEnabled') | 1143 @DomName('CanvasRenderingContext2D.webkitImageSmoothingEnabled') |
| 1144 @DocsEditable | 1144 @DocsEditable() |
| 1145 @SupportedBrowser(SupportedBrowser.CHROME) | 1145 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1146 @SupportedBrowser(SupportedBrowser.SAFARI) | 1146 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1147 @Experimental | 1147 @Experimental() |
| 1148 bool imageSmoothingEnabled; | 1148 bool imageSmoothingEnabled; |
| 1149 | 1149 |
| 1150 @JSName('arc') | 1150 @JSName('arc') |
| 1151 @DomName('CanvasRenderingContext2D.arc') | 1151 @DomName('CanvasRenderingContext2D.arc') |
| 1152 @DocsEditable | 1152 @DocsEditable() |
| 1153 void $dom_arc(num x, num y, num radius, num startAngle, num endAngle, bool ant
iclockwise) native; | 1153 void $dom_arc(num x, num y, num radius, num startAngle, num endAngle, bool ant
iclockwise) native; |
| 1154 | 1154 |
| 1155 @DomName('CanvasRenderingContext2D.arcTo') | 1155 @DomName('CanvasRenderingContext2D.arcTo') |
| 1156 @DocsEditable | 1156 @DocsEditable() |
| 1157 void arcTo(num x1, num y1, num x2, num y2, num radius) native; | 1157 void arcTo(num x1, num y1, num x2, num y2, num radius) native; |
| 1158 | 1158 |
| 1159 @DomName('CanvasRenderingContext2D.beginPath') | 1159 @DomName('CanvasRenderingContext2D.beginPath') |
| 1160 @DocsEditable | 1160 @DocsEditable() |
| 1161 void beginPath() native; | 1161 void beginPath() native; |
| 1162 | 1162 |
| 1163 @DomName('CanvasRenderingContext2D.bezierCurveTo') | 1163 @DomName('CanvasRenderingContext2D.bezierCurveTo') |
| 1164 @DocsEditable | 1164 @DocsEditable() |
| 1165 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; | 1165 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; |
| 1166 | 1166 |
| 1167 @DomName('CanvasRenderingContext2D.clearRect') | 1167 @DomName('CanvasRenderingContext2D.clearRect') |
| 1168 @DocsEditable | 1168 @DocsEditable() |
| 1169 void clearRect(num x, num y, num width, num height) native; | 1169 void clearRect(num x, num y, num width, num height) native; |
| 1170 | 1170 |
| 1171 @DomName('CanvasRenderingContext2D.clip') | 1171 @DomName('CanvasRenderingContext2D.clip') |
| 1172 @DocsEditable | 1172 @DocsEditable() |
| 1173 void clip([String winding]) native; | 1173 void clip([String winding]) native; |
| 1174 | 1174 |
| 1175 @DomName('CanvasRenderingContext2D.closePath') | 1175 @DomName('CanvasRenderingContext2D.closePath') |
| 1176 @DocsEditable | 1176 @DocsEditable() |
| 1177 void closePath() native; | 1177 void closePath() native; |
| 1178 | 1178 |
| 1179 @DomName('CanvasRenderingContext2D.createImageData') | 1179 @DomName('CanvasRenderingContext2D.createImageData') |
| 1180 @DocsEditable | 1180 @DocsEditable() |
| 1181 @Creates('ImageData|=Object') | 1181 @Creates('ImageData|=Object') |
| 1182 ImageData createImageData(num sw, num sh) { | 1182 ImageData createImageData(num sw, num sh) { |
| 1183 return convertNativeToDart_ImageData(_createImageData_1(sw, sh)); | 1183 return convertNativeToDart_ImageData(_createImageData_1(sw, sh)); |
| 1184 } | 1184 } |
| 1185 @JSName('createImageData') | 1185 @JSName('createImageData') |
| 1186 @DomName('CanvasRenderingContext2D.createImageData') | 1186 @DomName('CanvasRenderingContext2D.createImageData') |
| 1187 @DocsEditable | 1187 @DocsEditable() |
| 1188 @Creates('ImageData|=Object') | 1188 @Creates('ImageData|=Object') |
| 1189 _createImageData_1(sw, sh) native; | 1189 _createImageData_1(sw, sh) native; |
| 1190 | 1190 |
| 1191 @DomName('CanvasRenderingContext2D.createImageData') | 1191 @DomName('CanvasRenderingContext2D.createImageData') |
| 1192 @DocsEditable | 1192 @DocsEditable() |
| 1193 @Creates('ImageData|=Object') | 1193 @Creates('ImageData|=Object') |
| 1194 ImageData createImageDataFromImageData(ImageData imagedata) { | 1194 ImageData createImageDataFromImageData(ImageData imagedata) { |
| 1195 var imagedata_1 = convertDartToNative_ImageData(imagedata); | 1195 var imagedata_1 = convertDartToNative_ImageData(imagedata); |
| 1196 return convertNativeToDart_ImageData(_createImageDataFromImageData_1(imageda
ta_1)); | 1196 return convertNativeToDart_ImageData(_createImageDataFromImageData_1(imageda
ta_1)); |
| 1197 } | 1197 } |
| 1198 @JSName('createImageData') | 1198 @JSName('createImageData') |
| 1199 @DomName('CanvasRenderingContext2D.createImageData') | 1199 @DomName('CanvasRenderingContext2D.createImageData') |
| 1200 @DocsEditable | 1200 @DocsEditable() |
| 1201 @Creates('ImageData|=Object') | 1201 @Creates('ImageData|=Object') |
| 1202 _createImageDataFromImageData_1(imagedata) native; | 1202 _createImageDataFromImageData_1(imagedata) native; |
| 1203 | 1203 |
| 1204 @DomName('CanvasRenderingContext2D.createLinearGradient') | 1204 @DomName('CanvasRenderingContext2D.createLinearGradient') |
| 1205 @DocsEditable | 1205 @DocsEditable() |
| 1206 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; | 1206 CanvasGradient createLinearGradient(num x0, num y0, num x1, num y1) native; |
| 1207 | 1207 |
| 1208 @DomName('CanvasRenderingContext2D.createPattern') | 1208 @DomName('CanvasRenderingContext2D.createPattern') |
| 1209 @DocsEditable | 1209 @DocsEditable() |
| 1210 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; | 1210 CanvasPattern createPattern(canvas_OR_image, String repetitionType) native; |
| 1211 | 1211 |
| 1212 @DomName('CanvasRenderingContext2D.createRadialGradient') | 1212 @DomName('CanvasRenderingContext2D.createRadialGradient') |
| 1213 @DocsEditable | 1213 @DocsEditable() |
| 1214 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) native; | 1214 CanvasGradient createRadialGradient(num x0, num y0, num r0, num x1, num y1, nu
m r1) native; |
| 1215 | 1215 |
| 1216 @DomName('CanvasRenderingContext2D.fill') | 1216 @DomName('CanvasRenderingContext2D.fill') |
| 1217 @DocsEditable | 1217 @DocsEditable() |
| 1218 void fill([String winding]) native; | 1218 void fill([String winding]) native; |
| 1219 | 1219 |
| 1220 @DomName('CanvasRenderingContext2D.fillRect') | 1220 @DomName('CanvasRenderingContext2D.fillRect') |
| 1221 @DocsEditable | 1221 @DocsEditable() |
| 1222 void fillRect(num x, num y, num width, num height) native; | 1222 void fillRect(num x, num y, num width, num height) native; |
| 1223 | 1223 |
| 1224 @DomName('CanvasRenderingContext2D.fillText') | 1224 @DomName('CanvasRenderingContext2D.fillText') |
| 1225 @DocsEditable | 1225 @DocsEditable() |
| 1226 void fillText(String text, num x, num y, [num maxWidth]) native; | 1226 void fillText(String text, num x, num y, [num maxWidth]) native; |
| 1227 | 1227 |
| 1228 @DomName('CanvasRenderingContext2D.getContextAttributes') | 1228 @DomName('CanvasRenderingContext2D.getContextAttributes') |
| 1229 @DocsEditable | 1229 @DocsEditable() |
| 1230 // http://wiki.whatwg.org/wiki/CanvasOpaque#Suggested_IDL | 1230 // http://wiki.whatwg.org/wiki/CanvasOpaque#Suggested_IDL |
| 1231 @Experimental | 1231 @Experimental() |
| 1232 Canvas2DContextAttributes getContextAttributes() native; | 1232 Canvas2DContextAttributes getContextAttributes() native; |
| 1233 | 1233 |
| 1234 @DomName('CanvasRenderingContext2D.getImageData') | 1234 @DomName('CanvasRenderingContext2D.getImageData') |
| 1235 @DocsEditable | 1235 @DocsEditable() |
| 1236 @Creates('ImageData|=Object') | 1236 @Creates('ImageData|=Object') |
| 1237 ImageData getImageData(num sx, num sy, num sw, num sh) { | 1237 ImageData getImageData(num sx, num sy, num sw, num sh) { |
| 1238 return convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); | 1238 return convertNativeToDart_ImageData(_getImageData_1(sx, sy, sw, sh)); |
| 1239 } | 1239 } |
| 1240 @JSName('getImageData') | 1240 @JSName('getImageData') |
| 1241 @DomName('CanvasRenderingContext2D.getImageData') | 1241 @DomName('CanvasRenderingContext2D.getImageData') |
| 1242 @DocsEditable | 1242 @DocsEditable() |
| 1243 @Creates('ImageData|=Object') | 1243 @Creates('ImageData|=Object') |
| 1244 _getImageData_1(sx, sy, sw, sh) native; | 1244 _getImageData_1(sx, sy, sw, sh) native; |
| 1245 | 1245 |
| 1246 @DomName('CanvasRenderingContext2D.getLineDash') | 1246 @DomName('CanvasRenderingContext2D.getLineDash') |
| 1247 @DocsEditable | 1247 @DocsEditable() |
| 1248 List<num> getLineDash() native; | 1248 List<num> getLineDash() native; |
| 1249 | 1249 |
| 1250 @DomName('CanvasRenderingContext2D.isPointInPath') | 1250 @DomName('CanvasRenderingContext2D.isPointInPath') |
| 1251 @DocsEditable | 1251 @DocsEditable() |
| 1252 bool isPointInPath(num x, num y, [String winding]) native; | 1252 bool isPointInPath(num x, num y, [String winding]) native; |
| 1253 | 1253 |
| 1254 @DomName('CanvasRenderingContext2D.isPointInStroke') | 1254 @DomName('CanvasRenderingContext2D.isPointInStroke') |
| 1255 @DocsEditable | 1255 @DocsEditable() |
| 1256 bool isPointInStroke(num x, num y) native; | 1256 bool isPointInStroke(num x, num y) native; |
| 1257 | 1257 |
| 1258 @DomName('CanvasRenderingContext2D.lineTo') | 1258 @DomName('CanvasRenderingContext2D.lineTo') |
| 1259 @DocsEditable | 1259 @DocsEditable() |
| 1260 void lineTo(num x, num y) native; | 1260 void lineTo(num x, num y) native; |
| 1261 | 1261 |
| 1262 @DomName('CanvasRenderingContext2D.measureText') | 1262 @DomName('CanvasRenderingContext2D.measureText') |
| 1263 @DocsEditable | 1263 @DocsEditable() |
| 1264 TextMetrics measureText(String text) native; | 1264 TextMetrics measureText(String text) native; |
| 1265 | 1265 |
| 1266 @DomName('CanvasRenderingContext2D.moveTo') | 1266 @DomName('CanvasRenderingContext2D.moveTo') |
| 1267 @DocsEditable | 1267 @DocsEditable() |
| 1268 void moveTo(num x, num y) native; | 1268 void moveTo(num x, num y) native; |
| 1269 | 1269 |
| 1270 @DomName('CanvasRenderingContext2D.putImageData') | 1270 @DomName('CanvasRenderingContext2D.putImageData') |
| 1271 @DocsEditable | 1271 @DocsEditable() |
| 1272 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY
, num dirtyWidth, num dirtyHeight]) { | 1272 void putImageData(ImageData imagedata, num dx, num dy, [num dirtyX, num dirtyY
, num dirtyWidth, num dirtyHeight]) { |
| 1273 if (dirtyX == null && dirtyY == null && dirtyWidth == null && dirtyHeight ==
null) { | 1273 if (dirtyX == null && dirtyY == null && dirtyWidth == null && dirtyHeight ==
null) { |
| 1274 var imagedata_1 = convertDartToNative_ImageData(imagedata); | 1274 var imagedata_1 = convertDartToNative_ImageData(imagedata); |
| 1275 _putImageData_1(imagedata_1, dx, dy); | 1275 _putImageData_1(imagedata_1, dx, dy); |
| 1276 return; | 1276 return; |
| 1277 } | 1277 } |
| 1278 if (dirtyHeight != null && dirtyWidth != null && dirtyY != null && dirtyX !=
null) { | 1278 if (dirtyHeight != null && dirtyWidth != null && dirtyY != null && dirtyX !=
null) { |
| 1279 var imagedata_2 = convertDartToNative_ImageData(imagedata); | 1279 var imagedata_2 = convertDartToNative_ImageData(imagedata); |
| 1280 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeig
ht); | 1280 _putImageData_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeig
ht); |
| 1281 return; | 1281 return; |
| 1282 } | 1282 } |
| 1283 throw new ArgumentError("Incorrect number or type of arguments"); | 1283 throw new ArgumentError("Incorrect number or type of arguments"); |
| 1284 } | 1284 } |
| 1285 @JSName('putImageData') | 1285 @JSName('putImageData') |
| 1286 @DomName('CanvasRenderingContext2D.putImageData') | 1286 @DomName('CanvasRenderingContext2D.putImageData') |
| 1287 @DocsEditable | 1287 @DocsEditable() |
| 1288 void _putImageData_1(imagedata, dx, dy) native; | 1288 void _putImageData_1(imagedata, dx, dy) native; |
| 1289 @JSName('putImageData') | 1289 @JSName('putImageData') |
| 1290 @DomName('CanvasRenderingContext2D.putImageData') | 1290 @DomName('CanvasRenderingContext2D.putImageData') |
| 1291 @DocsEditable | 1291 @DocsEditable() |
| 1292 void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeigh
t) native; | 1292 void _putImageData_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHeigh
t) native; |
| 1293 | 1293 |
| 1294 @DomName('CanvasRenderingContext2D.quadraticCurveTo') | 1294 @DomName('CanvasRenderingContext2D.quadraticCurveTo') |
| 1295 @DocsEditable | 1295 @DocsEditable() |
| 1296 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; | 1296 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; |
| 1297 | 1297 |
| 1298 @DomName('CanvasRenderingContext2D.rect') | 1298 @DomName('CanvasRenderingContext2D.rect') |
| 1299 @DocsEditable | 1299 @DocsEditable() |
| 1300 void rect(num x, num y, num width, num height) native; | 1300 void rect(num x, num y, num width, num height) native; |
| 1301 | 1301 |
| 1302 @DomName('CanvasRenderingContext2D.restore') | 1302 @DomName('CanvasRenderingContext2D.restore') |
| 1303 @DocsEditable | 1303 @DocsEditable() |
| 1304 void restore() native; | 1304 void restore() native; |
| 1305 | 1305 |
| 1306 @DomName('CanvasRenderingContext2D.rotate') | 1306 @DomName('CanvasRenderingContext2D.rotate') |
| 1307 @DocsEditable | 1307 @DocsEditable() |
| 1308 void rotate(num angle) native; | 1308 void rotate(num angle) native; |
| 1309 | 1309 |
| 1310 @DomName('CanvasRenderingContext2D.save') | 1310 @DomName('CanvasRenderingContext2D.save') |
| 1311 @DocsEditable | 1311 @DocsEditable() |
| 1312 void save() native; | 1312 void save() native; |
| 1313 | 1313 |
| 1314 @DomName('CanvasRenderingContext2D.scale') | 1314 @DomName('CanvasRenderingContext2D.scale') |
| 1315 @DocsEditable | 1315 @DocsEditable() |
| 1316 void scale(num sx, num sy) native; | 1316 void scale(num sx, num sy) native; |
| 1317 | 1317 |
| 1318 @DomName('CanvasRenderingContext2D.setLineDash') | 1318 @DomName('CanvasRenderingContext2D.setLineDash') |
| 1319 @DocsEditable | 1319 @DocsEditable() |
| 1320 void setLineDash(List<num> dash) native; | 1320 void setLineDash(List<num> dash) native; |
| 1321 | 1321 |
| 1322 @DomName('CanvasRenderingContext2D.setTransform') | 1322 @DomName('CanvasRenderingContext2D.setTransform') |
| 1323 @DocsEditable | 1323 @DocsEditable() |
| 1324 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; | 1324 void setTransform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
| 1325 | 1325 |
| 1326 @DomName('CanvasRenderingContext2D.stroke') | 1326 @DomName('CanvasRenderingContext2D.stroke') |
| 1327 @DocsEditable | 1327 @DocsEditable() |
| 1328 void stroke() native; | 1328 void stroke() native; |
| 1329 | 1329 |
| 1330 @DomName('CanvasRenderingContext2D.strokeRect') | 1330 @DomName('CanvasRenderingContext2D.strokeRect') |
| 1331 @DocsEditable | 1331 @DocsEditable() |
| 1332 void strokeRect(num x, num y, num width, num height) native; | 1332 void strokeRect(num x, num y, num width, num height) native; |
| 1333 | 1333 |
| 1334 @DomName('CanvasRenderingContext2D.strokeText') | 1334 @DomName('CanvasRenderingContext2D.strokeText') |
| 1335 @DocsEditable | 1335 @DocsEditable() |
| 1336 void strokeText(String text, num x, num y, [num maxWidth]) native; | 1336 void strokeText(String text, num x, num y, [num maxWidth]) native; |
| 1337 | 1337 |
| 1338 @DomName('CanvasRenderingContext2D.transform') | 1338 @DomName('CanvasRenderingContext2D.transform') |
| 1339 @DocsEditable | 1339 @DocsEditable() |
| 1340 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; | 1340 void transform(num m11, num m12, num m21, num m22, num dx, num dy) native; |
| 1341 | 1341 |
| 1342 @DomName('CanvasRenderingContext2D.translate') | 1342 @DomName('CanvasRenderingContext2D.translate') |
| 1343 @DocsEditable | 1343 @DocsEditable() |
| 1344 void translate(num tx, num ty) native; | 1344 void translate(num tx, num ty) native; |
| 1345 | 1345 |
| 1346 @DomName('CanvasRenderingContext2D.webkitGetImageDataHD') | 1346 @DomName('CanvasRenderingContext2D.webkitGetImageDataHD') |
| 1347 @DocsEditable | 1347 @DocsEditable() |
| 1348 @SupportedBrowser(SupportedBrowser.CHROME) | 1348 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1349 @SupportedBrowser(SupportedBrowser.SAFARI) | 1349 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1350 @Experimental | 1350 @Experimental() |
| 1351 @Creates('ImageData|=Object') | 1351 @Creates('ImageData|=Object') |
| 1352 ImageData getImageDataHD(num sx, num sy, num sw, num sh) { | 1352 ImageData getImageDataHD(num sx, num sy, num sw, num sh) { |
| 1353 return convertNativeToDart_ImageData(_getImageDataHD_1(sx, sy, sw, sh)); | 1353 return convertNativeToDart_ImageData(_getImageDataHD_1(sx, sy, sw, sh)); |
| 1354 } | 1354 } |
| 1355 @JSName('webkitGetImageDataHD') | 1355 @JSName('webkitGetImageDataHD') |
| 1356 @DomName('CanvasRenderingContext2D.webkitGetImageDataHD') | 1356 @DomName('CanvasRenderingContext2D.webkitGetImageDataHD') |
| 1357 @DocsEditable | 1357 @DocsEditable() |
| 1358 @SupportedBrowser(SupportedBrowser.CHROME) | 1358 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1359 @SupportedBrowser(SupportedBrowser.SAFARI) | 1359 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1360 @Experimental | 1360 @Experimental() |
| 1361 @Creates('ImageData|=Object') | 1361 @Creates('ImageData|=Object') |
| 1362 _getImageDataHD_1(sx, sy, sw, sh) native; | 1362 _getImageDataHD_1(sx, sy, sw, sh) native; |
| 1363 | 1363 |
| 1364 @DomName('CanvasRenderingContext2D.webkitPutImageDataHD') | 1364 @DomName('CanvasRenderingContext2D.webkitPutImageDataHD') |
| 1365 @DocsEditable | 1365 @DocsEditable() |
| 1366 @SupportedBrowser(SupportedBrowser.CHROME) | 1366 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1367 @SupportedBrowser(SupportedBrowser.SAFARI) | 1367 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1368 @Experimental | 1368 @Experimental() |
| 1369 void putImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirt
yY, num dirtyWidth, num dirtyHeight]) { | 1369 void putImageDataHD(ImageData imagedata, num dx, num dy, [num dirtyX, num dirt
yY, num dirtyWidth, num dirtyHeight]) { |
| 1370 if (dirtyX == null && dirtyY == null && dirtyWidth == null && dirtyHeight ==
null) { | 1370 if (dirtyX == null && dirtyY == null && dirtyWidth == null && dirtyHeight ==
null) { |
| 1371 var imagedata_1 = convertDartToNative_ImageData(imagedata); | 1371 var imagedata_1 = convertDartToNative_ImageData(imagedata); |
| 1372 _putImageDataHD_1(imagedata_1, dx, dy); | 1372 _putImageDataHD_1(imagedata_1, dx, dy); |
| 1373 return; | 1373 return; |
| 1374 } | 1374 } |
| 1375 if (dirtyHeight != null && dirtyWidth != null && dirtyY != null && dirtyX !=
null) { | 1375 if (dirtyHeight != null && dirtyWidth != null && dirtyY != null && dirtyX !=
null) { |
| 1376 var imagedata_2 = convertDartToNative_ImageData(imagedata); | 1376 var imagedata_2 = convertDartToNative_ImageData(imagedata); |
| 1377 _putImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHe
ight); | 1377 _putImageDataHD_2(imagedata_2, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHe
ight); |
| 1378 return; | 1378 return; |
| 1379 } | 1379 } |
| 1380 throw new ArgumentError("Incorrect number or type of arguments"); | 1380 throw new ArgumentError("Incorrect number or type of arguments"); |
| 1381 } | 1381 } |
| 1382 @JSName('webkitPutImageDataHD') | 1382 @JSName('webkitPutImageDataHD') |
| 1383 @DomName('CanvasRenderingContext2D.webkitPutImageDataHD') | 1383 @DomName('CanvasRenderingContext2D.webkitPutImageDataHD') |
| 1384 @DocsEditable | 1384 @DocsEditable() |
| 1385 @SupportedBrowser(SupportedBrowser.CHROME) | 1385 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1386 @SupportedBrowser(SupportedBrowser.SAFARI) | 1386 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1387 @Experimental | 1387 @Experimental() |
| 1388 void _putImageDataHD_1(imagedata, dx, dy) native; | 1388 void _putImageDataHD_1(imagedata, dx, dy) native; |
| 1389 @JSName('webkitPutImageDataHD') | 1389 @JSName('webkitPutImageDataHD') |
| 1390 @DomName('CanvasRenderingContext2D.webkitPutImageDataHD') | 1390 @DomName('CanvasRenderingContext2D.webkitPutImageDataHD') |
| 1391 @DocsEditable | 1391 @DocsEditable() |
| 1392 @SupportedBrowser(SupportedBrowser.CHROME) | 1392 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1393 @SupportedBrowser(SupportedBrowser.SAFARI) | 1393 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1394 @Experimental | 1394 @Experimental() |
| 1395 void _putImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHei
ght) native; | 1395 void _putImageDataHD_2(imagedata, dx, dy, dirtyX, dirtyY, dirtyWidth, dirtyHei
ght) native; |
| 1396 | 1396 |
| 1397 | 1397 |
| 1398 /** | 1398 /** |
| 1399 * Sets the color used inside shapes. | 1399 * Sets the color used inside shapes. |
| 1400 * [r], [g], [b] are 0-255, [a] is 0-1. | 1400 * [r], [g], [b] are 0-255, [a] is 0-1. |
| 1401 */ | 1401 */ |
| 1402 void setFillColorRgb(int r, int g, int b, [num a = 1]) { | 1402 void setFillColorRgb(int r, int g, int b, [num a = 1]) { |
| 1403 this.fillStyle = 'rgba($r, $g, $b, $a)'; | 1403 this.fillStyle = 'rgba($r, $g, $b, $a)'; |
| 1404 } | 1404 } |
| (...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1606 void set lineDashOffset(num value) => JS('void', | 1606 void set lineDashOffset(num value) => JS('void', |
| 1607 'typeof #.lineDashOffset != "undefined" ? #.lineDashOffset = # : ' | 1607 'typeof #.lineDashOffset != "undefined" ? #.lineDashOffset = # : ' |
| 1608 '#.webkitLineDashOffset = #', this, this, value, this, value); | 1608 '#.webkitLineDashOffset = #', this, this, value, this, value); |
| 1609 } | 1609 } |
| 1610 | 1610 |
| 1611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1611 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1612 // for details. All rights reserved. Use of this source code is governed by a | 1612 // for details. All rights reserved. Use of this source code is governed by a |
| 1613 // BSD-style license that can be found in the LICENSE file. | 1613 // BSD-style license that can be found in the LICENSE file. |
| 1614 | 1614 |
| 1615 | 1615 |
| 1616 @DocsEditable | 1616 @DocsEditable() |
| 1617 @DomName('CharacterData') | 1617 @DomName('CharacterData') |
| 1618 class CharacterData extends Node native "CharacterData" { | 1618 class CharacterData extends Node native "CharacterData" { |
| 1619 // To suppress missing implicit constructor warnings. | 1619 // To suppress missing implicit constructor warnings. |
| 1620 factory CharacterData._() { throw new UnsupportedError("Not supported"); } | 1620 factory CharacterData._() { throw new UnsupportedError("Not supported"); } |
| 1621 | 1621 |
| 1622 @DomName('CharacterData.data') | 1622 @DomName('CharacterData.data') |
| 1623 @DocsEditable | 1623 @DocsEditable() |
| 1624 String data; | 1624 String data; |
| 1625 | 1625 |
| 1626 @DomName('CharacterData.length') | 1626 @DomName('CharacterData.length') |
| 1627 @DocsEditable | 1627 @DocsEditable() |
| 1628 final int length; | 1628 final int length; |
| 1629 | 1629 |
| 1630 @DomName('CharacterData.nextElementSibling') | 1630 @DomName('CharacterData.nextElementSibling') |
| 1631 @DocsEditable | 1631 @DocsEditable() |
| 1632 final Element nextElementSibling; | 1632 final Element nextElementSibling; |
| 1633 | 1633 |
| 1634 @DomName('CharacterData.previousElementSibling') | 1634 @DomName('CharacterData.previousElementSibling') |
| 1635 @DocsEditable | 1635 @DocsEditable() |
| 1636 final Element previousElementSibling; | 1636 final Element previousElementSibling; |
| 1637 | 1637 |
| 1638 @DomName('CharacterData.appendData') | 1638 @DomName('CharacterData.appendData') |
| 1639 @DocsEditable | 1639 @DocsEditable() |
| 1640 void appendData(String data) native; | 1640 void appendData(String data) native; |
| 1641 | 1641 |
| 1642 @DomName('CharacterData.deleteData') | 1642 @DomName('CharacterData.deleteData') |
| 1643 @DocsEditable | 1643 @DocsEditable() |
| 1644 void deleteData(int offset, int length) native; | 1644 void deleteData(int offset, int length) native; |
| 1645 | 1645 |
| 1646 @DomName('CharacterData.insertData') | 1646 @DomName('CharacterData.insertData') |
| 1647 @DocsEditable | 1647 @DocsEditable() |
| 1648 void insertData(int offset, String data) native; | 1648 void insertData(int offset, String data) native; |
| 1649 | 1649 |
| 1650 @DomName('CharacterData.replaceData') | 1650 @DomName('CharacterData.replaceData') |
| 1651 @DocsEditable | 1651 @DocsEditable() |
| 1652 void replaceData(int offset, int length, String data) native; | 1652 void replaceData(int offset, int length, String data) native; |
| 1653 | 1653 |
| 1654 @DomName('CharacterData.substringData') | 1654 @DomName('CharacterData.substringData') |
| 1655 @DocsEditable | 1655 @DocsEditable() |
| 1656 String substringData(int offset, int length) native; | 1656 String substringData(int offset, int length) native; |
| 1657 } | 1657 } |
| 1658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1658 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1659 // for details. All rights reserved. Use of this source code is governed by a | 1659 // for details. All rights reserved. Use of this source code is governed by a |
| 1660 // BSD-style license that can be found in the LICENSE file. | 1660 // BSD-style license that can be found in the LICENSE file. |
| 1661 | 1661 |
| 1662 | 1662 |
| 1663 @DocsEditable | 1663 @DocsEditable() |
| 1664 @DomName('CloseEvent') | 1664 @DomName('CloseEvent') |
| 1665 class CloseEvent extends Event native "CloseEvent" { | 1665 class CloseEvent extends Event native "CloseEvent" { |
| 1666 // To suppress missing implicit constructor warnings. | 1666 // To suppress missing implicit constructor warnings. |
| 1667 factory CloseEvent._() { throw new UnsupportedError("Not supported"); } | 1667 factory CloseEvent._() { throw new UnsupportedError("Not supported"); } |
| 1668 | 1668 |
| 1669 @DomName('CloseEvent.code') | 1669 @DomName('CloseEvent.code') |
| 1670 @DocsEditable | 1670 @DocsEditable() |
| 1671 final int code; | 1671 final int code; |
| 1672 | 1672 |
| 1673 @DomName('CloseEvent.reason') | 1673 @DomName('CloseEvent.reason') |
| 1674 @DocsEditable | 1674 @DocsEditable() |
| 1675 final String reason; | 1675 final String reason; |
| 1676 | 1676 |
| 1677 @DomName('CloseEvent.wasClean') | 1677 @DomName('CloseEvent.wasClean') |
| 1678 @DocsEditable | 1678 @DocsEditable() |
| 1679 final bool wasClean; | 1679 final bool wasClean; |
| 1680 } | 1680 } |
| 1681 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1681 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1682 // for details. All rights reserved. Use of this source code is governed by a | 1682 // for details. All rights reserved. Use of this source code is governed by a |
| 1683 // BSD-style license that can be found in the LICENSE file. | 1683 // BSD-style license that can be found in the LICENSE file. |
| 1684 | 1684 |
| 1685 | 1685 |
| 1686 @DocsEditable | 1686 @DocsEditable() |
| 1687 @DomName('Comment') | 1687 @DomName('Comment') |
| 1688 class Comment extends CharacterData native "Comment" { | 1688 class Comment extends CharacterData native "Comment" { |
| 1689 // To suppress missing implicit constructor warnings. | 1689 // To suppress missing implicit constructor warnings. |
| 1690 factory Comment._() { throw new UnsupportedError("Not supported"); } | 1690 factory Comment._() { throw new UnsupportedError("Not supported"); } |
| 1691 | 1691 |
| 1692 @DomName('Comment.Comment') | 1692 @DomName('Comment.Comment') |
| 1693 @DocsEditable | 1693 @DocsEditable() |
| 1694 factory Comment([String data]) { | 1694 factory Comment([String data]) { |
| 1695 if (data != null) { | 1695 if (data != null) { |
| 1696 return Comment._create_1(data); | 1696 return Comment._create_1(data); |
| 1697 } | 1697 } |
| 1698 return Comment._create_2(); | 1698 return Comment._create_2(); |
| 1699 } | 1699 } |
| 1700 static Comment _create_1(data) => JS('Comment', 'new Comment(#)', data); | 1700 static Comment _create_1(data) => JS('Comment', 'new Comment(#)', data); |
| 1701 static Comment _create_2() => JS('Comment', 'new Comment()'); | 1701 static Comment _create_2() => JS('Comment', 'new Comment()'); |
| 1702 } | 1702 } |
| 1703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1704 // for details. All rights reserved. Use of this source code is governed by a | 1704 // for details. All rights reserved. Use of this source code is governed by a |
| 1705 // BSD-style license that can be found in the LICENSE file. | 1705 // BSD-style license that can be found in the LICENSE file. |
| 1706 | 1706 |
| 1707 | 1707 |
| 1708 @DocsEditable | 1708 @DocsEditable() |
| 1709 @DomName('Composition') | 1709 @DomName('Composition') |
| 1710 // http://www.w3.org/TR/ime-api/#idl-def-Composition | 1710 // http://www.w3.org/TR/ime-api/#idl-def-Composition |
| 1711 @Experimental | 1711 @Experimental() |
| 1712 class Composition extends Interceptor native "Composition" { | 1712 class Composition extends Interceptor native "Composition" { |
| 1713 | 1713 |
| 1714 @DomName('Composition.caret') | 1714 @DomName('Composition.caret') |
| 1715 @DocsEditable | 1715 @DocsEditable() |
| 1716 final Range caret; | 1716 final Range caret; |
| 1717 | 1717 |
| 1718 @DomName('Composition.text') | 1718 @DomName('Composition.text') |
| 1719 @DocsEditable | 1719 @DocsEditable() |
| 1720 final Node text; | 1720 final Node text; |
| 1721 } | 1721 } |
| 1722 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1722 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 1723 // for details. All rights reserved. Use of this source code is governed by a | 1723 // for details. All rights reserved. Use of this source code is governed by a |
| 1724 // BSD-style license that can be found in the LICENSE file. | 1724 // BSD-style license that can be found in the LICENSE file. |
| 1725 | 1725 |
| 1726 // WARNING: Do not edit - generated code. | 1726 // WARNING: Do not edit - generated code. |
| 1727 | 1727 |
| 1728 | 1728 |
| 1729 @DomName('CompositionEvent') | 1729 @DomName('CompositionEvent') |
| 1730 class CompositionEvent extends UIEvent native "CompositionEvent" { | 1730 class CompositionEvent extends UIEvent native "CompositionEvent" { |
| 1731 factory CompositionEvent(String type, | 1731 factory CompositionEvent(String type, |
| 1732 {bool canBubble: false, bool cancelable: false, Window view, | 1732 {bool canBubble: false, bool cancelable: false, Window view, |
| 1733 String data}) { | 1733 String data}) { |
| 1734 if (view == null) { | 1734 if (view == null) { |
| 1735 view = window; | 1735 view = window; |
| 1736 } | 1736 } |
| 1737 var e = document.$dom_createEvent("CompositionEvent"); | 1737 var e = document.$dom_createEvent("CompositionEvent"); |
| 1738 e.$dom_initCompositionEvent(type, canBubble, cancelable, view, data); | 1738 e.$dom_initCompositionEvent(type, canBubble, cancelable, view, data); |
| 1739 return e; | 1739 return e; |
| 1740 } | 1740 } |
| 1741 // To suppress missing implicit constructor warnings. | 1741 // To suppress missing implicit constructor warnings. |
| 1742 factory CompositionEvent._() { throw new UnsupportedError("Not supported"); } | 1742 factory CompositionEvent._() { throw new UnsupportedError("Not supported"); } |
| 1743 | 1743 |
| 1744 @DomName('CompositionEvent.data') | 1744 @DomName('CompositionEvent.data') |
| 1745 @DocsEditable | 1745 @DocsEditable() |
| 1746 final String data; | 1746 final String data; |
| 1747 | 1747 |
| 1748 @JSName('initCompositionEvent') | 1748 @JSName('initCompositionEvent') |
| 1749 @DomName('CompositionEvent.initCompositionEvent') | 1749 @DomName('CompositionEvent.initCompositionEvent') |
| 1750 @DocsEditable | 1750 @DocsEditable() |
| 1751 void $dom_initCompositionEvent(String typeArg, bool canBubbleArg, bool cancela
bleArg, Window viewArg, String dataArg) native; | 1751 void $dom_initCompositionEvent(String typeArg, bool canBubbleArg, bool cancela
bleArg, Window viewArg, String dataArg) native; |
| 1752 | 1752 |
| 1753 } | 1753 } |
| 1754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1754 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1755 // for details. All rights reserved. Use of this source code is governed by a | 1755 // for details. All rights reserved. Use of this source code is governed by a |
| 1756 // BSD-style license that can be found in the LICENSE file. | 1756 // BSD-style license that can be found in the LICENSE file. |
| 1757 | 1757 |
| 1758 | 1758 |
| 1759 @DomName('Console') | 1759 @DomName('Console') |
| 1760 class Console { | 1760 class Console { |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1837 | 1837 |
| 1838 @DomName('Console.trace') | 1838 @DomName('Console.trace') |
| 1839 void trace(Object arg) => _isConsoleDefined ? | 1839 void trace(Object arg) => _isConsoleDefined ? |
| 1840 JS('void', 'console.trace(#)', arg) : null; | 1840 JS('void', 'console.trace(#)', arg) : null; |
| 1841 | 1841 |
| 1842 @DomName('Console.warn') | 1842 @DomName('Console.warn') |
| 1843 void warn(Object arg) => _isConsoleDefined ? | 1843 void warn(Object arg) => _isConsoleDefined ? |
| 1844 JS('void', 'console.warn(#)', arg) : null; | 1844 JS('void', 'console.warn(#)', arg) : null; |
| 1845 | 1845 |
| 1846 @DomName('Console.clear') | 1846 @DomName('Console.clear') |
| 1847 @DocsEditable | 1847 @DocsEditable() |
| 1848 @Experimental | 1848 @Experimental() |
| 1849 void clear(Object arg) native; | 1849 void clear(Object arg) native; |
| 1850 | 1850 |
| 1851 @DomName('Console.table') | 1851 @DomName('Console.table') |
| 1852 @DocsEditable | 1852 @DocsEditable() |
| 1853 @Experimental | 1853 @Experimental() |
| 1854 void table(Object arg) native; | 1854 void table(Object arg) native; |
| 1855 | 1855 |
| 1856 } | 1856 } |
| 1857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1858 // for details. All rights reserved. Use of this source code is governed by a | 1858 // for details. All rights reserved. Use of this source code is governed by a |
| 1859 // BSD-style license that can be found in the LICENSE file. | 1859 // BSD-style license that can be found in the LICENSE file. |
| 1860 | 1860 |
| 1861 | 1861 |
| 1862 @DocsEditable | 1862 @DocsEditable() |
| 1863 @DomName('HTMLContentElement') | 1863 @DomName('HTMLContentElement') |
| 1864 @SupportedBrowser(SupportedBrowser.CHROME, '26') | 1864 @SupportedBrowser(SupportedBrowser.CHROME, '26') |
| 1865 @Experimental | 1865 @Experimental() |
| 1866 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#cont
ent-element | 1866 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#cont
ent-element |
| 1867 class ContentElement extends _HTMLElement native "HTMLContentElement" { | 1867 class ContentElement extends _HTMLElement native "HTMLContentElement" { |
| 1868 // To suppress missing implicit constructor warnings. | 1868 // To suppress missing implicit constructor warnings. |
| 1869 factory ContentElement._() { throw new UnsupportedError("Not supported"); } | 1869 factory ContentElement._() { throw new UnsupportedError("Not supported"); } |
| 1870 | 1870 |
| 1871 @DomName('HTMLContentElement.HTMLContentElement') | 1871 @DomName('HTMLContentElement.HTMLContentElement') |
| 1872 @DocsEditable | 1872 @DocsEditable() |
| 1873 factory ContentElement() => document.$dom_createElement("content"); | 1873 factory ContentElement() => document.$dom_createElement("content"); |
| 1874 | 1874 |
| 1875 /// Checks if this type is supported on the current platform. | 1875 /// Checks if this type is supported on the current platform. |
| 1876 static bool get supported => Element.isTagSupported('content'); | 1876 static bool get supported => Element.isTagSupported('content'); |
| 1877 | 1877 |
| 1878 @DomName('HTMLContentElement.resetStyleInheritance') | 1878 @DomName('HTMLContentElement.resetStyleInheritance') |
| 1879 @DocsEditable | 1879 @DocsEditable() |
| 1880 bool resetStyleInheritance; | 1880 bool resetStyleInheritance; |
| 1881 | 1881 |
| 1882 @DomName('HTMLContentElement.select') | 1882 @DomName('HTMLContentElement.select') |
| 1883 @DocsEditable | 1883 @DocsEditable() |
| 1884 String select; | 1884 String select; |
| 1885 | 1885 |
| 1886 @DomName('HTMLContentElement.getDistributedNodes') | 1886 @DomName('HTMLContentElement.getDistributedNodes') |
| 1887 @DocsEditable | 1887 @DocsEditable() |
| 1888 @Returns('NodeList') | 1888 @Returns('NodeList') |
| 1889 @Creates('NodeList') | 1889 @Creates('NodeList') |
| 1890 List<Node> getDistributedNodes() native; | 1890 List<Node> getDistributedNodes() native; |
| 1891 } | 1891 } |
| 1892 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1892 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1893 // for details. All rights reserved. Use of this source code is governed by a | 1893 // for details. All rights reserved. Use of this source code is governed by a |
| 1894 // BSD-style license that can be found in the LICENSE file. | 1894 // BSD-style license that can be found in the LICENSE file. |
| 1895 | 1895 |
| 1896 | 1896 |
| 1897 @DocsEditable | 1897 @DocsEditable() |
| 1898 @DomName('Coordinates') | 1898 @DomName('Coordinates') |
| 1899 class Coordinates extends Interceptor native "Coordinates" { | 1899 class Coordinates extends Interceptor native "Coordinates" { |
| 1900 | 1900 |
| 1901 @DomName('Coordinates.accuracy') | 1901 @DomName('Coordinates.accuracy') |
| 1902 @DocsEditable | 1902 @DocsEditable() |
| 1903 final num accuracy; | 1903 final num accuracy; |
| 1904 | 1904 |
| 1905 @DomName('Coordinates.altitude') | 1905 @DomName('Coordinates.altitude') |
| 1906 @DocsEditable | 1906 @DocsEditable() |
| 1907 final num altitude; | 1907 final num altitude; |
| 1908 | 1908 |
| 1909 @DomName('Coordinates.altitudeAccuracy') | 1909 @DomName('Coordinates.altitudeAccuracy') |
| 1910 @DocsEditable | 1910 @DocsEditable() |
| 1911 final num altitudeAccuracy; | 1911 final num altitudeAccuracy; |
| 1912 | 1912 |
| 1913 @DomName('Coordinates.heading') | 1913 @DomName('Coordinates.heading') |
| 1914 @DocsEditable | 1914 @DocsEditable() |
| 1915 final num heading; | 1915 final num heading; |
| 1916 | 1916 |
| 1917 @DomName('Coordinates.latitude') | 1917 @DomName('Coordinates.latitude') |
| 1918 @DocsEditable | 1918 @DocsEditable() |
| 1919 final num latitude; | 1919 final num latitude; |
| 1920 | 1920 |
| 1921 @DomName('Coordinates.longitude') | 1921 @DomName('Coordinates.longitude') |
| 1922 @DocsEditable | 1922 @DocsEditable() |
| 1923 final num longitude; | 1923 final num longitude; |
| 1924 | 1924 |
| 1925 @DomName('Coordinates.speed') | 1925 @DomName('Coordinates.speed') |
| 1926 @DocsEditable | 1926 @DocsEditable() |
| 1927 final num speed; | 1927 final num speed; |
| 1928 } | 1928 } |
| 1929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1930 // for details. All rights reserved. Use of this source code is governed by a | 1930 // for details. All rights reserved. Use of this source code is governed by a |
| 1931 // BSD-style license that can be found in the LICENSE file. | 1931 // BSD-style license that can be found in the LICENSE file. |
| 1932 | 1932 |
| 1933 | 1933 |
| 1934 @DocsEditable | 1934 @DocsEditable() |
| 1935 @DomName('Crypto') | 1935 @DomName('Crypto') |
| 1936 @SupportedBrowser(SupportedBrowser.CHROME) | 1936 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1937 @SupportedBrowser(SupportedBrowser.SAFARI) | 1937 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1938 @Experimental | 1938 @Experimental() |
| 1939 // http://www.w3.org/TR/WebCryptoAPI/ | 1939 // http://www.w3.org/TR/WebCryptoAPI/ |
| 1940 class Crypto extends Interceptor native "Crypto" { | 1940 class Crypto extends Interceptor native "Crypto" { |
| 1941 | 1941 |
| 1942 /// Checks if this type is supported on the current platform. | 1942 /// Checks if this type is supported on the current platform. |
| 1943 static bool get supported => JS('bool', '!!(window.crypto && window.crypto.get
RandomValues)'); | 1943 static bool get supported => JS('bool', '!!(window.crypto && window.crypto.get
RandomValues)'); |
| 1944 | 1944 |
| 1945 @DomName('Crypto.getRandomValues') | 1945 @DomName('Crypto.getRandomValues') |
| 1946 @DocsEditable | 1946 @DocsEditable() |
| 1947 @Creates('TypedData') | 1947 @Creates('TypedData') |
| 1948 @Returns('TypedData|Null') | 1948 @Returns('TypedData|Null') |
| 1949 TypedData getRandomValues(TypedData array) native; | 1949 TypedData getRandomValues(TypedData array) native; |
| 1950 } | 1950 } |
| 1951 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1951 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1952 // for details. All rights reserved. Use of this source code is governed by a | 1952 // for details. All rights reserved. Use of this source code is governed by a |
| 1953 // BSD-style license that can be found in the LICENSE file. | 1953 // BSD-style license that can be found in the LICENSE file. |
| 1954 | 1954 |
| 1955 | 1955 |
| 1956 @DocsEditable | 1956 @DocsEditable() |
| 1957 @DomName('CSS') | 1957 @DomName('CSS') |
| 1958 // http://www.w3.org/TR/css3-conditional/#the-css-interface | 1958 // http://www.w3.org/TR/css3-conditional/#the-css-interface |
| 1959 @Experimental // None | 1959 @Experimental() // None |
| 1960 class Css extends Interceptor native "CSS" { | 1960 class Css extends Interceptor native "CSS" { |
| 1961 | 1961 |
| 1962 @DomName('CSS.supports') | 1962 @DomName('CSS.supports') |
| 1963 @DocsEditable | 1963 @DocsEditable() |
| 1964 bool supports(String conditionText_OR_property, [String value]) native; | 1964 bool supports(String conditionText_OR_property, [String value]) native; |
| 1965 } | 1965 } |
| 1966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1966 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1967 // for details. All rights reserved. Use of this source code is governed by a | 1967 // for details. All rights reserved. Use of this source code is governed by a |
| 1968 // BSD-style license that can be found in the LICENSE file. | 1968 // BSD-style license that can be found in the LICENSE file. |
| 1969 | 1969 |
| 1970 | 1970 |
| 1971 @DocsEditable | 1971 @DocsEditable() |
| 1972 @DomName('CSSCharsetRule') | 1972 @DomName('CSSCharsetRule') |
| 1973 // http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface | 1973 // http://dev.w3.org/csswg/cssom/#the-csscharsetrule-interface |
| 1974 @Experimental | 1974 @Experimental() |
| 1975 class CssCharsetRule extends CssRule native "CSSCharsetRule" { | 1975 class CssCharsetRule extends CssRule native "CSSCharsetRule" { |
| 1976 // To suppress missing implicit constructor warnings. | 1976 // To suppress missing implicit constructor warnings. |
| 1977 factory CssCharsetRule._() { throw new UnsupportedError("Not supported"); } | 1977 factory CssCharsetRule._() { throw new UnsupportedError("Not supported"); } |
| 1978 | 1978 |
| 1979 @DomName('CSSCharsetRule.encoding') | 1979 @DomName('CSSCharsetRule.encoding') |
| 1980 @DocsEditable | 1980 @DocsEditable() |
| 1981 String encoding; | 1981 String encoding; |
| 1982 } | 1982 } |
| 1983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1983 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 1984 // for details. All rights reserved. Use of this source code is governed by a | 1984 // for details. All rights reserved. Use of this source code is governed by a |
| 1985 // BSD-style license that can be found in the LICENSE file. | 1985 // BSD-style license that can be found in the LICENSE file. |
| 1986 | 1986 |
| 1987 | 1987 |
| 1988 @DocsEditable | 1988 @DocsEditable() |
| 1989 @DomName('WebKitCSSFilterRule') | 1989 @DomName('WebKitCSSFilterRule') |
| 1990 @SupportedBrowser(SupportedBrowser.CHROME) | 1990 @SupportedBrowser(SupportedBrowser.CHROME) |
| 1991 @SupportedBrowser(SupportedBrowser.SAFARI) | 1991 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 1992 @Experimental | 1992 @Experimental() |
| 1993 // http://www.w3.org/TR/filter-effects/ | 1993 // http://www.w3.org/TR/filter-effects/ |
| 1994 class CssFilterRule extends CssRule native "WebKitCSSFilterRule" { | 1994 class CssFilterRule extends CssRule native "WebKitCSSFilterRule" { |
| 1995 // To suppress missing implicit constructor warnings. | 1995 // To suppress missing implicit constructor warnings. |
| 1996 factory CssFilterRule._() { throw new UnsupportedError("Not supported"); } | 1996 factory CssFilterRule._() { throw new UnsupportedError("Not supported"); } |
| 1997 | 1997 |
| 1998 @DomName('WebKitCSSFilterRule.style') | 1998 @DomName('WebKitCSSFilterRule.style') |
| 1999 @DocsEditable | 1999 @DocsEditable() |
| 2000 final CssStyleDeclaration style; | 2000 final CssStyleDeclaration style; |
| 2001 } | 2001 } |
| 2002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2003 // for details. All rights reserved. Use of this source code is governed by a | 2003 // for details. All rights reserved. Use of this source code is governed by a |
| 2004 // BSD-style license that can be found in the LICENSE file. | 2004 // BSD-style license that can be found in the LICENSE file. |
| 2005 | 2005 |
| 2006 | 2006 |
| 2007 @DocsEditable | 2007 @DocsEditable() |
| 2008 @DomName('WebKitCSSFilterValue') | 2008 @DomName('WebKitCSSFilterValue') |
| 2009 @SupportedBrowser(SupportedBrowser.CHROME) | 2009 @SupportedBrowser(SupportedBrowser.CHROME) |
| 2010 @SupportedBrowser(SupportedBrowser.SAFARI) | 2010 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 2011 @Experimental | 2011 @Experimental() |
| 2012 // http://dev.w3.org/csswg/cssom/ | 2012 // http://dev.w3.org/csswg/cssom/ |
| 2013 @deprecated // deprecated | 2013 @deprecated // deprecated |
| 2014 class CssFilterValue extends _CssValueList native "WebKitCSSFilterValue" { | 2014 class CssFilterValue extends _CssValueList native "WebKitCSSFilterValue" { |
| 2015 // To suppress missing implicit constructor warnings. | 2015 // To suppress missing implicit constructor warnings. |
| 2016 factory CssFilterValue._() { throw new UnsupportedError("Not supported"); } | 2016 factory CssFilterValue._() { throw new UnsupportedError("Not supported"); } |
| 2017 | 2017 |
| 2018 @DomName('WebKitCSSFilterValue.CSS_FILTER_BLUR') | 2018 @DomName('WebKitCSSFilterValue.CSS_FILTER_BLUR') |
| 2019 @DocsEditable | 2019 @DocsEditable() |
| 2020 static const int CSS_FILTER_BLUR = 10; | 2020 static const int CSS_FILTER_BLUR = 10; |
| 2021 | 2021 |
| 2022 @DomName('WebKitCSSFilterValue.CSS_FILTER_BRIGHTNESS') | 2022 @DomName('WebKitCSSFilterValue.CSS_FILTER_BRIGHTNESS') |
| 2023 @DocsEditable | 2023 @DocsEditable() |
| 2024 static const int CSS_FILTER_BRIGHTNESS = 8; | 2024 static const int CSS_FILTER_BRIGHTNESS = 8; |
| 2025 | 2025 |
| 2026 @DomName('WebKitCSSFilterValue.CSS_FILTER_CONTRAST') | 2026 @DomName('WebKitCSSFilterValue.CSS_FILTER_CONTRAST') |
| 2027 @DocsEditable | 2027 @DocsEditable() |
| 2028 static const int CSS_FILTER_CONTRAST = 9; | 2028 static const int CSS_FILTER_CONTRAST = 9; |
| 2029 | 2029 |
| 2030 @DomName('WebKitCSSFilterValue.CSS_FILTER_CUSTOM') | 2030 @DomName('WebKitCSSFilterValue.CSS_FILTER_CUSTOM') |
| 2031 @DocsEditable | 2031 @DocsEditable() |
| 2032 static const int CSS_FILTER_CUSTOM = 12; | 2032 static const int CSS_FILTER_CUSTOM = 12; |
| 2033 | 2033 |
| 2034 @DomName('WebKitCSSFilterValue.CSS_FILTER_DROP_SHADOW') | 2034 @DomName('WebKitCSSFilterValue.CSS_FILTER_DROP_SHADOW') |
| 2035 @DocsEditable | 2035 @DocsEditable() |
| 2036 static const int CSS_FILTER_DROP_SHADOW = 11; | 2036 static const int CSS_FILTER_DROP_SHADOW = 11; |
| 2037 | 2037 |
| 2038 @DomName('WebKitCSSFilterValue.CSS_FILTER_GRAYSCALE') | 2038 @DomName('WebKitCSSFilterValue.CSS_FILTER_GRAYSCALE') |
| 2039 @DocsEditable | 2039 @DocsEditable() |
| 2040 static const int CSS_FILTER_GRAYSCALE = 2; | 2040 static const int CSS_FILTER_GRAYSCALE = 2; |
| 2041 | 2041 |
| 2042 @DomName('WebKitCSSFilterValue.CSS_FILTER_HUE_ROTATE') | 2042 @DomName('WebKitCSSFilterValue.CSS_FILTER_HUE_ROTATE') |
| 2043 @DocsEditable | 2043 @DocsEditable() |
| 2044 static const int CSS_FILTER_HUE_ROTATE = 5; | 2044 static const int CSS_FILTER_HUE_ROTATE = 5; |
| 2045 | 2045 |
| 2046 @DomName('WebKitCSSFilterValue.CSS_FILTER_INVERT') | 2046 @DomName('WebKitCSSFilterValue.CSS_FILTER_INVERT') |
| 2047 @DocsEditable | 2047 @DocsEditable() |
| 2048 static const int CSS_FILTER_INVERT = 6; | 2048 static const int CSS_FILTER_INVERT = 6; |
| 2049 | 2049 |
| 2050 @DomName('WebKitCSSFilterValue.CSS_FILTER_OPACITY') | 2050 @DomName('WebKitCSSFilterValue.CSS_FILTER_OPACITY') |
| 2051 @DocsEditable | 2051 @DocsEditable() |
| 2052 static const int CSS_FILTER_OPACITY = 7; | 2052 static const int CSS_FILTER_OPACITY = 7; |
| 2053 | 2053 |
| 2054 @DomName('WebKitCSSFilterValue.CSS_FILTER_REFERENCE') | 2054 @DomName('WebKitCSSFilterValue.CSS_FILTER_REFERENCE') |
| 2055 @DocsEditable | 2055 @DocsEditable() |
| 2056 static const int CSS_FILTER_REFERENCE = 1; | 2056 static const int CSS_FILTER_REFERENCE = 1; |
| 2057 | 2057 |
| 2058 @DomName('WebKitCSSFilterValue.CSS_FILTER_SATURATE') | 2058 @DomName('WebKitCSSFilterValue.CSS_FILTER_SATURATE') |
| 2059 @DocsEditable | 2059 @DocsEditable() |
| 2060 static const int CSS_FILTER_SATURATE = 4; | 2060 static const int CSS_FILTER_SATURATE = 4; |
| 2061 | 2061 |
| 2062 @DomName('WebKitCSSFilterValue.CSS_FILTER_SEPIA') | 2062 @DomName('WebKitCSSFilterValue.CSS_FILTER_SEPIA') |
| 2063 @DocsEditable | 2063 @DocsEditable() |
| 2064 static const int CSS_FILTER_SEPIA = 3; | 2064 static const int CSS_FILTER_SEPIA = 3; |
| 2065 | 2065 |
| 2066 @DomName('WebKitCSSFilterValue.operationType') | 2066 @DomName('WebKitCSSFilterValue.operationType') |
| 2067 @DocsEditable | 2067 @DocsEditable() |
| 2068 final int operationType; | 2068 final int operationType; |
| 2069 | 2069 |
| 2070 @DomName('WebKitCSSFilterValue.__getter__') | 2070 @DomName('WebKitCSSFilterValue.__getter__') |
| 2071 @DocsEditable | 2071 @DocsEditable() |
| 2072 _CSSValue __getter__(int index) native; | 2072 _CSSValue __getter__(int index) native; |
| 2073 } | 2073 } |
| 2074 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2074 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2075 // for details. All rights reserved. Use of this source code is governed by a | 2075 // for details. All rights reserved. Use of this source code is governed by a |
| 2076 // BSD-style license that can be found in the LICENSE file. | 2076 // BSD-style license that can be found in the LICENSE file. |
| 2077 | 2077 |
| 2078 | 2078 |
| 2079 @DocsEditable | 2079 @DocsEditable() |
| 2080 @DomName('CSSFontFaceLoadEvent') | 2080 @DomName('CSSFontFaceLoadEvent') |
| 2081 // http://www.w3.org/TR/css3-fonts/ | 2081 // http://www.w3.org/TR/css3-fonts/ |
| 2082 @Experimental | 2082 @Experimental() |
| 2083 class CssFontFaceLoadEvent extends Event native "CSSFontFaceLoadEvent" { | 2083 class CssFontFaceLoadEvent extends Event native "CSSFontFaceLoadEvent" { |
| 2084 // To suppress missing implicit constructor warnings. | 2084 // To suppress missing implicit constructor warnings. |
| 2085 factory CssFontFaceLoadEvent._() { throw new UnsupportedError("Not supported")
; } | 2085 factory CssFontFaceLoadEvent._() { throw new UnsupportedError("Not supported")
; } |
| 2086 | 2086 |
| 2087 @DomName('CSSFontFaceLoadEvent.error') | 2087 @DomName('CSSFontFaceLoadEvent.error') |
| 2088 @DocsEditable | 2088 @DocsEditable() |
| 2089 final DomError error; | 2089 final DomError error; |
| 2090 | 2090 |
| 2091 @DomName('CSSFontFaceLoadEvent.fontface') | 2091 @DomName('CSSFontFaceLoadEvent.fontface') |
| 2092 @DocsEditable | 2092 @DocsEditable() |
| 2093 final CssFontFaceRule fontface; | 2093 final CssFontFaceRule fontface; |
| 2094 } | 2094 } |
| 2095 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2095 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2096 // for details. All rights reserved. Use of this source code is governed by a | 2096 // for details. All rights reserved. Use of this source code is governed by a |
| 2097 // BSD-style license that can be found in the LICENSE file. | 2097 // BSD-style license that can be found in the LICENSE file. |
| 2098 | 2098 |
| 2099 | 2099 |
| 2100 @DocsEditable | 2100 @DocsEditable() |
| 2101 @DomName('CSSFontFaceRule') | 2101 @DomName('CSSFontFaceRule') |
| 2102 class CssFontFaceRule extends CssRule native "CSSFontFaceRule" { | 2102 class CssFontFaceRule extends CssRule native "CSSFontFaceRule" { |
| 2103 // To suppress missing implicit constructor warnings. | 2103 // To suppress missing implicit constructor warnings. |
| 2104 factory CssFontFaceRule._() { throw new UnsupportedError("Not supported"); } | 2104 factory CssFontFaceRule._() { throw new UnsupportedError("Not supported"); } |
| 2105 | 2105 |
| 2106 @DomName('CSSFontFaceRule.style') | 2106 @DomName('CSSFontFaceRule.style') |
| 2107 @DocsEditable | 2107 @DocsEditable() |
| 2108 final CssStyleDeclaration style; | 2108 final CssStyleDeclaration style; |
| 2109 } | 2109 } |
| 2110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2111 // for details. All rights reserved. Use of this source code is governed by a | 2111 // for details. All rights reserved. Use of this source code is governed by a |
| 2112 // BSD-style license that can be found in the LICENSE file. | 2112 // BSD-style license that can be found in the LICENSE file. |
| 2113 | 2113 |
| 2114 | 2114 |
| 2115 @DocsEditable | 2115 @DocsEditable() |
| 2116 @DomName('CSSHostRule') | 2116 @DomName('CSSHostRule') |
| 2117 @SupportedBrowser(SupportedBrowser.CHROME, '26') | 2117 @SupportedBrowser(SupportedBrowser.CHROME, '26') |
| 2118 @Experimental | 2118 @Experimental() |
| 2119 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#css-
host-rule-interface | 2119 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#css-
host-rule-interface |
| 2120 class CssHostRule extends CssRule native "CSSHostRule" { | 2120 class CssHostRule extends CssRule native "CSSHostRule" { |
| 2121 // To suppress missing implicit constructor warnings. | 2121 // To suppress missing implicit constructor warnings. |
| 2122 factory CssHostRule._() { throw new UnsupportedError("Not supported"); } | 2122 factory CssHostRule._() { throw new UnsupportedError("Not supported"); } |
| 2123 | 2123 |
| 2124 @DomName('CSSHostRule.cssRules') | 2124 @DomName('CSSHostRule.cssRules') |
| 2125 @DocsEditable | 2125 @DocsEditable() |
| 2126 @Returns('_CssRuleList') | 2126 @Returns('_CssRuleList') |
| 2127 @Creates('_CssRuleList') | 2127 @Creates('_CssRuleList') |
| 2128 final List<CssRule> cssRules; | 2128 final List<CssRule> cssRules; |
| 2129 | 2129 |
| 2130 @DomName('CSSHostRule.deleteRule') | 2130 @DomName('CSSHostRule.deleteRule') |
| 2131 @DocsEditable | 2131 @DocsEditable() |
| 2132 void deleteRule(int index) native; | 2132 void deleteRule(int index) native; |
| 2133 | 2133 |
| 2134 @DomName('CSSHostRule.insertRule') | 2134 @DomName('CSSHostRule.insertRule') |
| 2135 @DocsEditable | 2135 @DocsEditable() |
| 2136 int insertRule(String rule, int index) native; | 2136 int insertRule(String rule, int index) native; |
| 2137 } | 2137 } |
| 2138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2138 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2139 // for details. All rights reserved. Use of this source code is governed by a | 2139 // for details. All rights reserved. Use of this source code is governed by a |
| 2140 // BSD-style license that can be found in the LICENSE file. | 2140 // BSD-style license that can be found in the LICENSE file. |
| 2141 | 2141 |
| 2142 | 2142 |
| 2143 @DocsEditable | 2143 @DocsEditable() |
| 2144 @DomName('CSSImportRule') | 2144 @DomName('CSSImportRule') |
| 2145 class CssImportRule extends CssRule native "CSSImportRule" { | 2145 class CssImportRule extends CssRule native "CSSImportRule" { |
| 2146 // To suppress missing implicit constructor warnings. | 2146 // To suppress missing implicit constructor warnings. |
| 2147 factory CssImportRule._() { throw new UnsupportedError("Not supported"); } | 2147 factory CssImportRule._() { throw new UnsupportedError("Not supported"); } |
| 2148 | 2148 |
| 2149 @DomName('CSSImportRule.href') | 2149 @DomName('CSSImportRule.href') |
| 2150 @DocsEditable | 2150 @DocsEditable() |
| 2151 final String href; | 2151 final String href; |
| 2152 | 2152 |
| 2153 @DomName('CSSImportRule.media') | 2153 @DomName('CSSImportRule.media') |
| 2154 @DocsEditable | 2154 @DocsEditable() |
| 2155 final MediaList media; | 2155 final MediaList media; |
| 2156 | 2156 |
| 2157 @DomName('CSSImportRule.styleSheet') | 2157 @DomName('CSSImportRule.styleSheet') |
| 2158 @DocsEditable | 2158 @DocsEditable() |
| 2159 final CssStyleSheet styleSheet; | 2159 final CssStyleSheet styleSheet; |
| 2160 } | 2160 } |
| 2161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2162 // for details. All rights reserved. Use of this source code is governed by a | 2162 // for details. All rights reserved. Use of this source code is governed by a |
| 2163 // BSD-style license that can be found in the LICENSE file. | 2163 // BSD-style license that can be found in the LICENSE file. |
| 2164 | 2164 |
| 2165 | 2165 |
| 2166 @DocsEditable | 2166 @DocsEditable() |
| 2167 @DomName('WebKitCSSKeyframeRule') | 2167 @DomName('WebKitCSSKeyframeRule') |
| 2168 @SupportedBrowser(SupportedBrowser.CHROME) | 2168 @SupportedBrowser(SupportedBrowser.CHROME) |
| 2169 @SupportedBrowser(SupportedBrowser.SAFARI) | 2169 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 2170 @Experimental | 2170 @Experimental() |
| 2171 // http://www.w3.org/TR/css3-animations/#CSSKeyframeRule-interface | 2171 // http://www.w3.org/TR/css3-animations/#CSSKeyframeRule-interface |
| 2172 class CssKeyframeRule extends CssRule native "CSSKeyframeRule,MozCSSKeyframeRule
,WebKitCSSKeyframeRule" { | 2172 class CssKeyframeRule extends CssRule native "CSSKeyframeRule,MozCSSKeyframeRule
,WebKitCSSKeyframeRule" { |
| 2173 // To suppress missing implicit constructor warnings. | 2173 // To suppress missing implicit constructor warnings. |
| 2174 factory CssKeyframeRule._() { throw new UnsupportedError("Not supported"); } | 2174 factory CssKeyframeRule._() { throw new UnsupportedError("Not supported"); } |
| 2175 | 2175 |
| 2176 @DomName('WebKitCSSKeyframeRule.keyText') | 2176 @DomName('WebKitCSSKeyframeRule.keyText') |
| 2177 @DocsEditable | 2177 @DocsEditable() |
| 2178 String keyText; | 2178 String keyText; |
| 2179 | 2179 |
| 2180 @DomName('WebKitCSSKeyframeRule.style') | 2180 @DomName('WebKitCSSKeyframeRule.style') |
| 2181 @DocsEditable | 2181 @DocsEditable() |
| 2182 final CssStyleDeclaration style; | 2182 final CssStyleDeclaration style; |
| 2183 } | 2183 } |
| 2184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2184 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2185 // for details. All rights reserved. Use of this source code is governed by a | 2185 // for details. All rights reserved. Use of this source code is governed by a |
| 2186 // BSD-style license that can be found in the LICENSE file. | 2186 // BSD-style license that can be found in the LICENSE file. |
| 2187 | 2187 |
| 2188 | 2188 |
| 2189 @DocsEditable | 2189 @DocsEditable() |
| 2190 @DomName('WebKitCSSKeyframesRule') | 2190 @DomName('WebKitCSSKeyframesRule') |
| 2191 @SupportedBrowser(SupportedBrowser.CHROME) | 2191 @SupportedBrowser(SupportedBrowser.CHROME) |
| 2192 @SupportedBrowser(SupportedBrowser.SAFARI) | 2192 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 2193 @Experimental | 2193 @Experimental() |
| 2194 // http://www.w3.org/TR/css3-animations/#csskeyframesrule | 2194 // http://www.w3.org/TR/css3-animations/#csskeyframesrule |
| 2195 class CssKeyframesRule extends CssRule native "CSSKeyframesRule,MozCSSKeyframesR
ule,WebKitCSSKeyframesRule" { | 2195 class CssKeyframesRule extends CssRule native "CSSKeyframesRule,MozCSSKeyframesR
ule,WebKitCSSKeyframesRule" { |
| 2196 // To suppress missing implicit constructor warnings. | 2196 // To suppress missing implicit constructor warnings. |
| 2197 factory CssKeyframesRule._() { throw new UnsupportedError("Not supported"); } | 2197 factory CssKeyframesRule._() { throw new UnsupportedError("Not supported"); } |
| 2198 | 2198 |
| 2199 @DomName('WebKitCSSKeyframesRule.cssRules') | 2199 @DomName('WebKitCSSKeyframesRule.cssRules') |
| 2200 @DocsEditable | 2200 @DocsEditable() |
| 2201 @Returns('_CssRuleList') | 2201 @Returns('_CssRuleList') |
| 2202 @Creates('_CssRuleList') | 2202 @Creates('_CssRuleList') |
| 2203 final List<CssRule> cssRules; | 2203 final List<CssRule> cssRules; |
| 2204 | 2204 |
| 2205 @DomName('WebKitCSSKeyframesRule.name') | 2205 @DomName('WebKitCSSKeyframesRule.name') |
| 2206 @DocsEditable | 2206 @DocsEditable() |
| 2207 String name; | 2207 String name; |
| 2208 | 2208 |
| 2209 @DomName('WebKitCSSKeyframesRule.__getter__') | 2209 @DomName('WebKitCSSKeyframesRule.__getter__') |
| 2210 @DocsEditable | 2210 @DocsEditable() |
| 2211 CssKeyframeRule __getter__(int index) native; | 2211 CssKeyframeRule __getter__(int index) native; |
| 2212 | 2212 |
| 2213 @DomName('WebKitCSSKeyframesRule.deleteRule') | 2213 @DomName('WebKitCSSKeyframesRule.deleteRule') |
| 2214 @DocsEditable | 2214 @DocsEditable() |
| 2215 void deleteRule(String key) native; | 2215 void deleteRule(String key) native; |
| 2216 | 2216 |
| 2217 @DomName('WebKitCSSKeyframesRule.findRule') | 2217 @DomName('WebKitCSSKeyframesRule.findRule') |
| 2218 @DocsEditable | 2218 @DocsEditable() |
| 2219 CssKeyframeRule findRule(String key) native; | 2219 CssKeyframeRule findRule(String key) native; |
| 2220 | 2220 |
| 2221 | 2221 |
| 2222 void appendRule(String rule) { | 2222 void appendRule(String rule) { |
| 2223 if (JS('bool', '("appendRule" in #)', this)) { | 2223 if (JS('bool', '("appendRule" in #)', this)) { |
| 2224 JS('', '#.appendRule(#)', this, rule); | 2224 JS('', '#.appendRule(#)', this, rule); |
| 2225 } else { | 2225 } else { |
| 2226 JS('', '#.insertRule(#)', this, rule); | 2226 JS('', '#.insertRule(#)', this, rule); |
| 2227 } | 2227 } |
| 2228 } | 2228 } |
| 2229 } | 2229 } |
| 2230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2231 // for details. All rights reserved. Use of this source code is governed by a | 2231 // for details. All rights reserved. Use of this source code is governed by a |
| 2232 // BSD-style license that can be found in the LICENSE file. | 2232 // BSD-style license that can be found in the LICENSE file. |
| 2233 | 2233 |
| 2234 | 2234 |
| 2235 @DocsEditable | 2235 @DocsEditable() |
| 2236 @DomName('WebKitCSSMatrix') | 2236 @DomName('WebKitCSSMatrix') |
| 2237 @SupportedBrowser(SupportedBrowser.CHROME) | 2237 @SupportedBrowser(SupportedBrowser.CHROME) |
| 2238 @SupportedBrowser(SupportedBrowser.SAFARI) | 2238 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 2239 @Experimental | 2239 @Experimental() |
| 2240 @SupportedBrowser(SupportedBrowser.CHROME) | 2240 @SupportedBrowser(SupportedBrowser.CHROME) |
| 2241 @SupportedBrowser(SupportedBrowser.SAFARI) | 2241 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 2242 @Experimental | 2242 @Experimental() |
| 2243 // http://dev.w3.org/csswg/cssom/ | 2243 // http://dev.w3.org/csswg/cssom/ |
| 2244 @deprecated // deprecated | 2244 @deprecated // deprecated |
| 2245 class CssMatrix extends Interceptor native "WebKitCSSMatrix" { | 2245 class CssMatrix extends Interceptor native "WebKitCSSMatrix" { |
| 2246 | 2246 |
| 2247 @DomName('WebKitCSSMatrix.CSSMatrix') | 2247 @DomName('WebKitCSSMatrix.CSSMatrix') |
| 2248 @DocsEditable | 2248 @DocsEditable() |
| 2249 factory CssMatrix([String cssValue]) { | 2249 factory CssMatrix([String cssValue]) { |
| 2250 if (cssValue != null) { | 2250 if (cssValue != null) { |
| 2251 return CssMatrix._create_1(cssValue); | 2251 return CssMatrix._create_1(cssValue); |
| 2252 } | 2252 } |
| 2253 return CssMatrix._create_2(); | 2253 return CssMatrix._create_2(); |
| 2254 } | 2254 } |
| 2255 static CssMatrix _create_1(cssValue) => JS('CssMatrix', 'new WebKitCSSMatrix(#
)', cssValue); | 2255 static CssMatrix _create_1(cssValue) => JS('CssMatrix', 'new WebKitCSSMatrix(#
)', cssValue); |
| 2256 static CssMatrix _create_2() => JS('CssMatrix', 'new WebKitCSSMatrix()'); | 2256 static CssMatrix _create_2() => JS('CssMatrix', 'new WebKitCSSMatrix()'); |
| 2257 | 2257 |
| 2258 @DomName('WebKitCSSMatrix.a') | 2258 @DomName('WebKitCSSMatrix.a') |
| 2259 @DocsEditable | 2259 @DocsEditable() |
| 2260 num a; | 2260 num a; |
| 2261 | 2261 |
| 2262 @DomName('WebKitCSSMatrix.b') | 2262 @DomName('WebKitCSSMatrix.b') |
| 2263 @DocsEditable | 2263 @DocsEditable() |
| 2264 num b; | 2264 num b; |
| 2265 | 2265 |
| 2266 @DomName('WebKitCSSMatrix.c') | 2266 @DomName('WebKitCSSMatrix.c') |
| 2267 @DocsEditable | 2267 @DocsEditable() |
| 2268 num c; | 2268 num c; |
| 2269 | 2269 |
| 2270 @DomName('WebKitCSSMatrix.d') | 2270 @DomName('WebKitCSSMatrix.d') |
| 2271 @DocsEditable | 2271 @DocsEditable() |
| 2272 num d; | 2272 num d; |
| 2273 | 2273 |
| 2274 @DomName('WebKitCSSMatrix.e') | 2274 @DomName('WebKitCSSMatrix.e') |
| 2275 @DocsEditable | 2275 @DocsEditable() |
| 2276 num e; | 2276 num e; |
| 2277 | 2277 |
| 2278 @DomName('WebKitCSSMatrix.f') | 2278 @DomName('WebKitCSSMatrix.f') |
| 2279 @DocsEditable | 2279 @DocsEditable() |
| 2280 num f; | 2280 num f; |
| 2281 | 2281 |
| 2282 @DomName('WebKitCSSMatrix.m11') | 2282 @DomName('WebKitCSSMatrix.m11') |
| 2283 @DocsEditable | 2283 @DocsEditable() |
| 2284 num m11; | 2284 num m11; |
| 2285 | 2285 |
| 2286 @DomName('WebKitCSSMatrix.m12') | 2286 @DomName('WebKitCSSMatrix.m12') |
| 2287 @DocsEditable | 2287 @DocsEditable() |
| 2288 num m12; | 2288 num m12; |
| 2289 | 2289 |
| 2290 @DomName('WebKitCSSMatrix.m13') | 2290 @DomName('WebKitCSSMatrix.m13') |
| 2291 @DocsEditable | 2291 @DocsEditable() |
| 2292 num m13; | 2292 num m13; |
| 2293 | 2293 |
| 2294 @DomName('WebKitCSSMatrix.m14') | 2294 @DomName('WebKitCSSMatrix.m14') |
| 2295 @DocsEditable | 2295 @DocsEditable() |
| 2296 num m14; | 2296 num m14; |
| 2297 | 2297 |
| 2298 @DomName('WebKitCSSMatrix.m21') | 2298 @DomName('WebKitCSSMatrix.m21') |
| 2299 @DocsEditable | 2299 @DocsEditable() |
| 2300 num m21; | 2300 num m21; |
| 2301 | 2301 |
| 2302 @DomName('WebKitCSSMatrix.m22') | 2302 @DomName('WebKitCSSMatrix.m22') |
| 2303 @DocsEditable | 2303 @DocsEditable() |
| 2304 num m22; | 2304 num m22; |
| 2305 | 2305 |
| 2306 @DomName('WebKitCSSMatrix.m23') | 2306 @DomName('WebKitCSSMatrix.m23') |
| 2307 @DocsEditable | 2307 @DocsEditable() |
| 2308 num m23; | 2308 num m23; |
| 2309 | 2309 |
| 2310 @DomName('WebKitCSSMatrix.m24') | 2310 @DomName('WebKitCSSMatrix.m24') |
| 2311 @DocsEditable | 2311 @DocsEditable() |
| 2312 num m24; | 2312 num m24; |
| 2313 | 2313 |
| 2314 @DomName('WebKitCSSMatrix.m31') | 2314 @DomName('WebKitCSSMatrix.m31') |
| 2315 @DocsEditable | 2315 @DocsEditable() |
| 2316 num m31; | 2316 num m31; |
| 2317 | 2317 |
| 2318 @DomName('WebKitCSSMatrix.m32') | 2318 @DomName('WebKitCSSMatrix.m32') |
| 2319 @DocsEditable | 2319 @DocsEditable() |
| 2320 num m32; | 2320 num m32; |
| 2321 | 2321 |
| 2322 @DomName('WebKitCSSMatrix.m33') | 2322 @DomName('WebKitCSSMatrix.m33') |
| 2323 @DocsEditable | 2323 @DocsEditable() |
| 2324 num m33; | 2324 num m33; |
| 2325 | 2325 |
| 2326 @DomName('WebKitCSSMatrix.m34') | 2326 @DomName('WebKitCSSMatrix.m34') |
| 2327 @DocsEditable | 2327 @DocsEditable() |
| 2328 num m34; | 2328 num m34; |
| 2329 | 2329 |
| 2330 @DomName('WebKitCSSMatrix.m41') | 2330 @DomName('WebKitCSSMatrix.m41') |
| 2331 @DocsEditable | 2331 @DocsEditable() |
| 2332 num m41; | 2332 num m41; |
| 2333 | 2333 |
| 2334 @DomName('WebKitCSSMatrix.m42') | 2334 @DomName('WebKitCSSMatrix.m42') |
| 2335 @DocsEditable | 2335 @DocsEditable() |
| 2336 num m42; | 2336 num m42; |
| 2337 | 2337 |
| 2338 @DomName('WebKitCSSMatrix.m43') | 2338 @DomName('WebKitCSSMatrix.m43') |
| 2339 @DocsEditable | 2339 @DocsEditable() |
| 2340 num m43; | 2340 num m43; |
| 2341 | 2341 |
| 2342 @DomName('WebKitCSSMatrix.m44') | 2342 @DomName('WebKitCSSMatrix.m44') |
| 2343 @DocsEditable | 2343 @DocsEditable() |
| 2344 num m44; | 2344 num m44; |
| 2345 | 2345 |
| 2346 @DomName('WebKitCSSMatrix.inverse') | 2346 @DomName('WebKitCSSMatrix.inverse') |
| 2347 @DocsEditable | 2347 @DocsEditable() |
| 2348 CssMatrix inverse() native; | 2348 CssMatrix inverse() native; |
| 2349 | 2349 |
| 2350 @DomName('WebKitCSSMatrix.multiply') | 2350 @DomName('WebKitCSSMatrix.multiply') |
| 2351 @DocsEditable | 2351 @DocsEditable() |
| 2352 CssMatrix multiply(CssMatrix secondMatrix) native; | 2352 CssMatrix multiply(CssMatrix secondMatrix) native; |
| 2353 | 2353 |
| 2354 @DomName('WebKitCSSMatrix.rotate') | 2354 @DomName('WebKitCSSMatrix.rotate') |
| 2355 @DocsEditable | 2355 @DocsEditable() |
| 2356 CssMatrix rotate(num rotX, num rotY, num rotZ) native; | 2356 CssMatrix rotate(num rotX, num rotY, num rotZ) native; |
| 2357 | 2357 |
| 2358 @DomName('WebKitCSSMatrix.rotateAxisAngle') | 2358 @DomName('WebKitCSSMatrix.rotateAxisAngle') |
| 2359 @DocsEditable | 2359 @DocsEditable() |
| 2360 CssMatrix rotateAxisAngle(num x, num y, num z, num angle) native; | 2360 CssMatrix rotateAxisAngle(num x, num y, num z, num angle) native; |
| 2361 | 2361 |
| 2362 @DomName('WebKitCSSMatrix.scale') | 2362 @DomName('WebKitCSSMatrix.scale') |
| 2363 @DocsEditable | 2363 @DocsEditable() |
| 2364 CssMatrix scale(num scaleX, num scaleY, num scaleZ) native; | 2364 CssMatrix scale(num scaleX, num scaleY, num scaleZ) native; |
| 2365 | 2365 |
| 2366 @DomName('WebKitCSSMatrix.setMatrixValue') | 2366 @DomName('WebKitCSSMatrix.setMatrixValue') |
| 2367 @DocsEditable | 2367 @DocsEditable() |
| 2368 void setMatrixValue(String string) native; | 2368 void setMatrixValue(String string) native; |
| 2369 | 2369 |
| 2370 @DomName('WebKitCSSMatrix.skewX') | 2370 @DomName('WebKitCSSMatrix.skewX') |
| 2371 @DocsEditable | 2371 @DocsEditable() |
| 2372 CssMatrix skewX(num angle) native; | 2372 CssMatrix skewX(num angle) native; |
| 2373 | 2373 |
| 2374 @DomName('WebKitCSSMatrix.skewY') | 2374 @DomName('WebKitCSSMatrix.skewY') |
| 2375 @DocsEditable | 2375 @DocsEditable() |
| 2376 CssMatrix skewY(num angle) native; | 2376 CssMatrix skewY(num angle) native; |
| 2377 | 2377 |
| 2378 @DomName('WebKitCSSMatrix.toString') | 2378 @DomName('WebKitCSSMatrix.toString') |
| 2379 @DocsEditable | 2379 @DocsEditable() |
| 2380 String toString() native; | 2380 String toString() native; |
| 2381 | 2381 |
| 2382 @DomName('WebKitCSSMatrix.translate') | 2382 @DomName('WebKitCSSMatrix.translate') |
| 2383 @DocsEditable | 2383 @DocsEditable() |
| 2384 CssMatrix translate(num x, num y, num z) native; | 2384 CssMatrix translate(num x, num y, num z) native; |
| 2385 } | 2385 } |
| 2386 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2386 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2387 // for details. All rights reserved. Use of this source code is governed by a | 2387 // for details. All rights reserved. Use of this source code is governed by a |
| 2388 // BSD-style license that can be found in the LICENSE file. | 2388 // BSD-style license that can be found in the LICENSE file. |
| 2389 | 2389 |
| 2390 | 2390 |
| 2391 @DocsEditable | 2391 @DocsEditable() |
| 2392 @DomName('CSSMediaRule') | 2392 @DomName('CSSMediaRule') |
| 2393 class CssMediaRule extends CssRule native "CSSMediaRule" { | 2393 class CssMediaRule extends CssRule native "CSSMediaRule" { |
| 2394 // To suppress missing implicit constructor warnings. | 2394 // To suppress missing implicit constructor warnings. |
| 2395 factory CssMediaRule._() { throw new UnsupportedError("Not supported"); } | 2395 factory CssMediaRule._() { throw new UnsupportedError("Not supported"); } |
| 2396 | 2396 |
| 2397 @DomName('CSSMediaRule.cssRules') | 2397 @DomName('CSSMediaRule.cssRules') |
| 2398 @DocsEditable | 2398 @DocsEditable() |
| 2399 @Returns('_CssRuleList') | 2399 @Returns('_CssRuleList') |
| 2400 @Creates('_CssRuleList') | 2400 @Creates('_CssRuleList') |
| 2401 final List<CssRule> cssRules; | 2401 final List<CssRule> cssRules; |
| 2402 | 2402 |
| 2403 @DomName('CSSMediaRule.media') | 2403 @DomName('CSSMediaRule.media') |
| 2404 @DocsEditable | 2404 @DocsEditable() |
| 2405 final MediaList media; | 2405 final MediaList media; |
| 2406 | 2406 |
| 2407 @DomName('CSSMediaRule.deleteRule') | 2407 @DomName('CSSMediaRule.deleteRule') |
| 2408 @DocsEditable | 2408 @DocsEditable() |
| 2409 void deleteRule(int index) native; | 2409 void deleteRule(int index) native; |
| 2410 | 2410 |
| 2411 @DomName('CSSMediaRule.insertRule') | 2411 @DomName('CSSMediaRule.insertRule') |
| 2412 @DocsEditable | 2412 @DocsEditable() |
| 2413 int insertRule(String rule, int index) native; | 2413 int insertRule(String rule, int index) native; |
| 2414 } | 2414 } |
| 2415 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2415 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2416 // for details. All rights reserved. Use of this source code is governed by a | 2416 // for details. All rights reserved. Use of this source code is governed by a |
| 2417 // BSD-style license that can be found in the LICENSE file. | 2417 // BSD-style license that can be found in the LICENSE file. |
| 2418 | 2418 |
| 2419 | 2419 |
| 2420 @DocsEditable | 2420 @DocsEditable() |
| 2421 @DomName('WebKitCSSMixFunctionValue') | 2421 @DomName('WebKitCSSMixFunctionValue') |
| 2422 @SupportedBrowser(SupportedBrowser.CHROME) | 2422 @SupportedBrowser(SupportedBrowser.CHROME) |
| 2423 @SupportedBrowser(SupportedBrowser.SAFARI) | 2423 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 2424 @Experimental | 2424 @Experimental() |
| 2425 // http://dev.w3.org/csswg/cssom/ | 2425 // http://dev.w3.org/csswg/cssom/ |
| 2426 @deprecated // deprecated | 2426 @deprecated // deprecated |
| 2427 class CssMixFunctionValue extends _CssValueList native "WebKitCSSMixFunctionValu
e" { | 2427 class CssMixFunctionValue extends _CssValueList native "WebKitCSSMixFunctionValu
e" { |
| 2428 // To suppress missing implicit constructor warnings. | 2428 // To suppress missing implicit constructor warnings. |
| 2429 factory CssMixFunctionValue._() { throw new UnsupportedError("Not supported");
} | 2429 factory CssMixFunctionValue._() { throw new UnsupportedError("Not supported");
} |
| 2430 } | 2430 } |
| 2431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2431 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2432 // for details. All rights reserved. Use of this source code is governed by a | 2432 // for details. All rights reserved. Use of this source code is governed by a |
| 2433 // BSD-style license that can be found in the LICENSE file. | 2433 // BSD-style license that can be found in the LICENSE file. |
| 2434 | 2434 |
| 2435 | 2435 |
| 2436 @DocsEditable | 2436 @DocsEditable() |
| 2437 @DomName('CSSPageRule') | 2437 @DomName('CSSPageRule') |
| 2438 class CssPageRule extends CssRule native "CSSPageRule" { | 2438 class CssPageRule extends CssRule native "CSSPageRule" { |
| 2439 // To suppress missing implicit constructor warnings. | 2439 // To suppress missing implicit constructor warnings. |
| 2440 factory CssPageRule._() { throw new UnsupportedError("Not supported"); } | 2440 factory CssPageRule._() { throw new UnsupportedError("Not supported"); } |
| 2441 | 2441 |
| 2442 @DomName('CSSPageRule.selectorText') | 2442 @DomName('CSSPageRule.selectorText') |
| 2443 @DocsEditable | 2443 @DocsEditable() |
| 2444 String selectorText; | 2444 String selectorText; |
| 2445 | 2445 |
| 2446 @DomName('CSSPageRule.style') | 2446 @DomName('CSSPageRule.style') |
| 2447 @DocsEditable | 2447 @DocsEditable() |
| 2448 final CssStyleDeclaration style; | 2448 final CssStyleDeclaration style; |
| 2449 } | 2449 } |
| 2450 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2450 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2451 // for details. All rights reserved. Use of this source code is governed by a | 2451 // for details. All rights reserved. Use of this source code is governed by a |
| 2452 // BSD-style license that can be found in the LICENSE file. | 2452 // BSD-style license that can be found in the LICENSE file. |
| 2453 | 2453 |
| 2454 | 2454 |
| 2455 @DocsEditable | 2455 @DocsEditable() |
| 2456 @DomName('WebKitCSSRegionRule') | 2456 @DomName('WebKitCSSRegionRule') |
| 2457 @SupportedBrowser(SupportedBrowser.CHROME) | 2457 @SupportedBrowser(SupportedBrowser.CHROME) |
| 2458 @SupportedBrowser(SupportedBrowser.SAFARI) | 2458 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 2459 @Experimental | 2459 @Experimental() |
| 2460 // http://dev.w3.org/csswg/css-regions/#region-style-rule-interface | 2460 // http://dev.w3.org/csswg/css-regions/#region-style-rule-interface |
| 2461 class CssRegionRule extends CssRule native "WebKitCSSRegionRule" { | 2461 class CssRegionRule extends CssRule native "WebKitCSSRegionRule" { |
| 2462 // To suppress missing implicit constructor warnings. | 2462 // To suppress missing implicit constructor warnings. |
| 2463 factory CssRegionRule._() { throw new UnsupportedError("Not supported"); } | 2463 factory CssRegionRule._() { throw new UnsupportedError("Not supported"); } |
| 2464 | 2464 |
| 2465 @DomName('WebKitCSSRegionRule.cssRules') | 2465 @DomName('WebKitCSSRegionRule.cssRules') |
| 2466 @DocsEditable | 2466 @DocsEditable() |
| 2467 @Returns('_CssRuleList') | 2467 @Returns('_CssRuleList') |
| 2468 @Creates('_CssRuleList') | 2468 @Creates('_CssRuleList') |
| 2469 final List<CssRule> cssRules; | 2469 final List<CssRule> cssRules; |
| 2470 } | 2470 } |
| 2471 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2471 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2472 // for details. All rights reserved. Use of this source code is governed by a | 2472 // for details. All rights reserved. Use of this source code is governed by a |
| 2473 // BSD-style license that can be found in the LICENSE file. | 2473 // BSD-style license that can be found in the LICENSE file. |
| 2474 | 2474 |
| 2475 | 2475 |
| 2476 @DocsEditable | 2476 @DocsEditable() |
| 2477 @DomName('CSSRule') | 2477 @DomName('CSSRule') |
| 2478 class CssRule extends Interceptor native "CSSRule" { | 2478 class CssRule extends Interceptor native "CSSRule" { |
| 2479 | 2479 |
| 2480 @DomName('CSSRule.CHARSET_RULE') | 2480 @DomName('CSSRule.CHARSET_RULE') |
| 2481 @DocsEditable | 2481 @DocsEditable() |
| 2482 static const int CHARSET_RULE = 2; | 2482 static const int CHARSET_RULE = 2; |
| 2483 | 2483 |
| 2484 @DomName('CSSRule.FONT_FACE_RULE') | 2484 @DomName('CSSRule.FONT_FACE_RULE') |
| 2485 @DocsEditable | 2485 @DocsEditable() |
| 2486 static const int FONT_FACE_RULE = 5; | 2486 static const int FONT_FACE_RULE = 5; |
| 2487 | 2487 |
| 2488 @DomName('CSSRule.HOST_RULE') | 2488 @DomName('CSSRule.HOST_RULE') |
| 2489 @DocsEditable | 2489 @DocsEditable() |
| 2490 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ap
i-css-rule-host-rule | 2490 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ap
i-css-rule-host-rule |
| 2491 @Experimental | 2491 @Experimental() |
| 2492 static const int HOST_RULE = 1001; | 2492 static const int HOST_RULE = 1001; |
| 2493 | 2493 |
| 2494 @DomName('CSSRule.IMPORT_RULE') | 2494 @DomName('CSSRule.IMPORT_RULE') |
| 2495 @DocsEditable | 2495 @DocsEditable() |
| 2496 static const int IMPORT_RULE = 3; | 2496 static const int IMPORT_RULE = 3; |
| 2497 | 2497 |
| 2498 @DomName('CSSRule.MEDIA_RULE') | 2498 @DomName('CSSRule.MEDIA_RULE') |
| 2499 @DocsEditable | 2499 @DocsEditable() |
| 2500 static const int MEDIA_RULE = 4; | 2500 static const int MEDIA_RULE = 4; |
| 2501 | 2501 |
| 2502 @DomName('CSSRule.PAGE_RULE') | 2502 @DomName('CSSRule.PAGE_RULE') |
| 2503 @DocsEditable | 2503 @DocsEditable() |
| 2504 static const int PAGE_RULE = 6; | 2504 static const int PAGE_RULE = 6; |
| 2505 | 2505 |
| 2506 @DomName('CSSRule.STYLE_RULE') | 2506 @DomName('CSSRule.STYLE_RULE') |
| 2507 @DocsEditable | 2507 @DocsEditable() |
| 2508 static const int STYLE_RULE = 1; | 2508 static const int STYLE_RULE = 1; |
| 2509 | 2509 |
| 2510 @DomName('CSSRule.SUPPORTS_RULE') | 2510 @DomName('CSSRule.SUPPORTS_RULE') |
| 2511 @DocsEditable | 2511 @DocsEditable() |
| 2512 static const int SUPPORTS_RULE = 12; | 2512 static const int SUPPORTS_RULE = 12; |
| 2513 | 2513 |
| 2514 @DomName('CSSRule.UNKNOWN_RULE') | 2514 @DomName('CSSRule.UNKNOWN_RULE') |
| 2515 @DocsEditable | 2515 @DocsEditable() |
| 2516 // http://dev.w3.org/csswg/cssom/#changes-from-dom2 | 2516 // http://dev.w3.org/csswg/cssom/#changes-from-dom2 |
| 2517 @deprecated // deprecated | 2517 @deprecated // deprecated |
| 2518 static const int UNKNOWN_RULE = 0; | 2518 static const int UNKNOWN_RULE = 0; |
| 2519 | 2519 |
| 2520 @DomName('CSSRule.WEBKIT_FILTER_RULE') | 2520 @DomName('CSSRule.WEBKIT_FILTER_RULE') |
| 2521 @DocsEditable | 2521 @DocsEditable() |
| 2522 // http://www.w3.org/TR/filter-effects/ | 2522 // http://www.w3.org/TR/filter-effects/ |
| 2523 @Experimental | 2523 @Experimental() |
| 2524 static const int WEBKIT_FILTER_RULE = 17; | 2524 static const int WEBKIT_FILTER_RULE = 17; |
| 2525 | 2525 |
| 2526 @DomName('CSSRule.WEBKIT_KEYFRAMES_RULE') | 2526 @DomName('CSSRule.WEBKIT_KEYFRAMES_RULE') |
| 2527 @DocsEditable | 2527 @DocsEditable() |
| 2528 // http://www.w3.org/TR/css3-animations/#cssrule | 2528 // http://www.w3.org/TR/css3-animations/#cssrule |
| 2529 @Experimental | 2529 @Experimental() |
| 2530 static const int WEBKIT_KEYFRAMES_RULE = 7; | 2530 static const int WEBKIT_KEYFRAMES_RULE = 7; |
| 2531 | 2531 |
| 2532 @DomName('CSSRule.WEBKIT_KEYFRAME_RULE') | 2532 @DomName('CSSRule.WEBKIT_KEYFRAME_RULE') |
| 2533 @DocsEditable | 2533 @DocsEditable() |
| 2534 // http://www.w3.org/TR/css3-animations/#cssrule | 2534 // http://www.w3.org/TR/css3-animations/#cssrule |
| 2535 @Experimental | 2535 @Experimental() |
| 2536 static const int WEBKIT_KEYFRAME_RULE = 8; | 2536 static const int WEBKIT_KEYFRAME_RULE = 8; |
| 2537 | 2537 |
| 2538 @DomName('CSSRule.WEBKIT_REGION_RULE') | 2538 @DomName('CSSRule.WEBKIT_REGION_RULE') |
| 2539 @DocsEditable | 2539 @DocsEditable() |
| 2540 // http://dev.w3.org/csswg/css-regions/#region-style-rule-interface | 2540 // http://dev.w3.org/csswg/css-regions/#region-style-rule-interface |
| 2541 @Experimental | 2541 @Experimental() |
| 2542 static const int WEBKIT_REGION_RULE = 16; | 2542 static const int WEBKIT_REGION_RULE = 16; |
| 2543 | 2543 |
| 2544 @DomName('CSSRule.cssText') | 2544 @DomName('CSSRule.cssText') |
| 2545 @DocsEditable | 2545 @DocsEditable() |
| 2546 String cssText; | 2546 String cssText; |
| 2547 | 2547 |
| 2548 @DomName('CSSRule.parentRule') | 2548 @DomName('CSSRule.parentRule') |
| 2549 @DocsEditable | 2549 @DocsEditable() |
| 2550 final CssRule parentRule; | 2550 final CssRule parentRule; |
| 2551 | 2551 |
| 2552 @DomName('CSSRule.parentStyleSheet') | 2552 @DomName('CSSRule.parentStyleSheet') |
| 2553 @DocsEditable | 2553 @DocsEditable() |
| 2554 final CssStyleSheet parentStyleSheet; | 2554 final CssStyleSheet parentStyleSheet; |
| 2555 | 2555 |
| 2556 @DomName('CSSRule.type') | 2556 @DomName('CSSRule.type') |
| 2557 @DocsEditable | 2557 @DocsEditable() |
| 2558 final int type; | 2558 final int type; |
| 2559 } | 2559 } |
| 2560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2561 // for details. All rights reserved. Use of this source code is governed by a | 2561 // for details. All rights reserved. Use of this source code is governed by a |
| 2562 // BSD-style license that can be found in the LICENSE file. | 2562 // BSD-style license that can be found in the LICENSE file. |
| 2563 | 2563 |
| 2564 | 2564 |
| 2565 @DomName('CSSStyleDeclaration') | 2565 @DomName('CSSStyleDeclaration') |
| 2566 class CssStyleDeclaration extends Interceptor native "CSSStyleDeclaration,MSStyl
eCSSProperties,CSS2Properties" { | 2566 class CssStyleDeclaration extends Interceptor native "CSSStyleDeclaration,MSStyl
eCSSProperties,CSS2Properties" { |
| 2567 factory CssStyleDeclaration() => new CssStyleDeclaration.css(''); | 2567 factory CssStyleDeclaration() => new CssStyleDeclaration.css(''); |
| 2568 | 2568 |
| 2569 factory CssStyleDeclaration.css(String css) { | 2569 factory CssStyleDeclaration.css(String css) { |
| 2570 final style = new Element.tag('div').style; | 2570 final style = new Element.tag('div').style; |
| 2571 style.cssText = css; | 2571 style.cssText = css; |
| 2572 return style; | 2572 return style; |
| 2573 } | 2573 } |
| 2574 | 2574 |
| 2575 | 2575 |
| 2576 @DomName('CSSStyleDeclaration.cssText') | 2576 @DomName('CSSStyleDeclaration.cssText') |
| 2577 @DocsEditable | 2577 @DocsEditable() |
| 2578 String cssText; | 2578 String cssText; |
| 2579 | 2579 |
| 2580 @DomName('CSSStyleDeclaration.length') | 2580 @DomName('CSSStyleDeclaration.length') |
| 2581 @DocsEditable | 2581 @DocsEditable() |
| 2582 final int length; | 2582 final int length; |
| 2583 | 2583 |
| 2584 @DomName('CSSStyleDeclaration.parentRule') | 2584 @DomName('CSSStyleDeclaration.parentRule') |
| 2585 @DocsEditable | 2585 @DocsEditable() |
| 2586 final CssRule parentRule; | 2586 final CssRule parentRule; |
| 2587 | 2587 |
| 2588 @DomName('CSSStyleDeclaration.__setter__') | 2588 @DomName('CSSStyleDeclaration.__setter__') |
| 2589 @DocsEditable | 2589 @DocsEditable() |
| 2590 void __setter__(String propertyName, String propertyValue) native; | 2590 void __setter__(String propertyName, String propertyValue) native; |
| 2591 | 2591 |
| 2592 @DomName('CSSStyleDeclaration.getPropertyPriority') | 2592 @DomName('CSSStyleDeclaration.getPropertyPriority') |
| 2593 @DocsEditable | 2593 @DocsEditable() |
| 2594 String getPropertyPriority(String propertyName) native; | 2594 String getPropertyPriority(String propertyName) native; |
| 2595 | 2595 |
| 2596 @JSName('getPropertyValue') | 2596 @JSName('getPropertyValue') |
| 2597 @DomName('CSSStyleDeclaration.getPropertyValue') | 2597 @DomName('CSSStyleDeclaration.getPropertyValue') |
| 2598 @DocsEditable | 2598 @DocsEditable() |
| 2599 String _getPropertyValue(String propertyName) native; | 2599 String _getPropertyValue(String propertyName) native; |
| 2600 | 2600 |
| 2601 @DomName('CSSStyleDeclaration.item') | 2601 @DomName('CSSStyleDeclaration.item') |
| 2602 @DocsEditable | 2602 @DocsEditable() |
| 2603 String item(int index) native; | 2603 String item(int index) native; |
| 2604 | 2604 |
| 2605 @DomName('CSSStyleDeclaration.removeProperty') | 2605 @DomName('CSSStyleDeclaration.removeProperty') |
| 2606 @DocsEditable | 2606 @DocsEditable() |
| 2607 String removeProperty(String propertyName) native; | 2607 String removeProperty(String propertyName) native; |
| 2608 | 2608 |
| 2609 | 2609 |
| 2610 String getPropertyValue(String propertyName) { | 2610 String getPropertyValue(String propertyName) { |
| 2611 var propValue = _getPropertyValue(propertyName); | 2611 var propValue = _getPropertyValue(propertyName); |
| 2612 return propValue != null ? propValue : ''; | 2612 return propValue != null ? propValue : ''; |
| 2613 } | 2613 } |
| 2614 | 2614 |
| 2615 @DomName('CSSStyleDeclaration.setProperty') | 2615 @DomName('CSSStyleDeclaration.setProperty') |
| 2616 void setProperty(String propertyName, String value, [String priority]) { | 2616 void setProperty(String propertyName, String value, [String priority]) { |
| (...skipping 3178 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 5795 /** Sets the value of "zoom" */ | 5795 /** Sets the value of "zoom" */ |
| 5796 void set zoom(String value) { | 5796 void set zoom(String value) { |
| 5797 setProperty('zoom', value, ''); | 5797 setProperty('zoom', value, ''); |
| 5798 } | 5798 } |
| 5799 } | 5799 } |
| 5800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5800 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5801 // for details. All rights reserved. Use of this source code is governed by a | 5801 // for details. All rights reserved. Use of this source code is governed by a |
| 5802 // BSD-style license that can be found in the LICENSE file. | 5802 // BSD-style license that can be found in the LICENSE file. |
| 5803 | 5803 |
| 5804 | 5804 |
| 5805 @DocsEditable | 5805 @DocsEditable() |
| 5806 @DomName('CSSStyleRule') | 5806 @DomName('CSSStyleRule') |
| 5807 class CssStyleRule extends CssRule native "CSSStyleRule" { | 5807 class CssStyleRule extends CssRule native "CSSStyleRule" { |
| 5808 // To suppress missing implicit constructor warnings. | 5808 // To suppress missing implicit constructor warnings. |
| 5809 factory CssStyleRule._() { throw new UnsupportedError("Not supported"); } | 5809 factory CssStyleRule._() { throw new UnsupportedError("Not supported"); } |
| 5810 | 5810 |
| 5811 @DomName('CSSStyleRule.selectorText') | 5811 @DomName('CSSStyleRule.selectorText') |
| 5812 @DocsEditable | 5812 @DocsEditable() |
| 5813 String selectorText; | 5813 String selectorText; |
| 5814 | 5814 |
| 5815 @DomName('CSSStyleRule.style') | 5815 @DomName('CSSStyleRule.style') |
| 5816 @DocsEditable | 5816 @DocsEditable() |
| 5817 final CssStyleDeclaration style; | 5817 final CssStyleDeclaration style; |
| 5818 } | 5818 } |
| 5819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5819 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5820 // for details. All rights reserved. Use of this source code is governed by a | 5820 // for details. All rights reserved. Use of this source code is governed by a |
| 5821 // BSD-style license that can be found in the LICENSE file. | 5821 // BSD-style license that can be found in the LICENSE file. |
| 5822 | 5822 |
| 5823 | 5823 |
| 5824 @DocsEditable | 5824 @DocsEditable() |
| 5825 @DomName('CSSStyleSheet') | 5825 @DomName('CSSStyleSheet') |
| 5826 class CssStyleSheet extends StyleSheet native "CSSStyleSheet" { | 5826 class CssStyleSheet extends StyleSheet native "CSSStyleSheet" { |
| 5827 // To suppress missing implicit constructor warnings. | 5827 // To suppress missing implicit constructor warnings. |
| 5828 factory CssStyleSheet._() { throw new UnsupportedError("Not supported"); } | 5828 factory CssStyleSheet._() { throw new UnsupportedError("Not supported"); } |
| 5829 | 5829 |
| 5830 @DomName('CSSStyleSheet.cssRules') | 5830 @DomName('CSSStyleSheet.cssRules') |
| 5831 @DocsEditable | 5831 @DocsEditable() |
| 5832 @Returns('_CssRuleList') | 5832 @Returns('_CssRuleList') |
| 5833 @Creates('_CssRuleList') | 5833 @Creates('_CssRuleList') |
| 5834 final List<CssRule> cssRules; | 5834 final List<CssRule> cssRules; |
| 5835 | 5835 |
| 5836 @DomName('CSSStyleSheet.ownerRule') | 5836 @DomName('CSSStyleSheet.ownerRule') |
| 5837 @DocsEditable | 5837 @DocsEditable() |
| 5838 final CssRule ownerRule; | 5838 final CssRule ownerRule; |
| 5839 | 5839 |
| 5840 @DomName('CSSStyleSheet.rules') | 5840 @DomName('CSSStyleSheet.rules') |
| 5841 @DocsEditable | 5841 @DocsEditable() |
| 5842 @Experimental // non-standard | 5842 @Experimental() // non-standard |
| 5843 @Returns('_CssRuleList') | 5843 @Returns('_CssRuleList') |
| 5844 @Creates('_CssRuleList') | 5844 @Creates('_CssRuleList') |
| 5845 final List<CssRule> rules; | 5845 final List<CssRule> rules; |
| 5846 | 5846 |
| 5847 @DomName('CSSStyleSheet.addRule') | 5847 @DomName('CSSStyleSheet.addRule') |
| 5848 @DocsEditable | 5848 @DocsEditable() |
| 5849 @Experimental // non-standard | 5849 @Experimental() // non-standard |
| 5850 int addRule(String selector, String style, [int index]) native; | 5850 int addRule(String selector, String style, [int index]) native; |
| 5851 | 5851 |
| 5852 @DomName('CSSStyleSheet.deleteRule') | 5852 @DomName('CSSStyleSheet.deleteRule') |
| 5853 @DocsEditable | 5853 @DocsEditable() |
| 5854 void deleteRule(int index) native; | 5854 void deleteRule(int index) native; |
| 5855 | 5855 |
| 5856 @DomName('CSSStyleSheet.insertRule') | 5856 @DomName('CSSStyleSheet.insertRule') |
| 5857 @DocsEditable | 5857 @DocsEditable() |
| 5858 int insertRule(String rule, int index) native; | 5858 int insertRule(String rule, int index) native; |
| 5859 | 5859 |
| 5860 @DomName('CSSStyleSheet.removeRule') | 5860 @DomName('CSSStyleSheet.removeRule') |
| 5861 @DocsEditable | 5861 @DocsEditable() |
| 5862 @Experimental // non-standard | 5862 @Experimental() // non-standard |
| 5863 void removeRule(int index) native; | 5863 void removeRule(int index) native; |
| 5864 } | 5864 } |
| 5865 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5865 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5866 // for details. All rights reserved. Use of this source code is governed by a | 5866 // for details. All rights reserved. Use of this source code is governed by a |
| 5867 // BSD-style license that can be found in the LICENSE file. | 5867 // BSD-style license that can be found in the LICENSE file. |
| 5868 | 5868 |
| 5869 | 5869 |
| 5870 @DocsEditable | 5870 @DocsEditable() |
| 5871 @DomName('CSSSupportsRule') | 5871 @DomName('CSSSupportsRule') |
| 5872 class CssSupportsRule extends CssRule native "CSSSupportsRule" { | 5872 class CssSupportsRule extends CssRule native "CSSSupportsRule" { |
| 5873 // To suppress missing implicit constructor warnings. | 5873 // To suppress missing implicit constructor warnings. |
| 5874 factory CssSupportsRule._() { throw new UnsupportedError("Not supported"); } | 5874 factory CssSupportsRule._() { throw new UnsupportedError("Not supported"); } |
| 5875 | 5875 |
| 5876 @DomName('CSSSupportsRule.conditionText') | 5876 @DomName('CSSSupportsRule.conditionText') |
| 5877 @DocsEditable | 5877 @DocsEditable() |
| 5878 final String conditionText; | 5878 final String conditionText; |
| 5879 | 5879 |
| 5880 @DomName('CSSSupportsRule.cssRules') | 5880 @DomName('CSSSupportsRule.cssRules') |
| 5881 @DocsEditable | 5881 @DocsEditable() |
| 5882 @Returns('_CssRuleList') | 5882 @Returns('_CssRuleList') |
| 5883 @Creates('_CssRuleList') | 5883 @Creates('_CssRuleList') |
| 5884 final List<CssRule> cssRules; | 5884 final List<CssRule> cssRules; |
| 5885 | 5885 |
| 5886 @DomName('CSSSupportsRule.deleteRule') | 5886 @DomName('CSSSupportsRule.deleteRule') |
| 5887 @DocsEditable | 5887 @DocsEditable() |
| 5888 void deleteRule(int index) native; | 5888 void deleteRule(int index) native; |
| 5889 | 5889 |
| 5890 @DomName('CSSSupportsRule.insertRule') | 5890 @DomName('CSSSupportsRule.insertRule') |
| 5891 @DocsEditable | 5891 @DocsEditable() |
| 5892 int insertRule(String rule, int index) native; | 5892 int insertRule(String rule, int index) native; |
| 5893 } | 5893 } |
| 5894 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 5894 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 5895 // for details. All rights reserved. Use of this source code is governed by a | 5895 // for details. All rights reserved. Use of this source code is governed by a |
| 5896 // BSD-style license that can be found in the LICENSE file. | 5896 // BSD-style license that can be found in the LICENSE file. |
| 5897 | 5897 |
| 5898 | 5898 |
| 5899 @DocsEditable | 5899 @DocsEditable() |
| 5900 @DomName('WebKitCSSTransformValue') | 5900 @DomName('WebKitCSSTransformValue') |
| 5901 @SupportedBrowser(SupportedBrowser.CHROME) | 5901 @SupportedBrowser(SupportedBrowser.CHROME) |
| 5902 @SupportedBrowser(SupportedBrowser.SAFARI) | 5902 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 5903 @Experimental | 5903 @Experimental() |
| 5904 // http://dev.w3.org/csswg/cssom/ | 5904 // http://dev.w3.org/csswg/cssom/ |
| 5905 @deprecated // deprecated | 5905 @deprecated // deprecated |
| 5906 class CssTransformValue extends _CssValueList native "WebKitCSSTransformValue" { | 5906 class CssTransformValue extends _CssValueList native "WebKitCSSTransformValue" { |
| 5907 // To suppress missing implicit constructor warnings. | 5907 // To suppress missing implicit constructor warnings. |
| 5908 factory CssTransformValue._() { throw new UnsupportedError("Not supported"); } | 5908 factory CssTransformValue._() { throw new UnsupportedError("Not supported"); } |
| 5909 | 5909 |
| 5910 @DomName('WebKitCSSTransformValue.CSS_MATRIX') | 5910 @DomName('WebKitCSSTransformValue.CSS_MATRIX') |
| 5911 @DocsEditable | 5911 @DocsEditable() |
| 5912 static const int CSS_MATRIX = 11; | 5912 static const int CSS_MATRIX = 11; |
| 5913 | 5913 |
| 5914 @DomName('WebKitCSSTransformValue.CSS_MATRIX3D') | 5914 @DomName('WebKitCSSTransformValue.CSS_MATRIX3D') |
| 5915 @DocsEditable | 5915 @DocsEditable() |
| 5916 static const int CSS_MATRIX3D = 21; | 5916 static const int CSS_MATRIX3D = 21; |
| 5917 | 5917 |
| 5918 @DomName('WebKitCSSTransformValue.CSS_PERSPECTIVE') | 5918 @DomName('WebKitCSSTransformValue.CSS_PERSPECTIVE') |
| 5919 @DocsEditable | 5919 @DocsEditable() |
| 5920 static const int CSS_PERSPECTIVE = 20; | 5920 static const int CSS_PERSPECTIVE = 20; |
| 5921 | 5921 |
| 5922 @DomName('WebKitCSSTransformValue.CSS_ROTATE') | 5922 @DomName('WebKitCSSTransformValue.CSS_ROTATE') |
| 5923 @DocsEditable | 5923 @DocsEditable() |
| 5924 static const int CSS_ROTATE = 4; | 5924 static const int CSS_ROTATE = 4; |
| 5925 | 5925 |
| 5926 @DomName('WebKitCSSTransformValue.CSS_ROTATE3D') | 5926 @DomName('WebKitCSSTransformValue.CSS_ROTATE3D') |
| 5927 @DocsEditable | 5927 @DocsEditable() |
| 5928 static const int CSS_ROTATE3D = 17; | 5928 static const int CSS_ROTATE3D = 17; |
| 5929 | 5929 |
| 5930 @DomName('WebKitCSSTransformValue.CSS_ROTATEX') | 5930 @DomName('WebKitCSSTransformValue.CSS_ROTATEX') |
| 5931 @DocsEditable | 5931 @DocsEditable() |
| 5932 static const int CSS_ROTATEX = 14; | 5932 static const int CSS_ROTATEX = 14; |
| 5933 | 5933 |
| 5934 @DomName('WebKitCSSTransformValue.CSS_ROTATEY') | 5934 @DomName('WebKitCSSTransformValue.CSS_ROTATEY') |
| 5935 @DocsEditable | 5935 @DocsEditable() |
| 5936 static const int CSS_ROTATEY = 15; | 5936 static const int CSS_ROTATEY = 15; |
| 5937 | 5937 |
| 5938 @DomName('WebKitCSSTransformValue.CSS_ROTATEZ') | 5938 @DomName('WebKitCSSTransformValue.CSS_ROTATEZ') |
| 5939 @DocsEditable | 5939 @DocsEditable() |
| 5940 static const int CSS_ROTATEZ = 16; | 5940 static const int CSS_ROTATEZ = 16; |
| 5941 | 5941 |
| 5942 @DomName('WebKitCSSTransformValue.CSS_SCALE') | 5942 @DomName('WebKitCSSTransformValue.CSS_SCALE') |
| 5943 @DocsEditable | 5943 @DocsEditable() |
| 5944 static const int CSS_SCALE = 5; | 5944 static const int CSS_SCALE = 5; |
| 5945 | 5945 |
| 5946 @DomName('WebKitCSSTransformValue.CSS_SCALE3D') | 5946 @DomName('WebKitCSSTransformValue.CSS_SCALE3D') |
| 5947 @DocsEditable | 5947 @DocsEditable() |
| 5948 static const int CSS_SCALE3D = 19; | 5948 static const int CSS_SCALE3D = 19; |
| 5949 | 5949 |
| 5950 @DomName('WebKitCSSTransformValue.CSS_SCALEX') | 5950 @DomName('WebKitCSSTransformValue.CSS_SCALEX') |
| 5951 @DocsEditable | 5951 @DocsEditable() |
| 5952 static const int CSS_SCALEX = 6; | 5952 static const int CSS_SCALEX = 6; |
| 5953 | 5953 |
| 5954 @DomName('WebKitCSSTransformValue.CSS_SCALEY') | 5954 @DomName('WebKitCSSTransformValue.CSS_SCALEY') |
| 5955 @DocsEditable | 5955 @DocsEditable() |
| 5956 static const int CSS_SCALEY = 7; | 5956 static const int CSS_SCALEY = 7; |
| 5957 | 5957 |
| 5958 @DomName('WebKitCSSTransformValue.CSS_SCALEZ') | 5958 @DomName('WebKitCSSTransformValue.CSS_SCALEZ') |
| 5959 @DocsEditable | 5959 @DocsEditable() |
| 5960 static const int CSS_SCALEZ = 18; | 5960 static const int CSS_SCALEZ = 18; |
| 5961 | 5961 |
| 5962 @DomName('WebKitCSSTransformValue.CSS_SKEW') | 5962 @DomName('WebKitCSSTransformValue.CSS_SKEW') |
| 5963 @DocsEditable | 5963 @DocsEditable() |
| 5964 static const int CSS_SKEW = 8; | 5964 static const int CSS_SKEW = 8; |
| 5965 | 5965 |
| 5966 @DomName('WebKitCSSTransformValue.CSS_SKEWX') | 5966 @DomName('WebKitCSSTransformValue.CSS_SKEWX') |
| 5967 @DocsEditable | 5967 @DocsEditable() |
| 5968 static const int CSS_SKEWX = 9; | 5968 static const int CSS_SKEWX = 9; |
| 5969 | 5969 |
| 5970 @DomName('WebKitCSSTransformValue.CSS_SKEWY') | 5970 @DomName('WebKitCSSTransformValue.CSS_SKEWY') |
| 5971 @DocsEditable | 5971 @DocsEditable() |
| 5972 static const int CSS_SKEWY = 10; | 5972 static const int CSS_SKEWY = 10; |
| 5973 | 5973 |
| 5974 @DomName('WebKitCSSTransformValue.CSS_TRANSLATE') | 5974 @DomName('WebKitCSSTransformValue.CSS_TRANSLATE') |
| 5975 @DocsEditable | 5975 @DocsEditable() |
| 5976 static const int CSS_TRANSLATE = 1; | 5976 static const int CSS_TRANSLATE = 1; |
| 5977 | 5977 |
| 5978 @DomName('WebKitCSSTransformValue.CSS_TRANSLATE3D') | 5978 @DomName('WebKitCSSTransformValue.CSS_TRANSLATE3D') |
| 5979 @DocsEditable | 5979 @DocsEditable() |
| 5980 static const int CSS_TRANSLATE3D = 13; | 5980 static const int CSS_TRANSLATE3D = 13; |
| 5981 | 5981 |
| 5982 @DomName('WebKitCSSTransformValue.CSS_TRANSLATEX') | 5982 @DomName('WebKitCSSTransformValue.CSS_TRANSLATEX') |
| 5983 @DocsEditable | 5983 @DocsEditable() |
| 5984 static const int CSS_TRANSLATEX = 2; | 5984 static const int CSS_TRANSLATEX = 2; |
| 5985 | 5985 |
| 5986 @DomName('WebKitCSSTransformValue.CSS_TRANSLATEY') | 5986 @DomName('WebKitCSSTransformValue.CSS_TRANSLATEY') |
| 5987 @DocsEditable | 5987 @DocsEditable() |
| 5988 static const int CSS_TRANSLATEY = 3; | 5988 static const int CSS_TRANSLATEY = 3; |
| 5989 | 5989 |
| 5990 @DomName('WebKitCSSTransformValue.CSS_TRANSLATEZ') | 5990 @DomName('WebKitCSSTransformValue.CSS_TRANSLATEZ') |
| 5991 @DocsEditable | 5991 @DocsEditable() |
| 5992 static const int CSS_TRANSLATEZ = 12; | 5992 static const int CSS_TRANSLATEZ = 12; |
| 5993 | 5993 |
| 5994 @DomName('WebKitCSSTransformValue.operationType') | 5994 @DomName('WebKitCSSTransformValue.operationType') |
| 5995 @DocsEditable | 5995 @DocsEditable() |
| 5996 final int operationType; | 5996 final int operationType; |
| 5997 | 5997 |
| 5998 @DomName('WebKitCSSTransformValue.__getter__') | 5998 @DomName('WebKitCSSTransformValue.__getter__') |
| 5999 @DocsEditable | 5999 @DocsEditable() |
| 6000 _CSSValue __getter__(int index) native; | 6000 _CSSValue __getter__(int index) native; |
| 6001 } | 6001 } |
| 6002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6002 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6003 // for details. All rights reserved. Use of this source code is governed by a | 6003 // for details. All rights reserved. Use of this source code is governed by a |
| 6004 // BSD-style license that can be found in the LICENSE file. | 6004 // BSD-style license that can be found in the LICENSE file. |
| 6005 | 6005 |
| 6006 | 6006 |
| 6007 @DocsEditable | 6007 @DocsEditable() |
| 6008 @DomName('CSSUnknownRule') | 6008 @DomName('CSSUnknownRule') |
| 6009 // http://dev.w3.org/csswg/cssom/#the-cssstylesheet-interface | 6009 // http://dev.w3.org/csswg/cssom/#the-cssstylesheet-interface |
| 6010 @deprecated // deprecated | 6010 @deprecated // deprecated |
| 6011 class CssUnknownRule extends CssRule native "CSSUnknownRule" { | 6011 class CssUnknownRule extends CssRule native "CSSUnknownRule" { |
| 6012 // To suppress missing implicit constructor warnings. | 6012 // To suppress missing implicit constructor warnings. |
| 6013 factory CssUnknownRule._() { throw new UnsupportedError("Not supported"); } | 6013 factory CssUnknownRule._() { throw new UnsupportedError("Not supported"); } |
| 6014 } | 6014 } |
| 6015 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6015 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6016 // for details. All rights reserved. Use of this source code is governed by a | 6016 // for details. All rights reserved. Use of this source code is governed by a |
| 6017 // BSD-style license that can be found in the LICENSE file. | 6017 // BSD-style license that can be found in the LICENSE file. |
| 6018 | 6018 |
| 6019 | 6019 |
| 6020 @DocsEditable | 6020 @DocsEditable() |
| 6021 @DomName('CustomElementConstructor') | 6021 @DomName('CustomElementConstructor') |
| 6022 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#dfn-
custom-element-constructor-generation | 6022 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#dfn-
custom-element-constructor-generation |
| 6023 @deprecated // experimental | 6023 @deprecated // experimental |
| 6024 class CustomElementConstructor extends Interceptor native "CustomElementConstruc
tor" { | 6024 class CustomElementConstructor extends Interceptor native "CustomElementConstruc
tor" { |
| 6025 } | 6025 } |
| 6026 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6026 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6027 // for details. All rights reserved. Use of this source code is governed by a | 6027 // for details. All rights reserved. Use of this source code is governed by a |
| 6028 // BSD-style license that can be found in the LICENSE file. | 6028 // BSD-style license that can be found in the LICENSE file. |
| 6029 | 6029 |
| 6030 // WARNING: Do not edit - generated code. | 6030 // WARNING: Do not edit - generated code. |
| 6031 | 6031 |
| 6032 | 6032 |
| 6033 @DomName('CustomEvent') | 6033 @DomName('CustomEvent') |
| 6034 class CustomEvent extends Event native "CustomEvent" { | 6034 class CustomEvent extends Event native "CustomEvent" { |
| 6035 factory CustomEvent(String type, | 6035 factory CustomEvent(String type, |
| 6036 {bool canBubble: true, bool cancelable: true, Object detail}) { | 6036 {bool canBubble: true, bool cancelable: true, Object detail}) { |
| 6037 | 6037 |
| 6038 final CustomEvent e = document.$dom_createEvent("CustomEvent"); | 6038 final CustomEvent e = document.$dom_createEvent("CustomEvent"); |
| 6039 e.$dom_initCustomEvent(type, canBubble, cancelable, detail); | 6039 e.$dom_initCustomEvent(type, canBubble, cancelable, detail); |
| 6040 | 6040 |
| 6041 return e; | 6041 return e; |
| 6042 } | 6042 } |
| 6043 // To suppress missing implicit constructor warnings. | 6043 // To suppress missing implicit constructor warnings. |
| 6044 factory CustomEvent._() { throw new UnsupportedError("Not supported"); } | 6044 factory CustomEvent._() { throw new UnsupportedError("Not supported"); } |
| 6045 | 6045 |
| 6046 @DomName('CustomEvent.detail') | 6046 @DomName('CustomEvent.detail') |
| 6047 @DocsEditable | 6047 @DocsEditable() |
| 6048 @Creates('Null') | 6048 @Creates('Null') |
| 6049 final Object detail; | 6049 final Object detail; |
| 6050 | 6050 |
| 6051 @JSName('initCustomEvent') | 6051 @JSName('initCustomEvent') |
| 6052 @DomName('CustomEvent.initCustomEvent') | 6052 @DomName('CustomEvent.initCustomEvent') |
| 6053 @DocsEditable | 6053 @DocsEditable() |
| 6054 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, Object detailArg) native; | 6054 void $dom_initCustomEvent(String typeArg, bool canBubbleArg, bool cancelableAr
g, Object detailArg) native; |
| 6055 | 6055 |
| 6056 } | 6056 } |
| 6057 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6057 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6058 // for details. All rights reserved. Use of this source code is governed by a | 6058 // for details. All rights reserved. Use of this source code is governed by a |
| 6059 // BSD-style license that can be found in the LICENSE file. | 6059 // BSD-style license that can be found in the LICENSE file. |
| 6060 | 6060 |
| 6061 | 6061 |
| 6062 @DocsEditable | 6062 @DocsEditable() |
| 6063 @DomName('HTMLDListElement') | 6063 @DomName('HTMLDListElement') |
| 6064 class DListElement extends _HTMLElement native "HTMLDListElement" { | 6064 class DListElement extends _HTMLElement native "HTMLDListElement" { |
| 6065 // To suppress missing implicit constructor warnings. | 6065 // To suppress missing implicit constructor warnings. |
| 6066 factory DListElement._() { throw new UnsupportedError("Not supported"); } | 6066 factory DListElement._() { throw new UnsupportedError("Not supported"); } |
| 6067 | 6067 |
| 6068 @DomName('HTMLDListElement.HTMLDListElement') | 6068 @DomName('HTMLDListElement.HTMLDListElement') |
| 6069 @DocsEditable | 6069 @DocsEditable() |
| 6070 factory DListElement() => document.$dom_createElement("dl"); | 6070 factory DListElement() => document.$dom_createElement("dl"); |
| 6071 } | 6071 } |
| 6072 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6072 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6073 // for details. All rights reserved. Use of this source code is governed by a | 6073 // for details. All rights reserved. Use of this source code is governed by a |
| 6074 // BSD-style license that can be found in the LICENSE file. | 6074 // BSD-style license that can be found in the LICENSE file. |
| 6075 | 6075 |
| 6076 | 6076 |
| 6077 @DocsEditable | 6077 @DocsEditable() |
| 6078 @DomName('HTMLDataListElement') | 6078 @DomName('HTMLDataListElement') |
| 6079 @SupportedBrowser(SupportedBrowser.CHROME) | 6079 @SupportedBrowser(SupportedBrowser.CHROME) |
| 6080 @SupportedBrowser(SupportedBrowser.FIREFOX) | 6080 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 6081 @SupportedBrowser(SupportedBrowser.IE, '10') | 6081 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 6082 @SupportedBrowser(SupportedBrowser.SAFARI) | 6082 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 6083 class DataListElement extends _HTMLElement native "HTMLDataListElement" { | 6083 class DataListElement extends _HTMLElement native "HTMLDataListElement" { |
| 6084 // To suppress missing implicit constructor warnings. | 6084 // To suppress missing implicit constructor warnings. |
| 6085 factory DataListElement._() { throw new UnsupportedError("Not supported"); } | 6085 factory DataListElement._() { throw new UnsupportedError("Not supported"); } |
| 6086 | 6086 |
| 6087 @DomName('HTMLDataListElement.HTMLDataListElement') | 6087 @DomName('HTMLDataListElement.HTMLDataListElement') |
| 6088 @DocsEditable | 6088 @DocsEditable() |
| 6089 factory DataListElement() => document.$dom_createElement("datalist"); | 6089 factory DataListElement() => document.$dom_createElement("datalist"); |
| 6090 | 6090 |
| 6091 /// Checks if this type is supported on the current platform. | 6091 /// Checks if this type is supported on the current platform. |
| 6092 static bool get supported => Element.isTagSupported('datalist'); | 6092 static bool get supported => Element.isTagSupported('datalist'); |
| 6093 | 6093 |
| 6094 @DomName('HTMLDataListElement.options') | 6094 @DomName('HTMLDataListElement.options') |
| 6095 @DocsEditable | 6095 @DocsEditable() |
| 6096 final HtmlCollection options; | 6096 final HtmlCollection options; |
| 6097 } | 6097 } |
| 6098 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6098 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6099 // for details. All rights reserved. Use of this source code is governed by a | 6099 // for details. All rights reserved. Use of this source code is governed by a |
| 6100 // BSD-style license that can be found in the LICENSE file. | 6100 // BSD-style license that can be found in the LICENSE file. |
| 6101 | 6101 |
| 6102 | 6102 |
| 6103 @DocsEditable | 6103 @DocsEditable() |
| 6104 @DomName('Clipboard') | 6104 @DomName('Clipboard') |
| 6105 class DataTransfer extends Interceptor native "Clipboard" { | 6105 class DataTransfer extends Interceptor native "Clipboard" { |
| 6106 | 6106 |
| 6107 @DomName('Clipboard.dropEffect') | 6107 @DomName('Clipboard.dropEffect') |
| 6108 @DocsEditable | 6108 @DocsEditable() |
| 6109 String dropEffect; | 6109 String dropEffect; |
| 6110 | 6110 |
| 6111 @DomName('Clipboard.effectAllowed') | 6111 @DomName('Clipboard.effectAllowed') |
| 6112 @DocsEditable | 6112 @DocsEditable() |
| 6113 String effectAllowed; | 6113 String effectAllowed; |
| 6114 | 6114 |
| 6115 @DomName('Clipboard.files') | 6115 @DomName('Clipboard.files') |
| 6116 @DocsEditable | 6116 @DocsEditable() |
| 6117 @Returns('FileList') | 6117 @Returns('FileList') |
| 6118 @Creates('FileList') | 6118 @Creates('FileList') |
| 6119 final List<File> files; | 6119 final List<File> files; |
| 6120 | 6120 |
| 6121 @DomName('Clipboard.items') | 6121 @DomName('Clipboard.items') |
| 6122 @DocsEditable | 6122 @DocsEditable() |
| 6123 final DataTransferItemList items; | 6123 final DataTransferItemList items; |
| 6124 | 6124 |
| 6125 @DomName('Clipboard.types') | 6125 @DomName('Clipboard.types') |
| 6126 @DocsEditable | 6126 @DocsEditable() |
| 6127 final List types; | 6127 final List types; |
| 6128 | 6128 |
| 6129 @DomName('Clipboard.clearData') | 6129 @DomName('Clipboard.clearData') |
| 6130 @DocsEditable | 6130 @DocsEditable() |
| 6131 void clearData([String type]) native; | 6131 void clearData([String type]) native; |
| 6132 | 6132 |
| 6133 /** | 6133 /** |
| 6134 * Gets the data for the specified type. | 6134 * Gets the data for the specified type. |
| 6135 * | 6135 * |
| 6136 * The data is only available from within a drop operation (such as an | 6136 * The data is only available from within a drop operation (such as an |
| 6137 * [Element.onDrop] event) and will return `null` before the event is | 6137 * [Element.onDrop] event) and will return `null` before the event is |
| 6138 * triggered. | 6138 * triggered. |
| 6139 * | 6139 * |
| 6140 * Data transfer is prohibited across domains. If a drag originates | 6140 * Data transfer is prohibited across domains. If a drag originates |
| 6141 * from content from another domain or protocol (HTTP vs HTTPS) then the | 6141 * from content from another domain or protocol (HTTP vs HTTPS) then the |
| 6142 * data cannot be accessed. | 6142 * data cannot be accessed. |
| 6143 * | 6143 * |
| 6144 * The [type] can have values such as: | 6144 * The [type] can have values such as: |
| 6145 * | 6145 * |
| 6146 * * `'Text'` | 6146 * * `'Text'` |
| 6147 * * `'URL'` | 6147 * * `'URL'` |
| 6148 */ | 6148 */ |
| 6149 @DomName('Clipboard.getData') | 6149 @DomName('Clipboard.getData') |
| 6150 @DocsEditable | 6150 @DocsEditable() |
| 6151 String getData(String type) native; | 6151 String getData(String type) native; |
| 6152 | 6152 |
| 6153 @DomName('Clipboard.setData') | 6153 @DomName('Clipboard.setData') |
| 6154 @DocsEditable | 6154 @DocsEditable() |
| 6155 bool setData(String type, String data) native; | 6155 bool setData(String type, String data) native; |
| 6156 | 6156 |
| 6157 @DomName('Clipboard.setDragImage') | 6157 @DomName('Clipboard.setDragImage') |
| 6158 @DocsEditable | 6158 @DocsEditable() |
| 6159 void setDragImage(Element element, int x, int y) native; | 6159 void setDragImage(Element element, int x, int y) native; |
| 6160 } | 6160 } |
| 6161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6161 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6162 // for details. All rights reserved. Use of this source code is governed by a | 6162 // for details. All rights reserved. Use of this source code is governed by a |
| 6163 // BSD-style license that can be found in the LICENSE file. | 6163 // BSD-style license that can be found in the LICENSE file. |
| 6164 | 6164 |
| 6165 | 6165 |
| 6166 @DocsEditable | 6166 @DocsEditable() |
| 6167 @DomName('DataTransferItem') | 6167 @DomName('DataTransferItem') |
| 6168 // http://www.w3.org/TR/2011/WD-html5-20110113/dnd.html#the-datatransferitem-int
erface | 6168 // http://www.w3.org/TR/2011/WD-html5-20110113/dnd.html#the-datatransferitem-int
erface |
| 6169 @Experimental | 6169 @Experimental() |
| 6170 class DataTransferItem extends Interceptor native "DataTransferItem" { | 6170 class DataTransferItem extends Interceptor native "DataTransferItem" { |
| 6171 | 6171 |
| 6172 @DomName('DataTransferItem.kind') | 6172 @DomName('DataTransferItem.kind') |
| 6173 @DocsEditable | 6173 @DocsEditable() |
| 6174 final String kind; | 6174 final String kind; |
| 6175 | 6175 |
| 6176 @DomName('DataTransferItem.type') | 6176 @DomName('DataTransferItem.type') |
| 6177 @DocsEditable | 6177 @DocsEditable() |
| 6178 final String type; | 6178 final String type; |
| 6179 | 6179 |
| 6180 @DomName('DataTransferItem.getAsFile') | 6180 @DomName('DataTransferItem.getAsFile') |
| 6181 @DocsEditable | 6181 @DocsEditable() |
| 6182 Blob getAsFile() native; | 6182 Blob getAsFile() native; |
| 6183 | 6183 |
| 6184 @JSName('getAsString') | 6184 @JSName('getAsString') |
| 6185 @DomName('DataTransferItem.getAsString') | 6185 @DomName('DataTransferItem.getAsString') |
| 6186 @DocsEditable | 6186 @DocsEditable() |
| 6187 void _getAsString([_StringCallback callback]) native; | 6187 void _getAsString([_StringCallback callback]) native; |
| 6188 | 6188 |
| 6189 @JSName('getAsString') | 6189 @JSName('getAsString') |
| 6190 @DomName('DataTransferItem.getAsString') | 6190 @DomName('DataTransferItem.getAsString') |
| 6191 @DocsEditable | 6191 @DocsEditable() |
| 6192 Future<String> getAsString() { | 6192 Future<String> getAsString() { |
| 6193 var completer = new Completer<String>(); | 6193 var completer = new Completer<String>(); |
| 6194 _getAsString( | 6194 _getAsString( |
| 6195 (value) { completer.complete(value); }); | 6195 (value) { completer.complete(value); }); |
| 6196 return completer.future; | 6196 return completer.future; |
| 6197 } | 6197 } |
| 6198 | 6198 |
| 6199 @JSName('webkitGetAsEntry') | 6199 @JSName('webkitGetAsEntry') |
| 6200 @DomName('DataTransferItem.webkitGetAsEntry') | 6200 @DomName('DataTransferItem.webkitGetAsEntry') |
| 6201 @DocsEditable | 6201 @DocsEditable() |
| 6202 @SupportedBrowser(SupportedBrowser.CHROME) | 6202 @SupportedBrowser(SupportedBrowser.CHROME) |
| 6203 @SupportedBrowser(SupportedBrowser.SAFARI) | 6203 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 6204 @Experimental | 6204 @Experimental() |
| 6205 Entry getAsEntry() native; | 6205 Entry getAsEntry() native; |
| 6206 } | 6206 } |
| 6207 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6207 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6208 // for details. All rights reserved. Use of this source code is governed by a | 6208 // for details. All rights reserved. Use of this source code is governed by a |
| 6209 // BSD-style license that can be found in the LICENSE file. | 6209 // BSD-style license that can be found in the LICENSE file. |
| 6210 | 6210 |
| 6211 | 6211 |
| 6212 @DocsEditable | 6212 @DocsEditable() |
| 6213 @DomName('DataTransferItemList') | 6213 @DomName('DataTransferItemList') |
| 6214 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-data
transferitemlist-interface | 6214 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-data
transferitemlist-interface |
| 6215 @Experimental | 6215 @Experimental() |
| 6216 class DataTransferItemList extends Interceptor native "DataTransferItemList" { | 6216 class DataTransferItemList extends Interceptor native "DataTransferItemList" { |
| 6217 | 6217 |
| 6218 @DomName('DataTransferItemList.length') | 6218 @DomName('DataTransferItemList.length') |
| 6219 @DocsEditable | 6219 @DocsEditable() |
| 6220 final int length; | 6220 final int length; |
| 6221 | 6221 |
| 6222 @DomName('DataTransferItemList.add') | 6222 @DomName('DataTransferItemList.add') |
| 6223 @DocsEditable | 6223 @DocsEditable() |
| 6224 void add(data_OR_file, [String type]) native; | 6224 void add(data_OR_file, [String type]) native; |
| 6225 | 6225 |
| 6226 @DomName('DataTransferItemList.clear') | 6226 @DomName('DataTransferItemList.clear') |
| 6227 @DocsEditable | 6227 @DocsEditable() |
| 6228 void clear() native; | 6228 void clear() native; |
| 6229 | 6229 |
| 6230 @DomName('DataTransferItemList.item') | 6230 @DomName('DataTransferItemList.item') |
| 6231 @DocsEditable | 6231 @DocsEditable() |
| 6232 DataTransferItem item(int index) native; | 6232 DataTransferItem item(int index) native; |
| 6233 } | 6233 } |
| 6234 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6234 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6235 // for details. All rights reserved. Use of this source code is governed by a | 6235 // for details. All rights reserved. Use of this source code is governed by a |
| 6236 // BSD-style license that can be found in the LICENSE file. | 6236 // BSD-style license that can be found in the LICENSE file. |
| 6237 | 6237 |
| 6238 // WARNING: Do not edit - generated code. | 6238 // WARNING: Do not edit - generated code. |
| 6239 | 6239 |
| 6240 | 6240 |
| 6241 @DomName('DatabaseCallback') | 6241 @DomName('DatabaseCallback') |
| 6242 // http://www.w3.org/TR/webdatabase/#databasecallback | 6242 // http://www.w3.org/TR/webdatabase/#databasecallback |
| 6243 @Experimental // deprecated | 6243 @Experimental() // deprecated |
| 6244 typedef void DatabaseCallback(database); | 6244 typedef void DatabaseCallback(database); |
| 6245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6246 // for details. All rights reserved. Use of this source code is governed by a | 6246 // for details. All rights reserved. Use of this source code is governed by a |
| 6247 // BSD-style license that can be found in the LICENSE file. | 6247 // BSD-style license that can be found in the LICENSE file. |
| 6248 | 6248 |
| 6249 | 6249 |
| 6250 @DocsEditable | 6250 @DocsEditable() |
| 6251 @DomName('HTMLDetailsElement') | 6251 @DomName('HTMLDetailsElement') |
| 6252 @SupportedBrowser(SupportedBrowser.CHROME) | 6252 @SupportedBrowser(SupportedBrowser.CHROME) |
| 6253 @SupportedBrowser(SupportedBrowser.SAFARI) | 6253 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 6254 @Experimental | 6254 @Experimental() |
| 6255 class DetailsElement extends _HTMLElement native "HTMLDetailsElement" { | 6255 class DetailsElement extends _HTMLElement native "HTMLDetailsElement" { |
| 6256 // To suppress missing implicit constructor warnings. | 6256 // To suppress missing implicit constructor warnings. |
| 6257 factory DetailsElement._() { throw new UnsupportedError("Not supported"); } | 6257 factory DetailsElement._() { throw new UnsupportedError("Not supported"); } |
| 6258 | 6258 |
| 6259 @DomName('HTMLDetailsElement.HTMLDetailsElement') | 6259 @DomName('HTMLDetailsElement.HTMLDetailsElement') |
| 6260 @DocsEditable | 6260 @DocsEditable() |
| 6261 factory DetailsElement() => document.$dom_createElement("details"); | 6261 factory DetailsElement() => document.$dom_createElement("details"); |
| 6262 | 6262 |
| 6263 /// Checks if this type is supported on the current platform. | 6263 /// Checks if this type is supported on the current platform. |
| 6264 static bool get supported => Element.isTagSupported('details'); | 6264 static bool get supported => Element.isTagSupported('details'); |
| 6265 | 6265 |
| 6266 @DomName('HTMLDetailsElement.open') | 6266 @DomName('HTMLDetailsElement.open') |
| 6267 @DocsEditable | 6267 @DocsEditable() |
| 6268 bool open; | 6268 bool open; |
| 6269 } | 6269 } |
| 6270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6270 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6271 // for details. All rights reserved. Use of this source code is governed by a | 6271 // for details. All rights reserved. Use of this source code is governed by a |
| 6272 // BSD-style license that can be found in the LICENSE file. | 6272 // BSD-style license that can be found in the LICENSE file. |
| 6273 | 6273 |
| 6274 | 6274 |
| 6275 @DocsEditable | 6275 @DocsEditable() |
| 6276 @DomName('DeviceAcceleration') | 6276 @DomName('DeviceAcceleration') |
| 6277 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion | 6277 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion |
| 6278 @Experimental | 6278 @Experimental() |
| 6279 class DeviceAcceleration extends Interceptor native "DeviceAcceleration" { | 6279 class DeviceAcceleration extends Interceptor native "DeviceAcceleration" { |
| 6280 | 6280 |
| 6281 @DomName('DeviceAcceleration.x') | 6281 @DomName('DeviceAcceleration.x') |
| 6282 @DocsEditable | 6282 @DocsEditable() |
| 6283 final num x; | 6283 final num x; |
| 6284 | 6284 |
| 6285 @DomName('DeviceAcceleration.y') | 6285 @DomName('DeviceAcceleration.y') |
| 6286 @DocsEditable | 6286 @DocsEditable() |
| 6287 final num y; | 6287 final num y; |
| 6288 | 6288 |
| 6289 @DomName('DeviceAcceleration.z') | 6289 @DomName('DeviceAcceleration.z') |
| 6290 @DocsEditable | 6290 @DocsEditable() |
| 6291 final num z; | 6291 final num z; |
| 6292 } | 6292 } |
| 6293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6293 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6294 // for details. All rights reserved. Use of this source code is governed by a | 6294 // for details. All rights reserved. Use of this source code is governed by a |
| 6295 // BSD-style license that can be found in the LICENSE file. | 6295 // BSD-style license that can be found in the LICENSE file. |
| 6296 | 6296 |
| 6297 | 6297 |
| 6298 @DocsEditable | 6298 @DocsEditable() |
| 6299 @DomName('DeviceMotionEvent') | 6299 @DomName('DeviceMotionEvent') |
| 6300 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion | 6300 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion |
| 6301 @Experimental | 6301 @Experimental() |
| 6302 class DeviceMotionEvent extends Event native "DeviceMotionEvent" { | 6302 class DeviceMotionEvent extends Event native "DeviceMotionEvent" { |
| 6303 // To suppress missing implicit constructor warnings. | 6303 // To suppress missing implicit constructor warnings. |
| 6304 factory DeviceMotionEvent._() { throw new UnsupportedError("Not supported"); } | 6304 factory DeviceMotionEvent._() { throw new UnsupportedError("Not supported"); } |
| 6305 | 6305 |
| 6306 @DomName('DeviceMotionEvent.acceleration') | 6306 @DomName('DeviceMotionEvent.acceleration') |
| 6307 @DocsEditable | 6307 @DocsEditable() |
| 6308 final DeviceAcceleration acceleration; | 6308 final DeviceAcceleration acceleration; |
| 6309 | 6309 |
| 6310 @DomName('DeviceMotionEvent.accelerationIncludingGravity') | 6310 @DomName('DeviceMotionEvent.accelerationIncludingGravity') |
| 6311 @DocsEditable | 6311 @DocsEditable() |
| 6312 final DeviceAcceleration accelerationIncludingGravity; | 6312 final DeviceAcceleration accelerationIncludingGravity; |
| 6313 | 6313 |
| 6314 @DomName('DeviceMotionEvent.interval') | 6314 @DomName('DeviceMotionEvent.interval') |
| 6315 @DocsEditable | 6315 @DocsEditable() |
| 6316 final num interval; | 6316 final num interval; |
| 6317 | 6317 |
| 6318 @DomName('DeviceMotionEvent.rotationRate') | 6318 @DomName('DeviceMotionEvent.rotationRate') |
| 6319 @DocsEditable | 6319 @DocsEditable() |
| 6320 final DeviceRotationRate rotationRate; | 6320 final DeviceRotationRate rotationRate; |
| 6321 } | 6321 } |
| 6322 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 6322 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 6323 // for details. All rights reserved. Use of this source code is governed by a | 6323 // for details. All rights reserved. Use of this source code is governed by a |
| 6324 // BSD-style license that can be found in the LICENSE file. | 6324 // BSD-style license that can be found in the LICENSE file. |
| 6325 | 6325 |
| 6326 // WARNING: Do not edit - generated code. | 6326 // WARNING: Do not edit - generated code. |
| 6327 | 6327 |
| 6328 @DomName('DeviceOrientationEvent') | 6328 @DomName('DeviceOrientationEvent') |
| 6329 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion | 6329 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion |
| 6330 @Experimental | 6330 @Experimental() |
| 6331 class DeviceOrientationEvent extends Event native "DeviceOrientationEvent" { | 6331 class DeviceOrientationEvent extends Event native "DeviceOrientationEvent" { |
| 6332 factory DeviceOrientationEvent(String type, | 6332 factory DeviceOrientationEvent(String type, |
| 6333 {bool canBubble: true, bool cancelable: true, num alpha: 0, num beta: 0, | 6333 {bool canBubble: true, bool cancelable: true, num alpha: 0, num beta: 0, |
| 6334 num gamma: 0, bool absolute: false}) { | 6334 num gamma: 0, bool absolute: false}) { |
| 6335 var e = document.$dom_createEvent("DeviceOrientationEvent"); | 6335 var e = document.$dom_createEvent("DeviceOrientationEvent"); |
| 6336 e.$dom_initDeviceOrientationEvent(type, canBubble, cancelable, alpha, beta, | 6336 e.$dom_initDeviceOrientationEvent(type, canBubble, cancelable, alpha, beta, |
| 6337 gamma, absolute); | 6337 gamma, absolute); |
| 6338 return e; | 6338 return e; |
| 6339 } | 6339 } |
| 6340 // To suppress missing implicit constructor warnings. | 6340 // To suppress missing implicit constructor warnings. |
| 6341 factory DeviceOrientationEvent._() { throw new UnsupportedError("Not supported
"); } | 6341 factory DeviceOrientationEvent._() { throw new UnsupportedError("Not supported
"); } |
| 6342 | 6342 |
| 6343 @DomName('DeviceOrientationEvent.absolute') | 6343 @DomName('DeviceOrientationEvent.absolute') |
| 6344 @DocsEditable | 6344 @DocsEditable() |
| 6345 final bool absolute; | 6345 final bool absolute; |
| 6346 | 6346 |
| 6347 @DomName('DeviceOrientationEvent.alpha') | 6347 @DomName('DeviceOrientationEvent.alpha') |
| 6348 @DocsEditable | 6348 @DocsEditable() |
| 6349 final num alpha; | 6349 final num alpha; |
| 6350 | 6350 |
| 6351 @DomName('DeviceOrientationEvent.beta') | 6351 @DomName('DeviceOrientationEvent.beta') |
| 6352 @DocsEditable | 6352 @DocsEditable() |
| 6353 final num beta; | 6353 final num beta; |
| 6354 | 6354 |
| 6355 @DomName('DeviceOrientationEvent.gamma') | 6355 @DomName('DeviceOrientationEvent.gamma') |
| 6356 @DocsEditable | 6356 @DocsEditable() |
| 6357 final num gamma; | 6357 final num gamma; |
| 6358 | 6358 |
| 6359 @JSName('initDeviceOrientationEvent') | 6359 @JSName('initDeviceOrientationEvent') |
| 6360 @DomName('DeviceOrientationEvent.initDeviceOrientationEvent') | 6360 @DomName('DeviceOrientationEvent.initDeviceOrientationEvent') |
| 6361 @DocsEditable | 6361 @DocsEditable() |
| 6362 void $dom_initDeviceOrientationEvent(String type, bool bubbles, bool cancelabl
e, num alpha, num beta, num gamma, bool absolute) native; | 6362 void $dom_initDeviceOrientationEvent(String type, bool bubbles, bool cancelabl
e, num alpha, num beta, num gamma, bool absolute) native; |
| 6363 | 6363 |
| 6364 } | 6364 } |
| 6365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6366 // for details. All rights reserved. Use of this source code is governed by a | 6366 // for details. All rights reserved. Use of this source code is governed by a |
| 6367 // BSD-style license that can be found in the LICENSE file. | 6367 // BSD-style license that can be found in the LICENSE file. |
| 6368 | 6368 |
| 6369 | 6369 |
| 6370 @DocsEditable | 6370 @DocsEditable() |
| 6371 @DomName('DeviceRotationRate') | 6371 @DomName('DeviceRotationRate') |
| 6372 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion | 6372 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion |
| 6373 @Experimental | 6373 @Experimental() |
| 6374 class DeviceRotationRate extends Interceptor native "DeviceRotationRate" { | 6374 class DeviceRotationRate extends Interceptor native "DeviceRotationRate" { |
| 6375 | 6375 |
| 6376 @DomName('DeviceRotationRate.alpha') | 6376 @DomName('DeviceRotationRate.alpha') |
| 6377 @DocsEditable | 6377 @DocsEditable() |
| 6378 final num alpha; | 6378 final num alpha; |
| 6379 | 6379 |
| 6380 @DomName('DeviceRotationRate.beta') | 6380 @DomName('DeviceRotationRate.beta') |
| 6381 @DocsEditable | 6381 @DocsEditable() |
| 6382 final num beta; | 6382 final num beta; |
| 6383 | 6383 |
| 6384 @DomName('DeviceRotationRate.gamma') | 6384 @DomName('DeviceRotationRate.gamma') |
| 6385 @DocsEditable | 6385 @DocsEditable() |
| 6386 final num gamma; | 6386 final num gamma; |
| 6387 } | 6387 } |
| 6388 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6388 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6389 // for details. All rights reserved. Use of this source code is governed by a | 6389 // for details. All rights reserved. Use of this source code is governed by a |
| 6390 // BSD-style license that can be found in the LICENSE file. | 6390 // BSD-style license that can be found in the LICENSE file. |
| 6391 | 6391 |
| 6392 | 6392 |
| 6393 @DocsEditable | 6393 @DocsEditable() |
| 6394 @DomName('HTMLDialogElement') | 6394 @DomName('HTMLDialogElement') |
| 6395 @Unstable | 6395 @Unstable() |
| 6396 class DialogElement extends _HTMLElement native "HTMLDialogElement" { | 6396 class DialogElement extends _HTMLElement native "HTMLDialogElement" { |
| 6397 // To suppress missing implicit constructor warnings. | 6397 // To suppress missing implicit constructor warnings. |
| 6398 factory DialogElement._() { throw new UnsupportedError("Not supported"); } | 6398 factory DialogElement._() { throw new UnsupportedError("Not supported"); } |
| 6399 | 6399 |
| 6400 @DomName('HTMLDialogElement.open') | 6400 @DomName('HTMLDialogElement.open') |
| 6401 @DocsEditable | 6401 @DocsEditable() |
| 6402 bool open; | 6402 bool open; |
| 6403 | 6403 |
| 6404 @DomName('HTMLDialogElement.close') | 6404 @DomName('HTMLDialogElement.close') |
| 6405 @DocsEditable | 6405 @DocsEditable() |
| 6406 void close() native; | 6406 void close() native; |
| 6407 | 6407 |
| 6408 @DomName('HTMLDialogElement.show') | 6408 @DomName('HTMLDialogElement.show') |
| 6409 @DocsEditable | 6409 @DocsEditable() |
| 6410 void show() native; | 6410 void show() native; |
| 6411 | 6411 |
| 6412 @DomName('HTMLDialogElement.showModal') | 6412 @DomName('HTMLDialogElement.showModal') |
| 6413 @DocsEditable | 6413 @DocsEditable() |
| 6414 void showModal() native; | 6414 void showModal() native; |
| 6415 } | 6415 } |
| 6416 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 6416 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 6417 // for details. All rights reserved. Use of this source code is governed by a | 6417 // for details. All rights reserved. Use of this source code is governed by a |
| 6418 // BSD-style license that can be found in the LICENSE file. | 6418 // BSD-style license that can be found in the LICENSE file. |
| 6419 | 6419 |
| 6420 | 6420 |
| 6421 @DomName('DirectoryEntry') | 6421 @DomName('DirectoryEntry') |
| 6422 // http://www.w3.org/TR/file-system-api/#the-directoryentry-interface | 6422 // http://www.w3.org/TR/file-system-api/#the-directoryentry-interface |
| 6423 @Experimental | 6423 @Experimental() |
| 6424 class DirectoryEntry extends Entry native "DirectoryEntry" { | 6424 class DirectoryEntry extends Entry native "DirectoryEntry" { |
| 6425 | 6425 |
| 6426 /** | 6426 /** |
| 6427 * Create a new directory with the specified `path`. If `exclusive` is true, | 6427 * Create a new directory with the specified `path`. If `exclusive` is true, |
| 6428 * the returned Future will complete with an error if a directory already | 6428 * the returned Future will complete with an error if a directory already |
| 6429 * exists with the specified `path`. | 6429 * exists with the specified `path`. |
| 6430 */ | 6430 */ |
| 6431 Future<Entry> createDirectory(String path, {bool exclusive: false}) { | 6431 Future<Entry> createDirectory(String path, {bool exclusive: false}) { |
| 6432 return _getDirectory(path, options: | 6432 return _getDirectory(path, options: |
| 6433 {'create': true, 'exclusive': exclusive}); | 6433 {'create': true, 'exclusive': exclusive}); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 6456 * result in an error if a file at `path` does not exist or if the item at | 6456 * result in an error if a file at `path` does not exist or if the item at |
| 6457 * `path` is not a file. | 6457 * `path` is not a file. |
| 6458 */ | 6458 */ |
| 6459 Future<Entry> getFile(String path) { | 6459 Future<Entry> getFile(String path) { |
| 6460 return _getFile(path); | 6460 return _getFile(path); |
| 6461 } | 6461 } |
| 6462 // To suppress missing implicit constructor warnings. | 6462 // To suppress missing implicit constructor warnings. |
| 6463 factory DirectoryEntry._() { throw new UnsupportedError("Not supported"); } | 6463 factory DirectoryEntry._() { throw new UnsupportedError("Not supported"); } |
| 6464 | 6464 |
| 6465 @DomName('DirectoryEntry.createReader') | 6465 @DomName('DirectoryEntry.createReader') |
| 6466 @DocsEditable | 6466 @DocsEditable() |
| 6467 DirectoryReader createReader() native; | 6467 DirectoryReader createReader() native; |
| 6468 | 6468 |
| 6469 @DomName('DirectoryEntry.getDirectory') | 6469 @DomName('DirectoryEntry.getDirectory') |
| 6470 @DocsEditable | 6470 @DocsEditable() |
| 6471 void __getDirectory(String path, {Map options, _EntryCallback successCallback,
_ErrorCallback errorCallback}) { | 6471 void __getDirectory(String path, {Map options, _EntryCallback successCallback,
_ErrorCallback errorCallback}) { |
| 6472 if (errorCallback != null) { | 6472 if (errorCallback != null) { |
| 6473 var options_1 = convertDartToNative_Dictionary(options); | 6473 var options_1 = convertDartToNative_Dictionary(options); |
| 6474 ___getDirectory_1(path, options_1, successCallback, errorCallback); | 6474 ___getDirectory_1(path, options_1, successCallback, errorCallback); |
| 6475 return; | 6475 return; |
| 6476 } | 6476 } |
| 6477 if (successCallback != null) { | 6477 if (successCallback != null) { |
| 6478 var options_2 = convertDartToNative_Dictionary(options); | 6478 var options_2 = convertDartToNative_Dictionary(options); |
| 6479 ___getDirectory_2(path, options_2, successCallback); | 6479 ___getDirectory_2(path, options_2, successCallback); |
| 6480 return; | 6480 return; |
| 6481 } | 6481 } |
| 6482 if (options != null) { | 6482 if (options != null) { |
| 6483 var options_3 = convertDartToNative_Dictionary(options); | 6483 var options_3 = convertDartToNative_Dictionary(options); |
| 6484 ___getDirectory_3(path, options_3); | 6484 ___getDirectory_3(path, options_3); |
| 6485 return; | 6485 return; |
| 6486 } | 6486 } |
| 6487 ___getDirectory_4(path); | 6487 ___getDirectory_4(path); |
| 6488 return; | 6488 return; |
| 6489 } | 6489 } |
| 6490 @JSName('getDirectory') | 6490 @JSName('getDirectory') |
| 6491 @DomName('DirectoryEntry.getDirectory') | 6491 @DomName('DirectoryEntry.getDirectory') |
| 6492 @DocsEditable | 6492 @DocsEditable() |
| 6493 void ___getDirectory_1(path, options, _EntryCallback successCallback, _ErrorCa
llback errorCallback) native; | 6493 void ___getDirectory_1(path, options, _EntryCallback successCallback, _ErrorCa
llback errorCallback) native; |
| 6494 @JSName('getDirectory') | 6494 @JSName('getDirectory') |
| 6495 @DomName('DirectoryEntry.getDirectory') | 6495 @DomName('DirectoryEntry.getDirectory') |
| 6496 @DocsEditable | 6496 @DocsEditable() |
| 6497 void ___getDirectory_2(path, options, _EntryCallback successCallback) native; | 6497 void ___getDirectory_2(path, options, _EntryCallback successCallback) native; |
| 6498 @JSName('getDirectory') | 6498 @JSName('getDirectory') |
| 6499 @DomName('DirectoryEntry.getDirectory') | 6499 @DomName('DirectoryEntry.getDirectory') |
| 6500 @DocsEditable | 6500 @DocsEditable() |
| 6501 void ___getDirectory_3(path, options) native; | 6501 void ___getDirectory_3(path, options) native; |
| 6502 @JSName('getDirectory') | 6502 @JSName('getDirectory') |
| 6503 @DomName('DirectoryEntry.getDirectory') | 6503 @DomName('DirectoryEntry.getDirectory') |
| 6504 @DocsEditable | 6504 @DocsEditable() |
| 6505 void ___getDirectory_4(path) native; | 6505 void ___getDirectory_4(path) native; |
| 6506 | 6506 |
| 6507 @JSName('getDirectory') | 6507 @JSName('getDirectory') |
| 6508 @DomName('DirectoryEntry.getDirectory') | 6508 @DomName('DirectoryEntry.getDirectory') |
| 6509 @DocsEditable | 6509 @DocsEditable() |
| 6510 Future<Entry> _getDirectory(String path, {Map options}) { | 6510 Future<Entry> _getDirectory(String path, {Map options}) { |
| 6511 var completer = new Completer<Entry>(); | 6511 var completer = new Completer<Entry>(); |
| 6512 __getDirectory(path, options : options, | 6512 __getDirectory(path, options : options, |
| 6513 successCallback : (value) { completer.complete(value); }, | 6513 successCallback : (value) { completer.complete(value); }, |
| 6514 errorCallback : (error) { completer.completeError(error); }); | 6514 errorCallback : (error) { completer.completeError(error); }); |
| 6515 return completer.future; | 6515 return completer.future; |
| 6516 } | 6516 } |
| 6517 | 6517 |
| 6518 @DomName('DirectoryEntry.getFile') | 6518 @DomName('DirectoryEntry.getFile') |
| 6519 @DocsEditable | 6519 @DocsEditable() |
| 6520 void __getFile(String path, {Map options, _EntryCallback successCallback, _Err
orCallback errorCallback}) { | 6520 void __getFile(String path, {Map options, _EntryCallback successCallback, _Err
orCallback errorCallback}) { |
| 6521 if (errorCallback != null) { | 6521 if (errorCallback != null) { |
| 6522 var options_1 = convertDartToNative_Dictionary(options); | 6522 var options_1 = convertDartToNative_Dictionary(options); |
| 6523 ___getFile_1(path, options_1, successCallback, errorCallback); | 6523 ___getFile_1(path, options_1, successCallback, errorCallback); |
| 6524 return; | 6524 return; |
| 6525 } | 6525 } |
| 6526 if (successCallback != null) { | 6526 if (successCallback != null) { |
| 6527 var options_2 = convertDartToNative_Dictionary(options); | 6527 var options_2 = convertDartToNative_Dictionary(options); |
| 6528 ___getFile_2(path, options_2, successCallback); | 6528 ___getFile_2(path, options_2, successCallback); |
| 6529 return; | 6529 return; |
| 6530 } | 6530 } |
| 6531 if (options != null) { | 6531 if (options != null) { |
| 6532 var options_3 = convertDartToNative_Dictionary(options); | 6532 var options_3 = convertDartToNative_Dictionary(options); |
| 6533 ___getFile_3(path, options_3); | 6533 ___getFile_3(path, options_3); |
| 6534 return; | 6534 return; |
| 6535 } | 6535 } |
| 6536 ___getFile_4(path); | 6536 ___getFile_4(path); |
| 6537 return; | 6537 return; |
| 6538 } | 6538 } |
| 6539 @JSName('getFile') | 6539 @JSName('getFile') |
| 6540 @DomName('DirectoryEntry.getFile') | 6540 @DomName('DirectoryEntry.getFile') |
| 6541 @DocsEditable | 6541 @DocsEditable() |
| 6542 void ___getFile_1(path, options, _EntryCallback successCallback, _ErrorCallbac
k errorCallback) native; | 6542 void ___getFile_1(path, options, _EntryCallback successCallback, _ErrorCallbac
k errorCallback) native; |
| 6543 @JSName('getFile') | 6543 @JSName('getFile') |
| 6544 @DomName('DirectoryEntry.getFile') | 6544 @DomName('DirectoryEntry.getFile') |
| 6545 @DocsEditable | 6545 @DocsEditable() |
| 6546 void ___getFile_2(path, options, _EntryCallback successCallback) native; | 6546 void ___getFile_2(path, options, _EntryCallback successCallback) native; |
| 6547 @JSName('getFile') | 6547 @JSName('getFile') |
| 6548 @DomName('DirectoryEntry.getFile') | 6548 @DomName('DirectoryEntry.getFile') |
| 6549 @DocsEditable | 6549 @DocsEditable() |
| 6550 void ___getFile_3(path, options) native; | 6550 void ___getFile_3(path, options) native; |
| 6551 @JSName('getFile') | 6551 @JSName('getFile') |
| 6552 @DomName('DirectoryEntry.getFile') | 6552 @DomName('DirectoryEntry.getFile') |
| 6553 @DocsEditable | 6553 @DocsEditable() |
| 6554 void ___getFile_4(path) native; | 6554 void ___getFile_4(path) native; |
| 6555 | 6555 |
| 6556 @JSName('getFile') | 6556 @JSName('getFile') |
| 6557 @DomName('DirectoryEntry.getFile') | 6557 @DomName('DirectoryEntry.getFile') |
| 6558 @DocsEditable | 6558 @DocsEditable() |
| 6559 Future<Entry> _getFile(String path, {Map options}) { | 6559 Future<Entry> _getFile(String path, {Map options}) { |
| 6560 var completer = new Completer<Entry>(); | 6560 var completer = new Completer<Entry>(); |
| 6561 __getFile(path, options : options, | 6561 __getFile(path, options : options, |
| 6562 successCallback : (value) { completer.complete(value); }, | 6562 successCallback : (value) { completer.complete(value); }, |
| 6563 errorCallback : (error) { completer.completeError(error); }); | 6563 errorCallback : (error) { completer.completeError(error); }); |
| 6564 return completer.future; | 6564 return completer.future; |
| 6565 } | 6565 } |
| 6566 | 6566 |
| 6567 @JSName('removeRecursively') | 6567 @JSName('removeRecursively') |
| 6568 @DomName('DirectoryEntry.removeRecursively') | 6568 @DomName('DirectoryEntry.removeRecursively') |
| 6569 @DocsEditable | 6569 @DocsEditable() |
| 6570 void _removeRecursively(VoidCallback successCallback, [_ErrorCallback errorCal
lback]) native; | 6570 void _removeRecursively(VoidCallback successCallback, [_ErrorCallback errorCal
lback]) native; |
| 6571 | 6571 |
| 6572 @JSName('removeRecursively') | 6572 @JSName('removeRecursively') |
| 6573 @DomName('DirectoryEntry.removeRecursively') | 6573 @DomName('DirectoryEntry.removeRecursively') |
| 6574 @DocsEditable | 6574 @DocsEditable() |
| 6575 Future removeRecursively() { | 6575 Future removeRecursively() { |
| 6576 var completer = new Completer(); | 6576 var completer = new Completer(); |
| 6577 _removeRecursively( | 6577 _removeRecursively( |
| 6578 () { completer.complete(); }, | 6578 () { completer.complete(); }, |
| 6579 (error) { completer.completeError(error); }); | 6579 (error) { completer.completeError(error); }); |
| 6580 return completer.future; | 6580 return completer.future; |
| 6581 } | 6581 } |
| 6582 | 6582 |
| 6583 } | 6583 } |
| 6584 | 6584 |
| 6585 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6585 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6586 // for details. All rights reserved. Use of this source code is governed by a | 6586 // for details. All rights reserved. Use of this source code is governed by a |
| 6587 // BSD-style license that can be found in the LICENSE file. | 6587 // BSD-style license that can be found in the LICENSE file. |
| 6588 | 6588 |
| 6589 | 6589 |
| 6590 @DocsEditable | 6590 @DocsEditable() |
| 6591 @DomName('DirectoryReader') | 6591 @DomName('DirectoryReader') |
| 6592 // http://www.w3.org/TR/file-system-api/#the-directoryreader-interface | 6592 // http://www.w3.org/TR/file-system-api/#the-directoryreader-interface |
| 6593 @Experimental | 6593 @Experimental() |
| 6594 class DirectoryReader extends Interceptor native "DirectoryReader" { | 6594 class DirectoryReader extends Interceptor native "DirectoryReader" { |
| 6595 | 6595 |
| 6596 @JSName('readEntries') | 6596 @JSName('readEntries') |
| 6597 @DomName('DirectoryReader.readEntries') | 6597 @DomName('DirectoryReader.readEntries') |
| 6598 @DocsEditable | 6598 @DocsEditable() |
| 6599 void _readEntries(_EntriesCallback successCallback, [_ErrorCallback errorCallb
ack]) native; | 6599 void _readEntries(_EntriesCallback successCallback, [_ErrorCallback errorCallb
ack]) native; |
| 6600 | 6600 |
| 6601 @JSName('readEntries') | 6601 @JSName('readEntries') |
| 6602 @DomName('DirectoryReader.readEntries') | 6602 @DomName('DirectoryReader.readEntries') |
| 6603 @DocsEditable | 6603 @DocsEditable() |
| 6604 Future<List<Entry>> readEntries() { | 6604 Future<List<Entry>> readEntries() { |
| 6605 var completer = new Completer<List<Entry>>(); | 6605 var completer = new Completer<List<Entry>>(); |
| 6606 _readEntries( | 6606 _readEntries( |
| 6607 (value) { completer.complete(value); }, | 6607 (value) { completer.complete(value); }, |
| 6608 (error) { completer.completeError(error); }); | 6608 (error) { completer.completeError(error); }); |
| 6609 return completer.future; | 6609 return completer.future; |
| 6610 } | 6610 } |
| 6611 } | 6611 } |
| 6612 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6612 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6613 // for details. All rights reserved. Use of this source code is governed by a | 6613 // for details. All rights reserved. Use of this source code is governed by a |
| 6614 // BSD-style license that can be found in the LICENSE file. | 6614 // BSD-style license that can be found in the LICENSE file. |
| 6615 | 6615 |
| 6616 | 6616 |
| 6617 @DocsEditable | 6617 @DocsEditable() |
| 6618 /** | 6618 /** |
| 6619 * Represents an HTML <div> element. | 6619 * Represents an HTML <div> element. |
| 6620 * | 6620 * |
| 6621 * The [DivElement] is a generic container for content and does not have any | 6621 * The [DivElement] is a generic container for content and does not have any |
| 6622 * special significance. It is functionally similar to [SpanElement]. | 6622 * special significance. It is functionally similar to [SpanElement]. |
| 6623 * | 6623 * |
| 6624 * The [DivElement] is a block-level element, as opposed to [SpanElement], | 6624 * The [DivElement] is a block-level element, as opposed to [SpanElement], |
| 6625 * which is an inline-level element. | 6625 * which is an inline-level element. |
| 6626 * | 6626 * |
| 6627 * Example usage: | 6627 * Example usage: |
| 6628 * | 6628 * |
| 6629 * DivElement div = new DivElement(); | 6629 * DivElement div = new DivElement(); |
| 6630 * div.text = 'Here's my new DivElem | 6630 * div.text = 'Here's my new DivElem |
| 6631 * document.body.elements.add(elem); | 6631 * document.body.elements.add(elem); |
| 6632 * | 6632 * |
| 6633 * See also: | 6633 * See also: |
| 6634 * | 6634 * |
| 6635 * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) from W3C. | 6635 * * [HTML <div> element](http://www.w3.org/TR/html-markup/div.html) from W3C. |
| 6636 * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block-boxes) f
rom W3C. | 6636 * * [Block-level element](http://www.w3.org/TR/CSS2/visuren.html#block-boxes) f
rom W3C. |
| 6637 * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inline-boxes)
from W3C. | 6637 * * [Inline-level element](http://www.w3.org/TR/CSS2/visuren.html#inline-boxes)
from W3C. |
| 6638 */ | 6638 */ |
| 6639 @DomName('HTMLDivElement') | 6639 @DomName('HTMLDivElement') |
| 6640 class DivElement extends _HTMLElement native "HTMLDivElement" { | 6640 class DivElement extends _HTMLElement native "HTMLDivElement" { |
| 6641 // To suppress missing implicit constructor warnings. | 6641 // To suppress missing implicit constructor warnings. |
| 6642 factory DivElement._() { throw new UnsupportedError("Not supported"); } | 6642 factory DivElement._() { throw new UnsupportedError("Not supported"); } |
| 6643 | 6643 |
| 6644 @DomName('HTMLDivElement.HTMLDivElement') | 6644 @DomName('HTMLDivElement.HTMLDivElement') |
| 6645 @DocsEditable | 6645 @DocsEditable() |
| 6646 factory DivElement() => document.$dom_createElement("div"); | 6646 factory DivElement() => document.$dom_createElement("div"); |
| 6647 } | 6647 } |
| 6648 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 6648 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 6649 // for details. All rights reserved. Use of this source code is governed by a | 6649 // for details. All rights reserved. Use of this source code is governed by a |
| 6650 // BSD-style license that can be found in the LICENSE file. | 6650 // BSD-style license that can be found in the LICENSE file. |
| 6651 | 6651 |
| 6652 | 6652 |
| 6653 /** | 6653 /** |
| 6654 * The base class for all documents. | 6654 * The base class for all documents. |
| 6655 * | 6655 * |
| 6656 * Each web page loaded in the browser has its own [Document] object, which is | 6656 * Each web page loaded in the browser has its own [Document] object, which is |
| 6657 * typically an [HtmlDocument]. | 6657 * typically an [HtmlDocument]. |
| 6658 * | 6658 * |
| 6659 * If you aren't comfortable with DOM concepts, see the Dart tutorial | 6659 * If you aren't comfortable with DOM concepts, see the Dart tutorial |
| 6660 * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connec
t-dart-html/). | 6660 * [Target 2: Connect Dart & HTML](http://www.dartlang.org/docs/tutorials/connec
t-dart-html/). |
| 6661 */ | 6661 */ |
| 6662 @DomName('Document') | 6662 @DomName('Document') |
| 6663 class Document extends Node native "Document" | 6663 class Document extends Node native "Document" |
| 6664 { | 6664 { |
| 6665 | 6665 |
| 6666 // To suppress missing implicit constructor warnings. | 6666 // To suppress missing implicit constructor warnings. |
| 6667 factory Document._() { throw new UnsupportedError("Not supported"); } | 6667 factory Document._() { throw new UnsupportedError("Not supported"); } |
| 6668 | 6668 |
| 6669 @DomName('Document.readystatechangeEvent') | 6669 @DomName('Document.readystatechangeEvent') |
| 6670 @DocsEditable | 6670 @DocsEditable() |
| 6671 static const EventStreamProvider<Event> readyStateChangeEvent = const EventStr
eamProvider<Event>('readystatechange'); | 6671 static const EventStreamProvider<Event> readyStateChangeEvent = const EventStr
eamProvider<Event>('readystatechange'); |
| 6672 | 6672 |
| 6673 @DomName('Document.securitypolicyviolationEvent') | 6673 @DomName('Document.securitypolicyviolationEvent') |
| 6674 @DocsEditable | 6674 @DocsEditable() |
| 6675 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specificati
on.dev.html#widl-Document-onsecuritypolicyviolation | 6675 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specificati
on.dev.html#widl-Document-onsecuritypolicyviolation |
| 6676 @Experimental | 6676 @Experimental() |
| 6677 static const EventStreamProvider<SecurityPolicyViolationEvent> securityPolicyV
iolationEvent = const EventStreamProvider<SecurityPolicyViolationEvent>('securit
ypolicyviolation'); | 6677 static const EventStreamProvider<SecurityPolicyViolationEvent> securityPolicyV
iolationEvent = const EventStreamProvider<SecurityPolicyViolationEvent>('securit
ypolicyviolation'); |
| 6678 | 6678 |
| 6679 @DomName('Document.selectionchangeEvent') | 6679 @DomName('Document.selectionchangeEvent') |
| 6680 @DocsEditable | 6680 @DocsEditable() |
| 6681 static const EventStreamProvider<Event> selectionChangeEvent = const EventStre
amProvider<Event>('selectionchange'); | 6681 static const EventStreamProvider<Event> selectionChangeEvent = const EventStre
amProvider<Event>('selectionchange'); |
| 6682 | 6682 |
| 6683 @DomName('Document.webkitpointerlockchangeEvent') | 6683 @DomName('Document.webkitpointerlockchangeEvent') |
| 6684 @DocsEditable | 6684 @DocsEditable() |
| 6685 @SupportedBrowser(SupportedBrowser.CHROME) | 6685 @SupportedBrowser(SupportedBrowser.CHROME) |
| 6686 @SupportedBrowser(SupportedBrowser.SAFARI) | 6686 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 6687 @Experimental | 6687 @Experimental() |
| 6688 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Documen
t-onpointerlockchange | 6688 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Documen
t-onpointerlockchange |
| 6689 static const EventStreamProvider<Event> pointerLockChangeEvent = const EventSt
reamProvider<Event>('webkitpointerlockchange'); | 6689 static const EventStreamProvider<Event> pointerLockChangeEvent = const EventSt
reamProvider<Event>('webkitpointerlockchange'); |
| 6690 | 6690 |
| 6691 @DomName('Document.webkitpointerlockerrorEvent') | 6691 @DomName('Document.webkitpointerlockerrorEvent') |
| 6692 @DocsEditable | 6692 @DocsEditable() |
| 6693 @SupportedBrowser(SupportedBrowser.CHROME) | 6693 @SupportedBrowser(SupportedBrowser.CHROME) |
| 6694 @SupportedBrowser(SupportedBrowser.SAFARI) | 6694 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 6695 @Experimental | 6695 @Experimental() |
| 6696 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Documen
t-onpointerlockerror | 6696 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Documen
t-onpointerlockerror |
| 6697 static const EventStreamProvider<Event> pointerLockErrorEvent = const EventStr
eamProvider<Event>('webkitpointerlockerror'); | 6697 static const EventStreamProvider<Event> pointerLockErrorEvent = const EventStr
eamProvider<Event>('webkitpointerlockerror'); |
| 6698 | 6698 |
| 6699 @JSName('body') | 6699 @JSName('body') |
| 6700 /// Moved to [HtmlDocument]. | 6700 /// Moved to [HtmlDocument]. |
| 6701 @DomName('Document.body') | 6701 @DomName('Document.body') |
| 6702 @DocsEditable | 6702 @DocsEditable() |
| 6703 Element $dom_body; | 6703 Element $dom_body; |
| 6704 | 6704 |
| 6705 @DomName('Document.charset') | 6705 @DomName('Document.charset') |
| 6706 @DocsEditable | 6706 @DocsEditable() |
| 6707 @deprecated // nonstandard | 6707 @deprecated // nonstandard |
| 6708 String charset; | 6708 String charset; |
| 6709 | 6709 |
| 6710 @DomName('Document.childElementCount') | 6710 @DomName('Document.childElementCount') |
| 6711 @DocsEditable | 6711 @DocsEditable() |
| 6712 final int childElementCount; | 6712 final int childElementCount; |
| 6713 | 6713 |
| 6714 @DomName('Document.children') | 6714 @DomName('Document.children') |
| 6715 @DocsEditable | 6715 @DocsEditable() |
| 6716 final HtmlCollection children; | 6716 final HtmlCollection children; |
| 6717 | 6717 |
| 6718 @DomName('Document.cookie') | 6718 @DomName('Document.cookie') |
| 6719 @DocsEditable | 6719 @DocsEditable() |
| 6720 String cookie; | 6720 String cookie; |
| 6721 | 6721 |
| 6722 WindowBase get window => _convertNativeToDart_Window(this._get_window); | 6722 WindowBase get window => _convertNativeToDart_Window(this._get_window); |
| 6723 @JSName('defaultView') | 6723 @JSName('defaultView') |
| 6724 @DomName('Document.window') | 6724 @DomName('Document.window') |
| 6725 @DocsEditable | 6725 @DocsEditable() |
| 6726 @Experimental // untriaged | 6726 @Experimental() // untriaged |
| 6727 @Creates('Window|=Object') | 6727 @Creates('Window|=Object') |
| 6728 @Returns('Window|=Object') | 6728 @Returns('Window|=Object') |
| 6729 @Creates('Window|=Object|Null') | 6729 @Creates('Window|=Object|Null') |
| 6730 @Returns('Window|=Object|Null') | 6730 @Returns('Window|=Object|Null') |
| 6731 final dynamic _get_window; | 6731 final dynamic _get_window; |
| 6732 | 6732 |
| 6733 @DomName('Document.documentElement') | 6733 @DomName('Document.documentElement') |
| 6734 @DocsEditable | 6734 @DocsEditable() |
| 6735 final Element documentElement; | 6735 final Element documentElement; |
| 6736 | 6736 |
| 6737 @DomName('Document.domain') | 6737 @DomName('Document.domain') |
| 6738 @DocsEditable | 6738 @DocsEditable() |
| 6739 final String domain; | 6739 final String domain; |
| 6740 | 6740 |
| 6741 @DomName('Document.firstElementChild') | 6741 @DomName('Document.firstElementChild') |
| 6742 @DocsEditable | 6742 @DocsEditable() |
| 6743 final Element firstElementChild; | 6743 final Element firstElementChild; |
| 6744 | 6744 |
| 6745 @DomName('Document.fontloader') | 6745 @DomName('Document.fontloader') |
| 6746 @DocsEditable | 6746 @DocsEditable() |
| 6747 // http://www.w3.org/TR/css3-fonts/#document-fontloader | 6747 // http://www.w3.org/TR/css3-fonts/#document-fontloader |
| 6748 @Experimental | 6748 @Experimental() |
| 6749 final FontLoader fontloader; | 6749 final FontLoader fontloader; |
| 6750 | 6750 |
| 6751 @JSName('head') | 6751 @JSName('head') |
| 6752 /// Moved to [HtmlDocument]. | 6752 /// Moved to [HtmlDocument]. |
| 6753 @DomName('Document.head') | 6753 @DomName('Document.head') |
| 6754 @DocsEditable | 6754 @DocsEditable() |
| 6755 final HeadElement $dom_head; | 6755 final HeadElement $dom_head; |
| 6756 | 6756 |
| 6757 @DomName('Document.implementation') | 6757 @DomName('Document.implementation') |
| 6758 @DocsEditable | 6758 @DocsEditable() |
| 6759 final DomImplementation implementation; | 6759 final DomImplementation implementation; |
| 6760 | 6760 |
| 6761 @DomName('Document.lastElementChild') | 6761 @DomName('Document.lastElementChild') |
| 6762 @DocsEditable | 6762 @DocsEditable() |
| 6763 final Element lastElementChild; | 6763 final Element lastElementChild; |
| 6764 | 6764 |
| 6765 @JSName('lastModified') | 6765 @JSName('lastModified') |
| 6766 /// Moved to [HtmlDocument]. | 6766 /// Moved to [HtmlDocument]. |
| 6767 @DomName('Document.lastModified') | 6767 @DomName('Document.lastModified') |
| 6768 @DocsEditable | 6768 @DocsEditable() |
| 6769 final String $dom_lastModified; | 6769 final String $dom_lastModified; |
| 6770 | 6770 |
| 6771 @JSName('preferredStylesheetSet') | 6771 @JSName('preferredStylesheetSet') |
| 6772 @DomName('Document.preferredStylesheetSet') | 6772 @DomName('Document.preferredStylesheetSet') |
| 6773 @DocsEditable | 6773 @DocsEditable() |
| 6774 final String $dom_preferredStylesheetSet; | 6774 final String $dom_preferredStylesheetSet; |
| 6775 | 6775 |
| 6776 @DomName('Document.readyState') | 6776 @DomName('Document.readyState') |
| 6777 @DocsEditable | 6777 @DocsEditable() |
| 6778 final String readyState; | 6778 final String readyState; |
| 6779 | 6779 |
| 6780 @JSName('referrer') | 6780 @JSName('referrer') |
| 6781 /// Moved to [HtmlDocument]. | 6781 /// Moved to [HtmlDocument]. |
| 6782 @DomName('Document.referrer') | 6782 @DomName('Document.referrer') |
| 6783 @DocsEditable | 6783 @DocsEditable() |
| 6784 final String $dom_referrer; | 6784 final String $dom_referrer; |
| 6785 | 6785 |
| 6786 @DomName('Document.securityPolicy') | 6786 @DomName('Document.securityPolicy') |
| 6787 @DocsEditable | 6787 @DocsEditable() |
| 6788 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specificati
on.dev.html#idl-def-SecurityPolicy | 6788 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specificati
on.dev.html#idl-def-SecurityPolicy |
| 6789 @Experimental | 6789 @Experimental() |
| 6790 final SecurityPolicy securityPolicy; | 6790 final SecurityPolicy securityPolicy; |
| 6791 | 6791 |
| 6792 @JSName('selectedStylesheetSet') | 6792 @JSName('selectedStylesheetSet') |
| 6793 @DomName('Document.selectedStylesheetSet') | 6793 @DomName('Document.selectedStylesheetSet') |
| 6794 @DocsEditable | 6794 @DocsEditable() |
| 6795 String $dom_selectedStylesheetSet; | 6795 String $dom_selectedStylesheetSet; |
| 6796 | 6796 |
| 6797 @JSName('styleSheets') | 6797 @JSName('styleSheets') |
| 6798 /// Moved to [HtmlDocument] | 6798 /// Moved to [HtmlDocument] |
| 6799 @DomName('Document.styleSheets') | 6799 @DomName('Document.styleSheets') |
| 6800 @DocsEditable | 6800 @DocsEditable() |
| 6801 @Returns('_StyleSheetList') | 6801 @Returns('_StyleSheetList') |
| 6802 @Creates('_StyleSheetList') | 6802 @Creates('_StyleSheetList') |
| 6803 final List<StyleSheet> $dom_styleSheets; | 6803 final List<StyleSheet> $dom_styleSheets; |
| 6804 | 6804 |
| 6805 @JSName('title') | 6805 @JSName('title') |
| 6806 /// Moved to [HtmlDocument]. | 6806 /// Moved to [HtmlDocument]. |
| 6807 @DomName('Document.title') | 6807 @DomName('Document.title') |
| 6808 @DocsEditable | 6808 @DocsEditable() |
| 6809 String $dom_title; | 6809 String $dom_title; |
| 6810 | 6810 |
| 6811 @JSName('webkitFullscreenElement') | 6811 @JSName('webkitFullscreenElement') |
| 6812 /// Moved to [HtmlDocument]. | 6812 /// Moved to [HtmlDocument]. |
| 6813 @DomName('Document.webkitFullscreenElement') | 6813 @DomName('Document.webkitFullscreenElement') |
| 6814 @DocsEditable | 6814 @DocsEditable() |
| 6815 @SupportedBrowser(SupportedBrowser.CHROME) | 6815 @SupportedBrowser(SupportedBrowser.CHROME) |
| 6816 @SupportedBrowser(SupportedBrowser.SAFARI) | 6816 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 6817 @Experimental | 6817 @Experimental() |
| 6818 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-document-f
ullscreenelement | 6818 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-document-f
ullscreenelement |
| 6819 final Element $dom_webkitFullscreenElement; | 6819 final Element $dom_webkitFullscreenElement; |
| 6820 | 6820 |
| 6821 @JSName('webkitFullscreenEnabled') | 6821 @JSName('webkitFullscreenEnabled') |
| 6822 /// Moved to [HtmlDocument]. | 6822 /// Moved to [HtmlDocument]. |
| 6823 @DomName('Document.webkitFullscreenEnabled') | 6823 @DomName('Document.webkitFullscreenEnabled') |
| 6824 @DocsEditable | 6824 @DocsEditable() |
| 6825 @SupportedBrowser(SupportedBrowser.CHROME) | 6825 @SupportedBrowser(SupportedBrowser.CHROME) |
| 6826 @SupportedBrowser(SupportedBrowser.SAFARI) | 6826 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 6827 @Experimental | 6827 @Experimental() |
| 6828 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-document-f
ullscreenenabled | 6828 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-document-f
ullscreenenabled |
| 6829 final bool $dom_webkitFullscreenEnabled; | 6829 final bool $dom_webkitFullscreenEnabled; |
| 6830 | 6830 |
| 6831 @JSName('webkitHidden') | 6831 @JSName('webkitHidden') |
| 6832 /// Moved to [HtmlDocument]. | 6832 /// Moved to [HtmlDocument]. |
| 6833 @DomName('Document.webkitHidden') | 6833 @DomName('Document.webkitHidden') |
| 6834 @DocsEditable | 6834 @DocsEditable() |
| 6835 @SupportedBrowser(SupportedBrowser.CHROME) | 6835 @SupportedBrowser(SupportedBrowser.CHROME) |
| 6836 @SupportedBrowser(SupportedBrowser.SAFARI) | 6836 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 6837 @Experimental | 6837 @Experimental() |
| 6838 // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PageVisibility/Overview.h
tml#document | 6838 // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PageVisibility/Overview.h
tml#document |
| 6839 final bool $dom_webkitHidden; | 6839 final bool $dom_webkitHidden; |
| 6840 | 6840 |
| 6841 @JSName('webkitIsFullScreen') | 6841 @JSName('webkitIsFullScreen') |
| 6842 /// Moved to [HtmlDocument]. | 6842 /// Moved to [HtmlDocument]. |
| 6843 @DomName('Document.webkitIsFullScreen') | 6843 @DomName('Document.webkitIsFullScreen') |
| 6844 @DocsEditable | 6844 @DocsEditable() |
| 6845 @SupportedBrowser(SupportedBrowser.CHROME) | 6845 @SupportedBrowser(SupportedBrowser.CHROME) |
| 6846 @SupportedBrowser(SupportedBrowser.SAFARI) | 6846 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 6847 @Experimental | 6847 @Experimental() |
| 6848 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html | 6848 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html |
| 6849 @deprecated // deprecated | 6849 @deprecated // deprecated |
| 6850 final bool $dom_webkitIsFullScreen; | 6850 final bool $dom_webkitIsFullScreen; |
| 6851 | 6851 |
| 6852 @JSName('webkitPointerLockElement') | 6852 @JSName('webkitPointerLockElement') |
| 6853 /// Moved to [HtmlDocument]. | 6853 /// Moved to [HtmlDocument]. |
| 6854 @DomName('Document.webkitPointerLockElement') | 6854 @DomName('Document.webkitPointerLockElement') |
| 6855 @DocsEditable | 6855 @DocsEditable() |
| 6856 @SupportedBrowser(SupportedBrowser.CHROME) | 6856 @SupportedBrowser(SupportedBrowser.CHROME) |
| 6857 @SupportedBrowser(SupportedBrowser.SAFARI) | 6857 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 6858 @Experimental | 6858 @Experimental() |
| 6859 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Documen
t-pointerLockElement | 6859 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Documen
t-pointerLockElement |
| 6860 final Element $dom_webkitPointerLockElement; | 6860 final Element $dom_webkitPointerLockElement; |
| 6861 | 6861 |
| 6862 @JSName('webkitVisibilityState') | 6862 @JSName('webkitVisibilityState') |
| 6863 @DomName('Document.webkitVisibilityState') | 6863 @DomName('Document.webkitVisibilityState') |
| 6864 @DocsEditable | 6864 @DocsEditable() |
| 6865 @SupportedBrowser(SupportedBrowser.CHROME) | 6865 @SupportedBrowser(SupportedBrowser.CHROME) |
| 6866 @SupportedBrowser(SupportedBrowser.SAFARI) | 6866 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 6867 @Experimental | 6867 @Experimental() |
| 6868 // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PageVisibility/Overview.h
tml#dom-document-visibilitystate | 6868 // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/PageVisibility/Overview.h
tml#dom-document-visibilitystate |
| 6869 final String $dom_webkitVisibilityState; | 6869 final String $dom_webkitVisibilityState; |
| 6870 | 6870 |
| 6871 @DomName('Document.adoptNode') | 6871 @DomName('Document.adoptNode') |
| 6872 @DocsEditable | 6872 @DocsEditable() |
| 6873 Node adoptNode(Node source) native; | 6873 Node adoptNode(Node source) native; |
| 6874 | 6874 |
| 6875 @JSName('caretRangeFromPoint') | 6875 @JSName('caretRangeFromPoint') |
| 6876 /// Use the [Range] constructor instead. | 6876 /// Use the [Range] constructor instead. |
| 6877 @DomName('Document.caretRangeFromPoint') | 6877 @DomName('Document.caretRangeFromPoint') |
| 6878 @DocsEditable | 6878 @DocsEditable() |
| 6879 // http://www.w3.org/TR/2009/WD-cssom-view-20090804/#dom-documentview-caretran
gefrompoint | 6879 // http://www.w3.org/TR/2009/WD-cssom-view-20090804/#dom-documentview-caretran
gefrompoint |
| 6880 @Experimental | 6880 @Experimental() |
| 6881 Range $dom_caretRangeFromPoint(int x, int y) native; | 6881 Range $dom_caretRangeFromPoint(int x, int y) native; |
| 6882 | 6882 |
| 6883 @JSName('createCDATASection') | 6883 @JSName('createCDATASection') |
| 6884 @DomName('Document.createCDATASection') | 6884 @DomName('Document.createCDATASection') |
| 6885 @DocsEditable | 6885 @DocsEditable() |
| 6886 // http://dom.spec.whatwg.org/#dom-document-createcdatasection | 6886 // http://dom.spec.whatwg.org/#dom-document-createcdatasection |
| 6887 @deprecated // deprecated | 6887 @deprecated // deprecated |
| 6888 CDataSection createCDataSection(String data) native; | 6888 CDataSection createCDataSection(String data) native; |
| 6889 | 6889 |
| 6890 @DomName('Document.createDocumentFragment') | 6890 @DomName('Document.createDocumentFragment') |
| 6891 @DocsEditable | 6891 @DocsEditable() |
| 6892 DocumentFragment createDocumentFragment() native; | 6892 DocumentFragment createDocumentFragment() native; |
| 6893 | 6893 |
| 6894 @JSName('createElement') | 6894 @JSName('createElement') |
| 6895 /// Deprecated: use new Element.tag(tagName) instead. | 6895 /// Deprecated: use new Element.tag(tagName) instead. |
| 6896 @DomName('Document.createElement') | 6896 @DomName('Document.createElement') |
| 6897 @DocsEditable | 6897 @DocsEditable() |
| 6898 Element $dom_createElement(String localName_OR_tagName, [String typeExtension]
) native; | 6898 Element $dom_createElement(String localName_OR_tagName, [String typeExtension]
) native; |
| 6899 | 6899 |
| 6900 @JSName('createElementNS') | 6900 @JSName('createElementNS') |
| 6901 @DomName('Document.createElementNS') | 6901 @DomName('Document.createElementNS') |
| 6902 @DocsEditable | 6902 @DocsEditable() |
| 6903 Element $dom_createElementNS(String namespaceURI, String qualifiedName, [Strin
g typeExtension]) native; | 6903 Element $dom_createElementNS(String namespaceURI, String qualifiedName, [Strin
g typeExtension]) native; |
| 6904 | 6904 |
| 6905 @JSName('createEvent') | 6905 @JSName('createEvent') |
| 6906 @DomName('Document.createEvent') | 6906 @DomName('Document.createEvent') |
| 6907 @DocsEditable | 6907 @DocsEditable() |
| 6908 Event $dom_createEvent(String eventType) native; | 6908 Event $dom_createEvent(String eventType) native; |
| 6909 | 6909 |
| 6910 @JSName('createNodeIterator') | 6910 @JSName('createNodeIterator') |
| 6911 @DomName('Document.createNodeIterator') | 6911 @DomName('Document.createNodeIterator') |
| 6912 @DocsEditable | 6912 @DocsEditable() |
| 6913 @Unstable | 6913 @Unstable() |
| 6914 NodeIterator $dom_createNodeIterator(Node root, int whatToShow, NodeFilter fil
ter, bool expandEntityReferences) native; | 6914 NodeIterator $dom_createNodeIterator(Node root, int whatToShow, NodeFilter fil
ter, bool expandEntityReferences) native; |
| 6915 | 6915 |
| 6916 @JSName('createRange') | 6916 @JSName('createRange') |
| 6917 @DomName('Document.createRange') | 6917 @DomName('Document.createRange') |
| 6918 @DocsEditable | 6918 @DocsEditable() |
| 6919 Range $dom_createRange() native; | 6919 Range $dom_createRange() native; |
| 6920 | 6920 |
| 6921 @JSName('createTextNode') | 6921 @JSName('createTextNode') |
| 6922 @DomName('Document.createTextNode') | 6922 @DomName('Document.createTextNode') |
| 6923 @DocsEditable | 6923 @DocsEditable() |
| 6924 Text $dom_createTextNode(String data) native; | 6924 Text $dom_createTextNode(String data) native; |
| 6925 | 6925 |
| 6926 @DomName('Document.createTouch') | 6926 @DomName('Document.createTouch') |
| 6927 @DocsEditable | 6927 @DocsEditable() |
| 6928 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 6928 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 6929 @Experimental | 6929 @Experimental() |
| 6930 Touch $dom_createTouch(Window window, EventTarget target, int identifier, int
pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY
, num webkitRotationAngle, num webkitForce) { | 6930 Touch $dom_createTouch(Window window, EventTarget target, int identifier, int
pageX, int pageY, int screenX, int screenY, int webkitRadiusX, int webkitRadiusY
, num webkitRotationAngle, num webkitForce) { |
| 6931 var target_1 = _convertDartToNative_EventTarget(target); | 6931 var target_1 = _convertDartToNative_EventTarget(target); |
| 6932 return _$dom_createTouch_1(window, target_1, identifier, pageX, pageY, scree
nX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce); | 6932 return _$dom_createTouch_1(window, target_1, identifier, pageX, pageY, scree
nX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce); |
| 6933 } | 6933 } |
| 6934 @JSName('createTouch') | 6934 @JSName('createTouch') |
| 6935 @DomName('Document.createTouch') | 6935 @DomName('Document.createTouch') |
| 6936 @DocsEditable | 6936 @DocsEditable() |
| 6937 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 6937 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 6938 @Experimental | 6938 @Experimental() |
| 6939 Touch _$dom_createTouch_1(Window window, target, identifier, pageX, pageY, scr
eenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) n
ative; | 6939 Touch _$dom_createTouch_1(Window window, target, identifier, pageX, pageY, scr
eenX, screenY, webkitRadiusX, webkitRadiusY, webkitRotationAngle, webkitForce) n
ative; |
| 6940 | 6940 |
| 6941 @JSName('createTouchList') | 6941 @JSName('createTouchList') |
| 6942 /// Use the [TouchList] constructor instead. | 6942 /// Use the [TouchList] constructor instead. |
| 6943 @DomName('Document.createTouchList') | 6943 @DomName('Document.createTouchList') |
| 6944 @DocsEditable | 6944 @DocsEditable() |
| 6945 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 6945 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 6946 @Experimental | 6946 @Experimental() |
| 6947 TouchList $dom_createTouchList() native; | 6947 TouchList $dom_createTouchList() native; |
| 6948 | 6948 |
| 6949 @JSName('createTreeWalker') | 6949 @JSName('createTreeWalker') |
| 6950 @DomName('Document.createTreeWalker') | 6950 @DomName('Document.createTreeWalker') |
| 6951 @DocsEditable | 6951 @DocsEditable() |
| 6952 TreeWalker $dom_createTreeWalker(Node root, int whatToShow, NodeFilter filter,
bool expandEntityReferences) native; | 6952 TreeWalker $dom_createTreeWalker(Node root, int whatToShow, NodeFilter filter,
bool expandEntityReferences) native; |
| 6953 | 6953 |
| 6954 @JSName('elementFromPoint') | 6954 @JSName('elementFromPoint') |
| 6955 @DomName('Document.elementFromPoint') | 6955 @DomName('Document.elementFromPoint') |
| 6956 @DocsEditable | 6956 @DocsEditable() |
| 6957 Element $dom_elementFromPoint(int x, int y) native; | 6957 Element $dom_elementFromPoint(int x, int y) native; |
| 6958 | 6958 |
| 6959 @DomName('Document.execCommand') | 6959 @DomName('Document.execCommand') |
| 6960 @DocsEditable | 6960 @DocsEditable() |
| 6961 bool execCommand(String command, bool userInterface, String value) native; | 6961 bool execCommand(String command, bool userInterface, String value) native; |
| 6962 | 6962 |
| 6963 @JSName('getCSSCanvasContext') | 6963 @JSName('getCSSCanvasContext') |
| 6964 /// Moved to [HtmlDocument]. | 6964 /// Moved to [HtmlDocument]. |
| 6965 @DomName('Document.getCSSCanvasContext') | 6965 @DomName('Document.getCSSCanvasContext') |
| 6966 @DocsEditable | 6966 @DocsEditable() |
| 6967 // https://developer.apple.com/library/safari/#documentation/AppleApplications
/Reference/SafariCSSRef/Articles/Functions.html | 6967 // https://developer.apple.com/library/safari/#documentation/AppleApplications
/Reference/SafariCSSRef/Articles/Functions.html |
| 6968 @Experimental // non-standard | 6968 @Experimental() // non-standard |
| 6969 CanvasRenderingContext $dom_getCssCanvasContext(String contextId, String name,
int width, int height) native; | 6969 CanvasRenderingContext $dom_getCssCanvasContext(String contextId, String name,
int width, int height) native; |
| 6970 | 6970 |
| 6971 @DomName('Document.getElementById') | 6971 @DomName('Document.getElementById') |
| 6972 @DocsEditable | 6972 @DocsEditable() |
| 6973 Element getElementById(String elementId) native; | 6973 Element getElementById(String elementId) native; |
| 6974 | 6974 |
| 6975 @DomName('Document.getElementsByClassName') | 6975 @DomName('Document.getElementsByClassName') |
| 6976 @DocsEditable | 6976 @DocsEditable() |
| 6977 @Returns('NodeList') | 6977 @Returns('NodeList') |
| 6978 @Creates('NodeList') | 6978 @Creates('NodeList') |
| 6979 List<Node> getElementsByClassName(String tagname) native; | 6979 List<Node> getElementsByClassName(String tagname) native; |
| 6980 | 6980 |
| 6981 @DomName('Document.getElementsByName') | 6981 @DomName('Document.getElementsByName') |
| 6982 @DocsEditable | 6982 @DocsEditable() |
| 6983 @Returns('NodeList') | 6983 @Returns('NodeList') |
| 6984 @Creates('NodeList') | 6984 @Creates('NodeList') |
| 6985 List<Node> getElementsByName(String elementName) native; | 6985 List<Node> getElementsByName(String elementName) native; |
| 6986 | 6986 |
| 6987 @DomName('Document.getElementsByTagName') | 6987 @DomName('Document.getElementsByTagName') |
| 6988 @DocsEditable | 6988 @DocsEditable() |
| 6989 @Returns('NodeList') | 6989 @Returns('NodeList') |
| 6990 @Creates('NodeList') | 6990 @Creates('NodeList') |
| 6991 List<Node> getElementsByTagName(String tagname) native; | 6991 List<Node> getElementsByTagName(String tagname) native; |
| 6992 | 6992 |
| 6993 @DomName('Document.importNode') | 6993 @DomName('Document.importNode') |
| 6994 @DocsEditable | 6994 @DocsEditable() |
| 6995 Node importNode(Node importedNode, [bool deep]) native; | 6995 Node importNode(Node importedNode, [bool deep]) native; |
| 6996 | 6996 |
| 6997 @DomName('Document.queryCommandEnabled') | 6997 @DomName('Document.queryCommandEnabled') |
| 6998 @DocsEditable | 6998 @DocsEditable() |
| 6999 bool queryCommandEnabled(String command) native; | 6999 bool queryCommandEnabled(String command) native; |
| 7000 | 7000 |
| 7001 @DomName('Document.queryCommandIndeterm') | 7001 @DomName('Document.queryCommandIndeterm') |
| 7002 @DocsEditable | 7002 @DocsEditable() |
| 7003 bool queryCommandIndeterm(String command) native; | 7003 bool queryCommandIndeterm(String command) native; |
| 7004 | 7004 |
| 7005 @DomName('Document.queryCommandState') | 7005 @DomName('Document.queryCommandState') |
| 7006 @DocsEditable | 7006 @DocsEditable() |
| 7007 bool queryCommandState(String command) native; | 7007 bool queryCommandState(String command) native; |
| 7008 | 7008 |
| 7009 @DomName('Document.queryCommandSupported') | 7009 @DomName('Document.queryCommandSupported') |
| 7010 @DocsEditable | 7010 @DocsEditable() |
| 7011 bool queryCommandSupported(String command) native; | 7011 bool queryCommandSupported(String command) native; |
| 7012 | 7012 |
| 7013 @DomName('Document.queryCommandValue') | 7013 @DomName('Document.queryCommandValue') |
| 7014 @DocsEditable | 7014 @DocsEditable() |
| 7015 String queryCommandValue(String command) native; | 7015 String queryCommandValue(String command) native; |
| 7016 | 7016 |
| 7017 @JSName('querySelector') | 7017 @JSName('querySelector') |
| 7018 /** | 7018 /** |
| 7019 * Finds the first descendant element of this document that matches the | 7019 * Finds the first descendant element of this document that matches the |
| 7020 * specified group of selectors. | 7020 * specified group of selectors. |
| 7021 * | 7021 * |
| 7022 * Unless your webpage contains multiple documents, the top-level query | 7022 * Unless your webpage contains multiple documents, the top-level query |
| 7023 * method behaves the same as this method, so you should use it instead to | 7023 * method behaves the same as this method, so you should use it instead to |
| 7024 * save typing a few characters. | 7024 * save typing a few characters. |
| 7025 * | 7025 * |
| 7026 * [selectors] should be a string using CSS selector syntax. | 7026 * [selectors] should be a string using CSS selector syntax. |
| 7027 * var element1 = document.query('.className'); | 7027 * var element1 = document.query('.className'); |
| 7028 * var element2 = document.query('#id'); | 7028 * var element2 = document.query('#id'); |
| 7029 * | 7029 * |
| 7030 * For details about CSS selector syntax, see the | 7030 * For details about CSS selector syntax, see the |
| 7031 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). | 7031 * [CSS selector specification](http://www.w3.org/TR/css3-selectors/). |
| 7032 */ | 7032 */ |
| 7033 @DomName('Document.querySelector') | 7033 @DomName('Document.querySelector') |
| 7034 @DocsEditable | 7034 @DocsEditable() |
| 7035 Element query(String selectors) native; | 7035 Element query(String selectors) native; |
| 7036 | 7036 |
| 7037 @JSName('querySelectorAll') | 7037 @JSName('querySelectorAll') |
| 7038 /// Deprecated: use query("#$elementId") instead. | 7038 /// Deprecated: use query("#$elementId") instead. |
| 7039 @DomName('Document.querySelectorAll') | 7039 @DomName('Document.querySelectorAll') |
| 7040 @DocsEditable | 7040 @DocsEditable() |
| 7041 @Returns('NodeList') | 7041 @Returns('NodeList') |
| 7042 @Creates('NodeList') | 7042 @Creates('NodeList') |
| 7043 List<Node> $dom_querySelectorAll(String selectors) native; | 7043 List<Node> $dom_querySelectorAll(String selectors) native; |
| 7044 | 7044 |
| 7045 @JSName('webkitCancelFullScreen') | 7045 @JSName('webkitCancelFullScreen') |
| 7046 /// Moved to [HtmlDocument]. | 7046 /// Moved to [HtmlDocument]. |
| 7047 @DomName('Document.webkitCancelFullScreen') | 7047 @DomName('Document.webkitCancelFullScreen') |
| 7048 @DocsEditable | 7048 @DocsEditable() |
| 7049 @SupportedBrowser(SupportedBrowser.CHROME) | 7049 @SupportedBrowser(SupportedBrowser.CHROME) |
| 7050 @SupportedBrowser(SupportedBrowser.SAFARI) | 7050 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 7051 @Experimental | 7051 @Experimental() |
| 7052 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html | 7052 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html |
| 7053 @deprecated // deprecated | 7053 @deprecated // deprecated |
| 7054 void $dom_webkitCancelFullScreen() native; | 7054 void $dom_webkitCancelFullScreen() native; |
| 7055 | 7055 |
| 7056 @JSName('webkitExitFullscreen') | 7056 @JSName('webkitExitFullscreen') |
| 7057 /// Moved to [HtmlDocument]. | 7057 /// Moved to [HtmlDocument]. |
| 7058 @DomName('Document.webkitExitFullscreen') | 7058 @DomName('Document.webkitExitFullscreen') |
| 7059 @DocsEditable | 7059 @DocsEditable() |
| 7060 @SupportedBrowser(SupportedBrowser.CHROME) | 7060 @SupportedBrowser(SupportedBrowser.CHROME) |
| 7061 @SupportedBrowser(SupportedBrowser.SAFARI) | 7061 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 7062 @Experimental | 7062 @Experimental() |
| 7063 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-document-e
xitfullscreen | 7063 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-document-e
xitfullscreen |
| 7064 void $dom_webkitExitFullscreen() native; | 7064 void $dom_webkitExitFullscreen() native; |
| 7065 | 7065 |
| 7066 @JSName('webkitExitPointerLock') | 7066 @JSName('webkitExitPointerLock') |
| 7067 /// Moved to [HtmlDocument]. | 7067 /// Moved to [HtmlDocument]. |
| 7068 @DomName('Document.webkitExitPointerLock') | 7068 @DomName('Document.webkitExitPointerLock') |
| 7069 @DocsEditable | 7069 @DocsEditable() |
| 7070 @SupportedBrowser(SupportedBrowser.CHROME) | 7070 @SupportedBrowser(SupportedBrowser.CHROME) |
| 7071 @SupportedBrowser(SupportedBrowser.SAFARI) | 7071 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 7072 @Experimental | 7072 @Experimental() |
| 7073 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Documen
t-exitPointerLock-void | 7073 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Documen
t-exitPointerLock-void |
| 7074 void $dom_webkitExitPointerLock() native; | 7074 void $dom_webkitExitPointerLock() native; |
| 7075 | 7075 |
| 7076 @JSName('webkitGetNamedFlows') | 7076 @JSName('webkitGetNamedFlows') |
| 7077 @DomName('Document.webkitGetNamedFlows') | 7077 @DomName('Document.webkitGetNamedFlows') |
| 7078 @DocsEditable | 7078 @DocsEditable() |
| 7079 @SupportedBrowser(SupportedBrowser.CHROME) | 7079 @SupportedBrowser(SupportedBrowser.CHROME) |
| 7080 @SupportedBrowser(SupportedBrowser.SAFARI) | 7080 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 7081 @Experimental | 7081 @Experimental() |
| 7082 // http://www.w3.org/TR/css3-regions/#dom-named-flow-collection | 7082 // http://www.w3.org/TR/css3-regions/#dom-named-flow-collection |
| 7083 NamedFlowCollection getNamedFlows() native; | 7083 NamedFlowCollection getNamedFlows() native; |
| 7084 | 7084 |
| 7085 @DomName('Document.webkitRegister') | 7085 @DomName('Document.webkitRegister') |
| 7086 @DocsEditable | 7086 @DocsEditable() |
| 7087 @SupportedBrowser(SupportedBrowser.CHROME) | 7087 @SupportedBrowser(SupportedBrowser.CHROME) |
| 7088 @SupportedBrowser(SupportedBrowser.SAFARI) | 7088 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 7089 @Experimental | 7089 @Experimental() |
| 7090 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#df
n-document-register | 7090 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#df
n-document-register |
| 7091 CustomElementConstructor register(String name, [Map options]) { | 7091 CustomElementConstructor register(String name, [Map options]) { |
| 7092 if (options != null) { | 7092 if (options != null) { |
| 7093 var options_1 = convertDartToNative_Dictionary(options); | 7093 var options_1 = convertDartToNative_Dictionary(options); |
| 7094 return _register_1(name, options_1); | 7094 return _register_1(name, options_1); |
| 7095 } | 7095 } |
| 7096 return _register_2(name); | 7096 return _register_2(name); |
| 7097 } | 7097 } |
| 7098 @JSName('webkitRegister') | 7098 @JSName('webkitRegister') |
| 7099 @DomName('Document.webkitRegister') | 7099 @DomName('Document.webkitRegister') |
| 7100 @DocsEditable | 7100 @DocsEditable() |
| 7101 @SupportedBrowser(SupportedBrowser.CHROME) | 7101 @SupportedBrowser(SupportedBrowser.CHROME) |
| 7102 @SupportedBrowser(SupportedBrowser.SAFARI) | 7102 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 7103 @Experimental | 7103 @Experimental() |
| 7104 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#df
n-document-register | 7104 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#df
n-document-register |
| 7105 CustomElementConstructor _register_1(name, options) native; | 7105 CustomElementConstructor _register_1(name, options) native; |
| 7106 @JSName('webkitRegister') | 7106 @JSName('webkitRegister') |
| 7107 @DomName('Document.webkitRegister') | 7107 @DomName('Document.webkitRegister') |
| 7108 @DocsEditable | 7108 @DocsEditable() |
| 7109 @SupportedBrowser(SupportedBrowser.CHROME) | 7109 @SupportedBrowser(SupportedBrowser.CHROME) |
| 7110 @SupportedBrowser(SupportedBrowser.SAFARI) | 7110 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 7111 @Experimental | 7111 @Experimental() |
| 7112 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#df
n-document-register | 7112 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/custom/index.html#df
n-document-register |
| 7113 CustomElementConstructor _register_2(name) native; | 7113 CustomElementConstructor _register_2(name) native; |
| 7114 | 7114 |
| 7115 @DomName('Document.onabort') | 7115 @DomName('Document.onabort') |
| 7116 @DocsEditable | 7116 @DocsEditable() |
| 7117 Stream<Event> get onAbort => Element.abortEvent.forTarget(this); | 7117 Stream<Event> get onAbort => Element.abortEvent.forTarget(this); |
| 7118 | 7118 |
| 7119 @DomName('Document.onbeforecopy') | 7119 @DomName('Document.onbeforecopy') |
| 7120 @DocsEditable | 7120 @DocsEditable() |
| 7121 Stream<Event> get onBeforeCopy => Element.beforeCopyEvent.forTarget(this); | 7121 Stream<Event> get onBeforeCopy => Element.beforeCopyEvent.forTarget(this); |
| 7122 | 7122 |
| 7123 @DomName('Document.onbeforecut') | 7123 @DomName('Document.onbeforecut') |
| 7124 @DocsEditable | 7124 @DocsEditable() |
| 7125 Stream<Event> get onBeforeCut => Element.beforeCutEvent.forTarget(this); | 7125 Stream<Event> get onBeforeCut => Element.beforeCutEvent.forTarget(this); |
| 7126 | 7126 |
| 7127 @DomName('Document.onbeforepaste') | 7127 @DomName('Document.onbeforepaste') |
| 7128 @DocsEditable | 7128 @DocsEditable() |
| 7129 Stream<Event> get onBeforePaste => Element.beforePasteEvent.forTarget(this); | 7129 Stream<Event> get onBeforePaste => Element.beforePasteEvent.forTarget(this); |
| 7130 | 7130 |
| 7131 @DomName('Document.onblur') | 7131 @DomName('Document.onblur') |
| 7132 @DocsEditable | 7132 @DocsEditable() |
| 7133 Stream<Event> get onBlur => Element.blurEvent.forTarget(this); | 7133 Stream<Event> get onBlur => Element.blurEvent.forTarget(this); |
| 7134 | 7134 |
| 7135 @DomName('Document.onchange') | 7135 @DomName('Document.onchange') |
| 7136 @DocsEditable | 7136 @DocsEditable() |
| 7137 Stream<Event> get onChange => Element.changeEvent.forTarget(this); | 7137 Stream<Event> get onChange => Element.changeEvent.forTarget(this); |
| 7138 | 7138 |
| 7139 @DomName('Document.onclick') | 7139 @DomName('Document.onclick') |
| 7140 @DocsEditable | 7140 @DocsEditable() |
| 7141 Stream<MouseEvent> get onClick => Element.clickEvent.forTarget(this); | 7141 Stream<MouseEvent> get onClick => Element.clickEvent.forTarget(this); |
| 7142 | 7142 |
| 7143 @DomName('Document.oncontextmenu') | 7143 @DomName('Document.oncontextmenu') |
| 7144 @DocsEditable | 7144 @DocsEditable() |
| 7145 Stream<MouseEvent> get onContextMenu => Element.contextMenuEvent.forTarget(thi
s); | 7145 Stream<MouseEvent> get onContextMenu => Element.contextMenuEvent.forTarget(thi
s); |
| 7146 | 7146 |
| 7147 @DomName('Document.oncopy') | 7147 @DomName('Document.oncopy') |
| 7148 @DocsEditable | 7148 @DocsEditable() |
| 7149 Stream<Event> get onCopy => Element.copyEvent.forTarget(this); | 7149 Stream<Event> get onCopy => Element.copyEvent.forTarget(this); |
| 7150 | 7150 |
| 7151 @DomName('Document.oncut') | 7151 @DomName('Document.oncut') |
| 7152 @DocsEditable | 7152 @DocsEditable() |
| 7153 Stream<Event> get onCut => Element.cutEvent.forTarget(this); | 7153 Stream<Event> get onCut => Element.cutEvent.forTarget(this); |
| 7154 | 7154 |
| 7155 @DomName('Document.ondblclick') | 7155 @DomName('Document.ondblclick') |
| 7156 @DocsEditable | 7156 @DocsEditable() |
| 7157 Stream<Event> get onDoubleClick => Element.doubleClickEvent.forTarget(this); | 7157 Stream<Event> get onDoubleClick => Element.doubleClickEvent.forTarget(this); |
| 7158 | 7158 |
| 7159 @DomName('Document.ondrag') | 7159 @DomName('Document.ondrag') |
| 7160 @DocsEditable | 7160 @DocsEditable() |
| 7161 Stream<MouseEvent> get onDrag => Element.dragEvent.forTarget(this); | 7161 Stream<MouseEvent> get onDrag => Element.dragEvent.forTarget(this); |
| 7162 | 7162 |
| 7163 @DomName('Document.ondragend') | 7163 @DomName('Document.ondragend') |
| 7164 @DocsEditable | 7164 @DocsEditable() |
| 7165 Stream<MouseEvent> get onDragEnd => Element.dragEndEvent.forTarget(this); | 7165 Stream<MouseEvent> get onDragEnd => Element.dragEndEvent.forTarget(this); |
| 7166 | 7166 |
| 7167 @DomName('Document.ondragenter') | 7167 @DomName('Document.ondragenter') |
| 7168 @DocsEditable | 7168 @DocsEditable() |
| 7169 Stream<MouseEvent> get onDragEnter => Element.dragEnterEvent.forTarget(this); | 7169 Stream<MouseEvent> get onDragEnter => Element.dragEnterEvent.forTarget(this); |
| 7170 | 7170 |
| 7171 @DomName('Document.ondragleave') | 7171 @DomName('Document.ondragleave') |
| 7172 @DocsEditable | 7172 @DocsEditable() |
| 7173 Stream<MouseEvent> get onDragLeave => Element.dragLeaveEvent.forTarget(this); | 7173 Stream<MouseEvent> get onDragLeave => Element.dragLeaveEvent.forTarget(this); |
| 7174 | 7174 |
| 7175 @DomName('Document.ondragover') | 7175 @DomName('Document.ondragover') |
| 7176 @DocsEditable | 7176 @DocsEditable() |
| 7177 Stream<MouseEvent> get onDragOver => Element.dragOverEvent.forTarget(this); | 7177 Stream<MouseEvent> get onDragOver => Element.dragOverEvent.forTarget(this); |
| 7178 | 7178 |
| 7179 @DomName('Document.ondragstart') | 7179 @DomName('Document.ondragstart') |
| 7180 @DocsEditable | 7180 @DocsEditable() |
| 7181 Stream<MouseEvent> get onDragStart => Element.dragStartEvent.forTarget(this); | 7181 Stream<MouseEvent> get onDragStart => Element.dragStartEvent.forTarget(this); |
| 7182 | 7182 |
| 7183 @DomName('Document.ondrop') | 7183 @DomName('Document.ondrop') |
| 7184 @DocsEditable | 7184 @DocsEditable() |
| 7185 Stream<MouseEvent> get onDrop => Element.dropEvent.forTarget(this); | 7185 Stream<MouseEvent> get onDrop => Element.dropEvent.forTarget(this); |
| 7186 | 7186 |
| 7187 @DomName('Document.onerror') | 7187 @DomName('Document.onerror') |
| 7188 @DocsEditable | 7188 @DocsEditable() |
| 7189 Stream<Event> get onError => Element.errorEvent.forTarget(this); | 7189 Stream<Event> get onError => Element.errorEvent.forTarget(this); |
| 7190 | 7190 |
| 7191 @DomName('Document.onfocus') | 7191 @DomName('Document.onfocus') |
| 7192 @DocsEditable | 7192 @DocsEditable() |
| 7193 Stream<Event> get onFocus => Element.focusEvent.forTarget(this); | 7193 Stream<Event> get onFocus => Element.focusEvent.forTarget(this); |
| 7194 | 7194 |
| 7195 @DomName('Document.oninput') | 7195 @DomName('Document.oninput') |
| 7196 @DocsEditable | 7196 @DocsEditable() |
| 7197 Stream<Event> get onInput => Element.inputEvent.forTarget(this); | 7197 Stream<Event> get onInput => Element.inputEvent.forTarget(this); |
| 7198 | 7198 |
| 7199 @DomName('Document.oninvalid') | 7199 @DomName('Document.oninvalid') |
| 7200 @DocsEditable | 7200 @DocsEditable() |
| 7201 Stream<Event> get onInvalid => Element.invalidEvent.forTarget(this); | 7201 Stream<Event> get onInvalid => Element.invalidEvent.forTarget(this); |
| 7202 | 7202 |
| 7203 @DomName('Document.onkeydown') | 7203 @DomName('Document.onkeydown') |
| 7204 @DocsEditable | 7204 @DocsEditable() |
| 7205 Stream<KeyboardEvent> get onKeyDown => Element.keyDownEvent.forTarget(this); | 7205 Stream<KeyboardEvent> get onKeyDown => Element.keyDownEvent.forTarget(this); |
| 7206 | 7206 |
| 7207 @DomName('Document.onkeypress') | 7207 @DomName('Document.onkeypress') |
| 7208 @DocsEditable | 7208 @DocsEditable() |
| 7209 Stream<KeyboardEvent> get onKeyPress => Element.keyPressEvent.forTarget(this); | 7209 Stream<KeyboardEvent> get onKeyPress => Element.keyPressEvent.forTarget(this); |
| 7210 | 7210 |
| 7211 @DomName('Document.onkeyup') | 7211 @DomName('Document.onkeyup') |
| 7212 @DocsEditable | 7212 @DocsEditable() |
| 7213 Stream<KeyboardEvent> get onKeyUp => Element.keyUpEvent.forTarget(this); | 7213 Stream<KeyboardEvent> get onKeyUp => Element.keyUpEvent.forTarget(this); |
| 7214 | 7214 |
| 7215 @DomName('Document.onload') | 7215 @DomName('Document.onload') |
| 7216 @DocsEditable | 7216 @DocsEditable() |
| 7217 Stream<Event> get onLoad => Element.loadEvent.forTarget(this); | 7217 Stream<Event> get onLoad => Element.loadEvent.forTarget(this); |
| 7218 | 7218 |
| 7219 @DomName('Document.onmousedown') | 7219 @DomName('Document.onmousedown') |
| 7220 @DocsEditable | 7220 @DocsEditable() |
| 7221 Stream<MouseEvent> get onMouseDown => Element.mouseDownEvent.forTarget(this); | 7221 Stream<MouseEvent> get onMouseDown => Element.mouseDownEvent.forTarget(this); |
| 7222 | 7222 |
| 7223 @DomName('Document.onmousemove') | 7223 @DomName('Document.onmousemove') |
| 7224 @DocsEditable | 7224 @DocsEditable() |
| 7225 Stream<MouseEvent> get onMouseMove => Element.mouseMoveEvent.forTarget(this); | 7225 Stream<MouseEvent> get onMouseMove => Element.mouseMoveEvent.forTarget(this); |
| 7226 | 7226 |
| 7227 @DomName('Document.onmouseout') | 7227 @DomName('Document.onmouseout') |
| 7228 @DocsEditable | 7228 @DocsEditable() |
| 7229 Stream<MouseEvent> get onMouseOut => Element.mouseOutEvent.forTarget(this); | 7229 Stream<MouseEvent> get onMouseOut => Element.mouseOutEvent.forTarget(this); |
| 7230 | 7230 |
| 7231 @DomName('Document.onmouseover') | 7231 @DomName('Document.onmouseover') |
| 7232 @DocsEditable | 7232 @DocsEditable() |
| 7233 Stream<MouseEvent> get onMouseOver => Element.mouseOverEvent.forTarget(this); | 7233 Stream<MouseEvent> get onMouseOver => Element.mouseOverEvent.forTarget(this); |
| 7234 | 7234 |
| 7235 @DomName('Document.onmouseup') | 7235 @DomName('Document.onmouseup') |
| 7236 @DocsEditable | 7236 @DocsEditable() |
| 7237 Stream<MouseEvent> get onMouseUp => Element.mouseUpEvent.forTarget(this); | 7237 Stream<MouseEvent> get onMouseUp => Element.mouseUpEvent.forTarget(this); |
| 7238 | 7238 |
| 7239 @DomName('Document.onmousewheel') | 7239 @DomName('Document.onmousewheel') |
| 7240 @DocsEditable | 7240 @DocsEditable() |
| 7241 Stream<WheelEvent> get onMouseWheel => Element.mouseWheelEvent.forTarget(this)
; | 7241 Stream<WheelEvent> get onMouseWheel => Element.mouseWheelEvent.forTarget(this)
; |
| 7242 | 7242 |
| 7243 @DomName('Document.onpaste') | 7243 @DomName('Document.onpaste') |
| 7244 @DocsEditable | 7244 @DocsEditable() |
| 7245 Stream<Event> get onPaste => Element.pasteEvent.forTarget(this); | 7245 Stream<Event> get onPaste => Element.pasteEvent.forTarget(this); |
| 7246 | 7246 |
| 7247 @DomName('Document.onreadystatechange') | 7247 @DomName('Document.onreadystatechange') |
| 7248 @DocsEditable | 7248 @DocsEditable() |
| 7249 Stream<Event> get onReadyStateChange => readyStateChangeEvent.forTarget(this); | 7249 Stream<Event> get onReadyStateChange => readyStateChangeEvent.forTarget(this); |
| 7250 | 7250 |
| 7251 @DomName('Document.onreset') | 7251 @DomName('Document.onreset') |
| 7252 @DocsEditable | 7252 @DocsEditable() |
| 7253 Stream<Event> get onReset => Element.resetEvent.forTarget(this); | 7253 Stream<Event> get onReset => Element.resetEvent.forTarget(this); |
| 7254 | 7254 |
| 7255 @DomName('Document.onscroll') | 7255 @DomName('Document.onscroll') |
| 7256 @DocsEditable | 7256 @DocsEditable() |
| 7257 Stream<Event> get onScroll => Element.scrollEvent.forTarget(this); | 7257 Stream<Event> get onScroll => Element.scrollEvent.forTarget(this); |
| 7258 | 7258 |
| 7259 @DomName('Document.onsearch') | 7259 @DomName('Document.onsearch') |
| 7260 @DocsEditable | 7260 @DocsEditable() |
| 7261 // http://www.w3.org/TR/html-markup/input.search.html | 7261 // http://www.w3.org/TR/html-markup/input.search.html |
| 7262 @Experimental | 7262 @Experimental() |
| 7263 Stream<Event> get onSearch => Element.searchEvent.forTarget(this); | 7263 Stream<Event> get onSearch => Element.searchEvent.forTarget(this); |
| 7264 | 7264 |
| 7265 @DomName('Document.onsecuritypolicyviolation') | 7265 @DomName('Document.onsecuritypolicyviolation') |
| 7266 @DocsEditable | 7266 @DocsEditable() |
| 7267 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specificati
on.dev.html#widl-Document-onsecuritypolicyviolation | 7267 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specificati
on.dev.html#widl-Document-onsecuritypolicyviolation |
| 7268 @Experimental | 7268 @Experimental() |
| 7269 Stream<SecurityPolicyViolationEvent> get onSecurityPolicyViolation => security
PolicyViolationEvent.forTarget(this); | 7269 Stream<SecurityPolicyViolationEvent> get onSecurityPolicyViolation => security
PolicyViolationEvent.forTarget(this); |
| 7270 | 7270 |
| 7271 @DomName('Document.onselect') | 7271 @DomName('Document.onselect') |
| 7272 @DocsEditable | 7272 @DocsEditable() |
| 7273 Stream<Event> get onSelect => Element.selectEvent.forTarget(this); | 7273 Stream<Event> get onSelect => Element.selectEvent.forTarget(this); |
| 7274 | 7274 |
| 7275 @DomName('Document.onselectionchange') | 7275 @DomName('Document.onselectionchange') |
| 7276 @DocsEditable | 7276 @DocsEditable() |
| 7277 Stream<Event> get onSelectionChange => selectionChangeEvent.forTarget(this); | 7277 Stream<Event> get onSelectionChange => selectionChangeEvent.forTarget(this); |
| 7278 | 7278 |
| 7279 @DomName('Document.onselectstart') | 7279 @DomName('Document.onselectstart') |
| 7280 @DocsEditable | 7280 @DocsEditable() |
| 7281 Stream<Event> get onSelectStart => Element.selectStartEvent.forTarget(this); | 7281 Stream<Event> get onSelectStart => Element.selectStartEvent.forTarget(this); |
| 7282 | 7282 |
| 7283 @DomName('Document.onsubmit') | 7283 @DomName('Document.onsubmit') |
| 7284 @DocsEditable | 7284 @DocsEditable() |
| 7285 Stream<Event> get onSubmit => Element.submitEvent.forTarget(this); | 7285 Stream<Event> get onSubmit => Element.submitEvent.forTarget(this); |
| 7286 | 7286 |
| 7287 @DomName('Document.ontouchcancel') | 7287 @DomName('Document.ontouchcancel') |
| 7288 @DocsEditable | 7288 @DocsEditable() |
| 7289 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 7289 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 7290 @Experimental | 7290 @Experimental() |
| 7291 Stream<TouchEvent> get onTouchCancel => Element.touchCancelEvent.forTarget(thi
s); | 7291 Stream<TouchEvent> get onTouchCancel => Element.touchCancelEvent.forTarget(thi
s); |
| 7292 | 7292 |
| 7293 @DomName('Document.ontouchend') | 7293 @DomName('Document.ontouchend') |
| 7294 @DocsEditable | 7294 @DocsEditable() |
| 7295 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 7295 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 7296 @Experimental | 7296 @Experimental() |
| 7297 Stream<TouchEvent> get onTouchEnd => Element.touchEndEvent.forTarget(this); | 7297 Stream<TouchEvent> get onTouchEnd => Element.touchEndEvent.forTarget(this); |
| 7298 | 7298 |
| 7299 @DomName('Document.ontouchmove') | 7299 @DomName('Document.ontouchmove') |
| 7300 @DocsEditable | 7300 @DocsEditable() |
| 7301 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 7301 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 7302 @Experimental | 7302 @Experimental() |
| 7303 Stream<TouchEvent> get onTouchMove => Element.touchMoveEvent.forTarget(this); | 7303 Stream<TouchEvent> get onTouchMove => Element.touchMoveEvent.forTarget(this); |
| 7304 | 7304 |
| 7305 @DomName('Document.ontouchstart') | 7305 @DomName('Document.ontouchstart') |
| 7306 @DocsEditable | 7306 @DocsEditable() |
| 7307 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 7307 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 7308 @Experimental | 7308 @Experimental() |
| 7309 Stream<TouchEvent> get onTouchStart => Element.touchStartEvent.forTarget(this)
; | 7309 Stream<TouchEvent> get onTouchStart => Element.touchStartEvent.forTarget(this)
; |
| 7310 | 7310 |
| 7311 @DomName('Document.onwebkitfullscreenchange') | 7311 @DomName('Document.onwebkitfullscreenchange') |
| 7312 @DocsEditable | 7312 @DocsEditable() |
| 7313 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html | 7313 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html |
| 7314 @Experimental | 7314 @Experimental() |
| 7315 Stream<Event> get onFullscreenChange => Element.fullscreenChangeEvent.forTarge
t(this); | 7315 Stream<Event> get onFullscreenChange => Element.fullscreenChangeEvent.forTarge
t(this); |
| 7316 | 7316 |
| 7317 @DomName('Document.onwebkitfullscreenerror') | 7317 @DomName('Document.onwebkitfullscreenerror') |
| 7318 @DocsEditable | 7318 @DocsEditable() |
| 7319 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html | 7319 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html |
| 7320 @Experimental | 7320 @Experimental() |
| 7321 Stream<Event> get onFullscreenError => Element.fullscreenErrorEvent.forTarget(
this); | 7321 Stream<Event> get onFullscreenError => Element.fullscreenErrorEvent.forTarget(
this); |
| 7322 | 7322 |
| 7323 @DomName('Document.onwebkitpointerlockchange') | 7323 @DomName('Document.onwebkitpointerlockchange') |
| 7324 @DocsEditable | 7324 @DocsEditable() |
| 7325 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Documen
t-onpointerlockchange | 7325 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Documen
t-onpointerlockchange |
| 7326 @Experimental | 7326 @Experimental() |
| 7327 Stream<Event> get onPointerLockChange => pointerLockChangeEvent.forTarget(this
); | 7327 Stream<Event> get onPointerLockChange => pointerLockChangeEvent.forTarget(this
); |
| 7328 | 7328 |
| 7329 @DomName('Document.onwebkitpointerlockerror') | 7329 @DomName('Document.onwebkitpointerlockerror') |
| 7330 @DocsEditable | 7330 @DocsEditable() |
| 7331 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Documen
t-onpointerlockerror | 7331 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Documen
t-onpointerlockerror |
| 7332 @Experimental | 7332 @Experimental() |
| 7333 Stream<Event> get onPointerLockError => pointerLockErrorEvent.forTarget(this); | 7333 Stream<Event> get onPointerLockError => pointerLockErrorEvent.forTarget(this); |
| 7334 | 7334 |
| 7335 | 7335 |
| 7336 /** | 7336 /** |
| 7337 * Finds all descendant elements of this document that match the specified | 7337 * Finds all descendant elements of this document that match the specified |
| 7338 * group of selectors. | 7338 * group of selectors. |
| 7339 * | 7339 * |
| 7340 * Unless your webpage contains multiple documents, the top-level queryAll | 7340 * Unless your webpage contains multiple documents, the top-level queryAll |
| 7341 * method behaves the same as this method, so you should use it instead to | 7341 * method behaves the same as this method, so you should use it instead to |
| 7342 * save typing a few characters. | 7342 * save typing a few characters. |
| (...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 7435 * last child of this document fragment. | 7435 * last child of this document fragment. |
| 7436 */ | 7436 */ |
| 7437 void appendHtml(String text) { | 7437 void appendHtml(String text) { |
| 7438 this.append(new DocumentFragment.html(text)); | 7438 this.append(new DocumentFragment.html(text)); |
| 7439 } | 7439 } |
| 7440 | 7440 |
| 7441 // To suppress missing implicit constructor warnings. | 7441 // To suppress missing implicit constructor warnings. |
| 7442 factory DocumentFragment._() { throw new UnsupportedError("Not supported"); } | 7442 factory DocumentFragment._() { throw new UnsupportedError("Not supported"); } |
| 7443 | 7443 |
| 7444 @DomName('DocumentFragment.childElementCount') | 7444 @DomName('DocumentFragment.childElementCount') |
| 7445 @DocsEditable | 7445 @DocsEditable() |
| 7446 final int childElementCount; | 7446 final int childElementCount; |
| 7447 | 7447 |
| 7448 @DomName('DocumentFragment.firstElementChild') | 7448 @DomName('DocumentFragment.firstElementChild') |
| 7449 @DocsEditable | 7449 @DocsEditable() |
| 7450 final Element firstElementChild; | 7450 final Element firstElementChild; |
| 7451 | 7451 |
| 7452 @DomName('DocumentFragment.lastElementChild') | 7452 @DomName('DocumentFragment.lastElementChild') |
| 7453 @DocsEditable | 7453 @DocsEditable() |
| 7454 final Element lastElementChild; | 7454 final Element lastElementChild; |
| 7455 | 7455 |
| 7456 @JSName('querySelector') | 7456 @JSName('querySelector') |
| 7457 @DomName('DocumentFragment.querySelector') | 7457 @DomName('DocumentFragment.querySelector') |
| 7458 @DocsEditable | 7458 @DocsEditable() |
| 7459 Element $dom_querySelector(String selectors) native; | 7459 Element $dom_querySelector(String selectors) native; |
| 7460 | 7460 |
| 7461 @JSName('querySelectorAll') | 7461 @JSName('querySelectorAll') |
| 7462 @DomName('DocumentFragment.querySelectorAll') | 7462 @DomName('DocumentFragment.querySelectorAll') |
| 7463 @DocsEditable | 7463 @DocsEditable() |
| 7464 @Returns('NodeList') | 7464 @Returns('NodeList') |
| 7465 @Creates('NodeList') | 7465 @Creates('NodeList') |
| 7466 List<Node> $dom_querySelectorAll(String selectors) native; | 7466 List<Node> $dom_querySelectorAll(String selectors) native; |
| 7467 | 7467 |
| 7468 } | 7468 } |
| 7469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7470 // for details. All rights reserved. Use of this source code is governed by a | 7470 // for details. All rights reserved. Use of this source code is governed by a |
| 7471 // BSD-style license that can be found in the LICENSE file. | 7471 // BSD-style license that can be found in the LICENSE file. |
| 7472 | 7472 |
| 7473 | 7473 |
| 7474 @DocsEditable | 7474 @DocsEditable() |
| 7475 @DomName('DocumentType') | 7475 @DomName('DocumentType') |
| 7476 // http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-412266927 | 7476 // http://www.w3.org/TR/DOM-Level-3-Core/core.html#ID-412266927 |
| 7477 @deprecated // stable | 7477 @deprecated // stable |
| 7478 class DocumentType extends Node native "DocumentType" { | 7478 class DocumentType extends Node native "DocumentType" { |
| 7479 // To suppress missing implicit constructor warnings. | 7479 // To suppress missing implicit constructor warnings. |
| 7480 factory DocumentType._() { throw new UnsupportedError("Not supported"); } | 7480 factory DocumentType._() { throw new UnsupportedError("Not supported"); } |
| 7481 } | 7481 } |
| 7482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7482 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7483 // for details. All rights reserved. Use of this source code is governed by a | 7483 // for details. All rights reserved. Use of this source code is governed by a |
| 7484 // BSD-style license that can be found in the LICENSE file. | 7484 // BSD-style license that can be found in the LICENSE file. |
| 7485 | 7485 |
| 7486 | 7486 |
| 7487 @DocsEditable | 7487 @DocsEditable() |
| 7488 @DomName('DOMError') | 7488 @DomName('DOMError') |
| 7489 class DomError extends Interceptor native "DOMError" { | 7489 class DomError extends Interceptor native "DOMError" { |
| 7490 | 7490 |
| 7491 @DomName('DOMError.name') | 7491 @DomName('DOMError.name') |
| 7492 @DocsEditable | 7492 @DocsEditable() |
| 7493 final String name; | 7493 final String name; |
| 7494 } | 7494 } |
| 7495 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 7495 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 7496 // for details. All rights reserved. Use of this source code is governed by a | 7496 // for details. All rights reserved. Use of this source code is governed by a |
| 7497 // BSD-style license that can be found in the LICENSE file. | 7497 // BSD-style license that can be found in the LICENSE file. |
| 7498 | 7498 |
| 7499 | 7499 |
| 7500 @DomName('DOMException') | 7500 @DomName('DOMException') |
| 7501 @Unstable | 7501 @Unstable() |
| 7502 class DomException extends Interceptor native "DOMException" { | 7502 class DomException extends Interceptor native "DOMException" { |
| 7503 | 7503 |
| 7504 static const String INDEX_SIZE = 'IndexSizeError'; | 7504 static const String INDEX_SIZE = 'IndexSizeError'; |
| 7505 static const String HIERARCHY_REQUEST = 'HierarchyRequestError'; | 7505 static const String HIERARCHY_REQUEST = 'HierarchyRequestError'; |
| 7506 static const String WRONG_DOCUMENT = 'WrongDocumentError'; | 7506 static const String WRONG_DOCUMENT = 'WrongDocumentError'; |
| 7507 static const String INVALID_CHARACTER = 'InvalidCharacterError'; | 7507 static const String INVALID_CHARACTER = 'InvalidCharacterError'; |
| 7508 static const String NO_MODIFICATION_ALLOWED = 'NoModificationAllowedError'; | 7508 static const String NO_MODIFICATION_ALLOWED = 'NoModificationAllowedError'; |
| 7509 static const String NOT_FOUND = 'NotFoundError'; | 7509 static const String NOT_FOUND = 'NotFoundError'; |
| 7510 static const String NOT_SUPPORTED = 'NotSupportedError'; | 7510 static const String NOT_SUPPORTED = 'NotSupportedError'; |
| 7511 static const String INVALID_STATE = 'InvalidStateError'; | 7511 static const String INVALID_STATE = 'InvalidStateError'; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 7528 // Although Safari nightly has updated the name to SecurityError, Safari 5 | 7528 // Although Safari nightly has updated the name to SecurityError, Safari 5 |
| 7529 // and 6 still return SECURITY_ERR. | 7529 // and 6 still return SECURITY_ERR. |
| 7530 if (Device.isWebKit && errorName == 'SECURITY_ERR') return 'SecurityError'; | 7530 if (Device.isWebKit && errorName == 'SECURITY_ERR') return 'SecurityError'; |
| 7531 // Chrome release still uses old string, remove this line when Chrome stable | 7531 // Chrome release still uses old string, remove this line when Chrome stable |
| 7532 // also prints out SyntaxError. | 7532 // also prints out SyntaxError. |
| 7533 if (Device.isWebKit && errorName == 'SYNTAX_ERR') return 'SyntaxError'; | 7533 if (Device.isWebKit && errorName == 'SYNTAX_ERR') return 'SyntaxError'; |
| 7534 return errorName; | 7534 return errorName; |
| 7535 } | 7535 } |
| 7536 | 7536 |
| 7537 @DomName('DOMException.message') | 7537 @DomName('DOMException.message') |
| 7538 @DocsEditable | 7538 @DocsEditable() |
| 7539 final String message; | 7539 final String message; |
| 7540 | 7540 |
| 7541 @DomName('DOMException.toString') | 7541 @DomName('DOMException.toString') |
| 7542 @DocsEditable | 7542 @DocsEditable() |
| 7543 String toString() native; | 7543 String toString() native; |
| 7544 | 7544 |
| 7545 } | 7545 } |
| 7546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7546 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7547 // for details. All rights reserved. Use of this source code is governed by a | 7547 // for details. All rights reserved. Use of this source code is governed by a |
| 7548 // BSD-style license that can be found in the LICENSE file. | 7548 // BSD-style license that can be found in the LICENSE file. |
| 7549 | 7549 |
| 7550 | 7550 |
| 7551 @DocsEditable | 7551 @DocsEditable() |
| 7552 @DomName('DOMImplementation') | 7552 @DomName('DOMImplementation') |
| 7553 class DomImplementation extends Interceptor native "DOMImplementation" { | 7553 class DomImplementation extends Interceptor native "DOMImplementation" { |
| 7554 | 7554 |
| 7555 @JSName('createCSSStyleSheet') | 7555 @JSName('createCSSStyleSheet') |
| 7556 @DomName('DOMImplementation.createCSSStyleSheet') | 7556 @DomName('DOMImplementation.createCSSStyleSheet') |
| 7557 @DocsEditable | 7557 @DocsEditable() |
| 7558 @Experimental // non-standard | 7558 @Experimental() // non-standard |
| 7559 CssStyleSheet createCssStyleSheet(String title, String media) native; | 7559 CssStyleSheet createCssStyleSheet(String title, String media) native; |
| 7560 | 7560 |
| 7561 @DomName('DOMImplementation.createDocument') | 7561 @DomName('DOMImplementation.createDocument') |
| 7562 @DocsEditable | 7562 @DocsEditable() |
| 7563 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp
e doctype) native; | 7563 Document createDocument(String namespaceURI, String qualifiedName, DocumentTyp
e doctype) native; |
| 7564 | 7564 |
| 7565 @DomName('DOMImplementation.createDocumentType') | 7565 @DomName('DOMImplementation.createDocumentType') |
| 7566 @DocsEditable | 7566 @DocsEditable() |
| 7567 DocumentType createDocumentType(String qualifiedName, String publicId, String
systemId) native; | 7567 DocumentType createDocumentType(String qualifiedName, String publicId, String
systemId) native; |
| 7568 | 7568 |
| 7569 @JSName('createHTMLDocument') | 7569 @JSName('createHTMLDocument') |
| 7570 @DomName('DOMImplementation.createHTMLDocument') | 7570 @DomName('DOMImplementation.createHTMLDocument') |
| 7571 @DocsEditable | 7571 @DocsEditable() |
| 7572 HtmlDocument createHtmlDocument(String title) native; | 7572 HtmlDocument createHtmlDocument(String title) native; |
| 7573 | 7573 |
| 7574 @DomName('DOMImplementation.hasFeature') | 7574 @DomName('DOMImplementation.hasFeature') |
| 7575 @DocsEditable | 7575 @DocsEditable() |
| 7576 bool hasFeature(String feature, String version) native; | 7576 bool hasFeature(String feature, String version) native; |
| 7577 } | 7577 } |
| 7578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7578 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7579 // for details. All rights reserved. Use of this source code is governed by a | 7579 // for details. All rights reserved. Use of this source code is governed by a |
| 7580 // BSD-style license that can be found in the LICENSE file. | 7580 // BSD-style license that can be found in the LICENSE file. |
| 7581 | 7581 |
| 7582 | 7582 |
| 7583 @DocsEditable | 7583 @DocsEditable() |
| 7584 @DomName('DOMParser') | 7584 @DomName('DOMParser') |
| 7585 class DomParser extends Interceptor native "DOMParser" { | 7585 class DomParser extends Interceptor native "DOMParser" { |
| 7586 | 7586 |
| 7587 @DomName('DOMParser.DOMParser') | 7587 @DomName('DOMParser.DOMParser') |
| 7588 @DocsEditable | 7588 @DocsEditable() |
| 7589 factory DomParser() { | 7589 factory DomParser() { |
| 7590 return DomParser._create_1(); | 7590 return DomParser._create_1(); |
| 7591 } | 7591 } |
| 7592 static DomParser _create_1() => JS('DomParser', 'new DOMParser()'); | 7592 static DomParser _create_1() => JS('DomParser', 'new DOMParser()'); |
| 7593 | 7593 |
| 7594 @DomName('DOMParser.parseFromString') | 7594 @DomName('DOMParser.parseFromString') |
| 7595 @DocsEditable | 7595 @DocsEditable() |
| 7596 Document parseFromString(String str, String contentType) native; | 7596 Document parseFromString(String str, String contentType) native; |
| 7597 } | 7597 } |
| 7598 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7598 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7599 // for details. All rights reserved. Use of this source code is governed by a | 7599 // for details. All rights reserved. Use of this source code is governed by a |
| 7600 // BSD-style license that can be found in the LICENSE file. | 7600 // BSD-style license that can be found in the LICENSE file. |
| 7601 | 7601 |
| 7602 | 7602 |
| 7603 @DocsEditable | 7603 @DocsEditable() |
| 7604 @DomName('DOMSettableTokenList') | 7604 @DomName('DOMSettableTokenList') |
| 7605 class DomSettableTokenList extends DomTokenList native "DOMSettableTokenList" { | 7605 class DomSettableTokenList extends DomTokenList native "DOMSettableTokenList" { |
| 7606 // To suppress missing implicit constructor warnings. | 7606 // To suppress missing implicit constructor warnings. |
| 7607 factory DomSettableTokenList._() { throw new UnsupportedError("Not supported")
; } | 7607 factory DomSettableTokenList._() { throw new UnsupportedError("Not supported")
; } |
| 7608 | 7608 |
| 7609 @DomName('DOMSettableTokenList.value') | 7609 @DomName('DOMSettableTokenList.value') |
| 7610 @DocsEditable | 7610 @DocsEditable() |
| 7611 String value; | 7611 String value; |
| 7612 | 7612 |
| 7613 @DomName('DOMSettableTokenList.__getter__') | 7613 @DomName('DOMSettableTokenList.__getter__') |
| 7614 @DocsEditable | 7614 @DocsEditable() |
| 7615 String __getter__(int index) native; | 7615 String __getter__(int index) native; |
| 7616 } | 7616 } |
| 7617 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7617 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7618 // for details. All rights reserved. Use of this source code is governed by a | 7618 // for details. All rights reserved. Use of this source code is governed by a |
| 7619 // BSD-style license that can be found in the LICENSE file. | 7619 // BSD-style license that can be found in the LICENSE file. |
| 7620 | 7620 |
| 7621 | 7621 |
| 7622 @DocsEditable | 7622 @DocsEditable() |
| 7623 @DomName('DOMStringList') | 7623 @DomName('DOMStringList') |
| 7624 class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix
in<String> implements JavaScriptIndexingBehavior, List<String> native "DOMString
List" { | 7624 class DomStringList extends Interceptor with ListMixin<String>, ImmutableListMix
in<String> implements JavaScriptIndexingBehavior, List<String> native "DOMString
List" { |
| 7625 | 7625 |
| 7626 @DomName('DOMStringList.length') | 7626 @DomName('DOMStringList.length') |
| 7627 @DocsEditable | 7627 @DocsEditable() |
| 7628 int get length => JS("int", "#.length", this); | 7628 int get length => JS("int", "#.length", this); |
| 7629 | 7629 |
| 7630 String operator[](int index) { | 7630 String operator[](int index) { |
| 7631 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 7631 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 7632 index, index, length)) | 7632 index, index, length)) |
| 7633 throw new RangeError.range(index, 0, length); | 7633 throw new RangeError.range(index, 0, length); |
| 7634 return JS("String", "#[#]", this, index); | 7634 return JS("String", "#[#]", this, index); |
| 7635 } | 7635 } |
| 7636 void operator[]=(int index, String value) { | 7636 void operator[]=(int index, String value) { |
| 7637 throw new UnsupportedError("Cannot assign element of immutable List."); | 7637 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 7665 return JS('String', '#[0]', this); | 7665 return JS('String', '#[0]', this); |
| 7666 } | 7666 } |
| 7667 if (len == 0) throw new StateError("No elements"); | 7667 if (len == 0) throw new StateError("No elements"); |
| 7668 throw new StateError("More than one element"); | 7668 throw new StateError("More than one element"); |
| 7669 } | 7669 } |
| 7670 | 7670 |
| 7671 String elementAt(int index) => this[index]; | 7671 String elementAt(int index) => this[index]; |
| 7672 // -- end List<String> mixins. | 7672 // -- end List<String> mixins. |
| 7673 | 7673 |
| 7674 @DomName('DOMStringList.contains') | 7674 @DomName('DOMStringList.contains') |
| 7675 @DocsEditable | 7675 @DocsEditable() |
| 7676 bool contains(String string) native; | 7676 bool contains(String string) native; |
| 7677 | 7677 |
| 7678 @DomName('DOMStringList.item') | 7678 @DomName('DOMStringList.item') |
| 7679 @DocsEditable | 7679 @DocsEditable() |
| 7680 String item(int index) native; | 7680 String item(int index) native; |
| 7681 } | 7681 } |
| 7682 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7682 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7683 // for details. All rights reserved. Use of this source code is governed by a | 7683 // for details. All rights reserved. Use of this source code is governed by a |
| 7684 // BSD-style license that can be found in the LICENSE file. | 7684 // BSD-style license that can be found in the LICENSE file. |
| 7685 | 7685 |
| 7686 | 7686 |
| 7687 @DocsEditable | 7687 @DocsEditable() |
| 7688 @DomName('DOMStringMap') | 7688 @DomName('DOMStringMap') |
| 7689 abstract class DomStringMap extends Interceptor { | 7689 abstract class DomStringMap extends Interceptor { |
| 7690 | 7690 |
| 7691 bool __delete__(String name); | 7691 bool __delete__(String name); |
| 7692 | 7692 |
| 7693 String __getter__(String name); | 7693 String __getter__(String name); |
| 7694 | 7694 |
| 7695 void __setter__(String name, String value); | 7695 void __setter__(String name, String value); |
| 7696 } | 7696 } |
| 7697 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7697 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7698 // for details. All rights reserved. Use of this source code is governed by a | 7698 // for details. All rights reserved. Use of this source code is governed by a |
| 7699 // BSD-style license that can be found in the LICENSE file. | 7699 // BSD-style license that can be found in the LICENSE file. |
| 7700 | 7700 |
| 7701 | 7701 |
| 7702 @DocsEditable | 7702 @DocsEditable() |
| 7703 @DomName('DOMTokenList') | 7703 @DomName('DOMTokenList') |
| 7704 class DomTokenList extends Interceptor native "DOMTokenList" { | 7704 class DomTokenList extends Interceptor native "DOMTokenList" { |
| 7705 | 7705 |
| 7706 @DomName('DOMTokenList.length') | 7706 @DomName('DOMTokenList.length') |
| 7707 @DocsEditable | 7707 @DocsEditable() |
| 7708 final int length; | 7708 final int length; |
| 7709 | 7709 |
| 7710 @DomName('DOMTokenList.contains') | 7710 @DomName('DOMTokenList.contains') |
| 7711 @DocsEditable | 7711 @DocsEditable() |
| 7712 bool contains(String token) native; | 7712 bool contains(String token) native; |
| 7713 | 7713 |
| 7714 @DomName('DOMTokenList.item') | 7714 @DomName('DOMTokenList.item') |
| 7715 @DocsEditable | 7715 @DocsEditable() |
| 7716 String item(int index) native; | 7716 String item(int index) native; |
| 7717 | 7717 |
| 7718 @DomName('DOMTokenList.toString') | 7718 @DomName('DOMTokenList.toString') |
| 7719 @DocsEditable | 7719 @DocsEditable() |
| 7720 String toString() native; | 7720 String toString() native; |
| 7721 | 7721 |
| 7722 @DomName('DOMTokenList.toggle') | 7722 @DomName('DOMTokenList.toggle') |
| 7723 @DocsEditable | 7723 @DocsEditable() |
| 7724 bool toggle(String token, [bool force]) native; | 7724 bool toggle(String token, [bool force]) native; |
| 7725 } | 7725 } |
| 7726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 7726 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 7727 // for details. All rights reserved. Use of this source code is governed by a | 7727 // for details. All rights reserved. Use of this source code is governed by a |
| 7728 // BSD-style license that can be found in the LICENSE file. | 7728 // BSD-style license that can be found in the LICENSE file. |
| 7729 | 7729 |
| 7730 | 7730 |
| 7731 class _ChildrenElementList extends ListBase<Element> { | 7731 class _ChildrenElementList extends ListBase<Element> { |
| 7732 // Raw Element. | 7732 // Raw Element. |
| 7733 final Element _element; | 7733 final Element _element; |
| (...skipping 566 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8300 * The tag should be a valid HTML tag name. | 8300 * The tag should be a valid HTML tag name. |
| 8301 */ | 8301 */ |
| 8302 static bool isTagSupported(String tag) { | 8302 static bool isTagSupported(String tag) { |
| 8303 var e = _ElementFactoryProvider.createElement_tag(tag); | 8303 var e = _ElementFactoryProvider.createElement_tag(tag); |
| 8304 return e is Element && !(e is UnknownElement); | 8304 return e is Element && !(e is UnknownElement); |
| 8305 } | 8305 } |
| 8306 | 8306 |
| 8307 /** | 8307 /** |
| 8308 * Called by the DOM when this element has been instantiated. | 8308 * Called by the DOM when this element has been instantiated. |
| 8309 */ | 8309 */ |
| 8310 @Experimental | 8310 @Experimental() |
| 8311 void onCreated() {} | 8311 void onCreated() {} |
| 8312 | 8312 |
| 8313 // Hooks to support custom WebComponents. | 8313 // Hooks to support custom WebComponents. |
| 8314 | 8314 |
| 8315 @Creates('Null') // Set from Dart code; does not instantiate a native type. | 8315 @Creates('Null') // Set from Dart code; does not instantiate a native type. |
| 8316 Element _xtag; | 8316 Element _xtag; |
| 8317 | 8317 |
| 8318 /** | 8318 /** |
| 8319 * Experimental support for [web components][wc]. This field stores a | 8319 * Experimental support for [web components][wc]. This field stores a |
| 8320 * reference to the component implementation. It was inspired by Mozilla's | 8320 * reference to the component implementation. It was inspired by Mozilla's |
| 8321 * [x-tags][] project. Please note: in the future it may be possible to | 8321 * [x-tags][] project. Please note: in the future it may be possible to |
| 8322 * `extend Element` from your class, in which case this field will be | 8322 * `extend Element` from your class, in which case this field will be |
| 8323 * deprecated. | 8323 * deprecated. |
| 8324 * | 8324 * |
| 8325 * If xtag has not been set, it will simply return `this` [Element]. | 8325 * If xtag has not been set, it will simply return `this` [Element]. |
| 8326 * | 8326 * |
| 8327 * [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html | 8327 * [wc]: http://dvcs.w3.org/hg/webcomponents/raw-file/tip/explainer/index.html |
| 8328 * [x-tags]: http://x-tags.org/ | 8328 * [x-tags]: http://x-tags.org/ |
| 8329 */ | 8329 */ |
| 8330 // Note: return type is `dynamic` for convenience to suppress warnings when | 8330 // Note: return type is `dynamic` for convenience to suppress warnings when |
| 8331 // members of the component are used. The actual type is a subtype of Element. | 8331 // members of the component are used. The actual type is a subtype of Element. |
| 8332 get xtag => _xtag != null ? _xtag : this; | 8332 get xtag => _xtag != null ? _xtag : this; |
| 8333 | 8333 |
| 8334 void set xtag(Element value) { | 8334 void set xtag(Element value) { |
| 8335 _xtag = value; | 8335 _xtag = value; |
| 8336 } | 8336 } |
| 8337 | 8337 |
| 8338 @DomName('Element.localName') | 8338 @DomName('Element.localName') |
| 8339 @DocsEditable | 8339 @DocsEditable() |
| 8340 String get localName => $dom_localName; | 8340 String get localName => $dom_localName; |
| 8341 | 8341 |
| 8342 @DomName('Element.namespaceUri') | 8342 @DomName('Element.namespaceUri') |
| 8343 @DocsEditable | 8343 @DocsEditable() |
| 8344 String get namespaceUri => $dom_namespaceUri; | 8344 String get namespaceUri => $dom_namespaceUri; |
| 8345 | 8345 |
| 8346 String toString() => localName; | 8346 String toString() => localName; |
| 8347 | 8347 |
| 8348 /** | 8348 /** |
| 8349 * Scrolls this element into view. | 8349 * Scrolls this element into view. |
| 8350 * | 8350 * |
| 8351 * Only one of of the alignment options may be specified at a time. | 8351 * Only one of of the alignment options may be specified at a time. |
| 8352 * | 8352 * |
| 8353 * If no options are specified then this will attempt to scroll the minimum | 8353 * If no options are specified then this will attempt to scroll the minimum |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8505 this.parentNode.insertBefore(node, this.nextNode); | 8505 this.parentNode.insertBefore(node, this.nextNode); |
| 8506 break; | 8506 break; |
| 8507 default: | 8507 default: |
| 8508 throw new ArgumentError("Invalid position ${where}"); | 8508 throw new ArgumentError("Invalid position ${where}"); |
| 8509 } | 8509 } |
| 8510 } | 8510 } |
| 8511 | 8511 |
| 8512 /** | 8512 /** |
| 8513 * Checks if this element matches the CSS selectors. | 8513 * Checks if this element matches the CSS selectors. |
| 8514 */ | 8514 */ |
| 8515 @Experimental | 8515 @Experimental() |
| 8516 bool matches(String selectors) { | 8516 bool matches(String selectors) { |
| 8517 if (JS('bool', '!!#.matches', this)) { | 8517 if (JS('bool', '!!#.matches', this)) { |
| 8518 return JS('bool', '#.matches(#)', this, selectors); | 8518 return JS('bool', '#.matches(#)', this, selectors); |
| 8519 } else if (JS('bool', '!!#.webkitMatchesSelector', this)) { | 8519 } else if (JS('bool', '!!#.webkitMatchesSelector', this)) { |
| 8520 return JS('bool', '#.webkitMatchesSelector(#)', this, selectors); | 8520 return JS('bool', '#.webkitMatchesSelector(#)', this, selectors); |
| 8521 } else if (JS('bool', '!!#.mozMatchesSelector', this)) { | 8521 } else if (JS('bool', '!!#.mozMatchesSelector', this)) { |
| 8522 return JS('bool', '#.mozMatchesSelector(#)', this, selectors); | 8522 return JS('bool', '#.mozMatchesSelector(#)', this, selectors); |
| 8523 } else if (JS('bool', '!!#.msMatchesSelector', this)) { | 8523 } else if (JS('bool', '!!#.msMatchesSelector', this)) { |
| 8524 return JS('bool', '#.msMatchesSelector(#)', this, selectors); | 8524 return JS('bool', '#.msMatchesSelector(#)', this, selectors); |
| 8525 } | 8525 } |
| 8526 throw new UnsupportedError("Not supported on this platform"); | 8526 throw new UnsupportedError("Not supported on this platform"); |
| 8527 } | 8527 } |
| 8528 | 8528 |
| 8529 @Creates('Null') // Set from Dart code; does not instantiate a native type. | 8529 @Creates('Null') // Set from Dart code; does not instantiate a native type. |
| 8530 Element _templateInstanceRef; | 8530 Element _templateInstanceRef; |
| 8531 | 8531 |
| 8532 // Note: only used if `this is! TemplateElement` | 8532 // Note: only used if `this is! TemplateElement` |
| 8533 @Creates('Null') // Set from Dart code; does not instantiate a native type. | 8533 @Creates('Null') // Set from Dart code; does not instantiate a native type. |
| 8534 DocumentFragment _templateContent; | 8534 DocumentFragment _templateContent; |
| 8535 | 8535 |
| 8536 bool _templateIsDecorated; | 8536 bool _templateIsDecorated; |
| 8537 | 8537 |
| 8538 | 8538 |
| 8539 /** | 8539 /** |
| 8540 * Gets the template this node refers to. | 8540 * Gets the template this node refers to. |
| 8541 * This is only supported if [isTemplate] is true. | 8541 * This is only supported if [isTemplate] is true. |
| 8542 */ | 8542 */ |
| 8543 @Experimental | 8543 @Experimental() |
| 8544 Element get ref { | 8544 Element get ref { |
| 8545 _ensureTemplate(); | 8545 _ensureTemplate(); |
| 8546 | 8546 |
| 8547 Element ref = null; | 8547 Element ref = null; |
| 8548 var refId = attributes['ref']; | 8548 var refId = attributes['ref']; |
| 8549 if (refId != null) { | 8549 if (refId != null) { |
| 8550 var treeScope = this; | 8550 var treeScope = this; |
| 8551 while (treeScope.parentNode != null) { | 8551 while (treeScope.parentNode != null) { |
| 8552 treeScope = treeScope.parentNode; | 8552 treeScope = treeScope.parentNode; |
| 8553 } | 8553 } |
| 8554 | 8554 |
| 8555 // Note: JS code tests that getElementById is present. We can't do that | 8555 // Note: JS code tests that getElementById is present. We can't do that |
| 8556 // easily, so instead check for the types known to implement it. | 8556 // easily, so instead check for the types known to implement it. |
| 8557 if (treeScope is Document || | 8557 if (treeScope is Document || |
| 8558 treeScope is ShadowRoot || | 8558 treeScope is ShadowRoot || |
| 8559 treeScope is svg.SvgSvgElement) { | 8559 treeScope is svg.SvgSvgElement) { |
| 8560 | 8560 |
| 8561 ref = treeScope.getElementById(refId); | 8561 ref = treeScope.getElementById(refId); |
| 8562 } | 8562 } |
| 8563 } | 8563 } |
| 8564 | 8564 |
| 8565 return ref != null ? ref : _templateInstanceRef; | 8565 return ref != null ? ref : _templateInstanceRef; |
| 8566 } | 8566 } |
| 8567 | 8567 |
| 8568 /** | 8568 /** |
| 8569 * Gets the content of this template. | 8569 * Gets the content of this template. |
| 8570 * This is only supported if [isTemplate] is true. | 8570 * This is only supported if [isTemplate] is true. |
| 8571 */ | 8571 */ |
| 8572 @Experimental | 8572 @Experimental() |
| 8573 DocumentFragment get content { | 8573 DocumentFragment get content { |
| 8574 _ensureTemplate(); | 8574 _ensureTemplate(); |
| 8575 return _templateContent; | 8575 return _templateContent; |
| 8576 } | 8576 } |
| 8577 | 8577 |
| 8578 /** | 8578 /** |
| 8579 * Creates an instance of the template. | 8579 * Creates an instance of the template. |
| 8580 * This is only supported if [isTemplate] is true. | 8580 * This is only supported if [isTemplate] is true. |
| 8581 */ | 8581 */ |
| 8582 @Experimental | 8582 @Experimental() |
| 8583 DocumentFragment createInstance() { | 8583 DocumentFragment createInstance() { |
| 8584 _ensureTemplate(); | 8584 _ensureTemplate(); |
| 8585 return TemplateElement.mdvPackage(this).createInstance(); | 8585 return TemplateElement.mdvPackage(this).createInstance(); |
| 8586 } | 8586 } |
| 8587 | 8587 |
| 8588 /** | 8588 /** |
| 8589 * The data model which is inherited through the tree. | 8589 * The data model which is inherited through the tree. |
| 8590 * This is only supported if [isTemplate] is true. | 8590 * This is only supported if [isTemplate] is true. |
| 8591 */ | 8591 */ |
| 8592 @Experimental | 8592 @Experimental() |
| 8593 get model => TemplateElement.mdvPackage(this).model; | 8593 get model => TemplateElement.mdvPackage(this).model; |
| 8594 | 8594 |
| 8595 @Experimental | 8595 @Experimental() |
| 8596 void set model(value) { | 8596 void set model(value) { |
| 8597 _ensureTemplate(); | 8597 _ensureTemplate(); |
| 8598 TemplateElement.mdvPackage(this).model = value; | 8598 TemplateElement.mdvPackage(this).model = value; |
| 8599 } | 8599 } |
| 8600 | 8600 |
| 8601 // TODO(jmesserly): const set would be better | 8601 // TODO(jmesserly): const set would be better |
| 8602 static const _TABLE_TAGS = const { | 8602 static const _TABLE_TAGS = const { |
| 8603 'caption': null, | 8603 'caption': null, |
| 8604 'col': null, | 8604 'col': null, |
| 8605 'colgroup': null, | 8605 'colgroup': null, |
| (...skipping 15 matching lines...) Expand all Loading... |
| 8621 * A node is a template if [tagName] is TEMPLATE, or the node has the | 8621 * A node is a template if [tagName] is TEMPLATE, or the node has the |
| 8622 * 'template' attribute and this tag supports attribute form for backwards | 8622 * 'template' attribute and this tag supports attribute form for backwards |
| 8623 * compatibility with existing HTML parsers. The nodes that can use attribute | 8623 * compatibility with existing HTML parsers. The nodes that can use attribute |
| 8624 * form are table elments (THEAD, TBODY, TFOOT, TH, TR, TD, CAPTION, COLGROUP | 8624 * form are table elments (THEAD, TBODY, TFOOT, TH, TR, TD, CAPTION, COLGROUP |
| 8625 * and COL), OPTION, and OPTGROUP. | 8625 * and COL), OPTION, and OPTGROUP. |
| 8626 */ | 8626 */ |
| 8627 // TODO(jmesserly): this is not a public MDV API, but it seems like a useful | 8627 // TODO(jmesserly): this is not a public MDV API, but it seems like a useful |
| 8628 // place to document which tags our polyfill considers to be templates. | 8628 // place to document which tags our polyfill considers to be templates. |
| 8629 // Otherwise I'd be repeating it in several other places. | 8629 // Otherwise I'd be repeating it in several other places. |
| 8630 // See if we can replace this with a TemplateMixin. | 8630 // See if we can replace this with a TemplateMixin. |
| 8631 @Experimental | 8631 @Experimental() |
| 8632 bool get isTemplate => tagName == 'TEMPLATE' || _isAttributeTemplate; | 8632 bool get isTemplate => tagName == 'TEMPLATE' || _isAttributeTemplate; |
| 8633 | 8633 |
| 8634 void _ensureTemplate() { | 8634 void _ensureTemplate() { |
| 8635 if (!isTemplate) { | 8635 if (!isTemplate) { |
| 8636 throw new UnsupportedError('$this is not a template.'); | 8636 throw new UnsupportedError('$this is not a template.'); |
| 8637 } | 8637 } |
| 8638 TemplateElement.decorate(this); | 8638 TemplateElement.decorate(this); |
| 8639 } | 8639 } |
| 8640 | 8640 |
| 8641 // To suppress missing implicit constructor warnings. | 8641 // To suppress missing implicit constructor warnings. |
| 8642 factory Element._() { throw new UnsupportedError("Not supported"); } | 8642 factory Element._() { throw new UnsupportedError("Not supported"); } |
| 8643 | 8643 |
| 8644 @DomName('Element.abortEvent') | 8644 @DomName('Element.abortEvent') |
| 8645 @DocsEditable | 8645 @DocsEditable() |
| 8646 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider
<Event>('abort'); | 8646 static const EventStreamProvider<Event> abortEvent = const EventStreamProvider
<Event>('abort'); |
| 8647 | 8647 |
| 8648 @DomName('Element.beforecopyEvent') | 8648 @DomName('Element.beforecopyEvent') |
| 8649 @DocsEditable | 8649 @DocsEditable() |
| 8650 static const EventStreamProvider<Event> beforeCopyEvent = const EventStreamPro
vider<Event>('beforecopy'); | 8650 static const EventStreamProvider<Event> beforeCopyEvent = const EventStreamPro
vider<Event>('beforecopy'); |
| 8651 | 8651 |
| 8652 @DomName('Element.beforecutEvent') | 8652 @DomName('Element.beforecutEvent') |
| 8653 @DocsEditable | 8653 @DocsEditable() |
| 8654 static const EventStreamProvider<Event> beforeCutEvent = const EventStreamProv
ider<Event>('beforecut'); | 8654 static const EventStreamProvider<Event> beforeCutEvent = const EventStreamProv
ider<Event>('beforecut'); |
| 8655 | 8655 |
| 8656 @DomName('Element.beforepasteEvent') | 8656 @DomName('Element.beforepasteEvent') |
| 8657 @DocsEditable | 8657 @DocsEditable() |
| 8658 static const EventStreamProvider<Event> beforePasteEvent = const EventStreamPr
ovider<Event>('beforepaste'); | 8658 static const EventStreamProvider<Event> beforePasteEvent = const EventStreamPr
ovider<Event>('beforepaste'); |
| 8659 | 8659 |
| 8660 @DomName('Element.blurEvent') | 8660 @DomName('Element.blurEvent') |
| 8661 @DocsEditable | 8661 @DocsEditable() |
| 8662 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider<
Event>('blur'); | 8662 static const EventStreamProvider<Event> blurEvent = const EventStreamProvider<
Event>('blur'); |
| 8663 | 8663 |
| 8664 @DomName('Element.changeEvent') | 8664 @DomName('Element.changeEvent') |
| 8665 @DocsEditable | 8665 @DocsEditable() |
| 8666 static const EventStreamProvider<Event> changeEvent = const EventStreamProvide
r<Event>('change'); | 8666 static const EventStreamProvider<Event> changeEvent = const EventStreamProvide
r<Event>('change'); |
| 8667 | 8667 |
| 8668 @DomName('Element.clickEvent') | 8668 @DomName('Element.clickEvent') |
| 8669 @DocsEditable | 8669 @DocsEditable() |
| 8670 static const EventStreamProvider<MouseEvent> clickEvent = const EventStreamPro
vider<MouseEvent>('click'); | 8670 static const EventStreamProvider<MouseEvent> clickEvent = const EventStreamPro
vider<MouseEvent>('click'); |
| 8671 | 8671 |
| 8672 @DomName('Element.contextmenuEvent') | 8672 @DomName('Element.contextmenuEvent') |
| 8673 @DocsEditable | 8673 @DocsEditable() |
| 8674 static const EventStreamProvider<MouseEvent> contextMenuEvent = const EventStr
eamProvider<MouseEvent>('contextmenu'); | 8674 static const EventStreamProvider<MouseEvent> contextMenuEvent = const EventStr
eamProvider<MouseEvent>('contextmenu'); |
| 8675 | 8675 |
| 8676 @DomName('Element.copyEvent') | 8676 @DomName('Element.copyEvent') |
| 8677 @DocsEditable | 8677 @DocsEditable() |
| 8678 static const EventStreamProvider<Event> copyEvent = const EventStreamProvider<
Event>('copy'); | 8678 static const EventStreamProvider<Event> copyEvent = const EventStreamProvider<
Event>('copy'); |
| 8679 | 8679 |
| 8680 @DomName('Element.cutEvent') | 8680 @DomName('Element.cutEvent') |
| 8681 @DocsEditable | 8681 @DocsEditable() |
| 8682 static const EventStreamProvider<Event> cutEvent = const EventStreamProvider<E
vent>('cut'); | 8682 static const EventStreamProvider<Event> cutEvent = const EventStreamProvider<E
vent>('cut'); |
| 8683 | 8683 |
| 8684 @DomName('Element.dblclickEvent') | 8684 @DomName('Element.dblclickEvent') |
| 8685 @DocsEditable | 8685 @DocsEditable() |
| 8686 static const EventStreamProvider<Event> doubleClickEvent = const EventStreamPr
ovider<Event>('dblclick'); | 8686 static const EventStreamProvider<Event> doubleClickEvent = const EventStreamPr
ovider<Event>('dblclick'); |
| 8687 | 8687 |
| 8688 @DomName('Element.dragEvent') | 8688 @DomName('Element.dragEvent') |
| 8689 @DocsEditable | 8689 @DocsEditable() |
| 8690 static const EventStreamProvider<MouseEvent> dragEvent = const EventStreamProv
ider<MouseEvent>('drag'); | 8690 static const EventStreamProvider<MouseEvent> dragEvent = const EventStreamProv
ider<MouseEvent>('drag'); |
| 8691 | 8691 |
| 8692 @DomName('Element.dragendEvent') | 8692 @DomName('Element.dragendEvent') |
| 8693 @DocsEditable | 8693 @DocsEditable() |
| 8694 static const EventStreamProvider<MouseEvent> dragEndEvent = const EventStreamP
rovider<MouseEvent>('dragend'); | 8694 static const EventStreamProvider<MouseEvent> dragEndEvent = const EventStreamP
rovider<MouseEvent>('dragend'); |
| 8695 | 8695 |
| 8696 @DomName('Element.dragenterEvent') | 8696 @DomName('Element.dragenterEvent') |
| 8697 @DocsEditable | 8697 @DocsEditable() |
| 8698 static const EventStreamProvider<MouseEvent> dragEnterEvent = const EventStrea
mProvider<MouseEvent>('dragenter'); | 8698 static const EventStreamProvider<MouseEvent> dragEnterEvent = const EventStrea
mProvider<MouseEvent>('dragenter'); |
| 8699 | 8699 |
| 8700 @DomName('Element.dragleaveEvent') | 8700 @DomName('Element.dragleaveEvent') |
| 8701 @DocsEditable | 8701 @DocsEditable() |
| 8702 static const EventStreamProvider<MouseEvent> dragLeaveEvent = const EventStrea
mProvider<MouseEvent>('dragleave'); | 8702 static const EventStreamProvider<MouseEvent> dragLeaveEvent = const EventStrea
mProvider<MouseEvent>('dragleave'); |
| 8703 | 8703 |
| 8704 @DomName('Element.dragoverEvent') | 8704 @DomName('Element.dragoverEvent') |
| 8705 @DocsEditable | 8705 @DocsEditable() |
| 8706 static const EventStreamProvider<MouseEvent> dragOverEvent = const EventStream
Provider<MouseEvent>('dragover'); | 8706 static const EventStreamProvider<MouseEvent> dragOverEvent = const EventStream
Provider<MouseEvent>('dragover'); |
| 8707 | 8707 |
| 8708 @DomName('Element.dragstartEvent') | 8708 @DomName('Element.dragstartEvent') |
| 8709 @DocsEditable | 8709 @DocsEditable() |
| 8710 static const EventStreamProvider<MouseEvent> dragStartEvent = const EventStrea
mProvider<MouseEvent>('dragstart'); | 8710 static const EventStreamProvider<MouseEvent> dragStartEvent = const EventStrea
mProvider<MouseEvent>('dragstart'); |
| 8711 | 8711 |
| 8712 @DomName('Element.dropEvent') | 8712 @DomName('Element.dropEvent') |
| 8713 @DocsEditable | 8713 @DocsEditable() |
| 8714 static const EventStreamProvider<MouseEvent> dropEvent = const EventStreamProv
ider<MouseEvent>('drop'); | 8714 static const EventStreamProvider<MouseEvent> dropEvent = const EventStreamProv
ider<MouseEvent>('drop'); |
| 8715 | 8715 |
| 8716 @DomName('Element.errorEvent') | 8716 @DomName('Element.errorEvent') |
| 8717 @DocsEditable | 8717 @DocsEditable() |
| 8718 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 8718 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 8719 | 8719 |
| 8720 @DomName('Element.focusEvent') | 8720 @DomName('Element.focusEvent') |
| 8721 @DocsEditable | 8721 @DocsEditable() |
| 8722 static const EventStreamProvider<Event> focusEvent = const EventStreamProvider
<Event>('focus'); | 8722 static const EventStreamProvider<Event> focusEvent = const EventStreamProvider
<Event>('focus'); |
| 8723 | 8723 |
| 8724 @DomName('Element.inputEvent') | 8724 @DomName('Element.inputEvent') |
| 8725 @DocsEditable | 8725 @DocsEditable() |
| 8726 static const EventStreamProvider<Event> inputEvent = const EventStreamProvider
<Event>('input'); | 8726 static const EventStreamProvider<Event> inputEvent = const EventStreamProvider
<Event>('input'); |
| 8727 | 8727 |
| 8728 @DomName('Element.invalidEvent') | 8728 @DomName('Element.invalidEvent') |
| 8729 @DocsEditable | 8729 @DocsEditable() |
| 8730 static const EventStreamProvider<Event> invalidEvent = const EventStreamProvid
er<Event>('invalid'); | 8730 static const EventStreamProvider<Event> invalidEvent = const EventStreamProvid
er<Event>('invalid'); |
| 8731 | 8731 |
| 8732 @DomName('Element.keydownEvent') | 8732 @DomName('Element.keydownEvent') |
| 8733 @DocsEditable | 8733 @DocsEditable() |
| 8734 static const EventStreamProvider<KeyboardEvent> keyDownEvent = const EventStre
amProvider<KeyboardEvent>('keydown'); | 8734 static const EventStreamProvider<KeyboardEvent> keyDownEvent = const EventStre
amProvider<KeyboardEvent>('keydown'); |
| 8735 | 8735 |
| 8736 @DomName('Element.keypressEvent') | 8736 @DomName('Element.keypressEvent') |
| 8737 @DocsEditable | 8737 @DocsEditable() |
| 8738 static const EventStreamProvider<KeyboardEvent> keyPressEvent = const EventStr
eamProvider<KeyboardEvent>('keypress'); | 8738 static const EventStreamProvider<KeyboardEvent> keyPressEvent = const EventStr
eamProvider<KeyboardEvent>('keypress'); |
| 8739 | 8739 |
| 8740 @DomName('Element.keyupEvent') | 8740 @DomName('Element.keyupEvent') |
| 8741 @DocsEditable | 8741 @DocsEditable() |
| 8742 static const EventStreamProvider<KeyboardEvent> keyUpEvent = const EventStream
Provider<KeyboardEvent>('keyup'); | 8742 static const EventStreamProvider<KeyboardEvent> keyUpEvent = const EventStream
Provider<KeyboardEvent>('keyup'); |
| 8743 | 8743 |
| 8744 @DomName('Element.loadEvent') | 8744 @DomName('Element.loadEvent') |
| 8745 @DocsEditable | 8745 @DocsEditable() |
| 8746 static const EventStreamProvider<Event> loadEvent = const EventStreamProvider<
Event>('load'); | 8746 static const EventStreamProvider<Event> loadEvent = const EventStreamProvider<
Event>('load'); |
| 8747 | 8747 |
| 8748 @DomName('Element.mousedownEvent') | 8748 @DomName('Element.mousedownEvent') |
| 8749 @DocsEditable | 8749 @DocsEditable() |
| 8750 static const EventStreamProvider<MouseEvent> mouseDownEvent = const EventStrea
mProvider<MouseEvent>('mousedown'); | 8750 static const EventStreamProvider<MouseEvent> mouseDownEvent = const EventStrea
mProvider<MouseEvent>('mousedown'); |
| 8751 | 8751 |
| 8752 @DomName('Element.mousemoveEvent') | 8752 @DomName('Element.mousemoveEvent') |
| 8753 @DocsEditable | 8753 @DocsEditable() |
| 8754 static const EventStreamProvider<MouseEvent> mouseMoveEvent = const EventStrea
mProvider<MouseEvent>('mousemove'); | 8754 static const EventStreamProvider<MouseEvent> mouseMoveEvent = const EventStrea
mProvider<MouseEvent>('mousemove'); |
| 8755 | 8755 |
| 8756 @DomName('Element.mouseoutEvent') | 8756 @DomName('Element.mouseoutEvent') |
| 8757 @DocsEditable | 8757 @DocsEditable() |
| 8758 static const EventStreamProvider<MouseEvent> mouseOutEvent = const EventStream
Provider<MouseEvent>('mouseout'); | 8758 static const EventStreamProvider<MouseEvent> mouseOutEvent = const EventStream
Provider<MouseEvent>('mouseout'); |
| 8759 | 8759 |
| 8760 @DomName('Element.mouseoverEvent') | 8760 @DomName('Element.mouseoverEvent') |
| 8761 @DocsEditable | 8761 @DocsEditable() |
| 8762 static const EventStreamProvider<MouseEvent> mouseOverEvent = const EventStrea
mProvider<MouseEvent>('mouseover'); | 8762 static const EventStreamProvider<MouseEvent> mouseOverEvent = const EventStrea
mProvider<MouseEvent>('mouseover'); |
| 8763 | 8763 |
| 8764 @DomName('Element.mouseupEvent') | 8764 @DomName('Element.mouseupEvent') |
| 8765 @DocsEditable | 8765 @DocsEditable() |
| 8766 static const EventStreamProvider<MouseEvent> mouseUpEvent = const EventStreamP
rovider<MouseEvent>('mouseup'); | 8766 static const EventStreamProvider<MouseEvent> mouseUpEvent = const EventStreamP
rovider<MouseEvent>('mouseup'); |
| 8767 | 8767 |
| 8768 @DomName('Element.pasteEvent') | 8768 @DomName('Element.pasteEvent') |
| 8769 @DocsEditable | 8769 @DocsEditable() |
| 8770 static const EventStreamProvider<Event> pasteEvent = const EventStreamProvider
<Event>('paste'); | 8770 static const EventStreamProvider<Event> pasteEvent = const EventStreamProvider
<Event>('paste'); |
| 8771 | 8771 |
| 8772 @DomName('Element.resetEvent') | 8772 @DomName('Element.resetEvent') |
| 8773 @DocsEditable | 8773 @DocsEditable() |
| 8774 static const EventStreamProvider<Event> resetEvent = const EventStreamProvider
<Event>('reset'); | 8774 static const EventStreamProvider<Event> resetEvent = const EventStreamProvider
<Event>('reset'); |
| 8775 | 8775 |
| 8776 @DomName('Element.scrollEvent') | 8776 @DomName('Element.scrollEvent') |
| 8777 @DocsEditable | 8777 @DocsEditable() |
| 8778 static const EventStreamProvider<Event> scrollEvent = const EventStreamProvide
r<Event>('scroll'); | 8778 static const EventStreamProvider<Event> scrollEvent = const EventStreamProvide
r<Event>('scroll'); |
| 8779 | 8779 |
| 8780 @DomName('Element.searchEvent') | 8780 @DomName('Element.searchEvent') |
| 8781 @DocsEditable | 8781 @DocsEditable() |
| 8782 // http://www.w3.org/TR/html-markup/input.search.html | 8782 // http://www.w3.org/TR/html-markup/input.search.html |
| 8783 @Experimental | 8783 @Experimental() |
| 8784 static const EventStreamProvider<Event> searchEvent = const EventStreamProvide
r<Event>('search'); | 8784 static const EventStreamProvider<Event> searchEvent = const EventStreamProvide
r<Event>('search'); |
| 8785 | 8785 |
| 8786 @DomName('Element.selectEvent') | 8786 @DomName('Element.selectEvent') |
| 8787 @DocsEditable | 8787 @DocsEditable() |
| 8788 static const EventStreamProvider<Event> selectEvent = const EventStreamProvide
r<Event>('select'); | 8788 static const EventStreamProvider<Event> selectEvent = const EventStreamProvide
r<Event>('select'); |
| 8789 | 8789 |
| 8790 @DomName('Element.selectstartEvent') | 8790 @DomName('Element.selectstartEvent') |
| 8791 @DocsEditable | 8791 @DocsEditable() |
| 8792 @Experimental // nonstandard | 8792 @Experimental() // nonstandard |
| 8793 static const EventStreamProvider<Event> selectStartEvent = const EventStreamPr
ovider<Event>('selectstart'); | 8793 static const EventStreamProvider<Event> selectStartEvent = const EventStreamPr
ovider<Event>('selectstart'); |
| 8794 | 8794 |
| 8795 @DomName('Element.submitEvent') | 8795 @DomName('Element.submitEvent') |
| 8796 @DocsEditable | 8796 @DocsEditable() |
| 8797 static const EventStreamProvider<Event> submitEvent = const EventStreamProvide
r<Event>('submit'); | 8797 static const EventStreamProvider<Event> submitEvent = const EventStreamProvide
r<Event>('submit'); |
| 8798 | 8798 |
| 8799 @DomName('Element.touchcancelEvent') | 8799 @DomName('Element.touchcancelEvent') |
| 8800 @DocsEditable | 8800 @DocsEditable() |
| 8801 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 8801 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 8802 @Experimental | 8802 @Experimental() |
| 8803 static const EventStreamProvider<TouchEvent> touchCancelEvent = const EventStr
eamProvider<TouchEvent>('touchcancel'); | 8803 static const EventStreamProvider<TouchEvent> touchCancelEvent = const EventStr
eamProvider<TouchEvent>('touchcancel'); |
| 8804 | 8804 |
| 8805 @DomName('Element.touchendEvent') | 8805 @DomName('Element.touchendEvent') |
| 8806 @DocsEditable | 8806 @DocsEditable() |
| 8807 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 8807 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 8808 @Experimental | 8808 @Experimental() |
| 8809 static const EventStreamProvider<TouchEvent> touchEndEvent = const EventStream
Provider<TouchEvent>('touchend'); | 8809 static const EventStreamProvider<TouchEvent> touchEndEvent = const EventStream
Provider<TouchEvent>('touchend'); |
| 8810 | 8810 |
| 8811 @DomName('Element.touchenterEvent') | 8811 @DomName('Element.touchenterEvent') |
| 8812 @DocsEditable | 8812 @DocsEditable() |
| 8813 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 8813 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 8814 @Experimental | 8814 @Experimental() |
| 8815 static const EventStreamProvider<TouchEvent> touchEnterEvent = const EventStre
amProvider<TouchEvent>('touchenter'); | 8815 static const EventStreamProvider<TouchEvent> touchEnterEvent = const EventStre
amProvider<TouchEvent>('touchenter'); |
| 8816 | 8816 |
| 8817 @DomName('Element.touchleaveEvent') | 8817 @DomName('Element.touchleaveEvent') |
| 8818 @DocsEditable | 8818 @DocsEditable() |
| 8819 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 8819 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 8820 @Experimental | 8820 @Experimental() |
| 8821 static const EventStreamProvider<TouchEvent> touchLeaveEvent = const EventStre
amProvider<TouchEvent>('touchleave'); | 8821 static const EventStreamProvider<TouchEvent> touchLeaveEvent = const EventStre
amProvider<TouchEvent>('touchleave'); |
| 8822 | 8822 |
| 8823 @DomName('Element.touchmoveEvent') | 8823 @DomName('Element.touchmoveEvent') |
| 8824 @DocsEditable | 8824 @DocsEditable() |
| 8825 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 8825 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 8826 @Experimental | 8826 @Experimental() |
| 8827 static const EventStreamProvider<TouchEvent> touchMoveEvent = const EventStrea
mProvider<TouchEvent>('touchmove'); | 8827 static const EventStreamProvider<TouchEvent> touchMoveEvent = const EventStrea
mProvider<TouchEvent>('touchmove'); |
| 8828 | 8828 |
| 8829 @DomName('Element.touchstartEvent') | 8829 @DomName('Element.touchstartEvent') |
| 8830 @DocsEditable | 8830 @DocsEditable() |
| 8831 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 8831 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 8832 @Experimental | 8832 @Experimental() |
| 8833 static const EventStreamProvider<TouchEvent> touchStartEvent = const EventStre
amProvider<TouchEvent>('touchstart'); | 8833 static const EventStreamProvider<TouchEvent> touchStartEvent = const EventStre
amProvider<TouchEvent>('touchstart'); |
| 8834 | 8834 |
| 8835 @DomName('Element.webkitfullscreenchangeEvent') | 8835 @DomName('Element.webkitfullscreenchangeEvent') |
| 8836 @DocsEditable | 8836 @DocsEditable() |
| 8837 @SupportedBrowser(SupportedBrowser.CHROME) | 8837 @SupportedBrowser(SupportedBrowser.CHROME) |
| 8838 @SupportedBrowser(SupportedBrowser.SAFARI) | 8838 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 8839 @Experimental | 8839 @Experimental() |
| 8840 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html | 8840 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html |
| 8841 static const EventStreamProvider<Event> fullscreenChangeEvent = const EventStr
eamProvider<Event>('webkitfullscreenchange'); | 8841 static const EventStreamProvider<Event> fullscreenChangeEvent = const EventStr
eamProvider<Event>('webkitfullscreenchange'); |
| 8842 | 8842 |
| 8843 @DomName('Element.webkitfullscreenerrorEvent') | 8843 @DomName('Element.webkitfullscreenerrorEvent') |
| 8844 @DocsEditable | 8844 @DocsEditable() |
| 8845 @SupportedBrowser(SupportedBrowser.CHROME) | 8845 @SupportedBrowser(SupportedBrowser.CHROME) |
| 8846 @SupportedBrowser(SupportedBrowser.SAFARI) | 8846 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 8847 @Experimental | 8847 @Experimental() |
| 8848 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html | 8848 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html |
| 8849 static const EventStreamProvider<Event> fullscreenErrorEvent = const EventStre
amProvider<Event>('webkitfullscreenerror'); | 8849 static const EventStreamProvider<Event> fullscreenErrorEvent = const EventStre
amProvider<Event>('webkitfullscreenerror'); |
| 8850 | 8850 |
| 8851 @DomName('Element.contentEditable') | 8851 @DomName('Element.contentEditable') |
| 8852 @DocsEditable | 8852 @DocsEditable() |
| 8853 String contentEditable; | 8853 String contentEditable; |
| 8854 | 8854 |
| 8855 @DomName('Element.dir') | 8855 @DomName('Element.dir') |
| 8856 @DocsEditable | 8856 @DocsEditable() |
| 8857 String dir; | 8857 String dir; |
| 8858 | 8858 |
| 8859 @DomName('Element.draggable') | 8859 @DomName('Element.draggable') |
| 8860 @DocsEditable | 8860 @DocsEditable() |
| 8861 bool draggable; | 8861 bool draggable; |
| 8862 | 8862 |
| 8863 @DomName('Element.hidden') | 8863 @DomName('Element.hidden') |
| 8864 @DocsEditable | 8864 @DocsEditable() |
| 8865 bool hidden; | 8865 bool hidden; |
| 8866 | 8866 |
| 8867 @DomName('Element.id') | 8867 @DomName('Element.id') |
| 8868 @DocsEditable | 8868 @DocsEditable() |
| 8869 String id; | 8869 String id; |
| 8870 | 8870 |
| 8871 @JSName('innerHTML') | 8871 @JSName('innerHTML') |
| 8872 @DomName('Element.innerHTML') | 8872 @DomName('Element.innerHTML') |
| 8873 @DocsEditable | 8873 @DocsEditable() |
| 8874 String innerHtml; | 8874 String innerHtml; |
| 8875 | 8875 |
| 8876 @DomName('Element.isContentEditable') | 8876 @DomName('Element.isContentEditable') |
| 8877 @DocsEditable | 8877 @DocsEditable() |
| 8878 final bool isContentEditable; | 8878 final bool isContentEditable; |
| 8879 | 8879 |
| 8880 @DomName('Element.lang') | 8880 @DomName('Element.lang') |
| 8881 @DocsEditable | 8881 @DocsEditable() |
| 8882 String lang; | 8882 String lang; |
| 8883 | 8883 |
| 8884 @JSName('outerHTML') | 8884 @JSName('outerHTML') |
| 8885 @DomName('Element.outerHTML') | 8885 @DomName('Element.outerHTML') |
| 8886 @DocsEditable | 8886 @DocsEditable() |
| 8887 final String outerHtml; | 8887 final String outerHtml; |
| 8888 | 8888 |
| 8889 @DomName('Element.spellcheck') | 8889 @DomName('Element.spellcheck') |
| 8890 @DocsEditable | 8890 @DocsEditable() |
| 8891 // http://blog.whatwg.org/the-road-to-html-5-spellchecking | 8891 // http://blog.whatwg.org/the-road-to-html-5-spellchecking |
| 8892 @Experimental // nonstandard | 8892 @Experimental() // nonstandard |
| 8893 bool spellcheck; | 8893 bool spellcheck; |
| 8894 | 8894 |
| 8895 @DomName('Element.tabIndex') | 8895 @DomName('Element.tabIndex') |
| 8896 @DocsEditable | 8896 @DocsEditable() |
| 8897 int tabIndex; | 8897 int tabIndex; |
| 8898 | 8898 |
| 8899 @DomName('Element.title') | 8899 @DomName('Element.title') |
| 8900 @DocsEditable | 8900 @DocsEditable() |
| 8901 String title; | 8901 String title; |
| 8902 | 8902 |
| 8903 @DomName('Element.translate') | 8903 @DomName('Element.translate') |
| 8904 @DocsEditable | 8904 @DocsEditable() |
| 8905 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#t
he-translate-attribute | 8905 // http://www.whatwg.org/specs/web-apps/current-work/multipage/elements.html#t
he-translate-attribute |
| 8906 @Experimental | 8906 @Experimental() |
| 8907 bool translate; | 8907 bool translate; |
| 8908 | 8908 |
| 8909 @JSName('webkitdropzone') | 8909 @JSName('webkitdropzone') |
| 8910 @DomName('Element.webkitdropzone') | 8910 @DomName('Element.webkitdropzone') |
| 8911 @DocsEditable | 8911 @DocsEditable() |
| 8912 @SupportedBrowser(SupportedBrowser.CHROME) | 8912 @SupportedBrowser(SupportedBrowser.CHROME) |
| 8913 @SupportedBrowser(SupportedBrowser.SAFARI) | 8913 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 8914 @Experimental | 8914 @Experimental() |
| 8915 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-dr
opzone-attribute | 8915 // http://www.whatwg.org/specs/web-apps/current-work/multipage/dnd.html#the-dr
opzone-attribute |
| 8916 String dropzone; | 8916 String dropzone; |
| 8917 | 8917 |
| 8918 @DomName('Element.click') | 8918 @DomName('Element.click') |
| 8919 @DocsEditable | 8919 @DocsEditable() |
| 8920 void click() native; | 8920 void click() native; |
| 8921 | 8921 |
| 8922 @DomName('Element.getInputContext') | 8922 @DomName('Element.getInputContext') |
| 8923 @DocsEditable | 8923 @DocsEditable() |
| 8924 // http://www.w3.org/TR/ime-api/#the-getinputcontext-method | 8924 // http://www.w3.org/TR/ime-api/#the-getinputcontext-method |
| 8925 @Experimental | 8925 @Experimental() |
| 8926 InputMethodContext getInputContext() native; | 8926 InputMethodContext getInputContext() native; |
| 8927 | 8927 |
| 8928 @DomName('Element.ALLOW_KEYBOARD_INPUT') | 8928 @DomName('Element.ALLOW_KEYBOARD_INPUT') |
| 8929 @DocsEditable | 8929 @DocsEditable() |
| 8930 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-element-re
questfullscreen | 8930 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-element-re
questfullscreen |
| 8931 @deprecated // deprecated | 8931 @deprecated // deprecated |
| 8932 static const int ALLOW_KEYBOARD_INPUT = 1; | 8932 static const int ALLOW_KEYBOARD_INPUT = 1; |
| 8933 | 8933 |
| 8934 @JSName('attributes') | 8934 @JSName('attributes') |
| 8935 @DomName('Element.attributes') | 8935 @DomName('Element.attributes') |
| 8936 @DocsEditable | 8936 @DocsEditable() |
| 8937 final _NamedNodeMap $dom_attributes; | 8937 final _NamedNodeMap $dom_attributes; |
| 8938 | 8938 |
| 8939 @JSName('childElementCount') | 8939 @JSName('childElementCount') |
| 8940 @DomName('Element.childElementCount') | 8940 @DomName('Element.childElementCount') |
| 8941 @DocsEditable | 8941 @DocsEditable() |
| 8942 final int $dom_childElementCount; | 8942 final int $dom_childElementCount; |
| 8943 | 8943 |
| 8944 @JSName('children') | 8944 @JSName('children') |
| 8945 @DomName('Element.children') | 8945 @DomName('Element.children') |
| 8946 @DocsEditable | 8946 @DocsEditable() |
| 8947 final HtmlCollection $dom_children; | 8947 final HtmlCollection $dom_children; |
| 8948 | 8948 |
| 8949 @JSName('className') | 8949 @JSName('className') |
| 8950 @DomName('Element.className') | 8950 @DomName('Element.className') |
| 8951 @DocsEditable | 8951 @DocsEditable() |
| 8952 String $dom_className; | 8952 String $dom_className; |
| 8953 | 8953 |
| 8954 @DomName('Element.clientHeight') | 8954 @DomName('Element.clientHeight') |
| 8955 @DocsEditable | 8955 @DocsEditable() |
| 8956 final int clientHeight; | 8956 final int clientHeight; |
| 8957 | 8957 |
| 8958 @DomName('Element.clientLeft') | 8958 @DomName('Element.clientLeft') |
| 8959 @DocsEditable | 8959 @DocsEditable() |
| 8960 final int clientLeft; | 8960 final int clientLeft; |
| 8961 | 8961 |
| 8962 @DomName('Element.clientTop') | 8962 @DomName('Element.clientTop') |
| 8963 @DocsEditable | 8963 @DocsEditable() |
| 8964 final int clientTop; | 8964 final int clientTop; |
| 8965 | 8965 |
| 8966 @DomName('Element.clientWidth') | 8966 @DomName('Element.clientWidth') |
| 8967 @DocsEditable | 8967 @DocsEditable() |
| 8968 final int clientWidth; | 8968 final int clientWidth; |
| 8969 | 8969 |
| 8970 @JSName('firstElementChild') | 8970 @JSName('firstElementChild') |
| 8971 @DomName('Element.firstElementChild') | 8971 @DomName('Element.firstElementChild') |
| 8972 @DocsEditable | 8972 @DocsEditable() |
| 8973 final Element $dom_firstElementChild; | 8973 final Element $dom_firstElementChild; |
| 8974 | 8974 |
| 8975 @JSName('lastElementChild') | 8975 @JSName('lastElementChild') |
| 8976 @DomName('Element.lastElementChild') | 8976 @DomName('Element.lastElementChild') |
| 8977 @DocsEditable | 8977 @DocsEditable() |
| 8978 final Element $dom_lastElementChild; | 8978 final Element $dom_lastElementChild; |
| 8979 | 8979 |
| 8980 @DomName('Element.nextElementSibling') | 8980 @DomName('Element.nextElementSibling') |
| 8981 @DocsEditable | 8981 @DocsEditable() |
| 8982 final Element nextElementSibling; | 8982 final Element nextElementSibling; |
| 8983 | 8983 |
| 8984 @DomName('Element.offsetHeight') | 8984 @DomName('Element.offsetHeight') |
| 8985 @DocsEditable | 8985 @DocsEditable() |
| 8986 final int offsetHeight; | 8986 final int offsetHeight; |
| 8987 | 8987 |
| 8988 @DomName('Element.offsetLeft') | 8988 @DomName('Element.offsetLeft') |
| 8989 @DocsEditable | 8989 @DocsEditable() |
| 8990 final int offsetLeft; | 8990 final int offsetLeft; |
| 8991 | 8991 |
| 8992 @DomName('Element.offsetParent') | 8992 @DomName('Element.offsetParent') |
| 8993 @DocsEditable | 8993 @DocsEditable() |
| 8994 final Element offsetParent; | 8994 final Element offsetParent; |
| 8995 | 8995 |
| 8996 @DomName('Element.offsetTop') | 8996 @DomName('Element.offsetTop') |
| 8997 @DocsEditable | 8997 @DocsEditable() |
| 8998 final int offsetTop; | 8998 final int offsetTop; |
| 8999 | 8999 |
| 9000 @DomName('Element.offsetWidth') | 9000 @DomName('Element.offsetWidth') |
| 9001 @DocsEditable | 9001 @DocsEditable() |
| 9002 final int offsetWidth; | 9002 final int offsetWidth; |
| 9003 | 9003 |
| 9004 @DomName('Element.previousElementSibling') | 9004 @DomName('Element.previousElementSibling') |
| 9005 @DocsEditable | 9005 @DocsEditable() |
| 9006 final Element previousElementSibling; | 9006 final Element previousElementSibling; |
| 9007 | 9007 |
| 9008 @DomName('Element.scrollHeight') | 9008 @DomName('Element.scrollHeight') |
| 9009 @DocsEditable | 9009 @DocsEditable() |
| 9010 final int scrollHeight; | 9010 final int scrollHeight; |
| 9011 | 9011 |
| 9012 @DomName('Element.scrollLeft') | 9012 @DomName('Element.scrollLeft') |
| 9013 @DocsEditable | 9013 @DocsEditable() |
| 9014 int scrollLeft; | 9014 int scrollLeft; |
| 9015 | 9015 |
| 9016 @DomName('Element.scrollTop') | 9016 @DomName('Element.scrollTop') |
| 9017 @DocsEditable | 9017 @DocsEditable() |
| 9018 int scrollTop; | 9018 int scrollTop; |
| 9019 | 9019 |
| 9020 @DomName('Element.scrollWidth') | 9020 @DomName('Element.scrollWidth') |
| 9021 @DocsEditable | 9021 @DocsEditable() |
| 9022 final int scrollWidth; | 9022 final int scrollWidth; |
| 9023 | 9023 |
| 9024 @DomName('Element.style') | 9024 @DomName('Element.style') |
| 9025 @DocsEditable | 9025 @DocsEditable() |
| 9026 final CssStyleDeclaration style; | 9026 final CssStyleDeclaration style; |
| 9027 | 9027 |
| 9028 @DomName('Element.tagName') | 9028 @DomName('Element.tagName') |
| 9029 @DocsEditable | 9029 @DocsEditable() |
| 9030 final String tagName; | 9030 final String tagName; |
| 9031 | 9031 |
| 9032 @JSName('webkitPseudo') | 9032 @JSName('webkitPseudo') |
| 9033 @DomName('Element.webkitPseudo') | 9033 @DomName('Element.webkitPseudo') |
| 9034 @DocsEditable | 9034 @DocsEditable() |
| 9035 @SupportedBrowser(SupportedBrowser.CHROME) | 9035 @SupportedBrowser(SupportedBrowser.CHROME) |
| 9036 @SupportedBrowser(SupportedBrowser.SAFARI) | 9036 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 9037 @Experimental | 9037 @Experimental() |
| 9038 @Experimental // nonstandard | 9038 @Experimental() // nonstandard |
| 9039 String pseudo; | 9039 String pseudo; |
| 9040 | 9040 |
| 9041 @JSName('webkitRegionOverset') | 9041 @JSName('webkitRegionOverset') |
| 9042 @DomName('Element.webkitRegionOverset') | 9042 @DomName('Element.webkitRegionOverset') |
| 9043 @DocsEditable | 9043 @DocsEditable() |
| 9044 @SupportedBrowser(SupportedBrowser.CHROME) | 9044 @SupportedBrowser(SupportedBrowser.CHROME) |
| 9045 @SupportedBrowser(SupportedBrowser.SAFARI) | 9045 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 9046 @Experimental | 9046 @Experimental() |
| 9047 // http://dev.w3.org/csswg/css-regions/#dom-region-regionoverset | 9047 // http://dev.w3.org/csswg/css-regions/#dom-region-regionoverset |
| 9048 final String regionOverset; | 9048 final String regionOverset; |
| 9049 | 9049 |
| 9050 @JSName('webkitShadowRoot') | 9050 @JSName('webkitShadowRoot') |
| 9051 @DomName('Element.webkitShadowRoot') | 9051 @DomName('Element.webkitShadowRoot') |
| 9052 @DocsEditable | 9052 @DocsEditable() |
| 9053 @SupportedBrowser(SupportedBrowser.CHROME) | 9053 @SupportedBrowser(SupportedBrowser.CHROME) |
| 9054 @SupportedBrowser(SupportedBrowser.SAFARI) | 9054 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 9055 @Experimental | 9055 @Experimental() |
| 9056 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ap
i-shadow-aware-create-shadow-root | 9056 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ap
i-shadow-aware-create-shadow-root |
| 9057 final ShadowRoot shadowRoot; | 9057 final ShadowRoot shadowRoot; |
| 9058 | 9058 |
| 9059 @DomName('Element.blur') | 9059 @DomName('Element.blur') |
| 9060 @DocsEditable | 9060 @DocsEditable() |
| 9061 void blur() native; | 9061 void blur() native; |
| 9062 | 9062 |
| 9063 @DomName('Element.focus') | 9063 @DomName('Element.focus') |
| 9064 @DocsEditable | 9064 @DocsEditable() |
| 9065 void focus() native; | 9065 void focus() native; |
| 9066 | 9066 |
| 9067 @JSName('getAttribute') | 9067 @JSName('getAttribute') |
| 9068 @DomName('Element.getAttribute') | 9068 @DomName('Element.getAttribute') |
| 9069 @DocsEditable | 9069 @DocsEditable() |
| 9070 String $dom_getAttribute(String name) native; | 9070 String $dom_getAttribute(String name) native; |
| 9071 | 9071 |
| 9072 @JSName('getAttributeNS') | 9072 @JSName('getAttributeNS') |
| 9073 @DomName('Element.getAttributeNS') | 9073 @DomName('Element.getAttributeNS') |
| 9074 @DocsEditable | 9074 @DocsEditable() |
| 9075 String $dom_getAttributeNS(String namespaceURI, String localName) native; | 9075 String $dom_getAttributeNS(String namespaceURI, String localName) native; |
| 9076 | 9076 |
| 9077 @DomName('Element.getBoundingClientRect') | 9077 @DomName('Element.getBoundingClientRect') |
| 9078 @DocsEditable | 9078 @DocsEditable() |
| 9079 Rect getBoundingClientRect() native; | 9079 Rect getBoundingClientRect() native; |
| 9080 | 9080 |
| 9081 @DomName('Element.getClientRects') | 9081 @DomName('Element.getClientRects') |
| 9082 @DocsEditable | 9082 @DocsEditable() |
| 9083 @Returns('_ClientRectList') | 9083 @Returns('_ClientRectList') |
| 9084 @Creates('_ClientRectList') | 9084 @Creates('_ClientRectList') |
| 9085 List<Rect> getClientRects() native; | 9085 List<Rect> getClientRects() native; |
| 9086 | 9086 |
| 9087 @DomName('Element.getElementsByClassName') | 9087 @DomName('Element.getElementsByClassName') |
| 9088 @DocsEditable | 9088 @DocsEditable() |
| 9089 @Returns('NodeList') | 9089 @Returns('NodeList') |
| 9090 @Creates('NodeList') | 9090 @Creates('NodeList') |
| 9091 List<Node> getElementsByClassName(String name) native; | 9091 List<Node> getElementsByClassName(String name) native; |
| 9092 | 9092 |
| 9093 @JSName('getElementsByTagName') | 9093 @JSName('getElementsByTagName') |
| 9094 @DomName('Element.getElementsByTagName') | 9094 @DomName('Element.getElementsByTagName') |
| 9095 @DocsEditable | 9095 @DocsEditable() |
| 9096 @Returns('NodeList') | 9096 @Returns('NodeList') |
| 9097 @Creates('NodeList') | 9097 @Creates('NodeList') |
| 9098 List<Node> $dom_getElementsByTagName(String name) native; | 9098 List<Node> $dom_getElementsByTagName(String name) native; |
| 9099 | 9099 |
| 9100 @JSName('hasAttribute') | 9100 @JSName('hasAttribute') |
| 9101 @DomName('Element.hasAttribute') | 9101 @DomName('Element.hasAttribute') |
| 9102 @DocsEditable | 9102 @DocsEditable() |
| 9103 bool $dom_hasAttribute(String name) native; | 9103 bool $dom_hasAttribute(String name) native; |
| 9104 | 9104 |
| 9105 @JSName('hasAttributeNS') | 9105 @JSName('hasAttributeNS') |
| 9106 @DomName('Element.hasAttributeNS') | 9106 @DomName('Element.hasAttributeNS') |
| 9107 @DocsEditable | 9107 @DocsEditable() |
| 9108 bool $dom_hasAttributeNS(String namespaceURI, String localName) native; | 9108 bool $dom_hasAttributeNS(String namespaceURI, String localName) native; |
| 9109 | 9109 |
| 9110 @JSName('querySelector') | 9110 @JSName('querySelector') |
| 9111 /** | 9111 /** |
| 9112 * Finds the first descendant element of this element that matches the | 9112 * Finds the first descendant element of this element that matches the |
| 9113 * specified group of selectors. | 9113 * specified group of selectors. |
| 9114 * | 9114 * |
| 9115 * [selectors] should be a string using CSS selector syntax. | 9115 * [selectors] should be a string using CSS selector syntax. |
| 9116 * | 9116 * |
| 9117 * // Gets the first descendant with the class 'classname' | 9117 * // Gets the first descendant with the class 'classname' |
| 9118 * var element = element.query('.className'); | 9118 * var element = element.query('.className'); |
| 9119 * // Gets the element with id 'id' | 9119 * // Gets the element with id 'id' |
| 9120 * var element = element.query('#id'); | 9120 * var element = element.query('#id'); |
| 9121 * // Gets the first descendant [ImageElement] | 9121 * // Gets the first descendant [ImageElement] |
| 9122 * var img = element.query('img'); | 9122 * var img = element.query('img'); |
| 9123 * | 9123 * |
| 9124 * See also: | 9124 * See also: |
| 9125 * | 9125 * |
| 9126 * * [CSS Selectors](http://docs.webplatform.org/wiki/css/selectors) | 9126 * * [CSS Selectors](http://docs.webplatform.org/wiki/css/selectors) |
| 9127 */ | 9127 */ |
| 9128 @DomName('Element.querySelector') | 9128 @DomName('Element.querySelector') |
| 9129 @DocsEditable | 9129 @DocsEditable() |
| 9130 Element query(String selectors) native; | 9130 Element query(String selectors) native; |
| 9131 | 9131 |
| 9132 @JSName('querySelectorAll') | 9132 @JSName('querySelectorAll') |
| 9133 @DomName('Element.querySelectorAll') | 9133 @DomName('Element.querySelectorAll') |
| 9134 @DocsEditable | 9134 @DocsEditable() |
| 9135 @Returns('NodeList') | 9135 @Returns('NodeList') |
| 9136 @Creates('NodeList') | 9136 @Creates('NodeList') |
| 9137 List<Node> $dom_querySelectorAll(String selectors) native; | 9137 List<Node> $dom_querySelectorAll(String selectors) native; |
| 9138 | 9138 |
| 9139 @JSName('removeAttribute') | 9139 @JSName('removeAttribute') |
| 9140 @DomName('Element.removeAttribute') | 9140 @DomName('Element.removeAttribute') |
| 9141 @DocsEditable | 9141 @DocsEditable() |
| 9142 void $dom_removeAttribute(String name) native; | 9142 void $dom_removeAttribute(String name) native; |
| 9143 | 9143 |
| 9144 @JSName('removeAttributeNS') | 9144 @JSName('removeAttributeNS') |
| 9145 @DomName('Element.removeAttributeNS') | 9145 @DomName('Element.removeAttributeNS') |
| 9146 @DocsEditable | 9146 @DocsEditable() |
| 9147 void $dom_removeAttributeNS(String namespaceURI, String localName) native; | 9147 void $dom_removeAttributeNS(String namespaceURI, String localName) native; |
| 9148 | 9148 |
| 9149 @DomName('Element.scrollByLines') | 9149 @DomName('Element.scrollByLines') |
| 9150 @DocsEditable | 9150 @DocsEditable() |
| 9151 void scrollByLines(int lines) native; | 9151 void scrollByLines(int lines) native; |
| 9152 | 9152 |
| 9153 @DomName('Element.scrollByPages') | 9153 @DomName('Element.scrollByPages') |
| 9154 @DocsEditable | 9154 @DocsEditable() |
| 9155 void scrollByPages(int pages) native; | 9155 void scrollByPages(int pages) native; |
| 9156 | 9156 |
| 9157 @JSName('scrollIntoView') | 9157 @JSName('scrollIntoView') |
| 9158 @DomName('Element.scrollIntoView') | 9158 @DomName('Element.scrollIntoView') |
| 9159 @DocsEditable | 9159 @DocsEditable() |
| 9160 void $dom_scrollIntoView([bool alignWithTop]) native; | 9160 void $dom_scrollIntoView([bool alignWithTop]) native; |
| 9161 | 9161 |
| 9162 @JSName('scrollIntoViewIfNeeded') | 9162 @JSName('scrollIntoViewIfNeeded') |
| 9163 @DomName('Element.scrollIntoViewIfNeeded') | 9163 @DomName('Element.scrollIntoViewIfNeeded') |
| 9164 @DocsEditable | 9164 @DocsEditable() |
| 9165 // http://docs.webplatform.org/wiki/dom/methods/scrollIntoViewIfNeeded | 9165 // http://docs.webplatform.org/wiki/dom/methods/scrollIntoViewIfNeeded |
| 9166 @Experimental // non-standard | 9166 @Experimental() // non-standard |
| 9167 void $dom_scrollIntoViewIfNeeded([bool centerIfNeeded]) native; | 9167 void $dom_scrollIntoViewIfNeeded([bool centerIfNeeded]) native; |
| 9168 | 9168 |
| 9169 @JSName('setAttribute') | 9169 @JSName('setAttribute') |
| 9170 @DomName('Element.setAttribute') | 9170 @DomName('Element.setAttribute') |
| 9171 @DocsEditable | 9171 @DocsEditable() |
| 9172 void $dom_setAttribute(String name, String value) native; | 9172 void $dom_setAttribute(String name, String value) native; |
| 9173 | 9173 |
| 9174 @JSName('setAttributeNS') | 9174 @JSName('setAttributeNS') |
| 9175 @DomName('Element.setAttributeNS') | 9175 @DomName('Element.setAttributeNS') |
| 9176 @DocsEditable | 9176 @DocsEditable() |
| 9177 void $dom_setAttributeNS(String namespaceURI, String qualifiedName, String val
ue) native; | 9177 void $dom_setAttributeNS(String namespaceURI, String qualifiedName, String val
ue) native; |
| 9178 | 9178 |
| 9179 @JSName('webkitCreateShadowRoot') | 9179 @JSName('webkitCreateShadowRoot') |
| 9180 @DomName('Element.webkitCreateShadowRoot') | 9180 @DomName('Element.webkitCreateShadowRoot') |
| 9181 @DocsEditable | 9181 @DocsEditable() |
| 9182 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 9182 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
| 9183 @Experimental | 9183 @Experimental() |
| 9184 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ap
i-shadow-aware-create-shadow-root | 9184 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ap
i-shadow-aware-create-shadow-root |
| 9185 ShadowRoot createShadowRoot() native; | 9185 ShadowRoot createShadowRoot() native; |
| 9186 | 9186 |
| 9187 @JSName('webkitGetRegionFlowRanges') | 9187 @JSName('webkitGetRegionFlowRanges') |
| 9188 @DomName('Element.webkitGetRegionFlowRanges') | 9188 @DomName('Element.webkitGetRegionFlowRanges') |
| 9189 @DocsEditable | 9189 @DocsEditable() |
| 9190 @SupportedBrowser(SupportedBrowser.CHROME) | 9190 @SupportedBrowser(SupportedBrowser.CHROME) |
| 9191 @SupportedBrowser(SupportedBrowser.SAFARI) | 9191 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 9192 @Experimental | 9192 @Experimental() |
| 9193 // http://dev.w3.org/csswg/css-regions/#dom-region-getregionflowranges | 9193 // http://dev.w3.org/csswg/css-regions/#dom-region-getregionflowranges |
| 9194 List<Range> getRegionFlowRanges() native; | 9194 List<Range> getRegionFlowRanges() native; |
| 9195 | 9195 |
| 9196 @JSName('webkitRequestFullScreen') | 9196 @JSName('webkitRequestFullScreen') |
| 9197 @DomName('Element.webkitRequestFullScreen') | 9197 @DomName('Element.webkitRequestFullScreen') |
| 9198 @DocsEditable | 9198 @DocsEditable() |
| 9199 @SupportedBrowser(SupportedBrowser.CHROME) | 9199 @SupportedBrowser(SupportedBrowser.CHROME) |
| 9200 @SupportedBrowser(SupportedBrowser.SAFARI) | 9200 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 9201 @Experimental | 9201 @Experimental() |
| 9202 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-element-re
questfullscreen | 9202 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-element-re
questfullscreen |
| 9203 @deprecated // deprecated | 9203 @deprecated // deprecated |
| 9204 void requestFullScreen(int flags) native; | 9204 void requestFullScreen(int flags) native; |
| 9205 | 9205 |
| 9206 @JSName('webkitRequestFullscreen') | 9206 @JSName('webkitRequestFullscreen') |
| 9207 @DomName('Element.webkitRequestFullscreen') | 9207 @DomName('Element.webkitRequestFullscreen') |
| 9208 @DocsEditable | 9208 @DocsEditable() |
| 9209 @SupportedBrowser(SupportedBrowser.CHROME) | 9209 @SupportedBrowser(SupportedBrowser.CHROME) |
| 9210 @SupportedBrowser(SupportedBrowser.SAFARI) | 9210 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 9211 @Experimental | 9211 @Experimental() |
| 9212 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-element-re
questfullscreen | 9212 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-element-re
questfullscreen |
| 9213 void requestFullscreen() native; | 9213 void requestFullscreen() native; |
| 9214 | 9214 |
| 9215 @JSName('webkitRequestPointerLock') | 9215 @JSName('webkitRequestPointerLock') |
| 9216 @DomName('Element.webkitRequestPointerLock') | 9216 @DomName('Element.webkitRequestPointerLock') |
| 9217 @DocsEditable | 9217 @DocsEditable() |
| 9218 @SupportedBrowser(SupportedBrowser.CHROME) | 9218 @SupportedBrowser(SupportedBrowser.CHROME) |
| 9219 @SupportedBrowser(SupportedBrowser.SAFARI) | 9219 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 9220 @Experimental | 9220 @Experimental() |
| 9221 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Element
-requestPointerLock-void | 9221 // https://dvcs.w3.org/hg/pointerlock/raw-file/default/index.html#widl-Element
-requestPointerLock-void |
| 9222 void requestPointerLock() native; | 9222 void requestPointerLock() native; |
| 9223 | 9223 |
| 9224 @DomName('Element.onabort') | 9224 @DomName('Element.onabort') |
| 9225 @DocsEditable | 9225 @DocsEditable() |
| 9226 Stream<Event> get onAbort => abortEvent.forTarget(this); | 9226 Stream<Event> get onAbort => abortEvent.forTarget(this); |
| 9227 | 9227 |
| 9228 @DomName('Element.onbeforecopy') | 9228 @DomName('Element.onbeforecopy') |
| 9229 @DocsEditable | 9229 @DocsEditable() |
| 9230 Stream<Event> get onBeforeCopy => beforeCopyEvent.forTarget(this); | 9230 Stream<Event> get onBeforeCopy => beforeCopyEvent.forTarget(this); |
| 9231 | 9231 |
| 9232 @DomName('Element.onbeforecut') | 9232 @DomName('Element.onbeforecut') |
| 9233 @DocsEditable | 9233 @DocsEditable() |
| 9234 Stream<Event> get onBeforeCut => beforeCutEvent.forTarget(this); | 9234 Stream<Event> get onBeforeCut => beforeCutEvent.forTarget(this); |
| 9235 | 9235 |
| 9236 @DomName('Element.onbeforepaste') | 9236 @DomName('Element.onbeforepaste') |
| 9237 @DocsEditable | 9237 @DocsEditable() |
| 9238 Stream<Event> get onBeforePaste => beforePasteEvent.forTarget(this); | 9238 Stream<Event> get onBeforePaste => beforePasteEvent.forTarget(this); |
| 9239 | 9239 |
| 9240 @DomName('Element.onblur') | 9240 @DomName('Element.onblur') |
| 9241 @DocsEditable | 9241 @DocsEditable() |
| 9242 Stream<Event> get onBlur => blurEvent.forTarget(this); | 9242 Stream<Event> get onBlur => blurEvent.forTarget(this); |
| 9243 | 9243 |
| 9244 @DomName('Element.onchange') | 9244 @DomName('Element.onchange') |
| 9245 @DocsEditable | 9245 @DocsEditable() |
| 9246 Stream<Event> get onChange => changeEvent.forTarget(this); | 9246 Stream<Event> get onChange => changeEvent.forTarget(this); |
| 9247 | 9247 |
| 9248 @DomName('Element.onclick') | 9248 @DomName('Element.onclick') |
| 9249 @DocsEditable | 9249 @DocsEditable() |
| 9250 Stream<MouseEvent> get onClick => clickEvent.forTarget(this); | 9250 Stream<MouseEvent> get onClick => clickEvent.forTarget(this); |
| 9251 | 9251 |
| 9252 @DomName('Element.oncontextmenu') | 9252 @DomName('Element.oncontextmenu') |
| 9253 @DocsEditable | 9253 @DocsEditable() |
| 9254 Stream<MouseEvent> get onContextMenu => contextMenuEvent.forTarget(this); | 9254 Stream<MouseEvent> get onContextMenu => contextMenuEvent.forTarget(this); |
| 9255 | 9255 |
| 9256 @DomName('Element.oncopy') | 9256 @DomName('Element.oncopy') |
| 9257 @DocsEditable | 9257 @DocsEditable() |
| 9258 Stream<Event> get onCopy => copyEvent.forTarget(this); | 9258 Stream<Event> get onCopy => copyEvent.forTarget(this); |
| 9259 | 9259 |
| 9260 @DomName('Element.oncut') | 9260 @DomName('Element.oncut') |
| 9261 @DocsEditable | 9261 @DocsEditable() |
| 9262 Stream<Event> get onCut => cutEvent.forTarget(this); | 9262 Stream<Event> get onCut => cutEvent.forTarget(this); |
| 9263 | 9263 |
| 9264 @DomName('Element.ondblclick') | 9264 @DomName('Element.ondblclick') |
| 9265 @DocsEditable | 9265 @DocsEditable() |
| 9266 Stream<Event> get onDoubleClick => doubleClickEvent.forTarget(this); | 9266 Stream<Event> get onDoubleClick => doubleClickEvent.forTarget(this); |
| 9267 | 9267 |
| 9268 @DomName('Element.ondrag') | 9268 @DomName('Element.ondrag') |
| 9269 @DocsEditable | 9269 @DocsEditable() |
| 9270 Stream<MouseEvent> get onDrag => dragEvent.forTarget(this); | 9270 Stream<MouseEvent> get onDrag => dragEvent.forTarget(this); |
| 9271 | 9271 |
| 9272 @DomName('Element.ondragend') | 9272 @DomName('Element.ondragend') |
| 9273 @DocsEditable | 9273 @DocsEditable() |
| 9274 Stream<MouseEvent> get onDragEnd => dragEndEvent.forTarget(this); | 9274 Stream<MouseEvent> get onDragEnd => dragEndEvent.forTarget(this); |
| 9275 | 9275 |
| 9276 @DomName('Element.ondragenter') | 9276 @DomName('Element.ondragenter') |
| 9277 @DocsEditable | 9277 @DocsEditable() |
| 9278 Stream<MouseEvent> get onDragEnter => dragEnterEvent.forTarget(this); | 9278 Stream<MouseEvent> get onDragEnter => dragEnterEvent.forTarget(this); |
| 9279 | 9279 |
| 9280 @DomName('Element.ondragleave') | 9280 @DomName('Element.ondragleave') |
| 9281 @DocsEditable | 9281 @DocsEditable() |
| 9282 Stream<MouseEvent> get onDragLeave => dragLeaveEvent.forTarget(this); | 9282 Stream<MouseEvent> get onDragLeave => dragLeaveEvent.forTarget(this); |
| 9283 | 9283 |
| 9284 @DomName('Element.ondragover') | 9284 @DomName('Element.ondragover') |
| 9285 @DocsEditable | 9285 @DocsEditable() |
| 9286 Stream<MouseEvent> get onDragOver => dragOverEvent.forTarget(this); | 9286 Stream<MouseEvent> get onDragOver => dragOverEvent.forTarget(this); |
| 9287 | 9287 |
| 9288 @DomName('Element.ondragstart') | 9288 @DomName('Element.ondragstart') |
| 9289 @DocsEditable | 9289 @DocsEditable() |
| 9290 Stream<MouseEvent> get onDragStart => dragStartEvent.forTarget(this); | 9290 Stream<MouseEvent> get onDragStart => dragStartEvent.forTarget(this); |
| 9291 | 9291 |
| 9292 @DomName('Element.ondrop') | 9292 @DomName('Element.ondrop') |
| 9293 @DocsEditable | 9293 @DocsEditable() |
| 9294 Stream<MouseEvent> get onDrop => dropEvent.forTarget(this); | 9294 Stream<MouseEvent> get onDrop => dropEvent.forTarget(this); |
| 9295 | 9295 |
| 9296 @DomName('Element.onerror') | 9296 @DomName('Element.onerror') |
| 9297 @DocsEditable | 9297 @DocsEditable() |
| 9298 Stream<Event> get onError => errorEvent.forTarget(this); | 9298 Stream<Event> get onError => errorEvent.forTarget(this); |
| 9299 | 9299 |
| 9300 @DomName('Element.onfocus') | 9300 @DomName('Element.onfocus') |
| 9301 @DocsEditable | 9301 @DocsEditable() |
| 9302 Stream<Event> get onFocus => focusEvent.forTarget(this); | 9302 Stream<Event> get onFocus => focusEvent.forTarget(this); |
| 9303 | 9303 |
| 9304 @DomName('Element.oninput') | 9304 @DomName('Element.oninput') |
| 9305 @DocsEditable | 9305 @DocsEditable() |
| 9306 Stream<Event> get onInput => inputEvent.forTarget(this); | 9306 Stream<Event> get onInput => inputEvent.forTarget(this); |
| 9307 | 9307 |
| 9308 @DomName('Element.oninvalid') | 9308 @DomName('Element.oninvalid') |
| 9309 @DocsEditable | 9309 @DocsEditable() |
| 9310 Stream<Event> get onInvalid => invalidEvent.forTarget(this); | 9310 Stream<Event> get onInvalid => invalidEvent.forTarget(this); |
| 9311 | 9311 |
| 9312 @DomName('Element.onkeydown') | 9312 @DomName('Element.onkeydown') |
| 9313 @DocsEditable | 9313 @DocsEditable() |
| 9314 Stream<KeyboardEvent> get onKeyDown => keyDownEvent.forTarget(this); | 9314 Stream<KeyboardEvent> get onKeyDown => keyDownEvent.forTarget(this); |
| 9315 | 9315 |
| 9316 @DomName('Element.onkeypress') | 9316 @DomName('Element.onkeypress') |
| 9317 @DocsEditable | 9317 @DocsEditable() |
| 9318 Stream<KeyboardEvent> get onKeyPress => keyPressEvent.forTarget(this); | 9318 Stream<KeyboardEvent> get onKeyPress => keyPressEvent.forTarget(this); |
| 9319 | 9319 |
| 9320 @DomName('Element.onkeyup') | 9320 @DomName('Element.onkeyup') |
| 9321 @DocsEditable | 9321 @DocsEditable() |
| 9322 Stream<KeyboardEvent> get onKeyUp => keyUpEvent.forTarget(this); | 9322 Stream<KeyboardEvent> get onKeyUp => keyUpEvent.forTarget(this); |
| 9323 | 9323 |
| 9324 @DomName('Element.onload') | 9324 @DomName('Element.onload') |
| 9325 @DocsEditable | 9325 @DocsEditable() |
| 9326 Stream<Event> get onLoad => loadEvent.forTarget(this); | 9326 Stream<Event> get onLoad => loadEvent.forTarget(this); |
| 9327 | 9327 |
| 9328 @DomName('Element.onmousedown') | 9328 @DomName('Element.onmousedown') |
| 9329 @DocsEditable | 9329 @DocsEditable() |
| 9330 Stream<MouseEvent> get onMouseDown => mouseDownEvent.forTarget(this); | 9330 Stream<MouseEvent> get onMouseDown => mouseDownEvent.forTarget(this); |
| 9331 | 9331 |
| 9332 @DomName('Element.onmousemove') | 9332 @DomName('Element.onmousemove') |
| 9333 @DocsEditable | 9333 @DocsEditable() |
| 9334 Stream<MouseEvent> get onMouseMove => mouseMoveEvent.forTarget(this); | 9334 Stream<MouseEvent> get onMouseMove => mouseMoveEvent.forTarget(this); |
| 9335 | 9335 |
| 9336 @DomName('Element.onmouseout') | 9336 @DomName('Element.onmouseout') |
| 9337 @DocsEditable | 9337 @DocsEditable() |
| 9338 Stream<MouseEvent> get onMouseOut => mouseOutEvent.forTarget(this); | 9338 Stream<MouseEvent> get onMouseOut => mouseOutEvent.forTarget(this); |
| 9339 | 9339 |
| 9340 @DomName('Element.onmouseover') | 9340 @DomName('Element.onmouseover') |
| 9341 @DocsEditable | 9341 @DocsEditable() |
| 9342 Stream<MouseEvent> get onMouseOver => mouseOverEvent.forTarget(this); | 9342 Stream<MouseEvent> get onMouseOver => mouseOverEvent.forTarget(this); |
| 9343 | 9343 |
| 9344 @DomName('Element.onmouseup') | 9344 @DomName('Element.onmouseup') |
| 9345 @DocsEditable | 9345 @DocsEditable() |
| 9346 Stream<MouseEvent> get onMouseUp => mouseUpEvent.forTarget(this); | 9346 Stream<MouseEvent> get onMouseUp => mouseUpEvent.forTarget(this); |
| 9347 | 9347 |
| 9348 @DomName('Element.onmousewheel') | 9348 @DomName('Element.onmousewheel') |
| 9349 @DocsEditable | 9349 @DocsEditable() |
| 9350 // http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents | 9350 // http://www.w3.org/TR/DOM-Level-3-Events/#events-wheelevents |
| 9351 @Experimental // non-standard | 9351 @Experimental() // non-standard |
| 9352 Stream<WheelEvent> get onMouseWheel => mouseWheelEvent.forTarget(this); | 9352 Stream<WheelEvent> get onMouseWheel => mouseWheelEvent.forTarget(this); |
| 9353 | 9353 |
| 9354 @DomName('Element.onpaste') | 9354 @DomName('Element.onpaste') |
| 9355 @DocsEditable | 9355 @DocsEditable() |
| 9356 Stream<Event> get onPaste => pasteEvent.forTarget(this); | 9356 Stream<Event> get onPaste => pasteEvent.forTarget(this); |
| 9357 | 9357 |
| 9358 @DomName('Element.onreset') | 9358 @DomName('Element.onreset') |
| 9359 @DocsEditable | 9359 @DocsEditable() |
| 9360 Stream<Event> get onReset => resetEvent.forTarget(this); | 9360 Stream<Event> get onReset => resetEvent.forTarget(this); |
| 9361 | 9361 |
| 9362 @DomName('Element.onscroll') | 9362 @DomName('Element.onscroll') |
| 9363 @DocsEditable | 9363 @DocsEditable() |
| 9364 Stream<Event> get onScroll => scrollEvent.forTarget(this); | 9364 Stream<Event> get onScroll => scrollEvent.forTarget(this); |
| 9365 | 9365 |
| 9366 @DomName('Element.onsearch') | 9366 @DomName('Element.onsearch') |
| 9367 @DocsEditable | 9367 @DocsEditable() |
| 9368 // http://www.w3.org/TR/html-markup/input.search.html | 9368 // http://www.w3.org/TR/html-markup/input.search.html |
| 9369 @Experimental | 9369 @Experimental() |
| 9370 Stream<Event> get onSearch => searchEvent.forTarget(this); | 9370 Stream<Event> get onSearch => searchEvent.forTarget(this); |
| 9371 | 9371 |
| 9372 @DomName('Element.onselect') | 9372 @DomName('Element.onselect') |
| 9373 @DocsEditable | 9373 @DocsEditable() |
| 9374 Stream<Event> get onSelect => selectEvent.forTarget(this); | 9374 Stream<Event> get onSelect => selectEvent.forTarget(this); |
| 9375 | 9375 |
| 9376 @DomName('Element.onselectstart') | 9376 @DomName('Element.onselectstart') |
| 9377 @DocsEditable | 9377 @DocsEditable() |
| 9378 @Experimental // nonstandard | 9378 @Experimental() // nonstandard |
| 9379 Stream<Event> get onSelectStart => selectStartEvent.forTarget(this); | 9379 Stream<Event> get onSelectStart => selectStartEvent.forTarget(this); |
| 9380 | 9380 |
| 9381 @DomName('Element.onsubmit') | 9381 @DomName('Element.onsubmit') |
| 9382 @DocsEditable | 9382 @DocsEditable() |
| 9383 Stream<Event> get onSubmit => submitEvent.forTarget(this); | 9383 Stream<Event> get onSubmit => submitEvent.forTarget(this); |
| 9384 | 9384 |
| 9385 @DomName('Element.ontouchcancel') | 9385 @DomName('Element.ontouchcancel') |
| 9386 @DocsEditable | 9386 @DocsEditable() |
| 9387 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 9387 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 9388 @Experimental | 9388 @Experimental() |
| 9389 Stream<TouchEvent> get onTouchCancel => touchCancelEvent.forTarget(this); | 9389 Stream<TouchEvent> get onTouchCancel => touchCancelEvent.forTarget(this); |
| 9390 | 9390 |
| 9391 @DomName('Element.ontouchend') | 9391 @DomName('Element.ontouchend') |
| 9392 @DocsEditable | 9392 @DocsEditable() |
| 9393 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 9393 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 9394 @Experimental | 9394 @Experimental() |
| 9395 Stream<TouchEvent> get onTouchEnd => touchEndEvent.forTarget(this); | 9395 Stream<TouchEvent> get onTouchEnd => touchEndEvent.forTarget(this); |
| 9396 | 9396 |
| 9397 @DomName('Element.ontouchenter') | 9397 @DomName('Element.ontouchenter') |
| 9398 @DocsEditable | 9398 @DocsEditable() |
| 9399 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 9399 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 9400 @Experimental | 9400 @Experimental() |
| 9401 Stream<TouchEvent> get onTouchEnter => touchEnterEvent.forTarget(this); | 9401 Stream<TouchEvent> get onTouchEnter => touchEnterEvent.forTarget(this); |
| 9402 | 9402 |
| 9403 @DomName('Element.ontouchleave') | 9403 @DomName('Element.ontouchleave') |
| 9404 @DocsEditable | 9404 @DocsEditable() |
| 9405 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 9405 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 9406 @Experimental | 9406 @Experimental() |
| 9407 Stream<TouchEvent> get onTouchLeave => touchLeaveEvent.forTarget(this); | 9407 Stream<TouchEvent> get onTouchLeave => touchLeaveEvent.forTarget(this); |
| 9408 | 9408 |
| 9409 @DomName('Element.ontouchmove') | 9409 @DomName('Element.ontouchmove') |
| 9410 @DocsEditable | 9410 @DocsEditable() |
| 9411 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 9411 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 9412 @Experimental | 9412 @Experimental() |
| 9413 Stream<TouchEvent> get onTouchMove => touchMoveEvent.forTarget(this); | 9413 Stream<TouchEvent> get onTouchMove => touchMoveEvent.forTarget(this); |
| 9414 | 9414 |
| 9415 @DomName('Element.ontouchstart') | 9415 @DomName('Element.ontouchstart') |
| 9416 @DocsEditable | 9416 @DocsEditable() |
| 9417 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 9417 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 9418 @Experimental | 9418 @Experimental() |
| 9419 Stream<TouchEvent> get onTouchStart => touchStartEvent.forTarget(this); | 9419 Stream<TouchEvent> get onTouchStart => touchStartEvent.forTarget(this); |
| 9420 | 9420 |
| 9421 @DomName('Element.ontransitionend') | 9421 @DomName('Element.ontransitionend') |
| 9422 @DocsEditable | 9422 @DocsEditable() |
| 9423 @SupportedBrowser(SupportedBrowser.CHROME) | 9423 @SupportedBrowser(SupportedBrowser.CHROME) |
| 9424 @SupportedBrowser(SupportedBrowser.FIREFOX) | 9424 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 9425 @SupportedBrowser(SupportedBrowser.IE, '10') | 9425 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 9426 @SupportedBrowser(SupportedBrowser.SAFARI) | 9426 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 9427 Stream<TransitionEvent> get onTransitionEnd => transitionEndEvent.forTarget(th
is); | 9427 Stream<TransitionEvent> get onTransitionEnd => transitionEndEvent.forTarget(th
is); |
| 9428 | 9428 |
| 9429 @DomName('Element.onwebkitfullscreenchange') | 9429 @DomName('Element.onwebkitfullscreenchange') |
| 9430 @DocsEditable | 9430 @DocsEditable() |
| 9431 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html | 9431 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html |
| 9432 @Experimental | 9432 @Experimental() |
| 9433 Stream<Event> get onFullscreenChange => fullscreenChangeEvent.forTarget(this); | 9433 Stream<Event> get onFullscreenChange => fullscreenChangeEvent.forTarget(this); |
| 9434 | 9434 |
| 9435 @DomName('Element.onwebkitfullscreenerror') | 9435 @DomName('Element.onwebkitfullscreenerror') |
| 9436 @DocsEditable | 9436 @DocsEditable() |
| 9437 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html | 9437 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html |
| 9438 @Experimental | 9438 @Experimental() |
| 9439 Stream<Event> get onFullscreenError => fullscreenErrorEvent.forTarget(this); | 9439 Stream<Event> get onFullscreenError => fullscreenErrorEvent.forTarget(this); |
| 9440 | 9440 |
| 9441 } | 9441 } |
| 9442 | 9442 |
| 9443 | 9443 |
| 9444 final _START_TAG_REGEXP = new RegExp('<(\\w+)'); | 9444 final _START_TAG_REGEXP = new RegExp('<(\\w+)'); |
| 9445 class _ElementFactoryProvider { | 9445 class _ElementFactoryProvider { |
| 9446 static const _CUSTOM_PARENT_TAG_MAP = const { | 9446 static const _CUSTOM_PARENT_TAG_MAP = const { |
| 9447 'body' : 'html', | 9447 'body' : 'html', |
| 9448 'head' : 'html', | 9448 'head' : 'html', |
| (...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 9577 /// Attempt to center the element in the scrollable area. | 9577 /// Attempt to center the element in the scrollable area. |
| 9578 static const CENTER = const ScrollAlignment._internal('CENTER'); | 9578 static const CENTER = const ScrollAlignment._internal('CENTER'); |
| 9579 /// Attempt to align the element to the bottom of the scrollable area. | 9579 /// Attempt to align the element to the bottom of the scrollable area. |
| 9580 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); | 9580 static const BOTTOM = const ScrollAlignment._internal('BOTTOM'); |
| 9581 } | 9581 } |
| 9582 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9582 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9583 // for details. All rights reserved. Use of this source code is governed by a | 9583 // for details. All rights reserved. Use of this source code is governed by a |
| 9584 // BSD-style license that can be found in the LICENSE file. | 9584 // BSD-style license that can be found in the LICENSE file. |
| 9585 | 9585 |
| 9586 | 9586 |
| 9587 @DocsEditable | 9587 @DocsEditable() |
| 9588 @DomName('ElementTimeControl') | 9588 @DomName('ElementTimeControl') |
| 9589 @Unstable | 9589 @Unstable() |
| 9590 abstract class ElementTimeControl extends Interceptor { | 9590 abstract class ElementTimeControl extends Interceptor { |
| 9591 | 9591 |
| 9592 void beginElement(); | 9592 void beginElement(); |
| 9593 | 9593 |
| 9594 void beginElementAt(num offset); | 9594 void beginElementAt(num offset); |
| 9595 | 9595 |
| 9596 void endElement(); | 9596 void endElement(); |
| 9597 | 9597 |
| 9598 void endElementAt(num offset); | 9598 void endElementAt(num offset); |
| 9599 } | 9599 } |
| 9600 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9600 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9601 // for details. All rights reserved. Use of this source code is governed by a | 9601 // for details. All rights reserved. Use of this source code is governed by a |
| 9602 // BSD-style license that can be found in the LICENSE file. | 9602 // BSD-style license that can be found in the LICENSE file. |
| 9603 | 9603 |
| 9604 | 9604 |
| 9605 @DocsEditable | 9605 @DocsEditable() |
| 9606 @DomName('ElementTraversal') | 9606 @DomName('ElementTraversal') |
| 9607 @Unstable | 9607 @Unstable() |
| 9608 abstract class ElementTraversal extends Interceptor { | 9608 abstract class ElementTraversal extends Interceptor { |
| 9609 | 9609 |
| 9610 int $dom_childElementCount; | 9610 int $dom_childElementCount; |
| 9611 | 9611 |
| 9612 Element $dom_firstElementChild; | 9612 Element $dom_firstElementChild; |
| 9613 | 9613 |
| 9614 Element $dom_lastElementChild; | 9614 Element $dom_lastElementChild; |
| 9615 | 9615 |
| 9616 Element nextElementSibling; | 9616 Element nextElementSibling; |
| 9617 | 9617 |
| 9618 Element previousElementSibling; | 9618 Element previousElementSibling; |
| 9619 } | 9619 } |
| 9620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9620 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9621 // for details. All rights reserved. Use of this source code is governed by a | 9621 // for details. All rights reserved. Use of this source code is governed by a |
| 9622 // BSD-style license that can be found in the LICENSE file. | 9622 // BSD-style license that can be found in the LICENSE file. |
| 9623 | 9623 |
| 9624 | 9624 |
| 9625 @DocsEditable | 9625 @DocsEditable() |
| 9626 @DomName('HTMLEmbedElement') | 9626 @DomName('HTMLEmbedElement') |
| 9627 @SupportedBrowser(SupportedBrowser.CHROME) | 9627 @SupportedBrowser(SupportedBrowser.CHROME) |
| 9628 @SupportedBrowser(SupportedBrowser.IE) | 9628 @SupportedBrowser(SupportedBrowser.IE) |
| 9629 @SupportedBrowser(SupportedBrowser.SAFARI) | 9629 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 9630 @Unstable | 9630 @Unstable() |
| 9631 class EmbedElement extends _HTMLElement native "HTMLEmbedElement" { | 9631 class EmbedElement extends _HTMLElement native "HTMLEmbedElement" { |
| 9632 // To suppress missing implicit constructor warnings. | 9632 // To suppress missing implicit constructor warnings. |
| 9633 factory EmbedElement._() { throw new UnsupportedError("Not supported"); } | 9633 factory EmbedElement._() { throw new UnsupportedError("Not supported"); } |
| 9634 | 9634 |
| 9635 @DomName('HTMLEmbedElement.HTMLEmbedElement') | 9635 @DomName('HTMLEmbedElement.HTMLEmbedElement') |
| 9636 @DocsEditable | 9636 @DocsEditable() |
| 9637 factory EmbedElement() => document.$dom_createElement("embed"); | 9637 factory EmbedElement() => document.$dom_createElement("embed"); |
| 9638 | 9638 |
| 9639 /// Checks if this type is supported on the current platform. | 9639 /// Checks if this type is supported on the current platform. |
| 9640 static bool get supported => Element.isTagSupported('embed'); | 9640 static bool get supported => Element.isTagSupported('embed'); |
| 9641 | 9641 |
| 9642 @DomName('HTMLEmbedElement.align') | 9642 @DomName('HTMLEmbedElement.align') |
| 9643 @DocsEditable | 9643 @DocsEditable() |
| 9644 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLEmbedElement-partial | 9644 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLEmbedElement-partial |
| 9645 @deprecated // deprecated | 9645 @deprecated // deprecated |
| 9646 String align; | 9646 String align; |
| 9647 | 9647 |
| 9648 @DomName('HTMLEmbedElement.height') | 9648 @DomName('HTMLEmbedElement.height') |
| 9649 @DocsEditable | 9649 @DocsEditable() |
| 9650 String height; | 9650 String height; |
| 9651 | 9651 |
| 9652 @DomName('HTMLEmbedElement.name') | 9652 @DomName('HTMLEmbedElement.name') |
| 9653 @DocsEditable | 9653 @DocsEditable() |
| 9654 String name; | 9654 String name; |
| 9655 | 9655 |
| 9656 @DomName('HTMLEmbedElement.src') | 9656 @DomName('HTMLEmbedElement.src') |
| 9657 @DocsEditable | 9657 @DocsEditable() |
| 9658 String src; | 9658 String src; |
| 9659 | 9659 |
| 9660 @DomName('HTMLEmbedElement.type') | 9660 @DomName('HTMLEmbedElement.type') |
| 9661 @DocsEditable | 9661 @DocsEditable() |
| 9662 String type; | 9662 String type; |
| 9663 | 9663 |
| 9664 @DomName('HTMLEmbedElement.width') | 9664 @DomName('HTMLEmbedElement.width') |
| 9665 @DocsEditable | 9665 @DocsEditable() |
| 9666 String width; | 9666 String width; |
| 9667 | 9667 |
| 9668 @DomName('HTMLEmbedElement.__getter__') | 9668 @DomName('HTMLEmbedElement.__getter__') |
| 9669 @DocsEditable | 9669 @DocsEditable() |
| 9670 bool __getter__(index_OR_name) native; | 9670 bool __getter__(index_OR_name) native; |
| 9671 | 9671 |
| 9672 @DomName('HTMLEmbedElement.__setter__') | 9672 @DomName('HTMLEmbedElement.__setter__') |
| 9673 @DocsEditable | 9673 @DocsEditable() |
| 9674 void __setter__(index_OR_name, Node value) native; | 9674 void __setter__(index_OR_name, Node value) native; |
| 9675 } | 9675 } |
| 9676 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9676 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9677 // for details. All rights reserved. Use of this source code is governed by a | 9677 // for details. All rights reserved. Use of this source code is governed by a |
| 9678 // BSD-style license that can be found in the LICENSE file. | 9678 // BSD-style license that can be found in the LICENSE file. |
| 9679 | 9679 |
| 9680 // WARNING: Do not edit - generated code. | 9680 // WARNING: Do not edit - generated code. |
| 9681 | 9681 |
| 9682 | 9682 |
| 9683 @DomName('EntriesCallback') | 9683 @DomName('EntriesCallback') |
| 9684 // http://www.w3.org/TR/file-system-api/#the-entriescallback-interface | 9684 // http://www.w3.org/TR/file-system-api/#the-entriescallback-interface |
| 9685 @Experimental | 9685 @Experimental() |
| 9686 typedef void _EntriesCallback(List<Entry> entries); | 9686 typedef void _EntriesCallback(List<Entry> entries); |
| 9687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9687 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9688 // for details. All rights reserved. Use of this source code is governed by a | 9688 // for details. All rights reserved. Use of this source code is governed by a |
| 9689 // BSD-style license that can be found in the LICENSE file. | 9689 // BSD-style license that can be found in the LICENSE file. |
| 9690 | 9690 |
| 9691 | 9691 |
| 9692 @DocsEditable | 9692 @DocsEditable() |
| 9693 @DomName('Entry') | 9693 @DomName('Entry') |
| 9694 // http://www.w3.org/TR/file-system-api/#the-entry-interface | 9694 // http://www.w3.org/TR/file-system-api/#the-entry-interface |
| 9695 @Experimental | 9695 @Experimental() |
| 9696 class Entry extends Interceptor native "Entry" { | 9696 class Entry extends Interceptor native "Entry" { |
| 9697 | 9697 |
| 9698 @DomName('Entry.filesystem') | 9698 @DomName('Entry.filesystem') |
| 9699 @DocsEditable | 9699 @DocsEditable() |
| 9700 final FileSystem filesystem; | 9700 final FileSystem filesystem; |
| 9701 | 9701 |
| 9702 @DomName('Entry.fullPath') | 9702 @DomName('Entry.fullPath') |
| 9703 @DocsEditable | 9703 @DocsEditable() |
| 9704 final String fullPath; | 9704 final String fullPath; |
| 9705 | 9705 |
| 9706 @DomName('Entry.isDirectory') | 9706 @DomName('Entry.isDirectory') |
| 9707 @DocsEditable | 9707 @DocsEditable() |
| 9708 final bool isDirectory; | 9708 final bool isDirectory; |
| 9709 | 9709 |
| 9710 @DomName('Entry.isFile') | 9710 @DomName('Entry.isFile') |
| 9711 @DocsEditable | 9711 @DocsEditable() |
| 9712 final bool isFile; | 9712 final bool isFile; |
| 9713 | 9713 |
| 9714 @DomName('Entry.name') | 9714 @DomName('Entry.name') |
| 9715 @DocsEditable | 9715 @DocsEditable() |
| 9716 final String name; | 9716 final String name; |
| 9717 | 9717 |
| 9718 @JSName('copyTo') | 9718 @JSName('copyTo') |
| 9719 @DomName('Entry.copyTo') | 9719 @DomName('Entry.copyTo') |
| 9720 @DocsEditable | 9720 @DocsEditable() |
| 9721 void _copyTo(DirectoryEntry parent, {String name, _EntryCallback successCallba
ck, _ErrorCallback errorCallback}) native; | 9721 void _copyTo(DirectoryEntry parent, {String name, _EntryCallback successCallba
ck, _ErrorCallback errorCallback}) native; |
| 9722 | 9722 |
| 9723 @JSName('copyTo') | 9723 @JSName('copyTo') |
| 9724 @DomName('Entry.copyTo') | 9724 @DomName('Entry.copyTo') |
| 9725 @DocsEditable | 9725 @DocsEditable() |
| 9726 Future<Entry> copyTo(DirectoryEntry parent, {String name}) { | 9726 Future<Entry> copyTo(DirectoryEntry parent, {String name}) { |
| 9727 var completer = new Completer<Entry>(); | 9727 var completer = new Completer<Entry>(); |
| 9728 _copyTo(parent, name : name, | 9728 _copyTo(parent, name : name, |
| 9729 successCallback : (value) { completer.complete(value); }, | 9729 successCallback : (value) { completer.complete(value); }, |
| 9730 errorCallback : (error) { completer.completeError(error); }); | 9730 errorCallback : (error) { completer.completeError(error); }); |
| 9731 return completer.future; | 9731 return completer.future; |
| 9732 } | 9732 } |
| 9733 | 9733 |
| 9734 @JSName('getMetadata') | 9734 @JSName('getMetadata') |
| 9735 @DomName('Entry.getMetadata') | 9735 @DomName('Entry.getMetadata') |
| 9736 @DocsEditable | 9736 @DocsEditable() |
| 9737 void _getMetadata(MetadataCallback successCallback, [_ErrorCallback errorCallb
ack]) native; | 9737 void _getMetadata(MetadataCallback successCallback, [_ErrorCallback errorCallb
ack]) native; |
| 9738 | 9738 |
| 9739 @JSName('getMetadata') | 9739 @JSName('getMetadata') |
| 9740 @DomName('Entry.getMetadata') | 9740 @DomName('Entry.getMetadata') |
| 9741 @DocsEditable | 9741 @DocsEditable() |
| 9742 Future<Metadata> getMetadata() { | 9742 Future<Metadata> getMetadata() { |
| 9743 var completer = new Completer<Metadata>(); | 9743 var completer = new Completer<Metadata>(); |
| 9744 _getMetadata( | 9744 _getMetadata( |
| 9745 (value) { completer.complete(value); }, | 9745 (value) { completer.complete(value); }, |
| 9746 (error) { completer.completeError(error); }); | 9746 (error) { completer.completeError(error); }); |
| 9747 return completer.future; | 9747 return completer.future; |
| 9748 } | 9748 } |
| 9749 | 9749 |
| 9750 @JSName('getParent') | 9750 @JSName('getParent') |
| 9751 @DomName('Entry.getParent') | 9751 @DomName('Entry.getParent') |
| 9752 @DocsEditable | 9752 @DocsEditable() |
| 9753 void _getParent([_EntryCallback successCallback, _ErrorCallback errorCallback]
) native; | 9753 void _getParent([_EntryCallback successCallback, _ErrorCallback errorCallback]
) native; |
| 9754 | 9754 |
| 9755 @JSName('getParent') | 9755 @JSName('getParent') |
| 9756 @DomName('Entry.getParent') | 9756 @DomName('Entry.getParent') |
| 9757 @DocsEditable | 9757 @DocsEditable() |
| 9758 Future<Entry> getParent() { | 9758 Future<Entry> getParent() { |
| 9759 var completer = new Completer<Entry>(); | 9759 var completer = new Completer<Entry>(); |
| 9760 _getParent( | 9760 _getParent( |
| 9761 (value) { completer.complete(value); }, | 9761 (value) { completer.complete(value); }, |
| 9762 (error) { completer.completeError(error); }); | 9762 (error) { completer.completeError(error); }); |
| 9763 return completer.future; | 9763 return completer.future; |
| 9764 } | 9764 } |
| 9765 | 9765 |
| 9766 @JSName('moveTo') | 9766 @JSName('moveTo') |
| 9767 @DomName('Entry.moveTo') | 9767 @DomName('Entry.moveTo') |
| 9768 @DocsEditable | 9768 @DocsEditable() |
| 9769 void _moveTo(DirectoryEntry parent, {String name, _EntryCallback successCallba
ck, _ErrorCallback errorCallback}) native; | 9769 void _moveTo(DirectoryEntry parent, {String name, _EntryCallback successCallba
ck, _ErrorCallback errorCallback}) native; |
| 9770 | 9770 |
| 9771 @JSName('moveTo') | 9771 @JSName('moveTo') |
| 9772 @DomName('Entry.moveTo') | 9772 @DomName('Entry.moveTo') |
| 9773 @DocsEditable | 9773 @DocsEditable() |
| 9774 Future<Entry> moveTo(DirectoryEntry parent, {String name}) { | 9774 Future<Entry> moveTo(DirectoryEntry parent, {String name}) { |
| 9775 var completer = new Completer<Entry>(); | 9775 var completer = new Completer<Entry>(); |
| 9776 _moveTo(parent, name : name, | 9776 _moveTo(parent, name : name, |
| 9777 successCallback : (value) { completer.complete(value); }, | 9777 successCallback : (value) { completer.complete(value); }, |
| 9778 errorCallback : (error) { completer.completeError(error); }); | 9778 errorCallback : (error) { completer.completeError(error); }); |
| 9779 return completer.future; | 9779 return completer.future; |
| 9780 } | 9780 } |
| 9781 | 9781 |
| 9782 @JSName('remove') | 9782 @JSName('remove') |
| 9783 @DomName('Entry.remove') | 9783 @DomName('Entry.remove') |
| 9784 @DocsEditable | 9784 @DocsEditable() |
| 9785 void _remove(VoidCallback successCallback, [_ErrorCallback errorCallback]) nat
ive; | 9785 void _remove(VoidCallback successCallback, [_ErrorCallback errorCallback]) nat
ive; |
| 9786 | 9786 |
| 9787 @JSName('remove') | 9787 @JSName('remove') |
| 9788 @DomName('Entry.remove') | 9788 @DomName('Entry.remove') |
| 9789 @DocsEditable | 9789 @DocsEditable() |
| 9790 Future remove() { | 9790 Future remove() { |
| 9791 var completer = new Completer(); | 9791 var completer = new Completer(); |
| 9792 _remove( | 9792 _remove( |
| 9793 () { completer.complete(); }, | 9793 () { completer.complete(); }, |
| 9794 (error) { completer.completeError(error); }); | 9794 (error) { completer.completeError(error); }); |
| 9795 return completer.future; | 9795 return completer.future; |
| 9796 } | 9796 } |
| 9797 | 9797 |
| 9798 @JSName('toURL') | 9798 @JSName('toURL') |
| 9799 @DomName('Entry.toURL') | 9799 @DomName('Entry.toURL') |
| 9800 @DocsEditable | 9800 @DocsEditable() |
| 9801 String toUrl() native; | 9801 String toUrl() native; |
| 9802 } | 9802 } |
| 9803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9804 // for details. All rights reserved. Use of this source code is governed by a | 9804 // for details. All rights reserved. Use of this source code is governed by a |
| 9805 // BSD-style license that can be found in the LICENSE file. | 9805 // BSD-style license that can be found in the LICENSE file. |
| 9806 | 9806 |
| 9807 // WARNING: Do not edit - generated code. | 9807 // WARNING: Do not edit - generated code. |
| 9808 | 9808 |
| 9809 | 9809 |
| 9810 @DomName('EntryCallback') | 9810 @DomName('EntryCallback') |
| 9811 // http://www.w3.org/TR/file-system-api/#the-entrycallback-interface | 9811 // http://www.w3.org/TR/file-system-api/#the-entrycallback-interface |
| 9812 @Experimental | 9812 @Experimental() |
| 9813 typedef void _EntryCallback(Entry entry); | 9813 typedef void _EntryCallback(Entry entry); |
| 9814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9814 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9815 // for details. All rights reserved. Use of this source code is governed by a | 9815 // for details. All rights reserved. Use of this source code is governed by a |
| 9816 // BSD-style license that can be found in the LICENSE file. | 9816 // BSD-style license that can be found in the LICENSE file. |
| 9817 | 9817 |
| 9818 // WARNING: Do not edit - generated code. | 9818 // WARNING: Do not edit - generated code. |
| 9819 | 9819 |
| 9820 | 9820 |
| 9821 @DomName('ErrorCallback') | 9821 @DomName('ErrorCallback') |
| 9822 // http://www.w3.org/TR/file-system-api/#the-errorcallback-interface | 9822 // http://www.w3.org/TR/file-system-api/#the-errorcallback-interface |
| 9823 @Experimental | 9823 @Experimental() |
| 9824 typedef void _ErrorCallback(FileError error); | 9824 typedef void _ErrorCallback(FileError error); |
| 9825 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9825 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9826 // for details. All rights reserved. Use of this source code is governed by a | 9826 // for details. All rights reserved. Use of this source code is governed by a |
| 9827 // BSD-style license that can be found in the LICENSE file. | 9827 // BSD-style license that can be found in the LICENSE file. |
| 9828 | 9828 |
| 9829 | 9829 |
| 9830 @DocsEditable | 9830 @DocsEditable() |
| 9831 @DomName('ErrorEvent') | 9831 @DomName('ErrorEvent') |
| 9832 @Unstable | 9832 @Unstable() |
| 9833 class ErrorEvent extends Event native "ErrorEvent" { | 9833 class ErrorEvent extends Event native "ErrorEvent" { |
| 9834 // To suppress missing implicit constructor warnings. | 9834 // To suppress missing implicit constructor warnings. |
| 9835 factory ErrorEvent._() { throw new UnsupportedError("Not supported"); } | 9835 factory ErrorEvent._() { throw new UnsupportedError("Not supported"); } |
| 9836 | 9836 |
| 9837 @DomName('ErrorEvent.filename') | 9837 @DomName('ErrorEvent.filename') |
| 9838 @DocsEditable | 9838 @DocsEditable() |
| 9839 final String filename; | 9839 final String filename; |
| 9840 | 9840 |
| 9841 @DomName('ErrorEvent.lineno') | 9841 @DomName('ErrorEvent.lineno') |
| 9842 @DocsEditable | 9842 @DocsEditable() |
| 9843 final int lineno; | 9843 final int lineno; |
| 9844 | 9844 |
| 9845 @DomName('ErrorEvent.message') | 9845 @DomName('ErrorEvent.message') |
| 9846 @DocsEditable | 9846 @DocsEditable() |
| 9847 final String message; | 9847 final String message; |
| 9848 } | 9848 } |
| 9849 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 9849 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 9850 // for details. All rights reserved. Use of this source code is governed by a | 9850 // for details. All rights reserved. Use of this source code is governed by a |
| 9851 // BSD-style license that can be found in the LICENSE file. | 9851 // BSD-style license that can be found in the LICENSE file. |
| 9852 | 9852 |
| 9853 // WARNING: Do not edit - generated code. | 9853 // WARNING: Do not edit - generated code. |
| 9854 | 9854 |
| 9855 | 9855 |
| 9856 @DomName('Event') | 9856 @DomName('Event') |
| (...skipping 19 matching lines...) Expand all Loading... |
| 9876 * var e = new Event.type('MouseEvent', 'mousedown', true, true); | 9876 * var e = new Event.type('MouseEvent', 'mousedown', true, true); |
| 9877 */ | 9877 */ |
| 9878 factory Event.eventType(String type, String name, {bool canBubble: true, | 9878 factory Event.eventType(String type, String name, {bool canBubble: true, |
| 9879 bool cancelable: true}) { | 9879 bool cancelable: true}) { |
| 9880 final Event e = document.$dom_createEvent(type); | 9880 final Event e = document.$dom_createEvent(type); |
| 9881 e.$dom_initEvent(name, canBubble, cancelable); | 9881 e.$dom_initEvent(name, canBubble, cancelable); |
| 9882 return e; | 9882 return e; |
| 9883 } | 9883 } |
| 9884 | 9884 |
| 9885 @DomName('Event.AT_TARGET') | 9885 @DomName('Event.AT_TARGET') |
| 9886 @DocsEditable | 9886 @DocsEditable() |
| 9887 static const int AT_TARGET = 2; | 9887 static const int AT_TARGET = 2; |
| 9888 | 9888 |
| 9889 @DomName('Event.BLUR') | 9889 @DomName('Event.BLUR') |
| 9890 @DocsEditable | 9890 @DocsEditable() |
| 9891 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9891 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9892 @deprecated // deprecated | 9892 @deprecated // deprecated |
| 9893 static const int BLUR = 8192; | 9893 static const int BLUR = 8192; |
| 9894 | 9894 |
| 9895 @DomName('Event.BUBBLING_PHASE') | 9895 @DomName('Event.BUBBLING_PHASE') |
| 9896 @DocsEditable | 9896 @DocsEditable() |
| 9897 static const int BUBBLING_PHASE = 3; | 9897 static const int BUBBLING_PHASE = 3; |
| 9898 | 9898 |
| 9899 @DomName('Event.CAPTURING_PHASE') | 9899 @DomName('Event.CAPTURING_PHASE') |
| 9900 @DocsEditable | 9900 @DocsEditable() |
| 9901 static const int CAPTURING_PHASE = 1; | 9901 static const int CAPTURING_PHASE = 1; |
| 9902 | 9902 |
| 9903 @DomName('Event.CHANGE') | 9903 @DomName('Event.CHANGE') |
| 9904 @DocsEditable | 9904 @DocsEditable() |
| 9905 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9905 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9906 @deprecated // deprecated | 9906 @deprecated // deprecated |
| 9907 static const int CHANGE = 32768; | 9907 static const int CHANGE = 32768; |
| 9908 | 9908 |
| 9909 @DomName('Event.CLICK') | 9909 @DomName('Event.CLICK') |
| 9910 @DocsEditable | 9910 @DocsEditable() |
| 9911 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9911 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9912 @deprecated // deprecated | 9912 @deprecated // deprecated |
| 9913 static const int CLICK = 64; | 9913 static const int CLICK = 64; |
| 9914 | 9914 |
| 9915 @DomName('Event.DBLCLICK') | 9915 @DomName('Event.DBLCLICK') |
| 9916 @DocsEditable | 9916 @DocsEditable() |
| 9917 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9917 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9918 @deprecated // deprecated | 9918 @deprecated // deprecated |
| 9919 static const int DBLCLICK = 128; | 9919 static const int DBLCLICK = 128; |
| 9920 | 9920 |
| 9921 @DomName('Event.DRAGDROP') | 9921 @DomName('Event.DRAGDROP') |
| 9922 @DocsEditable | 9922 @DocsEditable() |
| 9923 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9923 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9924 @deprecated // deprecated | 9924 @deprecated // deprecated |
| 9925 static const int DRAGDROP = 2048; | 9925 static const int DRAGDROP = 2048; |
| 9926 | 9926 |
| 9927 @DomName('Event.FOCUS') | 9927 @DomName('Event.FOCUS') |
| 9928 @DocsEditable | 9928 @DocsEditable() |
| 9929 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9929 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9930 @deprecated // deprecated | 9930 @deprecated // deprecated |
| 9931 static const int FOCUS = 4096; | 9931 static const int FOCUS = 4096; |
| 9932 | 9932 |
| 9933 @DomName('Event.KEYDOWN') | 9933 @DomName('Event.KEYDOWN') |
| 9934 @DocsEditable | 9934 @DocsEditable() |
| 9935 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9935 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9936 @deprecated // deprecated | 9936 @deprecated // deprecated |
| 9937 static const int KEYDOWN = 256; | 9937 static const int KEYDOWN = 256; |
| 9938 | 9938 |
| 9939 @DomName('Event.KEYPRESS') | 9939 @DomName('Event.KEYPRESS') |
| 9940 @DocsEditable | 9940 @DocsEditable() |
| 9941 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9941 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9942 @deprecated // deprecated | 9942 @deprecated // deprecated |
| 9943 static const int KEYPRESS = 1024; | 9943 static const int KEYPRESS = 1024; |
| 9944 | 9944 |
| 9945 @DomName('Event.KEYUP') | 9945 @DomName('Event.KEYUP') |
| 9946 @DocsEditable | 9946 @DocsEditable() |
| 9947 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9947 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9948 @deprecated // deprecated | 9948 @deprecated // deprecated |
| 9949 static const int KEYUP = 512; | 9949 static const int KEYUP = 512; |
| 9950 | 9950 |
| 9951 @DomName('Event.MOUSEDOWN') | 9951 @DomName('Event.MOUSEDOWN') |
| 9952 @DocsEditable | 9952 @DocsEditable() |
| 9953 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9953 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9954 @deprecated // deprecated | 9954 @deprecated // deprecated |
| 9955 static const int MOUSEDOWN = 1; | 9955 static const int MOUSEDOWN = 1; |
| 9956 | 9956 |
| 9957 @DomName('Event.MOUSEDRAG') | 9957 @DomName('Event.MOUSEDRAG') |
| 9958 @DocsEditable | 9958 @DocsEditable() |
| 9959 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9959 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9960 @deprecated // deprecated | 9960 @deprecated // deprecated |
| 9961 static const int MOUSEDRAG = 32; | 9961 static const int MOUSEDRAG = 32; |
| 9962 | 9962 |
| 9963 @DomName('Event.MOUSEMOVE') | 9963 @DomName('Event.MOUSEMOVE') |
| 9964 @DocsEditable | 9964 @DocsEditable() |
| 9965 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9965 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9966 @deprecated // deprecated | 9966 @deprecated // deprecated |
| 9967 static const int MOUSEMOVE = 16; | 9967 static const int MOUSEMOVE = 16; |
| 9968 | 9968 |
| 9969 @DomName('Event.MOUSEOUT') | 9969 @DomName('Event.MOUSEOUT') |
| 9970 @DocsEditable | 9970 @DocsEditable() |
| 9971 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9971 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9972 @deprecated // deprecated | 9972 @deprecated // deprecated |
| 9973 static const int MOUSEOUT = 8; | 9973 static const int MOUSEOUT = 8; |
| 9974 | 9974 |
| 9975 @DomName('Event.MOUSEOVER') | 9975 @DomName('Event.MOUSEOVER') |
| 9976 @DocsEditable | 9976 @DocsEditable() |
| 9977 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9977 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9978 @deprecated // deprecated | 9978 @deprecated // deprecated |
| 9979 static const int MOUSEOVER = 4; | 9979 static const int MOUSEOVER = 4; |
| 9980 | 9980 |
| 9981 @DomName('Event.MOUSEUP') | 9981 @DomName('Event.MOUSEUP') |
| 9982 @DocsEditable | 9982 @DocsEditable() |
| 9983 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9983 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9984 @deprecated // deprecated | 9984 @deprecated // deprecated |
| 9985 static const int MOUSEUP = 2; | 9985 static const int MOUSEUP = 2; |
| 9986 | 9986 |
| 9987 @DomName('Event.NONE') | 9987 @DomName('Event.NONE') |
| 9988 @DocsEditable | 9988 @DocsEditable() |
| 9989 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9989 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9990 @deprecated // deprecated | 9990 @deprecated // deprecated |
| 9991 static const int NONE = 0; | 9991 static const int NONE = 0; |
| 9992 | 9992 |
| 9993 @DomName('Event.SELECT') | 9993 @DomName('Event.SELECT') |
| 9994 @DocsEditable | 9994 @DocsEditable() |
| 9995 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents | 9995 // https://developer.mozilla.org/en-US/docs/DOM/window.captureEvents |
| 9996 @deprecated // deprecated | 9996 @deprecated // deprecated |
| 9997 static const int SELECT = 16384; | 9997 static const int SELECT = 16384; |
| 9998 | 9998 |
| 9999 @DomName('Event.bubbles') | 9999 @DomName('Event.bubbles') |
| 10000 @DocsEditable | 10000 @DocsEditable() |
| 10001 final bool bubbles; | 10001 final bool bubbles; |
| 10002 | 10002 |
| 10003 @DomName('Event.cancelBubble') | 10003 @DomName('Event.cancelBubble') |
| 10004 @DocsEditable | 10004 @DocsEditable() |
| 10005 // http://www.w3.org/TR/DOM-Level-3-Events/#events-event-type-stopPropagation | 10005 // http://www.w3.org/TR/DOM-Level-3-Events/#events-event-type-stopPropagation |
| 10006 @deprecated // deprecated | 10006 @deprecated // deprecated |
| 10007 bool cancelBubble; | 10007 bool cancelBubble; |
| 10008 | 10008 |
| 10009 @DomName('Event.cancelable') | 10009 @DomName('Event.cancelable') |
| 10010 @DocsEditable | 10010 @DocsEditable() |
| 10011 final bool cancelable; | 10011 final bool cancelable; |
| 10012 | 10012 |
| 10013 @DomName('Event.clipboardData') | 10013 @DomName('Event.clipboardData') |
| 10014 @DocsEditable | 10014 @DocsEditable() |
| 10015 @SupportedBrowser(SupportedBrowser.CHROME) | 10015 @SupportedBrowser(SupportedBrowser.CHROME) |
| 10016 @SupportedBrowser(SupportedBrowser.SAFARI) | 10016 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 10017 @Experimental | 10017 @Experimental() |
| 10018 // Part of copy/paste | 10018 // Part of copy/paste |
| 10019 @Experimental // nonstandard | 10019 @Experimental() // nonstandard |
| 10020 final DataTransfer clipboardData; | 10020 final DataTransfer clipboardData; |
| 10021 | 10021 |
| 10022 EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._get_cu
rrentTarget); | 10022 EventTarget get currentTarget => _convertNativeToDart_EventTarget(this._get_cu
rrentTarget); |
| 10023 @JSName('currentTarget') | 10023 @JSName('currentTarget') |
| 10024 @DomName('Event.currentTarget') | 10024 @DomName('Event.currentTarget') |
| 10025 @DocsEditable | 10025 @DocsEditable() |
| 10026 @Creates('Null') | 10026 @Creates('Null') |
| 10027 @Returns('EventTarget|=Object') | 10027 @Returns('EventTarget|=Object') |
| 10028 final dynamic _get_currentTarget; | 10028 final dynamic _get_currentTarget; |
| 10029 | 10029 |
| 10030 @DomName('Event.defaultPrevented') | 10030 @DomName('Event.defaultPrevented') |
| 10031 @DocsEditable | 10031 @DocsEditable() |
| 10032 final bool defaultPrevented; | 10032 final bool defaultPrevented; |
| 10033 | 10033 |
| 10034 @DomName('Event.eventPhase') | 10034 @DomName('Event.eventPhase') |
| 10035 @DocsEditable | 10035 @DocsEditable() |
| 10036 final int eventPhase; | 10036 final int eventPhase; |
| 10037 | 10037 |
| 10038 @DomName('Event.path') | 10038 @DomName('Event.path') |
| 10039 @DocsEditable | 10039 @DocsEditable() |
| 10040 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ex
tensions-to-event | 10040 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#ex
tensions-to-event |
| 10041 @Experimental | 10041 @Experimental() |
| 10042 @Returns('NodeList') | 10042 @Returns('NodeList') |
| 10043 @Creates('NodeList') | 10043 @Creates('NodeList') |
| 10044 final List<Node> path; | 10044 final List<Node> path; |
| 10045 | 10045 |
| 10046 EventTarget get target => _convertNativeToDart_EventTarget(this._get_target); | 10046 EventTarget get target => _convertNativeToDart_EventTarget(this._get_target); |
| 10047 @JSName('target') | 10047 @JSName('target') |
| 10048 @DomName('Event.target') | 10048 @DomName('Event.target') |
| 10049 @DocsEditable | 10049 @DocsEditable() |
| 10050 @Creates('Node') | 10050 @Creates('Node') |
| 10051 @Returns('EventTarget|=Object') | 10051 @Returns('EventTarget|=Object') |
| 10052 final dynamic _get_target; | 10052 final dynamic _get_target; |
| 10053 | 10053 |
| 10054 @DomName('Event.timeStamp') | 10054 @DomName('Event.timeStamp') |
| 10055 @DocsEditable | 10055 @DocsEditable() |
| 10056 final int timeStamp; | 10056 final int timeStamp; |
| 10057 | 10057 |
| 10058 @DomName('Event.type') | 10058 @DomName('Event.type') |
| 10059 @DocsEditable | 10059 @DocsEditable() |
| 10060 final String type; | 10060 final String type; |
| 10061 | 10061 |
| 10062 @JSName('initEvent') | 10062 @JSName('initEvent') |
| 10063 @DomName('Event.initEvent') | 10063 @DomName('Event.initEvent') |
| 10064 @DocsEditable | 10064 @DocsEditable() |
| 10065 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg
) native; | 10065 void $dom_initEvent(String eventTypeArg, bool canBubbleArg, bool cancelableArg
) native; |
| 10066 | 10066 |
| 10067 @DomName('Event.preventDefault') | 10067 @DomName('Event.preventDefault') |
| 10068 @DocsEditable | 10068 @DocsEditable() |
| 10069 void preventDefault() native; | 10069 void preventDefault() native; |
| 10070 | 10070 |
| 10071 @DomName('Event.stopImmediatePropagation') | 10071 @DomName('Event.stopImmediatePropagation') |
| 10072 @DocsEditable | 10072 @DocsEditable() |
| 10073 void stopImmediatePropagation() native; | 10073 void stopImmediatePropagation() native; |
| 10074 | 10074 |
| 10075 @DomName('Event.stopPropagation') | 10075 @DomName('Event.stopPropagation') |
| 10076 @DocsEditable | 10076 @DocsEditable() |
| 10077 void stopPropagation() native; | 10077 void stopPropagation() native; |
| 10078 | 10078 |
| 10079 } | 10079 } |
| 10080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10080 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10081 // for details. All rights reserved. Use of this source code is governed by a | 10081 // for details. All rights reserved. Use of this source code is governed by a |
| 10082 // BSD-style license that can be found in the LICENSE file. | 10082 // BSD-style license that can be found in the LICENSE file. |
| 10083 | 10083 |
| 10084 | 10084 |
| 10085 @DocsEditable | 10085 @DocsEditable() |
| 10086 @DomName('EventException') | 10086 @DomName('EventException') |
| 10087 @Unstable | 10087 @Unstable() |
| 10088 class EventException extends Interceptor native "EventException" { | 10088 class EventException extends Interceptor native "EventException" { |
| 10089 | 10089 |
| 10090 @DomName('EventException.DISPATCH_REQUEST_ERR') | 10090 @DomName('EventException.DISPATCH_REQUEST_ERR') |
| 10091 @DocsEditable | 10091 @DocsEditable() |
| 10092 static const int DISPATCH_REQUEST_ERR = 1; | 10092 static const int DISPATCH_REQUEST_ERR = 1; |
| 10093 | 10093 |
| 10094 @DomName('EventException.UNSPECIFIED_EVENT_TYPE_ERR') | 10094 @DomName('EventException.UNSPECIFIED_EVENT_TYPE_ERR') |
| 10095 @DocsEditable | 10095 @DocsEditable() |
| 10096 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; | 10096 static const int UNSPECIFIED_EVENT_TYPE_ERR = 0; |
| 10097 | 10097 |
| 10098 @DomName('EventException.code') | 10098 @DomName('EventException.code') |
| 10099 @DocsEditable | 10099 @DocsEditable() |
| 10100 final int code; | 10100 final int code; |
| 10101 | 10101 |
| 10102 @DomName('EventException.message') | 10102 @DomName('EventException.message') |
| 10103 @DocsEditable | 10103 @DocsEditable() |
| 10104 @deprecated // nonstandard | 10104 @deprecated // nonstandard |
| 10105 final String message; | 10105 final String message; |
| 10106 | 10106 |
| 10107 @DomName('EventException.name') | 10107 @DomName('EventException.name') |
| 10108 @DocsEditable | 10108 @DocsEditable() |
| 10109 @deprecated // nonstandard | 10109 @deprecated // nonstandard |
| 10110 final String name; | 10110 final String name; |
| 10111 | 10111 |
| 10112 @DomName('EventException.toString') | 10112 @DomName('EventException.toString') |
| 10113 @DocsEditable | 10113 @DocsEditable() |
| 10114 String toString() native; | 10114 String toString() native; |
| 10115 } | 10115 } |
| 10116 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 10116 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 10117 // for details. All rights reserved. Use of this source code is governed by a | 10117 // for details. All rights reserved. Use of this source code is governed by a |
| 10118 // BSD-style license that can be found in the LICENSE file. | 10118 // BSD-style license that can be found in the LICENSE file. |
| 10119 | 10119 |
| 10120 | 10120 |
| 10121 @DomName('EventSource') | 10121 @DomName('EventSource') |
| 10122 // http://www.w3.org/TR/eventsource/#the-eventsource-interface | 10122 // http://www.w3.org/TR/eventsource/#the-eventsource-interface |
| 10123 @Experimental // stable | 10123 @Experimental() // stable |
| 10124 class EventSource extends EventTarget native "EventSource" { | 10124 class EventSource extends EventTarget native "EventSource" { |
| 10125 factory EventSource(String title, {withCredentials: false}) { | 10125 factory EventSource(String title, {withCredentials: false}) { |
| 10126 var parsedOptions = { | 10126 var parsedOptions = { |
| 10127 'withCredentials': withCredentials, | 10127 'withCredentials': withCredentials, |
| 10128 }; | 10128 }; |
| 10129 return EventSource._factoryEventSource(title, parsedOptions); | 10129 return EventSource._factoryEventSource(title, parsedOptions); |
| 10130 } | 10130 } |
| 10131 // To suppress missing implicit constructor warnings. | 10131 // To suppress missing implicit constructor warnings. |
| 10132 factory EventSource._() { throw new UnsupportedError("Not supported"); } | 10132 factory EventSource._() { throw new UnsupportedError("Not supported"); } |
| 10133 | 10133 |
| 10134 @DomName('EventSource.errorEvent') | 10134 @DomName('EventSource.errorEvent') |
| 10135 @DocsEditable | 10135 @DocsEditable() |
| 10136 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 10136 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 10137 | 10137 |
| 10138 @DomName('EventSource.messageEvent') | 10138 @DomName('EventSource.messageEvent') |
| 10139 @DocsEditable | 10139 @DocsEditable() |
| 10140 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea
mProvider<MessageEvent>('message'); | 10140 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea
mProvider<MessageEvent>('message'); |
| 10141 | 10141 |
| 10142 @DomName('EventSource.openEvent') | 10142 @DomName('EventSource.openEvent') |
| 10143 @DocsEditable | 10143 @DocsEditable() |
| 10144 static const EventStreamProvider<Event> openEvent = const EventStreamProvider<
Event>('open'); | 10144 static const EventStreamProvider<Event> openEvent = const EventStreamProvider<
Event>('open'); |
| 10145 | 10145 |
| 10146 @DomName('EventSource.EventSource') | 10146 @DomName('EventSource.EventSource') |
| 10147 @DocsEditable | 10147 @DocsEditable() |
| 10148 static EventSource _factoryEventSource(String url, [Map eventSourceInit]) { | 10148 static EventSource _factoryEventSource(String url, [Map eventSourceInit]) { |
| 10149 if (eventSourceInit != null) { | 10149 if (eventSourceInit != null) { |
| 10150 return EventSource._create_1(url, eventSourceInit); | 10150 return EventSource._create_1(url, eventSourceInit); |
| 10151 } | 10151 } |
| 10152 return EventSource._create_2(url); | 10152 return EventSource._create_2(url); |
| 10153 } | 10153 } |
| 10154 static EventSource _create_1(url, eventSourceInit) => JS('EventSource', 'new E
ventSource(#,#)', url, eventSourceInit); | 10154 static EventSource _create_1(url, eventSourceInit) => JS('EventSource', 'new E
ventSource(#,#)', url, eventSourceInit); |
| 10155 static EventSource _create_2(url) => JS('EventSource', 'new EventSource(#)', u
rl); | 10155 static EventSource _create_2(url) => JS('EventSource', 'new EventSource(#)', u
rl); |
| 10156 | 10156 |
| 10157 @DomName('EventSource.CLOSED') | 10157 @DomName('EventSource.CLOSED') |
| 10158 @DocsEditable | 10158 @DocsEditable() |
| 10159 static const int CLOSED = 2; | 10159 static const int CLOSED = 2; |
| 10160 | 10160 |
| 10161 @DomName('EventSource.CONNECTING') | 10161 @DomName('EventSource.CONNECTING') |
| 10162 @DocsEditable | 10162 @DocsEditable() |
| 10163 static const int CONNECTING = 0; | 10163 static const int CONNECTING = 0; |
| 10164 | 10164 |
| 10165 @DomName('EventSource.OPEN') | 10165 @DomName('EventSource.OPEN') |
| 10166 @DocsEditable | 10166 @DocsEditable() |
| 10167 static const int OPEN = 1; | 10167 static const int OPEN = 1; |
| 10168 | 10168 |
| 10169 @DomName('EventSource.readyState') | 10169 @DomName('EventSource.readyState') |
| 10170 @DocsEditable | 10170 @DocsEditable() |
| 10171 final int readyState; | 10171 final int readyState; |
| 10172 | 10172 |
| 10173 @DomName('EventSource.url') | 10173 @DomName('EventSource.url') |
| 10174 @DocsEditable | 10174 @DocsEditable() |
| 10175 final String url; | 10175 final String url; |
| 10176 | 10176 |
| 10177 @DomName('EventSource.withCredentials') | 10177 @DomName('EventSource.withCredentials') |
| 10178 @DocsEditable | 10178 @DocsEditable() |
| 10179 final bool withCredentials; | 10179 final bool withCredentials; |
| 10180 | 10180 |
| 10181 @JSName('addEventListener') | 10181 @JSName('addEventListener') |
| 10182 @DomName('EventSource.addEventListener') | 10182 @DomName('EventSource.addEventListener') |
| 10183 @DocsEditable | 10183 @DocsEditable() |
| 10184 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 10184 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 10185 | 10185 |
| 10186 @DomName('EventSource.close') | 10186 @DomName('EventSource.close') |
| 10187 @DocsEditable | 10187 @DocsEditable() |
| 10188 void close() native; | 10188 void close() native; |
| 10189 | 10189 |
| 10190 @DomName('EventSource.dispatchEvent') | 10190 @DomName('EventSource.dispatchEvent') |
| 10191 @DocsEditable | 10191 @DocsEditable() |
| 10192 bool dispatchEvent(Event evt) native; | 10192 bool dispatchEvent(Event evt) native; |
| 10193 | 10193 |
| 10194 @JSName('removeEventListener') | 10194 @JSName('removeEventListener') |
| 10195 @DomName('EventSource.removeEventListener') | 10195 @DomName('EventSource.removeEventListener') |
| 10196 @DocsEditable | 10196 @DocsEditable() |
| 10197 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 10197 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 10198 | 10198 |
| 10199 @DomName('EventSource.onerror') | 10199 @DomName('EventSource.onerror') |
| 10200 @DocsEditable | 10200 @DocsEditable() |
| 10201 Stream<Event> get onError => errorEvent.forTarget(this); | 10201 Stream<Event> get onError => errorEvent.forTarget(this); |
| 10202 | 10202 |
| 10203 @DomName('EventSource.onmessage') | 10203 @DomName('EventSource.onmessage') |
| 10204 @DocsEditable | 10204 @DocsEditable() |
| 10205 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); | 10205 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); |
| 10206 | 10206 |
| 10207 @DomName('EventSource.onopen') | 10207 @DomName('EventSource.onopen') |
| 10208 @DocsEditable | 10208 @DocsEditable() |
| 10209 Stream<Event> get onOpen => openEvent.forTarget(this); | 10209 Stream<Event> get onOpen => openEvent.forTarget(this); |
| 10210 | 10210 |
| 10211 } | 10211 } |
| 10212 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10212 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10213 // for details. All rights reserved. Use of this source code is governed by a | 10213 // for details. All rights reserved. Use of this source code is governed by a |
| 10214 // BSD-style license that can be found in the LICENSE file. | 10214 // BSD-style license that can be found in the LICENSE file. |
| 10215 | 10215 |
| 10216 | 10216 |
| 10217 /** | 10217 /** |
| 10218 * Base class that supports listening for and dispatching browser events. | 10218 * Base class that supports listening for and dispatching browser events. |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 10272 class EventTarget extends Interceptor native "EventTarget" { | 10272 class EventTarget extends Interceptor native "EventTarget" { |
| 10273 | 10273 |
| 10274 /** | 10274 /** |
| 10275 * This is an ease-of-use accessor for event streams which should only be | 10275 * This is an ease-of-use accessor for event streams which should only be |
| 10276 * used when an explicit accessor is not available. | 10276 * used when an explicit accessor is not available. |
| 10277 */ | 10277 */ |
| 10278 Events get on => new Events(this); | 10278 Events get on => new Events(this); |
| 10279 | 10279 |
| 10280 @JSName('addEventListener') | 10280 @JSName('addEventListener') |
| 10281 @DomName('EventTarget.addEventListener') | 10281 @DomName('EventTarget.addEventListener') |
| 10282 @DocsEditable | 10282 @DocsEditable() |
| 10283 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 10283 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 10284 | 10284 |
| 10285 @DomName('EventTarget.dispatchEvent') | 10285 @DomName('EventTarget.dispatchEvent') |
| 10286 @DocsEditable | 10286 @DocsEditable() |
| 10287 bool dispatchEvent(Event event) native; | 10287 bool dispatchEvent(Event event) native; |
| 10288 | 10288 |
| 10289 @JSName('removeEventListener') | 10289 @JSName('removeEventListener') |
| 10290 @DomName('EventTarget.removeEventListener') | 10290 @DomName('EventTarget.removeEventListener') |
| 10291 @DocsEditable | 10291 @DocsEditable() |
| 10292 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 10292 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 10293 | 10293 |
| 10294 } | 10294 } |
| 10295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10295 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10296 // for details. All rights reserved. Use of this source code is governed by a | 10296 // for details. All rights reserved. Use of this source code is governed by a |
| 10297 // BSD-style license that can be found in the LICENSE file. | 10297 // BSD-style license that can be found in the LICENSE file. |
| 10298 | 10298 |
| 10299 | 10299 |
| 10300 @DocsEditable | 10300 @DocsEditable() |
| 10301 @DomName('HTMLFieldSetElement') | 10301 @DomName('HTMLFieldSetElement') |
| 10302 @Unstable | 10302 @Unstable() |
| 10303 class FieldSetElement extends _HTMLElement native "HTMLFieldSetElement" { | 10303 class FieldSetElement extends _HTMLElement native "HTMLFieldSetElement" { |
| 10304 // To suppress missing implicit constructor warnings. | 10304 // To suppress missing implicit constructor warnings. |
| 10305 factory FieldSetElement._() { throw new UnsupportedError("Not supported"); } | 10305 factory FieldSetElement._() { throw new UnsupportedError("Not supported"); } |
| 10306 | 10306 |
| 10307 @DomName('HTMLFieldSetElement.HTMLFieldSetElement') | 10307 @DomName('HTMLFieldSetElement.HTMLFieldSetElement') |
| 10308 @DocsEditable | 10308 @DocsEditable() |
| 10309 factory FieldSetElement() => document.$dom_createElement("fieldset"); | 10309 factory FieldSetElement() => document.$dom_createElement("fieldset"); |
| 10310 | 10310 |
| 10311 @DomName('HTMLFieldSetElement.disabled') | 10311 @DomName('HTMLFieldSetElement.disabled') |
| 10312 @DocsEditable | 10312 @DocsEditable() |
| 10313 bool disabled; | 10313 bool disabled; |
| 10314 | 10314 |
| 10315 @DomName('HTMLFieldSetElement.elements') | 10315 @DomName('HTMLFieldSetElement.elements') |
| 10316 @DocsEditable | 10316 @DocsEditable() |
| 10317 final HtmlCollection elements; | 10317 final HtmlCollection elements; |
| 10318 | 10318 |
| 10319 @DomName('HTMLFieldSetElement.form') | 10319 @DomName('HTMLFieldSetElement.form') |
| 10320 @DocsEditable | 10320 @DocsEditable() |
| 10321 final FormElement form; | 10321 final FormElement form; |
| 10322 | 10322 |
| 10323 @DomName('HTMLFieldSetElement.name') | 10323 @DomName('HTMLFieldSetElement.name') |
| 10324 @DocsEditable | 10324 @DocsEditable() |
| 10325 String name; | 10325 String name; |
| 10326 | 10326 |
| 10327 @DomName('HTMLFieldSetElement.type') | 10327 @DomName('HTMLFieldSetElement.type') |
| 10328 @DocsEditable | 10328 @DocsEditable() |
| 10329 final String type; | 10329 final String type; |
| 10330 | 10330 |
| 10331 @DomName('HTMLFieldSetElement.validationMessage') | 10331 @DomName('HTMLFieldSetElement.validationMessage') |
| 10332 @DocsEditable | 10332 @DocsEditable() |
| 10333 final String validationMessage; | 10333 final String validationMessage; |
| 10334 | 10334 |
| 10335 @DomName('HTMLFieldSetElement.validity') | 10335 @DomName('HTMLFieldSetElement.validity') |
| 10336 @DocsEditable | 10336 @DocsEditable() |
| 10337 final ValidityState validity; | 10337 final ValidityState validity; |
| 10338 | 10338 |
| 10339 @DomName('HTMLFieldSetElement.willValidate') | 10339 @DomName('HTMLFieldSetElement.willValidate') |
| 10340 @DocsEditable | 10340 @DocsEditable() |
| 10341 final bool willValidate; | 10341 final bool willValidate; |
| 10342 | 10342 |
| 10343 @DomName('HTMLFieldSetElement.checkValidity') | 10343 @DomName('HTMLFieldSetElement.checkValidity') |
| 10344 @DocsEditable | 10344 @DocsEditable() |
| 10345 bool checkValidity() native; | 10345 bool checkValidity() native; |
| 10346 | 10346 |
| 10347 @DomName('HTMLFieldSetElement.setCustomValidity') | 10347 @DomName('HTMLFieldSetElement.setCustomValidity') |
| 10348 @DocsEditable | 10348 @DocsEditable() |
| 10349 void setCustomValidity(String error) native; | 10349 void setCustomValidity(String error) native; |
| 10350 } | 10350 } |
| 10351 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10351 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10352 // for details. All rights reserved. Use of this source code is governed by a | 10352 // for details. All rights reserved. Use of this source code is governed by a |
| 10353 // BSD-style license that can be found in the LICENSE file. | 10353 // BSD-style license that can be found in the LICENSE file. |
| 10354 | 10354 |
| 10355 | 10355 |
| 10356 @DocsEditable | 10356 @DocsEditable() |
| 10357 @DomName('File') | 10357 @DomName('File') |
| 10358 class File extends Blob native "File" { | 10358 class File extends Blob native "File" { |
| 10359 // To suppress missing implicit constructor warnings. | 10359 // To suppress missing implicit constructor warnings. |
| 10360 factory File._() { throw new UnsupportedError("Not supported"); } | 10360 factory File._() { throw new UnsupportedError("Not supported"); } |
| 10361 | 10361 |
| 10362 DateTime get lastModifiedDate => convertNativeToDart_DateTime(this._get_lastMo
difiedDate); | 10362 DateTime get lastModifiedDate => convertNativeToDart_DateTime(this._get_lastMo
difiedDate); |
| 10363 @JSName('lastModifiedDate') | 10363 @JSName('lastModifiedDate') |
| 10364 @DomName('File.lastModifiedDate') | 10364 @DomName('File.lastModifiedDate') |
| 10365 @DocsEditable | 10365 @DocsEditable() |
| 10366 @Creates('Null') | 10366 @Creates('Null') |
| 10367 final dynamic _get_lastModifiedDate; | 10367 final dynamic _get_lastModifiedDate; |
| 10368 | 10368 |
| 10369 @DomName('File.name') | 10369 @DomName('File.name') |
| 10370 @DocsEditable | 10370 @DocsEditable() |
| 10371 final String name; | 10371 final String name; |
| 10372 | 10372 |
| 10373 @JSName('webkitRelativePath') | 10373 @JSName('webkitRelativePath') |
| 10374 @DomName('File.webkitRelativePath') | 10374 @DomName('File.webkitRelativePath') |
| 10375 @DocsEditable | 10375 @DocsEditable() |
| 10376 @SupportedBrowser(SupportedBrowser.CHROME) | 10376 @SupportedBrowser(SupportedBrowser.CHROME) |
| 10377 @SupportedBrowser(SupportedBrowser.SAFARI) | 10377 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 10378 @Experimental | 10378 @Experimental() |
| 10379 // https://plus.sandbox.google.com/+AddyOsmani/posts/Dk5UhZ6zfF3 | 10379 // https://plus.sandbox.google.com/+AddyOsmani/posts/Dk5UhZ6zfF3 |
| 10380 final String relativePath; | 10380 final String relativePath; |
| 10381 } | 10381 } |
| 10382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10382 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10383 // for details. All rights reserved. Use of this source code is governed by a | 10383 // for details. All rights reserved. Use of this source code is governed by a |
| 10384 // BSD-style license that can be found in the LICENSE file. | 10384 // BSD-style license that can be found in the LICENSE file. |
| 10385 | 10385 |
| 10386 // WARNING: Do not edit - generated code. | 10386 // WARNING: Do not edit - generated code. |
| 10387 | 10387 |
| 10388 | 10388 |
| 10389 @DomName('FileCallback') | 10389 @DomName('FileCallback') |
| 10390 // http://www.w3.org/TR/file-system-api/#the-filecallback-interface | 10390 // http://www.w3.org/TR/file-system-api/#the-filecallback-interface |
| 10391 @Experimental | 10391 @Experimental() |
| 10392 typedef void _FileCallback(File file); | 10392 typedef void _FileCallback(File file); |
| 10393 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10393 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10394 // for details. All rights reserved. Use of this source code is governed by a | 10394 // for details. All rights reserved. Use of this source code is governed by a |
| 10395 // BSD-style license that can be found in the LICENSE file. | 10395 // BSD-style license that can be found in the LICENSE file. |
| 10396 | 10396 |
| 10397 | 10397 |
| 10398 @DocsEditable | 10398 @DocsEditable() |
| 10399 @DomName('FileEntry') | 10399 @DomName('FileEntry') |
| 10400 // http://www.w3.org/TR/file-system-api/#the-fileentry-interface | 10400 // http://www.w3.org/TR/file-system-api/#the-fileentry-interface |
| 10401 @Experimental | 10401 @Experimental() |
| 10402 class FileEntry extends Entry native "FileEntry" { | 10402 class FileEntry extends Entry native "FileEntry" { |
| 10403 // To suppress missing implicit constructor warnings. | 10403 // To suppress missing implicit constructor warnings. |
| 10404 factory FileEntry._() { throw new UnsupportedError("Not supported"); } | 10404 factory FileEntry._() { throw new UnsupportedError("Not supported"); } |
| 10405 | 10405 |
| 10406 @JSName('createWriter') | 10406 @JSName('createWriter') |
| 10407 @DomName('FileEntry.createWriter') | 10407 @DomName('FileEntry.createWriter') |
| 10408 @DocsEditable | 10408 @DocsEditable() |
| 10409 void _createWriter(_FileWriterCallback successCallback, [_ErrorCallback errorC
allback]) native; | 10409 void _createWriter(_FileWriterCallback successCallback, [_ErrorCallback errorC
allback]) native; |
| 10410 | 10410 |
| 10411 @JSName('createWriter') | 10411 @JSName('createWriter') |
| 10412 @DomName('FileEntry.createWriter') | 10412 @DomName('FileEntry.createWriter') |
| 10413 @DocsEditable | 10413 @DocsEditable() |
| 10414 Future<FileWriter> createWriter() { | 10414 Future<FileWriter> createWriter() { |
| 10415 var completer = new Completer<FileWriter>(); | 10415 var completer = new Completer<FileWriter>(); |
| 10416 _createWriter( | 10416 _createWriter( |
| 10417 (value) { completer.complete(value); }, | 10417 (value) { completer.complete(value); }, |
| 10418 (error) { completer.completeError(error); }); | 10418 (error) { completer.completeError(error); }); |
| 10419 return completer.future; | 10419 return completer.future; |
| 10420 } | 10420 } |
| 10421 | 10421 |
| 10422 @JSName('file') | 10422 @JSName('file') |
| 10423 @DomName('FileEntry.file') | 10423 @DomName('FileEntry.file') |
| 10424 @DocsEditable | 10424 @DocsEditable() |
| 10425 void _file(_FileCallback successCallback, [_ErrorCallback errorCallback]) nati
ve; | 10425 void _file(_FileCallback successCallback, [_ErrorCallback errorCallback]) nati
ve; |
| 10426 | 10426 |
| 10427 @JSName('file') | 10427 @JSName('file') |
| 10428 @DomName('FileEntry.file') | 10428 @DomName('FileEntry.file') |
| 10429 @DocsEditable | 10429 @DocsEditable() |
| 10430 Future<File> file() { | 10430 Future<File> file() { |
| 10431 var completer = new Completer<File>(); | 10431 var completer = new Completer<File>(); |
| 10432 _file( | 10432 _file( |
| 10433 (value) { completer.complete(value); }, | 10433 (value) { completer.complete(value); }, |
| 10434 (error) { completer.completeError(error); }); | 10434 (error) { completer.completeError(error); }); |
| 10435 return completer.future; | 10435 return completer.future; |
| 10436 } | 10436 } |
| 10437 } | 10437 } |
| 10438 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10438 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10439 // for details. All rights reserved. Use of this source code is governed by a | 10439 // for details. All rights reserved. Use of this source code is governed by a |
| 10440 // BSD-style license that can be found in the LICENSE file. | 10440 // BSD-style license that can be found in the LICENSE file. |
| 10441 | 10441 |
| 10442 | 10442 |
| 10443 @DocsEditable | 10443 @DocsEditable() |
| 10444 @DomName('FileError') | 10444 @DomName('FileError') |
| 10445 // http://dev.w3.org/2009/dap/file-system/pub/FileSystem/ | 10445 // http://dev.w3.org/2009/dap/file-system/pub/FileSystem/ |
| 10446 @Experimental | 10446 @Experimental() |
| 10447 class FileError extends Interceptor native "FileError" { | 10447 class FileError extends Interceptor native "FileError" { |
| 10448 | 10448 |
| 10449 @DomName('FileError.ABORT_ERR') | 10449 @DomName('FileError.ABORT_ERR') |
| 10450 @DocsEditable | 10450 @DocsEditable() |
| 10451 static const int ABORT_ERR = 3; | 10451 static const int ABORT_ERR = 3; |
| 10452 | 10452 |
| 10453 @DomName('FileError.ENCODING_ERR') | 10453 @DomName('FileError.ENCODING_ERR') |
| 10454 @DocsEditable | 10454 @DocsEditable() |
| 10455 static const int ENCODING_ERR = 5; | 10455 static const int ENCODING_ERR = 5; |
| 10456 | 10456 |
| 10457 @DomName('FileError.INVALID_MODIFICATION_ERR') | 10457 @DomName('FileError.INVALID_MODIFICATION_ERR') |
| 10458 @DocsEditable | 10458 @DocsEditable() |
| 10459 static const int INVALID_MODIFICATION_ERR = 9; | 10459 static const int INVALID_MODIFICATION_ERR = 9; |
| 10460 | 10460 |
| 10461 @DomName('FileError.INVALID_STATE_ERR') | 10461 @DomName('FileError.INVALID_STATE_ERR') |
| 10462 @DocsEditable | 10462 @DocsEditable() |
| 10463 static const int INVALID_STATE_ERR = 7; | 10463 static const int INVALID_STATE_ERR = 7; |
| 10464 | 10464 |
| 10465 @DomName('FileError.NOT_FOUND_ERR') | 10465 @DomName('FileError.NOT_FOUND_ERR') |
| 10466 @DocsEditable | 10466 @DocsEditable() |
| 10467 static const int NOT_FOUND_ERR = 1; | 10467 static const int NOT_FOUND_ERR = 1; |
| 10468 | 10468 |
| 10469 @DomName('FileError.NOT_READABLE_ERR') | 10469 @DomName('FileError.NOT_READABLE_ERR') |
| 10470 @DocsEditable | 10470 @DocsEditable() |
| 10471 static const int NOT_READABLE_ERR = 4; | 10471 static const int NOT_READABLE_ERR = 4; |
| 10472 | 10472 |
| 10473 @DomName('FileError.NO_MODIFICATION_ALLOWED_ERR') | 10473 @DomName('FileError.NO_MODIFICATION_ALLOWED_ERR') |
| 10474 @DocsEditable | 10474 @DocsEditable() |
| 10475 static const int NO_MODIFICATION_ALLOWED_ERR = 6; | 10475 static const int NO_MODIFICATION_ALLOWED_ERR = 6; |
| 10476 | 10476 |
| 10477 @DomName('FileError.PATH_EXISTS_ERR') | 10477 @DomName('FileError.PATH_EXISTS_ERR') |
| 10478 @DocsEditable | 10478 @DocsEditable() |
| 10479 static const int PATH_EXISTS_ERR = 12; | 10479 static const int PATH_EXISTS_ERR = 12; |
| 10480 | 10480 |
| 10481 @DomName('FileError.QUOTA_EXCEEDED_ERR') | 10481 @DomName('FileError.QUOTA_EXCEEDED_ERR') |
| 10482 @DocsEditable | 10482 @DocsEditable() |
| 10483 static const int QUOTA_EXCEEDED_ERR = 10; | 10483 static const int QUOTA_EXCEEDED_ERR = 10; |
| 10484 | 10484 |
| 10485 @DomName('FileError.SECURITY_ERR') | 10485 @DomName('FileError.SECURITY_ERR') |
| 10486 @DocsEditable | 10486 @DocsEditable() |
| 10487 static const int SECURITY_ERR = 2; | 10487 static const int SECURITY_ERR = 2; |
| 10488 | 10488 |
| 10489 @DomName('FileError.SYNTAX_ERR') | 10489 @DomName('FileError.SYNTAX_ERR') |
| 10490 @DocsEditable | 10490 @DocsEditable() |
| 10491 static const int SYNTAX_ERR = 8; | 10491 static const int SYNTAX_ERR = 8; |
| 10492 | 10492 |
| 10493 @DomName('FileError.TYPE_MISMATCH_ERR') | 10493 @DomName('FileError.TYPE_MISMATCH_ERR') |
| 10494 @DocsEditable | 10494 @DocsEditable() |
| 10495 static const int TYPE_MISMATCH_ERR = 11; | 10495 static const int TYPE_MISMATCH_ERR = 11; |
| 10496 | 10496 |
| 10497 @DomName('FileError.code') | 10497 @DomName('FileError.code') |
| 10498 @DocsEditable | 10498 @DocsEditable() |
| 10499 final int code; | 10499 final int code; |
| 10500 } | 10500 } |
| 10501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10502 // for details. All rights reserved. Use of this source code is governed by a | 10502 // for details. All rights reserved. Use of this source code is governed by a |
| 10503 // BSD-style license that can be found in the LICENSE file. | 10503 // BSD-style license that can be found in the LICENSE file. |
| 10504 | 10504 |
| 10505 | 10505 |
| 10506 @DocsEditable | 10506 @DocsEditable() |
| 10507 @DomName('FileException') | 10507 @DomName('FileException') |
| 10508 // http://dev.w3.org/2009/dap/file-system/pub/FileSystem/ | 10508 // http://dev.w3.org/2009/dap/file-system/pub/FileSystem/ |
| 10509 @Experimental | 10509 @Experimental() |
| 10510 class FileException extends Interceptor native "FileException" { | 10510 class FileException extends Interceptor native "FileException" { |
| 10511 | 10511 |
| 10512 @DomName('FileException.ABORT_ERR') | 10512 @DomName('FileException.ABORT_ERR') |
| 10513 @DocsEditable | 10513 @DocsEditable() |
| 10514 static const int ABORT_ERR = 3; | 10514 static const int ABORT_ERR = 3; |
| 10515 | 10515 |
| 10516 @DomName('FileException.ENCODING_ERR') | 10516 @DomName('FileException.ENCODING_ERR') |
| 10517 @DocsEditable | 10517 @DocsEditable() |
| 10518 static const int ENCODING_ERR = 5; | 10518 static const int ENCODING_ERR = 5; |
| 10519 | 10519 |
| 10520 @DomName('FileException.INVALID_MODIFICATION_ERR') | 10520 @DomName('FileException.INVALID_MODIFICATION_ERR') |
| 10521 @DocsEditable | 10521 @DocsEditable() |
| 10522 static const int INVALID_MODIFICATION_ERR = 9; | 10522 static const int INVALID_MODIFICATION_ERR = 9; |
| 10523 | 10523 |
| 10524 @DomName('FileException.INVALID_STATE_ERR') | 10524 @DomName('FileException.INVALID_STATE_ERR') |
| 10525 @DocsEditable | 10525 @DocsEditable() |
| 10526 static const int INVALID_STATE_ERR = 7; | 10526 static const int INVALID_STATE_ERR = 7; |
| 10527 | 10527 |
| 10528 @DomName('FileException.NOT_FOUND_ERR') | 10528 @DomName('FileException.NOT_FOUND_ERR') |
| 10529 @DocsEditable | 10529 @DocsEditable() |
| 10530 static const int NOT_FOUND_ERR = 1; | 10530 static const int NOT_FOUND_ERR = 1; |
| 10531 | 10531 |
| 10532 @DomName('FileException.NOT_READABLE_ERR') | 10532 @DomName('FileException.NOT_READABLE_ERR') |
| 10533 @DocsEditable | 10533 @DocsEditable() |
| 10534 static const int NOT_READABLE_ERR = 4; | 10534 static const int NOT_READABLE_ERR = 4; |
| 10535 | 10535 |
| 10536 @DomName('FileException.NO_MODIFICATION_ALLOWED_ERR') | 10536 @DomName('FileException.NO_MODIFICATION_ALLOWED_ERR') |
| 10537 @DocsEditable | 10537 @DocsEditable() |
| 10538 static const int NO_MODIFICATION_ALLOWED_ERR = 6; | 10538 static const int NO_MODIFICATION_ALLOWED_ERR = 6; |
| 10539 | 10539 |
| 10540 @DomName('FileException.PATH_EXISTS_ERR') | 10540 @DomName('FileException.PATH_EXISTS_ERR') |
| 10541 @DocsEditable | 10541 @DocsEditable() |
| 10542 static const int PATH_EXISTS_ERR = 12; | 10542 static const int PATH_EXISTS_ERR = 12; |
| 10543 | 10543 |
| 10544 @DomName('FileException.QUOTA_EXCEEDED_ERR') | 10544 @DomName('FileException.QUOTA_EXCEEDED_ERR') |
| 10545 @DocsEditable | 10545 @DocsEditable() |
| 10546 static const int QUOTA_EXCEEDED_ERR = 10; | 10546 static const int QUOTA_EXCEEDED_ERR = 10; |
| 10547 | 10547 |
| 10548 @DomName('FileException.SECURITY_ERR') | 10548 @DomName('FileException.SECURITY_ERR') |
| 10549 @DocsEditable | 10549 @DocsEditable() |
| 10550 static const int SECURITY_ERR = 2; | 10550 static const int SECURITY_ERR = 2; |
| 10551 | 10551 |
| 10552 @DomName('FileException.SYNTAX_ERR') | 10552 @DomName('FileException.SYNTAX_ERR') |
| 10553 @DocsEditable | 10553 @DocsEditable() |
| 10554 static const int SYNTAX_ERR = 8; | 10554 static const int SYNTAX_ERR = 8; |
| 10555 | 10555 |
| 10556 @DomName('FileException.TYPE_MISMATCH_ERR') | 10556 @DomName('FileException.TYPE_MISMATCH_ERR') |
| 10557 @DocsEditable | 10557 @DocsEditable() |
| 10558 static const int TYPE_MISMATCH_ERR = 11; | 10558 static const int TYPE_MISMATCH_ERR = 11; |
| 10559 | 10559 |
| 10560 @DomName('FileException.code') | 10560 @DomName('FileException.code') |
| 10561 @DocsEditable | 10561 @DocsEditable() |
| 10562 final int code; | 10562 final int code; |
| 10563 | 10563 |
| 10564 @DomName('FileException.message') | 10564 @DomName('FileException.message') |
| 10565 @DocsEditable | 10565 @DocsEditable() |
| 10566 final String message; | 10566 final String message; |
| 10567 | 10567 |
| 10568 @DomName('FileException.name') | 10568 @DomName('FileException.name') |
| 10569 @DocsEditable | 10569 @DocsEditable() |
| 10570 final String name; | 10570 final String name; |
| 10571 | 10571 |
| 10572 @DomName('FileException.toString') | 10572 @DomName('FileException.toString') |
| 10573 @DocsEditable | 10573 @DocsEditable() |
| 10574 String toString() native; | 10574 String toString() native; |
| 10575 } | 10575 } |
| 10576 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10576 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10577 // for details. All rights reserved. Use of this source code is governed by a | 10577 // for details. All rights reserved. Use of this source code is governed by a |
| 10578 // BSD-style license that can be found in the LICENSE file. | 10578 // BSD-style license that can be found in the LICENSE file. |
| 10579 | 10579 |
| 10580 | 10580 |
| 10581 @DocsEditable | 10581 @DocsEditable() |
| 10582 @DomName('FileList') | 10582 @DomName('FileList') |
| 10583 class FileList extends Interceptor with ListMixin<File>, ImmutableListMixin<File
> implements JavaScriptIndexingBehavior, List<File> native "FileList" { | 10583 class FileList extends Interceptor with ListMixin<File>, ImmutableListMixin<File
> implements JavaScriptIndexingBehavior, List<File> native "FileList" { |
| 10584 | 10584 |
| 10585 @DomName('FileList.length') | 10585 @DomName('FileList.length') |
| 10586 @DocsEditable | 10586 @DocsEditable() |
| 10587 int get length => JS("int", "#.length", this); | 10587 int get length => JS("int", "#.length", this); |
| 10588 | 10588 |
| 10589 File operator[](int index) { | 10589 File operator[](int index) { |
| 10590 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 10590 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 10591 index, index, length)) | 10591 index, index, length)) |
| 10592 throw new RangeError.range(index, 0, length); | 10592 throw new RangeError.range(index, 0, length); |
| 10593 return JS("File", "#[#]", this, index); | 10593 return JS("File", "#[#]", this, index); |
| 10594 } | 10594 } |
| 10595 void operator[]=(int index, File value) { | 10595 void operator[]=(int index, File value) { |
| 10596 throw new UnsupportedError("Cannot assign element of immutable List."); | 10596 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 10624 return JS('File', '#[0]', this); | 10624 return JS('File', '#[0]', this); |
| 10625 } | 10625 } |
| 10626 if (len == 0) throw new StateError("No elements"); | 10626 if (len == 0) throw new StateError("No elements"); |
| 10627 throw new StateError("More than one element"); | 10627 throw new StateError("More than one element"); |
| 10628 } | 10628 } |
| 10629 | 10629 |
| 10630 File elementAt(int index) => this[index]; | 10630 File elementAt(int index) => this[index]; |
| 10631 // -- end List<File> mixins. | 10631 // -- end List<File> mixins. |
| 10632 | 10632 |
| 10633 @DomName('FileList.item') | 10633 @DomName('FileList.item') |
| 10634 @DocsEditable | 10634 @DocsEditable() |
| 10635 File item(int index) native; | 10635 File item(int index) native; |
| 10636 } | 10636 } |
| 10637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10637 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10638 // for details. All rights reserved. Use of this source code is governed by a | 10638 // for details. All rights reserved. Use of this source code is governed by a |
| 10639 // BSD-style license that can be found in the LICENSE file. | 10639 // BSD-style license that can be found in the LICENSE file. |
| 10640 | 10640 |
| 10641 | 10641 |
| 10642 @DocsEditable | 10642 @DocsEditable() |
| 10643 @DomName('FileReader') | 10643 @DomName('FileReader') |
| 10644 class FileReader extends EventTarget native "FileReader" { | 10644 class FileReader extends EventTarget native "FileReader" { |
| 10645 // To suppress missing implicit constructor warnings. | 10645 // To suppress missing implicit constructor warnings. |
| 10646 factory FileReader._() { throw new UnsupportedError("Not supported"); } | 10646 factory FileReader._() { throw new UnsupportedError("Not supported"); } |
| 10647 | 10647 |
| 10648 @DomName('FileReader.abortEvent') | 10648 @DomName('FileReader.abortEvent') |
| 10649 @DocsEditable | 10649 @DocsEditable() |
| 10650 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream
Provider<ProgressEvent>('abort'); | 10650 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream
Provider<ProgressEvent>('abort'); |
| 10651 | 10651 |
| 10652 @DomName('FileReader.errorEvent') | 10652 @DomName('FileReader.errorEvent') |
| 10653 @DocsEditable | 10653 @DocsEditable() |
| 10654 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 10654 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 10655 | 10655 |
| 10656 @DomName('FileReader.loadEvent') | 10656 @DomName('FileReader.loadEvent') |
| 10657 @DocsEditable | 10657 @DocsEditable() |
| 10658 static const EventStreamProvider<ProgressEvent> loadEvent = const EventStreamP
rovider<ProgressEvent>('load'); | 10658 static const EventStreamProvider<ProgressEvent> loadEvent = const EventStreamP
rovider<ProgressEvent>('load'); |
| 10659 | 10659 |
| 10660 @DomName('FileReader.loadendEvent') | 10660 @DomName('FileReader.loadendEvent') |
| 10661 @DocsEditable | 10661 @DocsEditable() |
| 10662 static const EventStreamProvider<ProgressEvent> loadEndEvent = const EventStre
amProvider<ProgressEvent>('loadend'); | 10662 static const EventStreamProvider<ProgressEvent> loadEndEvent = const EventStre
amProvider<ProgressEvent>('loadend'); |
| 10663 | 10663 |
| 10664 @DomName('FileReader.loadstartEvent') | 10664 @DomName('FileReader.loadstartEvent') |
| 10665 @DocsEditable | 10665 @DocsEditable() |
| 10666 static const EventStreamProvider<ProgressEvent> loadStartEvent = const EventSt
reamProvider<ProgressEvent>('loadstart'); | 10666 static const EventStreamProvider<ProgressEvent> loadStartEvent = const EventSt
reamProvider<ProgressEvent>('loadstart'); |
| 10667 | 10667 |
| 10668 @DomName('FileReader.progressEvent') | 10668 @DomName('FileReader.progressEvent') |
| 10669 @DocsEditable | 10669 @DocsEditable() |
| 10670 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr
eamProvider<ProgressEvent>('progress'); | 10670 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr
eamProvider<ProgressEvent>('progress'); |
| 10671 | 10671 |
| 10672 @DomName('FileReader.FileReader') | 10672 @DomName('FileReader.FileReader') |
| 10673 @DocsEditable | 10673 @DocsEditable() |
| 10674 factory FileReader() { | 10674 factory FileReader() { |
| 10675 return FileReader._create_1(); | 10675 return FileReader._create_1(); |
| 10676 } | 10676 } |
| 10677 static FileReader _create_1() => JS('FileReader', 'new FileReader()'); | 10677 static FileReader _create_1() => JS('FileReader', 'new FileReader()'); |
| 10678 | 10678 |
| 10679 @DomName('FileReader.DONE') | 10679 @DomName('FileReader.DONE') |
| 10680 @DocsEditable | 10680 @DocsEditable() |
| 10681 static const int DONE = 2; | 10681 static const int DONE = 2; |
| 10682 | 10682 |
| 10683 @DomName('FileReader.EMPTY') | 10683 @DomName('FileReader.EMPTY') |
| 10684 @DocsEditable | 10684 @DocsEditable() |
| 10685 static const int EMPTY = 0; | 10685 static const int EMPTY = 0; |
| 10686 | 10686 |
| 10687 @DomName('FileReader.LOADING') | 10687 @DomName('FileReader.LOADING') |
| 10688 @DocsEditable | 10688 @DocsEditable() |
| 10689 static const int LOADING = 1; | 10689 static const int LOADING = 1; |
| 10690 | 10690 |
| 10691 @DomName('FileReader.error') | 10691 @DomName('FileReader.error') |
| 10692 @DocsEditable | 10692 @DocsEditable() |
| 10693 final FileError error; | 10693 final FileError error; |
| 10694 | 10694 |
| 10695 @DomName('FileReader.readyState') | 10695 @DomName('FileReader.readyState') |
| 10696 @DocsEditable | 10696 @DocsEditable() |
| 10697 final int readyState; | 10697 final int readyState; |
| 10698 | 10698 |
| 10699 @DomName('FileReader.result') | 10699 @DomName('FileReader.result') |
| 10700 @DocsEditable | 10700 @DocsEditable() |
| 10701 @Creates('String|ByteBuffer|Null') | 10701 @Creates('String|ByteBuffer|Null') |
| 10702 final Object result; | 10702 final Object result; |
| 10703 | 10703 |
| 10704 @DomName('FileReader.abort') | 10704 @DomName('FileReader.abort') |
| 10705 @DocsEditable | 10705 @DocsEditable() |
| 10706 void abort() native; | 10706 void abort() native; |
| 10707 | 10707 |
| 10708 @JSName('addEventListener') | 10708 @JSName('addEventListener') |
| 10709 @DomName('FileReader.addEventListener') | 10709 @DomName('FileReader.addEventListener') |
| 10710 @DocsEditable | 10710 @DocsEditable() |
| 10711 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 10711 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 10712 | 10712 |
| 10713 @DomName('FileReader.dispatchEvent') | 10713 @DomName('FileReader.dispatchEvent') |
| 10714 @DocsEditable | 10714 @DocsEditable() |
| 10715 bool dispatchEvent(Event evt) native; | 10715 bool dispatchEvent(Event evt) native; |
| 10716 | 10716 |
| 10717 @DomName('FileReader.readAsArrayBuffer') | 10717 @DomName('FileReader.readAsArrayBuffer') |
| 10718 @DocsEditable | 10718 @DocsEditable() |
| 10719 void readAsArrayBuffer(Blob blob) native; | 10719 void readAsArrayBuffer(Blob blob) native; |
| 10720 | 10720 |
| 10721 @DomName('FileReader.readAsBinaryString') | 10721 @DomName('FileReader.readAsBinaryString') |
| 10722 @DocsEditable | 10722 @DocsEditable() |
| 10723 // http://blog.whatwg.org/weekly-stream-autocomplete | 10723 // http://blog.whatwg.org/weekly-stream-autocomplete |
| 10724 @deprecated // deprecated | 10724 @deprecated // deprecated |
| 10725 void readAsBinaryString(Blob blob) native; | 10725 void readAsBinaryString(Blob blob) native; |
| 10726 | 10726 |
| 10727 @JSName('readAsDataURL') | 10727 @JSName('readAsDataURL') |
| 10728 @DomName('FileReader.readAsDataURL') | 10728 @DomName('FileReader.readAsDataURL') |
| 10729 @DocsEditable | 10729 @DocsEditable() |
| 10730 void readAsDataUrl(Blob blob) native; | 10730 void readAsDataUrl(Blob blob) native; |
| 10731 | 10731 |
| 10732 @DomName('FileReader.readAsText') | 10732 @DomName('FileReader.readAsText') |
| 10733 @DocsEditable | 10733 @DocsEditable() |
| 10734 void readAsText(Blob blob, [String encoding]) native; | 10734 void readAsText(Blob blob, [String encoding]) native; |
| 10735 | 10735 |
| 10736 @JSName('removeEventListener') | 10736 @JSName('removeEventListener') |
| 10737 @DomName('FileReader.removeEventListener') | 10737 @DomName('FileReader.removeEventListener') |
| 10738 @DocsEditable | 10738 @DocsEditable() |
| 10739 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 10739 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 10740 | 10740 |
| 10741 @DomName('FileReader.onabort') | 10741 @DomName('FileReader.onabort') |
| 10742 @DocsEditable | 10742 @DocsEditable() |
| 10743 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this); | 10743 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this); |
| 10744 | 10744 |
| 10745 @DomName('FileReader.onerror') | 10745 @DomName('FileReader.onerror') |
| 10746 @DocsEditable | 10746 @DocsEditable() |
| 10747 Stream<Event> get onError => errorEvent.forTarget(this); | 10747 Stream<Event> get onError => errorEvent.forTarget(this); |
| 10748 | 10748 |
| 10749 @DomName('FileReader.onload') | 10749 @DomName('FileReader.onload') |
| 10750 @DocsEditable | 10750 @DocsEditable() |
| 10751 Stream<ProgressEvent> get onLoad => loadEvent.forTarget(this); | 10751 Stream<ProgressEvent> get onLoad => loadEvent.forTarget(this); |
| 10752 | 10752 |
| 10753 @DomName('FileReader.onloadend') | 10753 @DomName('FileReader.onloadend') |
| 10754 @DocsEditable | 10754 @DocsEditable() |
| 10755 Stream<ProgressEvent> get onLoadEnd => loadEndEvent.forTarget(this); | 10755 Stream<ProgressEvent> get onLoadEnd => loadEndEvent.forTarget(this); |
| 10756 | 10756 |
| 10757 @DomName('FileReader.onloadstart') | 10757 @DomName('FileReader.onloadstart') |
| 10758 @DocsEditable | 10758 @DocsEditable() |
| 10759 Stream<ProgressEvent> get onLoadStart => loadStartEvent.forTarget(this); | 10759 Stream<ProgressEvent> get onLoadStart => loadStartEvent.forTarget(this); |
| 10760 | 10760 |
| 10761 @DomName('FileReader.onprogress') | 10761 @DomName('FileReader.onprogress') |
| 10762 @DocsEditable | 10762 @DocsEditable() |
| 10763 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); | 10763 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); |
| 10764 } | 10764 } |
| 10765 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10765 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10766 // for details. All rights reserved. Use of this source code is governed by a | 10766 // for details. All rights reserved. Use of this source code is governed by a |
| 10767 // BSD-style license that can be found in the LICENSE file. | 10767 // BSD-style license that can be found in the LICENSE file. |
| 10768 | 10768 |
| 10769 | 10769 |
| 10770 @DocsEditable | 10770 @DocsEditable() |
| 10771 @DomName('DOMFileSystem') | 10771 @DomName('DOMFileSystem') |
| 10772 @SupportedBrowser(SupportedBrowser.CHROME) | 10772 @SupportedBrowser(SupportedBrowser.CHROME) |
| 10773 @Experimental | 10773 @Experimental() |
| 10774 // http://www.w3.org/TR/file-system-api/ | 10774 // http://www.w3.org/TR/file-system-api/ |
| 10775 class FileSystem extends Interceptor native "DOMFileSystem" { | 10775 class FileSystem extends Interceptor native "DOMFileSystem" { |
| 10776 | 10776 |
| 10777 /// Checks if this type is supported on the current platform. | 10777 /// Checks if this type is supported on the current platform. |
| 10778 static bool get supported => JS('bool', '!!(window.webkitRequestFileSystem)'); | 10778 static bool get supported => JS('bool', '!!(window.webkitRequestFileSystem)'); |
| 10779 | 10779 |
| 10780 @DomName('DOMFileSystem.name') | 10780 @DomName('DOMFileSystem.name') |
| 10781 @DocsEditable | 10781 @DocsEditable() |
| 10782 final String name; | 10782 final String name; |
| 10783 | 10783 |
| 10784 @DomName('DOMFileSystem.root') | 10784 @DomName('DOMFileSystem.root') |
| 10785 @DocsEditable | 10785 @DocsEditable() |
| 10786 final DirectoryEntry root; | 10786 final DirectoryEntry root; |
| 10787 } | 10787 } |
| 10788 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10788 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10789 // for details. All rights reserved. Use of this source code is governed by a | 10789 // for details. All rights reserved. Use of this source code is governed by a |
| 10790 // BSD-style license that can be found in the LICENSE file. | 10790 // BSD-style license that can be found in the LICENSE file. |
| 10791 | 10791 |
| 10792 // WARNING: Do not edit - generated code. | 10792 // WARNING: Do not edit - generated code. |
| 10793 | 10793 |
| 10794 | 10794 |
| 10795 @DomName('FileSystemCallback') | 10795 @DomName('FileSystemCallback') |
| 10796 // http://www.w3.org/TR/file-system-api/#the-filesystemcallback-interface | 10796 // http://www.w3.org/TR/file-system-api/#the-filesystemcallback-interface |
| 10797 @Experimental | 10797 @Experimental() |
| 10798 typedef void _FileSystemCallback(FileSystem fileSystem); | 10798 typedef void _FileSystemCallback(FileSystem fileSystem); |
| 10799 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10799 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10800 // for details. All rights reserved. Use of this source code is governed by a | 10800 // for details. All rights reserved. Use of this source code is governed by a |
| 10801 // BSD-style license that can be found in the LICENSE file. | 10801 // BSD-style license that can be found in the LICENSE file. |
| 10802 | 10802 |
| 10803 | 10803 |
| 10804 @DocsEditable | 10804 @DocsEditable() |
| 10805 @DomName('FileWriter') | 10805 @DomName('FileWriter') |
| 10806 // http://www.w3.org/TR/file-writer-api/#the-filewriter-interface | 10806 // http://www.w3.org/TR/file-writer-api/#the-filewriter-interface |
| 10807 @Experimental | 10807 @Experimental() |
| 10808 class FileWriter extends EventTarget native "FileWriter" { | 10808 class FileWriter extends EventTarget native "FileWriter" { |
| 10809 // To suppress missing implicit constructor warnings. | 10809 // To suppress missing implicit constructor warnings. |
| 10810 factory FileWriter._() { throw new UnsupportedError("Not supported"); } | 10810 factory FileWriter._() { throw new UnsupportedError("Not supported"); } |
| 10811 | 10811 |
| 10812 @DomName('FileWriter.abortEvent') | 10812 @DomName('FileWriter.abortEvent') |
| 10813 @DocsEditable | 10813 @DocsEditable() |
| 10814 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream
Provider<ProgressEvent>('abort'); | 10814 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream
Provider<ProgressEvent>('abort'); |
| 10815 | 10815 |
| 10816 @DomName('FileWriter.errorEvent') | 10816 @DomName('FileWriter.errorEvent') |
| 10817 @DocsEditable | 10817 @DocsEditable() |
| 10818 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 10818 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 10819 | 10819 |
| 10820 @DomName('FileWriter.progressEvent') | 10820 @DomName('FileWriter.progressEvent') |
| 10821 @DocsEditable | 10821 @DocsEditable() |
| 10822 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr
eamProvider<ProgressEvent>('progress'); | 10822 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr
eamProvider<ProgressEvent>('progress'); |
| 10823 | 10823 |
| 10824 @DomName('FileWriter.writeEvent') | 10824 @DomName('FileWriter.writeEvent') |
| 10825 @DocsEditable | 10825 @DocsEditable() |
| 10826 static const EventStreamProvider<ProgressEvent> writeEvent = const EventStream
Provider<ProgressEvent>('write'); | 10826 static const EventStreamProvider<ProgressEvent> writeEvent = const EventStream
Provider<ProgressEvent>('write'); |
| 10827 | 10827 |
| 10828 @DomName('FileWriter.writeendEvent') | 10828 @DomName('FileWriter.writeendEvent') |
| 10829 @DocsEditable | 10829 @DocsEditable() |
| 10830 static const EventStreamProvider<ProgressEvent> writeEndEvent = const EventStr
eamProvider<ProgressEvent>('writeend'); | 10830 static const EventStreamProvider<ProgressEvent> writeEndEvent = const EventStr
eamProvider<ProgressEvent>('writeend'); |
| 10831 | 10831 |
| 10832 @DomName('FileWriter.writestartEvent') | 10832 @DomName('FileWriter.writestartEvent') |
| 10833 @DocsEditable | 10833 @DocsEditable() |
| 10834 static const EventStreamProvider<ProgressEvent> writeStartEvent = const EventS
treamProvider<ProgressEvent>('writestart'); | 10834 static const EventStreamProvider<ProgressEvent> writeStartEvent = const EventS
treamProvider<ProgressEvent>('writestart'); |
| 10835 | 10835 |
| 10836 @DomName('FileWriter.DONE') | 10836 @DomName('FileWriter.DONE') |
| 10837 @DocsEditable | 10837 @DocsEditable() |
| 10838 static const int DONE = 2; | 10838 static const int DONE = 2; |
| 10839 | 10839 |
| 10840 @DomName('FileWriter.INIT') | 10840 @DomName('FileWriter.INIT') |
| 10841 @DocsEditable | 10841 @DocsEditable() |
| 10842 static const int INIT = 0; | 10842 static const int INIT = 0; |
| 10843 | 10843 |
| 10844 @DomName('FileWriter.WRITING') | 10844 @DomName('FileWriter.WRITING') |
| 10845 @DocsEditable | 10845 @DocsEditable() |
| 10846 static const int WRITING = 1; | 10846 static const int WRITING = 1; |
| 10847 | 10847 |
| 10848 @DomName('FileWriter.error') | 10848 @DomName('FileWriter.error') |
| 10849 @DocsEditable | 10849 @DocsEditable() |
| 10850 final FileError error; | 10850 final FileError error; |
| 10851 | 10851 |
| 10852 @DomName('FileWriter.length') | 10852 @DomName('FileWriter.length') |
| 10853 @DocsEditable | 10853 @DocsEditable() |
| 10854 final int length; | 10854 final int length; |
| 10855 | 10855 |
| 10856 @DomName('FileWriter.position') | 10856 @DomName('FileWriter.position') |
| 10857 @DocsEditable | 10857 @DocsEditable() |
| 10858 final int position; | 10858 final int position; |
| 10859 | 10859 |
| 10860 @DomName('FileWriter.readyState') | 10860 @DomName('FileWriter.readyState') |
| 10861 @DocsEditable | 10861 @DocsEditable() |
| 10862 final int readyState; | 10862 final int readyState; |
| 10863 | 10863 |
| 10864 @DomName('FileWriter.abort') | 10864 @DomName('FileWriter.abort') |
| 10865 @DocsEditable | 10865 @DocsEditable() |
| 10866 void abort() native; | 10866 void abort() native; |
| 10867 | 10867 |
| 10868 @JSName('addEventListener') | 10868 @JSName('addEventListener') |
| 10869 @DomName('FileWriter.addEventListener') | 10869 @DomName('FileWriter.addEventListener') |
| 10870 @DocsEditable | 10870 @DocsEditable() |
| 10871 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 10871 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 10872 | 10872 |
| 10873 @DomName('FileWriter.dispatchEvent') | 10873 @DomName('FileWriter.dispatchEvent') |
| 10874 @DocsEditable | 10874 @DocsEditable() |
| 10875 bool dispatchEvent(Event evt) native; | 10875 bool dispatchEvent(Event evt) native; |
| 10876 | 10876 |
| 10877 @JSName('removeEventListener') | 10877 @JSName('removeEventListener') |
| 10878 @DomName('FileWriter.removeEventListener') | 10878 @DomName('FileWriter.removeEventListener') |
| 10879 @DocsEditable | 10879 @DocsEditable() |
| 10880 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 10880 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 10881 | 10881 |
| 10882 @DomName('FileWriter.seek') | 10882 @DomName('FileWriter.seek') |
| 10883 @DocsEditable | 10883 @DocsEditable() |
| 10884 void seek(int position) native; | 10884 void seek(int position) native; |
| 10885 | 10885 |
| 10886 @DomName('FileWriter.truncate') | 10886 @DomName('FileWriter.truncate') |
| 10887 @DocsEditable | 10887 @DocsEditable() |
| 10888 void truncate(int size) native; | 10888 void truncate(int size) native; |
| 10889 | 10889 |
| 10890 @DomName('FileWriter.write') | 10890 @DomName('FileWriter.write') |
| 10891 @DocsEditable | 10891 @DocsEditable() |
| 10892 void write(Blob data) native; | 10892 void write(Blob data) native; |
| 10893 | 10893 |
| 10894 @DomName('FileWriter.onabort') | 10894 @DomName('FileWriter.onabort') |
| 10895 @DocsEditable | 10895 @DocsEditable() |
| 10896 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this); | 10896 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this); |
| 10897 | 10897 |
| 10898 @DomName('FileWriter.onerror') | 10898 @DomName('FileWriter.onerror') |
| 10899 @DocsEditable | 10899 @DocsEditable() |
| 10900 Stream<Event> get onError => errorEvent.forTarget(this); | 10900 Stream<Event> get onError => errorEvent.forTarget(this); |
| 10901 | 10901 |
| 10902 @DomName('FileWriter.onprogress') | 10902 @DomName('FileWriter.onprogress') |
| 10903 @DocsEditable | 10903 @DocsEditable() |
| 10904 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); | 10904 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); |
| 10905 | 10905 |
| 10906 @DomName('FileWriter.onwrite') | 10906 @DomName('FileWriter.onwrite') |
| 10907 @DocsEditable | 10907 @DocsEditable() |
| 10908 Stream<ProgressEvent> get onWrite => writeEvent.forTarget(this); | 10908 Stream<ProgressEvent> get onWrite => writeEvent.forTarget(this); |
| 10909 | 10909 |
| 10910 @DomName('FileWriter.onwriteend') | 10910 @DomName('FileWriter.onwriteend') |
| 10911 @DocsEditable | 10911 @DocsEditable() |
| 10912 Stream<ProgressEvent> get onWriteEnd => writeEndEvent.forTarget(this); | 10912 Stream<ProgressEvent> get onWriteEnd => writeEndEvent.forTarget(this); |
| 10913 | 10913 |
| 10914 @DomName('FileWriter.onwritestart') | 10914 @DomName('FileWriter.onwritestart') |
| 10915 @DocsEditable | 10915 @DocsEditable() |
| 10916 Stream<ProgressEvent> get onWriteStart => writeStartEvent.forTarget(this); | 10916 Stream<ProgressEvent> get onWriteStart => writeStartEvent.forTarget(this); |
| 10917 } | 10917 } |
| 10918 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10918 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10919 // for details. All rights reserved. Use of this source code is governed by a | 10919 // for details. All rights reserved. Use of this source code is governed by a |
| 10920 // BSD-style license that can be found in the LICENSE file. | 10920 // BSD-style license that can be found in the LICENSE file. |
| 10921 | 10921 |
| 10922 // WARNING: Do not edit - generated code. | 10922 // WARNING: Do not edit - generated code. |
| 10923 | 10923 |
| 10924 | 10924 |
| 10925 @DomName('FileWriterCallback') | 10925 @DomName('FileWriterCallback') |
| 10926 // http://www.w3.org/TR/file-writer-api/#idl-def-FileWriter | 10926 // http://www.w3.org/TR/file-writer-api/#idl-def-FileWriter |
| 10927 @Experimental | 10927 @Experimental() |
| 10928 typedef void _FileWriterCallback(FileWriter fileWriter); | 10928 typedef void _FileWriterCallback(FileWriter fileWriter); |
| 10929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10930 // for details. All rights reserved. Use of this source code is governed by a | 10930 // for details. All rights reserved. Use of this source code is governed by a |
| 10931 // BSD-style license that can be found in the LICENSE file. | 10931 // BSD-style license that can be found in the LICENSE file. |
| 10932 | 10932 |
| 10933 | 10933 |
| 10934 @DocsEditable | 10934 @DocsEditable() |
| 10935 @DomName('FocusEvent') | 10935 @DomName('FocusEvent') |
| 10936 class FocusEvent extends UIEvent native "FocusEvent" { | 10936 class FocusEvent extends UIEvent native "FocusEvent" { |
| 10937 // To suppress missing implicit constructor warnings. | 10937 // To suppress missing implicit constructor warnings. |
| 10938 factory FocusEvent._() { throw new UnsupportedError("Not supported"); } | 10938 factory FocusEvent._() { throw new UnsupportedError("Not supported"); } |
| 10939 | 10939 |
| 10940 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_re
latedTarget); | 10940 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_re
latedTarget); |
| 10941 @JSName('relatedTarget') | 10941 @JSName('relatedTarget') |
| 10942 @DomName('FocusEvent.relatedTarget') | 10942 @DomName('FocusEvent.relatedTarget') |
| 10943 @DocsEditable | 10943 @DocsEditable() |
| 10944 @Creates('Null') | 10944 @Creates('Null') |
| 10945 final dynamic _get_relatedTarget; | 10945 final dynamic _get_relatedTarget; |
| 10946 } | 10946 } |
| 10947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 10947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 10948 // for details. All rights reserved. Use of this source code is governed by a | 10948 // for details. All rights reserved. Use of this source code is governed by a |
| 10949 // BSD-style license that can be found in the LICENSE file. | 10949 // BSD-style license that can be found in the LICENSE file. |
| 10950 | 10950 |
| 10951 | 10951 |
| 10952 @DocsEditable | 10952 @DocsEditable() |
| 10953 @DomName('FontLoader') | 10953 @DomName('FontLoader') |
| 10954 // http://www.w3.org/TR/css3-fonts/#document-fontloader | 10954 // http://www.w3.org/TR/css3-fonts/#document-fontloader |
| 10955 @Experimental | 10955 @Experimental() |
| 10956 class FontLoader extends EventTarget native "FontLoader" { | 10956 class FontLoader extends EventTarget native "FontLoader" { |
| 10957 // To suppress missing implicit constructor warnings. | 10957 // To suppress missing implicit constructor warnings. |
| 10958 factory FontLoader._() { throw new UnsupportedError("Not supported"); } | 10958 factory FontLoader._() { throw new UnsupportedError("Not supported"); } |
| 10959 | 10959 |
| 10960 @DomName('FontLoader.errorEvent') | 10960 @DomName('FontLoader.errorEvent') |
| 10961 @DocsEditable | 10961 @DocsEditable() |
| 10962 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 10962 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 10963 | 10963 |
| 10964 @DomName('FontLoader.loadEvent') | 10964 @DomName('FontLoader.loadEvent') |
| 10965 @DocsEditable | 10965 @DocsEditable() |
| 10966 static const EventStreamProvider<CssFontFaceLoadEvent> loadEvent = const Event
StreamProvider<CssFontFaceLoadEvent>('load'); | 10966 static const EventStreamProvider<CssFontFaceLoadEvent> loadEvent = const Event
StreamProvider<CssFontFaceLoadEvent>('load'); |
| 10967 | 10967 |
| 10968 @DomName('FontLoader.loadingEvent') | 10968 @DomName('FontLoader.loadingEvent') |
| 10969 @DocsEditable | 10969 @DocsEditable() |
| 10970 static const EventStreamProvider<CssFontFaceLoadEvent> loadingEvent = const Ev
entStreamProvider<CssFontFaceLoadEvent>('loading'); | 10970 static const EventStreamProvider<CssFontFaceLoadEvent> loadingEvent = const Ev
entStreamProvider<CssFontFaceLoadEvent>('loading'); |
| 10971 | 10971 |
| 10972 @DomName('FontLoader.loadingdoneEvent') | 10972 @DomName('FontLoader.loadingdoneEvent') |
| 10973 @DocsEditable | 10973 @DocsEditable() |
| 10974 static const EventStreamProvider<CssFontFaceLoadEvent> loadingDoneEvent = cons
t EventStreamProvider<CssFontFaceLoadEvent>('loadingdone'); | 10974 static const EventStreamProvider<CssFontFaceLoadEvent> loadingDoneEvent = cons
t EventStreamProvider<CssFontFaceLoadEvent>('loadingdone'); |
| 10975 | 10975 |
| 10976 @DomName('FontLoader.loadstartEvent') | 10976 @DomName('FontLoader.loadstartEvent') |
| 10977 @DocsEditable | 10977 @DocsEditable() |
| 10978 static const EventStreamProvider<CssFontFaceLoadEvent> loadStartEvent = const
EventStreamProvider<CssFontFaceLoadEvent>('loadstart'); | 10978 static const EventStreamProvider<CssFontFaceLoadEvent> loadStartEvent = const
EventStreamProvider<CssFontFaceLoadEvent>('loadstart'); |
| 10979 | 10979 |
| 10980 @DomName('FontLoader.loading') | 10980 @DomName('FontLoader.loading') |
| 10981 @DocsEditable | 10981 @DocsEditable() |
| 10982 final bool loading; | 10982 final bool loading; |
| 10983 | 10983 |
| 10984 @JSName('addEventListener') | 10984 @JSName('addEventListener') |
| 10985 @DomName('FontLoader.addEventListener') | 10985 @DomName('FontLoader.addEventListener') |
| 10986 @DocsEditable | 10986 @DocsEditable() |
| 10987 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 10987 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 10988 | 10988 |
| 10989 @DomName('FontLoader.checkFont') | 10989 @DomName('FontLoader.checkFont') |
| 10990 @DocsEditable | 10990 @DocsEditable() |
| 10991 bool checkFont(String font, String text) native; | 10991 bool checkFont(String font, String text) native; |
| 10992 | 10992 |
| 10993 @DomName('FontLoader.dispatchEvent') | 10993 @DomName('FontLoader.dispatchEvent') |
| 10994 @DocsEditable | 10994 @DocsEditable() |
| 10995 bool dispatchEvent(Event evt) native; | 10995 bool dispatchEvent(Event evt) native; |
| 10996 | 10996 |
| 10997 @DomName('FontLoader.loadFont') | 10997 @DomName('FontLoader.loadFont') |
| 10998 @DocsEditable | 10998 @DocsEditable() |
| 10999 void loadFont(Map params) { | 10999 void loadFont(Map params) { |
| 11000 var params_1 = convertDartToNative_Dictionary(params); | 11000 var params_1 = convertDartToNative_Dictionary(params); |
| 11001 _loadFont_1(params_1); | 11001 _loadFont_1(params_1); |
| 11002 return; | 11002 return; |
| 11003 } | 11003 } |
| 11004 @JSName('loadFont') | 11004 @JSName('loadFont') |
| 11005 @DomName('FontLoader.loadFont') | 11005 @DomName('FontLoader.loadFont') |
| 11006 @DocsEditable | 11006 @DocsEditable() |
| 11007 void _loadFont_1(params) native; | 11007 void _loadFont_1(params) native; |
| 11008 | 11008 |
| 11009 @DomName('FontLoader.notifyWhenFontsReady') | 11009 @DomName('FontLoader.notifyWhenFontsReady') |
| 11010 @DocsEditable | 11010 @DocsEditable() |
| 11011 void notifyWhenFontsReady(VoidCallback callback) native; | 11011 void notifyWhenFontsReady(VoidCallback callback) native; |
| 11012 | 11012 |
| 11013 @JSName('removeEventListener') | 11013 @JSName('removeEventListener') |
| 11014 @DomName('FontLoader.removeEventListener') | 11014 @DomName('FontLoader.removeEventListener') |
| 11015 @DocsEditable | 11015 @DocsEditable() |
| 11016 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 11016 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 11017 | 11017 |
| 11018 @DomName('FontLoader.onerror') | 11018 @DomName('FontLoader.onerror') |
| 11019 @DocsEditable | 11019 @DocsEditable() |
| 11020 Stream<Event> get onError => errorEvent.forTarget(this); | 11020 Stream<Event> get onError => errorEvent.forTarget(this); |
| 11021 | 11021 |
| 11022 @DomName('FontLoader.onload') | 11022 @DomName('FontLoader.onload') |
| 11023 @DocsEditable | 11023 @DocsEditable() |
| 11024 Stream<CssFontFaceLoadEvent> get onLoad => loadEvent.forTarget(this); | 11024 Stream<CssFontFaceLoadEvent> get onLoad => loadEvent.forTarget(this); |
| 11025 | 11025 |
| 11026 @DomName('FontLoader.onloading') | 11026 @DomName('FontLoader.onloading') |
| 11027 @DocsEditable | 11027 @DocsEditable() |
| 11028 Stream<CssFontFaceLoadEvent> get onLoading => loadingEvent.forTarget(this); | 11028 Stream<CssFontFaceLoadEvent> get onLoading => loadingEvent.forTarget(this); |
| 11029 | 11029 |
| 11030 @DomName('FontLoader.onloadingdone') | 11030 @DomName('FontLoader.onloadingdone') |
| 11031 @DocsEditable | 11031 @DocsEditable() |
| 11032 Stream<CssFontFaceLoadEvent> get onLoadingDone => loadingDoneEvent.forTarget(t
his); | 11032 Stream<CssFontFaceLoadEvent> get onLoadingDone => loadingDoneEvent.forTarget(t
his); |
| 11033 | 11033 |
| 11034 @DomName('FontLoader.onloadstart') | 11034 @DomName('FontLoader.onloadstart') |
| 11035 @DocsEditable | 11035 @DocsEditable() |
| 11036 Stream<CssFontFaceLoadEvent> get onLoadStart => loadStartEvent.forTarget(this)
; | 11036 Stream<CssFontFaceLoadEvent> get onLoadStart => loadStartEvent.forTarget(this)
; |
| 11037 } | 11037 } |
| 11038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11038 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11039 // for details. All rights reserved. Use of this source code is governed by a | 11039 // for details. All rights reserved. Use of this source code is governed by a |
| 11040 // BSD-style license that can be found in the LICENSE file. | 11040 // BSD-style license that can be found in the LICENSE file. |
| 11041 | 11041 |
| 11042 | 11042 |
| 11043 @DocsEditable | 11043 @DocsEditable() |
| 11044 @DomName('FormData') | 11044 @DomName('FormData') |
| 11045 @SupportedBrowser(SupportedBrowser.CHROME) | 11045 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11046 @SupportedBrowser(SupportedBrowser.FIREFOX) | 11046 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 11047 @SupportedBrowser(SupportedBrowser.IE, '10') | 11047 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 11048 @SupportedBrowser(SupportedBrowser.SAFARI) | 11048 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11049 class FormData extends Interceptor native "FormData" { | 11049 class FormData extends Interceptor native "FormData" { |
| 11050 | 11050 |
| 11051 @DomName('FormData.FormData') | 11051 @DomName('FormData.FormData') |
| 11052 @DocsEditable | 11052 @DocsEditable() |
| 11053 factory FormData([FormElement form]) { | 11053 factory FormData([FormElement form]) { |
| 11054 if (form != null) { | 11054 if (form != null) { |
| 11055 return FormData._create_1(form); | 11055 return FormData._create_1(form); |
| 11056 } | 11056 } |
| 11057 return FormData._create_2(); | 11057 return FormData._create_2(); |
| 11058 } | 11058 } |
| 11059 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); | 11059 static FormData _create_1(form) => JS('FormData', 'new FormData(#)', form); |
| 11060 static FormData _create_2() => JS('FormData', 'new FormData()'); | 11060 static FormData _create_2() => JS('FormData', 'new FormData()'); |
| 11061 | 11061 |
| 11062 /// Checks if this type is supported on the current platform. | 11062 /// Checks if this type is supported on the current platform. |
| 11063 static bool get supported => JS('bool', '!!(window.FormData)'); | 11063 static bool get supported => JS('bool', '!!(window.FormData)'); |
| 11064 | 11064 |
| 11065 @DomName('FormData.append') | 11065 @DomName('FormData.append') |
| 11066 @DocsEditable | 11066 @DocsEditable() |
| 11067 void append(String name, value, [String filename]) native; | 11067 void append(String name, value, [String filename]) native; |
| 11068 } | 11068 } |
| 11069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11070 // for details. All rights reserved. Use of this source code is governed by a | 11070 // for details. All rights reserved. Use of this source code is governed by a |
| 11071 // BSD-style license that can be found in the LICENSE file. | 11071 // BSD-style license that can be found in the LICENSE file. |
| 11072 | 11072 |
| 11073 | 11073 |
| 11074 @DocsEditable | 11074 @DocsEditable() |
| 11075 @DomName('HTMLFormElement') | 11075 @DomName('HTMLFormElement') |
| 11076 class FormElement extends _HTMLElement native "HTMLFormElement" { | 11076 class FormElement extends _HTMLElement native "HTMLFormElement" { |
| 11077 // To suppress missing implicit constructor warnings. | 11077 // To suppress missing implicit constructor warnings. |
| 11078 factory FormElement._() { throw new UnsupportedError("Not supported"); } | 11078 factory FormElement._() { throw new UnsupportedError("Not supported"); } |
| 11079 | 11079 |
| 11080 @DomName('HTMLFormElement.autocompleteEvent') | 11080 @DomName('HTMLFormElement.autocompleteEvent') |
| 11081 @DocsEditable | 11081 @DocsEditable() |
| 11082 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute | 11082 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute |
| 11083 @Experimental | 11083 @Experimental() |
| 11084 static const EventStreamProvider<Event> autocompleteEvent = const EventStreamP
rovider<Event>('autocomplete'); | 11084 static const EventStreamProvider<Event> autocompleteEvent = const EventStreamP
rovider<Event>('autocomplete'); |
| 11085 | 11085 |
| 11086 @DomName('HTMLFormElement.autocompleteerrorEvent') | 11086 @DomName('HTMLFormElement.autocompleteerrorEvent') |
| 11087 @DocsEditable | 11087 @DocsEditable() |
| 11088 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute | 11088 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute |
| 11089 @Experimental | 11089 @Experimental() |
| 11090 static const EventStreamProvider<AutocompleteErrorEvent> autocompleteErrorEven
t = const EventStreamProvider<AutocompleteErrorEvent>('autocompleteerror'); | 11090 static const EventStreamProvider<AutocompleteErrorEvent> autocompleteErrorEven
t = const EventStreamProvider<AutocompleteErrorEvent>('autocompleteerror'); |
| 11091 | 11091 |
| 11092 @DomName('HTMLFormElement.HTMLFormElement') | 11092 @DomName('HTMLFormElement.HTMLFormElement') |
| 11093 @DocsEditable | 11093 @DocsEditable() |
| 11094 factory FormElement() => document.$dom_createElement("form"); | 11094 factory FormElement() => document.$dom_createElement("form"); |
| 11095 | 11095 |
| 11096 @DomName('HTMLFormElement.acceptCharset') | 11096 @DomName('HTMLFormElement.acceptCharset') |
| 11097 @DocsEditable | 11097 @DocsEditable() |
| 11098 String acceptCharset; | 11098 String acceptCharset; |
| 11099 | 11099 |
| 11100 @DomName('HTMLFormElement.action') | 11100 @DomName('HTMLFormElement.action') |
| 11101 @DocsEditable | 11101 @DocsEditable() |
| 11102 String action; | 11102 String action; |
| 11103 | 11103 |
| 11104 @DomName('HTMLFormElement.autocomplete') | 11104 @DomName('HTMLFormElement.autocomplete') |
| 11105 @DocsEditable | 11105 @DocsEditable() |
| 11106 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute | 11106 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute |
| 11107 @Experimental | 11107 @Experimental() |
| 11108 String autocomplete; | 11108 String autocomplete; |
| 11109 | 11109 |
| 11110 @DomName('HTMLFormElement.encoding') | 11110 @DomName('HTMLFormElement.encoding') |
| 11111 @DocsEditable | 11111 @DocsEditable() |
| 11112 String encoding; | 11112 String encoding; |
| 11113 | 11113 |
| 11114 @DomName('HTMLFormElement.enctype') | 11114 @DomName('HTMLFormElement.enctype') |
| 11115 @DocsEditable | 11115 @DocsEditable() |
| 11116 String enctype; | 11116 String enctype; |
| 11117 | 11117 |
| 11118 @DomName('HTMLFormElement.length') | 11118 @DomName('HTMLFormElement.length') |
| 11119 @DocsEditable | 11119 @DocsEditable() |
| 11120 final int length; | 11120 final int length; |
| 11121 | 11121 |
| 11122 @DomName('HTMLFormElement.method') | 11122 @DomName('HTMLFormElement.method') |
| 11123 @DocsEditable | 11123 @DocsEditable() |
| 11124 String method; | 11124 String method; |
| 11125 | 11125 |
| 11126 @DomName('HTMLFormElement.name') | 11126 @DomName('HTMLFormElement.name') |
| 11127 @DocsEditable | 11127 @DocsEditable() |
| 11128 String name; | 11128 String name; |
| 11129 | 11129 |
| 11130 @DomName('HTMLFormElement.noValidate') | 11130 @DomName('HTMLFormElement.noValidate') |
| 11131 @DocsEditable | 11131 @DocsEditable() |
| 11132 bool noValidate; | 11132 bool noValidate; |
| 11133 | 11133 |
| 11134 @DomName('HTMLFormElement.target') | 11134 @DomName('HTMLFormElement.target') |
| 11135 @DocsEditable | 11135 @DocsEditable() |
| 11136 String target; | 11136 String target; |
| 11137 | 11137 |
| 11138 @DomName('HTMLFormElement.__getter__') | 11138 @DomName('HTMLFormElement.__getter__') |
| 11139 @DocsEditable | 11139 @DocsEditable() |
| 11140 Node __getter__(int index) native; | 11140 Node __getter__(int index) native; |
| 11141 | 11141 |
| 11142 @DomName('HTMLFormElement.checkValidity') | 11142 @DomName('HTMLFormElement.checkValidity') |
| 11143 @DocsEditable | 11143 @DocsEditable() |
| 11144 bool checkValidity() native; | 11144 bool checkValidity() native; |
| 11145 | 11145 |
| 11146 @DomName('HTMLFormElement.requestAutocomplete') | 11146 @DomName('HTMLFormElement.requestAutocomplete') |
| 11147 @DocsEditable | 11147 @DocsEditable() |
| 11148 // http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-October/037711.htm
l | 11148 // http://lists.whatwg.org/htdig.cgi/whatwg-whatwg.org/2012-October/037711.htm
l |
| 11149 @Experimental | 11149 @Experimental() |
| 11150 void requestAutocomplete() native; | 11150 void requestAutocomplete() native; |
| 11151 | 11151 |
| 11152 @DomName('HTMLFormElement.reset') | 11152 @DomName('HTMLFormElement.reset') |
| 11153 @DocsEditable | 11153 @DocsEditable() |
| 11154 void reset() native; | 11154 void reset() native; |
| 11155 | 11155 |
| 11156 @DomName('HTMLFormElement.submit') | 11156 @DomName('HTMLFormElement.submit') |
| 11157 @DocsEditable | 11157 @DocsEditable() |
| 11158 void submit() native; | 11158 void submit() native; |
| 11159 | 11159 |
| 11160 @DomName('HTMLFormElement.onautocomplete') | 11160 @DomName('HTMLFormElement.onautocomplete') |
| 11161 @DocsEditable | 11161 @DocsEditable() |
| 11162 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute | 11162 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute |
| 11163 @Experimental | 11163 @Experimental() |
| 11164 Stream<Event> get onAutocomplete => autocompleteEvent.forTarget(this); | 11164 Stream<Event> get onAutocomplete => autocompleteEvent.forTarget(this); |
| 11165 | 11165 |
| 11166 @DomName('HTMLFormElement.onautocompleteerror') | 11166 @DomName('HTMLFormElement.onautocompleteerror') |
| 11167 @DocsEditable | 11167 @DocsEditable() |
| 11168 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute | 11168 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#autofilling-form-controls:-the-autocomplete-attribute |
| 11169 @Experimental | 11169 @Experimental() |
| 11170 Stream<AutocompleteErrorEvent> get onAutocompleteError => autocompleteErrorEve
nt.forTarget(this); | 11170 Stream<AutocompleteErrorEvent> get onAutocompleteError => autocompleteErrorEve
nt.forTarget(this); |
| 11171 } | 11171 } |
| 11172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11172 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11173 // for details. All rights reserved. Use of this source code is governed by a | 11173 // for details. All rights reserved. Use of this source code is governed by a |
| 11174 // BSD-style license that can be found in the LICENSE file. | 11174 // BSD-style license that can be found in the LICENSE file. |
| 11175 | 11175 |
| 11176 | 11176 |
| 11177 @DocsEditable | 11177 @DocsEditable() |
| 11178 @DomName('Gamepad') | 11178 @DomName('Gamepad') |
| 11179 // https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#gamepad-interfac
e | 11179 // https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#gamepad-interfac
e |
| 11180 @Experimental | 11180 @Experimental() |
| 11181 class Gamepad extends Interceptor native "Gamepad" { | 11181 class Gamepad extends Interceptor native "Gamepad" { |
| 11182 | 11182 |
| 11183 @DomName('Gamepad.axes') | 11183 @DomName('Gamepad.axes') |
| 11184 @DocsEditable | 11184 @DocsEditable() |
| 11185 final List<num> axes; | 11185 final List<num> axes; |
| 11186 | 11186 |
| 11187 @DomName('Gamepad.buttons') | 11187 @DomName('Gamepad.buttons') |
| 11188 @DocsEditable | 11188 @DocsEditable() |
| 11189 final List<num> buttons; | 11189 final List<num> buttons; |
| 11190 | 11190 |
| 11191 @DomName('Gamepad.id') | 11191 @DomName('Gamepad.id') |
| 11192 @DocsEditable | 11192 @DocsEditable() |
| 11193 final String id; | 11193 final String id; |
| 11194 | 11194 |
| 11195 @DomName('Gamepad.index') | 11195 @DomName('Gamepad.index') |
| 11196 @DocsEditable | 11196 @DocsEditable() |
| 11197 final int index; | 11197 final int index; |
| 11198 | 11198 |
| 11199 @DomName('Gamepad.timestamp') | 11199 @DomName('Gamepad.timestamp') |
| 11200 @DocsEditable | 11200 @DocsEditable() |
| 11201 final int timestamp; | 11201 final int timestamp; |
| 11202 } | 11202 } |
| 11203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11203 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11204 // for details. All rights reserved. Use of this source code is governed by a | 11204 // for details. All rights reserved. Use of this source code is governed by a |
| 11205 // BSD-style license that can be found in the LICENSE file. | 11205 // BSD-style license that can be found in the LICENSE file. |
| 11206 | 11206 |
| 11207 | 11207 |
| 11208 @DocsEditable | 11208 @DocsEditable() |
| 11209 @DomName('Geolocation') | 11209 @DomName('Geolocation') |
| 11210 @Unstable | 11210 @Unstable() |
| 11211 class Geolocation extends Interceptor native "Geolocation" { | 11211 class Geolocation extends Interceptor native "Geolocation" { |
| 11212 | 11212 |
| 11213 @DomName('Geolocation.getCurrentPosition') | 11213 @DomName('Geolocation.getCurrentPosition') |
| 11214 Future<Geoposition> getCurrentPosition({bool enableHighAccuracy, | 11214 Future<Geoposition> getCurrentPosition({bool enableHighAccuracy, |
| 11215 Duration timeout, Duration maximumAge}) { | 11215 Duration timeout, Duration maximumAge}) { |
| 11216 var options = {}; | 11216 var options = {}; |
| 11217 if (enableHighAccuracy != null) { | 11217 if (enableHighAccuracy != null) { |
| 11218 options['enableHighAccuracy'] = enableHighAccuracy; | 11218 options['enableHighAccuracy'] = enableHighAccuracy; |
| 11219 } | 11219 } |
| 11220 if (timeout != null) { | 11220 if (timeout != null) { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 11282 if (domPosition is Geoposition) { | 11282 if (domPosition is Geoposition) { |
| 11283 return domPosition; | 11283 return domPosition; |
| 11284 } | 11284 } |
| 11285 } catch(e) {} | 11285 } catch(e) {} |
| 11286 return new _GeopositionWrapper(domPosition); | 11286 return new _GeopositionWrapper(domPosition); |
| 11287 } | 11287 } |
| 11288 | 11288 |
| 11289 | 11289 |
| 11290 @JSName('clearWatch') | 11290 @JSName('clearWatch') |
| 11291 @DomName('Geolocation.clearWatch') | 11291 @DomName('Geolocation.clearWatch') |
| 11292 @DocsEditable | 11292 @DocsEditable() |
| 11293 void $dom_clearWatch(int watchID) native; | 11293 void $dom_clearWatch(int watchID) native; |
| 11294 | 11294 |
| 11295 @JSName('getCurrentPosition') | 11295 @JSName('getCurrentPosition') |
| 11296 @DomName('Geolocation.getCurrentPosition') | 11296 @DomName('Geolocation.getCurrentPosition') |
| 11297 @DocsEditable | 11297 @DocsEditable() |
| 11298 void $dom_getCurrentPosition(_PositionCallback successCallback, [_PositionErro
rCallback errorCallback, Object options]) native; | 11298 void $dom_getCurrentPosition(_PositionCallback successCallback, [_PositionErro
rCallback errorCallback, Object options]) native; |
| 11299 | 11299 |
| 11300 @JSName('watchPosition') | 11300 @JSName('watchPosition') |
| 11301 @DomName('Geolocation.watchPosition') | 11301 @DomName('Geolocation.watchPosition') |
| 11302 @DocsEditable | 11302 @DocsEditable() |
| 11303 int $dom_watchPosition(_PositionCallback successCallback, [_PositionErrorCallb
ack errorCallback, Object options]) native; | 11303 int $dom_watchPosition(_PositionCallback successCallback, [_PositionErrorCallb
ack errorCallback, Object options]) native; |
| 11304 } | 11304 } |
| 11305 | 11305 |
| 11306 /** | 11306 /** |
| 11307 * Wrapper for Firefox- it returns an object which we cannot map correctly. | 11307 * Wrapper for Firefox- it returns an object which we cannot map correctly. |
| 11308 * Basically Firefox was returning a [xpconnect wrapped nsIDOMGeoPosition] but | 11308 * Basically Firefox was returning a [xpconnect wrapped nsIDOMGeoPosition] but |
| 11309 * which has further oddities. | 11309 * which has further oddities. |
| 11310 */ | 11310 */ |
| 11311 class _GeopositionWrapper implements Geoposition { | 11311 class _GeopositionWrapper implements Geoposition { |
| 11312 var _ptr; | 11312 var _ptr; |
| 11313 _GeopositionWrapper(this._ptr); | 11313 _GeopositionWrapper(this._ptr); |
| 11314 | 11314 |
| 11315 Coordinates get coords => JS('Coordinates', '#.coords', _ptr); | 11315 Coordinates get coords => JS('Coordinates', '#.coords', _ptr); |
| 11316 int get timestamp => JS('int', '#.timestamp', _ptr); | 11316 int get timestamp => JS('int', '#.timestamp', _ptr); |
| 11317 } | 11317 } |
| 11318 | 11318 |
| 11319 | 11319 |
| 11320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11320 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11321 // for details. All rights reserved. Use of this source code is governed by a | 11321 // for details. All rights reserved. Use of this source code is governed by a |
| 11322 // BSD-style license that can be found in the LICENSE file. | 11322 // BSD-style license that can be found in the LICENSE file. |
| 11323 | 11323 |
| 11324 | 11324 |
| 11325 @DocsEditable | 11325 @DocsEditable() |
| 11326 @DomName('Geoposition') | 11326 @DomName('Geoposition') |
| 11327 @Unstable | 11327 @Unstable() |
| 11328 class Geoposition extends Interceptor native "Geoposition" { | 11328 class Geoposition extends Interceptor native "Geoposition" { |
| 11329 | 11329 |
| 11330 @DomName('Geoposition.coords') | 11330 @DomName('Geoposition.coords') |
| 11331 @DocsEditable | 11331 @DocsEditable() |
| 11332 final Coordinates coords; | 11332 final Coordinates coords; |
| 11333 | 11333 |
| 11334 @DomName('Geoposition.timestamp') | 11334 @DomName('Geoposition.timestamp') |
| 11335 @DocsEditable | 11335 @DocsEditable() |
| 11336 final int timestamp; | 11336 final int timestamp; |
| 11337 } | 11337 } |
| 11338 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11338 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11339 // for details. All rights reserved. Use of this source code is governed by a | 11339 // for details. All rights reserved. Use of this source code is governed by a |
| 11340 // BSD-style license that can be found in the LICENSE file. | 11340 // BSD-style license that can be found in the LICENSE file. |
| 11341 | 11341 |
| 11342 | 11342 |
| 11343 @DocsEditable | 11343 @DocsEditable() |
| 11344 /** | 11344 /** |
| 11345 * An `<hr>` tag. | 11345 * An `<hr>` tag. |
| 11346 */ | 11346 */ |
| 11347 @DomName('HTMLHRElement') | 11347 @DomName('HTMLHRElement') |
| 11348 class HRElement extends _HTMLElement native "HTMLHRElement" { | 11348 class HRElement extends _HTMLElement native "HTMLHRElement" { |
| 11349 // To suppress missing implicit constructor warnings. | 11349 // To suppress missing implicit constructor warnings. |
| 11350 factory HRElement._() { throw new UnsupportedError("Not supported"); } | 11350 factory HRElement._() { throw new UnsupportedError("Not supported"); } |
| 11351 | 11351 |
| 11352 @DomName('HTMLHRElement.HTMLHRElement') | 11352 @DomName('HTMLHRElement.HTMLHRElement') |
| 11353 @DocsEditable | 11353 @DocsEditable() |
| 11354 factory HRElement() => document.$dom_createElement("hr"); | 11354 factory HRElement() => document.$dom_createElement("hr"); |
| 11355 } | 11355 } |
| 11356 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 11356 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 11357 // for details. All rights reserved. Use of this source code is governed by a | 11357 // for details. All rights reserved. Use of this source code is governed by a |
| 11358 // BSD-style license that can be found in the LICENSE file. | 11358 // BSD-style license that can be found in the LICENSE file. |
| 11359 | 11359 |
| 11360 // WARNING: Do not edit - generated code. | 11360 // WARNING: Do not edit - generated code. |
| 11361 | 11361 |
| 11362 @DomName('HashChangeEvent') | 11362 @DomName('HashChangeEvent') |
| 11363 @SupportedBrowser(SupportedBrowser.CHROME) | 11363 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11364 @SupportedBrowser(SupportedBrowser.FIREFOX) | 11364 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 11365 @SupportedBrowser(SupportedBrowser.SAFARI) | 11365 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11366 @Unstable | 11366 @Unstable() |
| 11367 class HashChangeEvent extends Event native "HashChangeEvent" { | 11367 class HashChangeEvent extends Event native "HashChangeEvent" { |
| 11368 factory HashChangeEvent(String type, | 11368 factory HashChangeEvent(String type, |
| 11369 {bool canBubble: true, bool cancelable: true, String oldUrl, | 11369 {bool canBubble: true, bool cancelable: true, String oldUrl, |
| 11370 String newUrl}) { | 11370 String newUrl}) { |
| 11371 var event = document.$dom_createEvent("HashChangeEvent"); | 11371 var event = document.$dom_createEvent("HashChangeEvent"); |
| 11372 event.$dom_initHashChangeEvent(type, canBubble, cancelable, oldUrl, newUrl); | 11372 event.$dom_initHashChangeEvent(type, canBubble, cancelable, oldUrl, newUrl); |
| 11373 return event; | 11373 return event; |
| 11374 } | 11374 } |
| 11375 // To suppress missing implicit constructor warnings. | 11375 // To suppress missing implicit constructor warnings. |
| 11376 factory HashChangeEvent._() { throw new UnsupportedError("Not supported"); } | 11376 factory HashChangeEvent._() { throw new UnsupportedError("Not supported"); } |
| 11377 | 11377 |
| 11378 /// Checks if this type is supported on the current platform. | 11378 /// Checks if this type is supported on the current platform. |
| 11379 static bool get supported => Device.isEventTypeSupported('HashChangeEvent'); | 11379 static bool get supported => Device.isEventTypeSupported('HashChangeEvent'); |
| 11380 | 11380 |
| 11381 @JSName('newURL') | 11381 @JSName('newURL') |
| 11382 @DomName('HashChangeEvent.newURL') | 11382 @DomName('HashChangeEvent.newURL') |
| 11383 @DocsEditable | 11383 @DocsEditable() |
| 11384 final String newUrl; | 11384 final String newUrl; |
| 11385 | 11385 |
| 11386 @JSName('oldURL') | 11386 @JSName('oldURL') |
| 11387 @DomName('HashChangeEvent.oldURL') | 11387 @DomName('HashChangeEvent.oldURL') |
| 11388 @DocsEditable | 11388 @DocsEditable() |
| 11389 final String oldUrl; | 11389 final String oldUrl; |
| 11390 | 11390 |
| 11391 @JSName('initHashChangeEvent') | 11391 @JSName('initHashChangeEvent') |
| 11392 @DomName('HashChangeEvent.initHashChangeEvent') | 11392 @DomName('HashChangeEvent.initHashChangeEvent') |
| 11393 @DocsEditable | 11393 @DocsEditable() |
| 11394 void $dom_initHashChangeEvent(String type, bool canBubble, bool cancelable, St
ring oldURL, String newURL) native; | 11394 void $dom_initHashChangeEvent(String type, bool canBubble, bool cancelable, St
ring oldURL, String newURL) native; |
| 11395 | 11395 |
| 11396 } | 11396 } |
| 11397 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11397 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11398 // for details. All rights reserved. Use of this source code is governed by a | 11398 // for details. All rights reserved. Use of this source code is governed by a |
| 11399 // BSD-style license that can be found in the LICENSE file. | 11399 // BSD-style license that can be found in the LICENSE file. |
| 11400 | 11400 |
| 11401 | 11401 |
| 11402 @DocsEditable | 11402 @DocsEditable() |
| 11403 @DomName('HTMLHeadElement') | 11403 @DomName('HTMLHeadElement') |
| 11404 class HeadElement extends _HTMLElement native "HTMLHeadElement" { | 11404 class HeadElement extends _HTMLElement native "HTMLHeadElement" { |
| 11405 // To suppress missing implicit constructor warnings. | 11405 // To suppress missing implicit constructor warnings. |
| 11406 factory HeadElement._() { throw new UnsupportedError("Not supported"); } | 11406 factory HeadElement._() { throw new UnsupportedError("Not supported"); } |
| 11407 | 11407 |
| 11408 @DomName('HTMLHeadElement.HTMLHeadElement') | 11408 @DomName('HTMLHeadElement.HTMLHeadElement') |
| 11409 @DocsEditable | 11409 @DocsEditable() |
| 11410 factory HeadElement() => document.$dom_createElement("head"); | 11410 factory HeadElement() => document.$dom_createElement("head"); |
| 11411 } | 11411 } |
| 11412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11412 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11413 // for details. All rights reserved. Use of this source code is governed by a | 11413 // for details. All rights reserved. Use of this source code is governed by a |
| 11414 // BSD-style license that can be found in the LICENSE file. | 11414 // BSD-style license that can be found in the LICENSE file. |
| 11415 | 11415 |
| 11416 | 11416 |
| 11417 @DocsEditable | 11417 @DocsEditable() |
| 11418 @DomName('HTMLHeadingElement') | 11418 @DomName('HTMLHeadingElement') |
| 11419 class HeadingElement extends _HTMLElement native "HTMLHeadingElement" { | 11419 class HeadingElement extends _HTMLElement native "HTMLHeadingElement" { |
| 11420 // To suppress missing implicit constructor warnings. | 11420 // To suppress missing implicit constructor warnings. |
| 11421 factory HeadingElement._() { throw new UnsupportedError("Not supported"); } | 11421 factory HeadingElement._() { throw new UnsupportedError("Not supported"); } |
| 11422 | 11422 |
| 11423 @DomName('HTMLHeadingElement.HTMLHeadingElement') | 11423 @DomName('HTMLHeadingElement.HTMLHeadingElement') |
| 11424 @DocsEditable | 11424 @DocsEditable() |
| 11425 factory HeadingElement.h1() => document.$dom_createElement("h1"); | 11425 factory HeadingElement.h1() => document.$dom_createElement("h1"); |
| 11426 | 11426 |
| 11427 @DomName('HTMLHeadingElement.HTMLHeadingElement') | 11427 @DomName('HTMLHeadingElement.HTMLHeadingElement') |
| 11428 @DocsEditable | 11428 @DocsEditable() |
| 11429 factory HeadingElement.h2() => document.$dom_createElement("h2"); | 11429 factory HeadingElement.h2() => document.$dom_createElement("h2"); |
| 11430 | 11430 |
| 11431 @DomName('HTMLHeadingElement.HTMLHeadingElement') | 11431 @DomName('HTMLHeadingElement.HTMLHeadingElement') |
| 11432 @DocsEditable | 11432 @DocsEditable() |
| 11433 factory HeadingElement.h3() => document.$dom_createElement("h3"); | 11433 factory HeadingElement.h3() => document.$dom_createElement("h3"); |
| 11434 | 11434 |
| 11435 @DomName('HTMLHeadingElement.HTMLHeadingElement') | 11435 @DomName('HTMLHeadingElement.HTMLHeadingElement') |
| 11436 @DocsEditable | 11436 @DocsEditable() |
| 11437 factory HeadingElement.h4() => document.$dom_createElement("h4"); | 11437 factory HeadingElement.h4() => document.$dom_createElement("h4"); |
| 11438 | 11438 |
| 11439 @DomName('HTMLHeadingElement.HTMLHeadingElement') | 11439 @DomName('HTMLHeadingElement.HTMLHeadingElement') |
| 11440 @DocsEditable | 11440 @DocsEditable() |
| 11441 factory HeadingElement.h5() => document.$dom_createElement("h5"); | 11441 factory HeadingElement.h5() => document.$dom_createElement("h5"); |
| 11442 | 11442 |
| 11443 @DomName('HTMLHeadingElement.HTMLHeadingElement') | 11443 @DomName('HTMLHeadingElement.HTMLHeadingElement') |
| 11444 @DocsEditable | 11444 @DocsEditable() |
| 11445 factory HeadingElement.h6() => document.$dom_createElement("h6"); | 11445 factory HeadingElement.h6() => document.$dom_createElement("h6"); |
| 11446 } | 11446 } |
| 11447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11447 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11448 // for details. All rights reserved. Use of this source code is governed by a | 11448 // for details. All rights reserved. Use of this source code is governed by a |
| 11449 // BSD-style license that can be found in the LICENSE file. | 11449 // BSD-style license that can be found in the LICENSE file. |
| 11450 | 11450 |
| 11451 | 11451 |
| 11452 @DomName('History') | 11452 @DomName('History') |
| 11453 class History extends Interceptor implements HistoryBase native "History" { | 11453 class History extends Interceptor implements HistoryBase native "History" { |
| 11454 | 11454 |
| 11455 /** | 11455 /** |
| 11456 * Checks if the State APIs are supported on the current platform. | 11456 * Checks if the State APIs are supported on the current platform. |
| 11457 * | 11457 * |
| 11458 * See also: | 11458 * See also: |
| 11459 * | 11459 * |
| 11460 * * [pushState] | 11460 * * [pushState] |
| 11461 * * [replaceState] | 11461 * * [replaceState] |
| 11462 * * [state] | 11462 * * [state] |
| 11463 */ | 11463 */ |
| 11464 static bool get supportsState => JS('bool', '!!window.history.pushState'); | 11464 static bool get supportsState => JS('bool', '!!window.history.pushState'); |
| 11465 | 11465 |
| 11466 @DomName('History.length') | 11466 @DomName('History.length') |
| 11467 @DocsEditable | 11467 @DocsEditable() |
| 11468 final int length; | 11468 final int length; |
| 11469 | 11469 |
| 11470 dynamic get state => convertNativeToDart_SerializedScriptValue(this._get_state
); | 11470 dynamic get state => convertNativeToDart_SerializedScriptValue(this._get_state
); |
| 11471 @JSName('state') | 11471 @JSName('state') |
| 11472 @DomName('History.state') | 11472 @DomName('History.state') |
| 11473 @DocsEditable | 11473 @DocsEditable() |
| 11474 @annotation_Creates_SerializedScriptValue | 11474 @annotation_Creates_SerializedScriptValue |
| 11475 @annotation_Returns_SerializedScriptValue | 11475 @annotation_Returns_SerializedScriptValue |
| 11476 final dynamic _get_state; | 11476 final dynamic _get_state; |
| 11477 | 11477 |
| 11478 @DomName('History.back') | 11478 @DomName('History.back') |
| 11479 @DocsEditable | 11479 @DocsEditable() |
| 11480 void back() native; | 11480 void back() native; |
| 11481 | 11481 |
| 11482 @DomName('History.forward') | 11482 @DomName('History.forward') |
| 11483 @DocsEditable | 11483 @DocsEditable() |
| 11484 void forward() native; | 11484 void forward() native; |
| 11485 | 11485 |
| 11486 @DomName('History.go') | 11486 @DomName('History.go') |
| 11487 @DocsEditable | 11487 @DocsEditable() |
| 11488 void go(int distance) native; | 11488 void go(int distance) native; |
| 11489 | 11489 |
| 11490 @DomName('History.pushState') | 11490 @DomName('History.pushState') |
| 11491 @DocsEditable | 11491 @DocsEditable() |
| 11492 @SupportedBrowser(SupportedBrowser.CHROME) | 11492 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11493 @SupportedBrowser(SupportedBrowser.FIREFOX) | 11493 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 11494 @SupportedBrowser(SupportedBrowser.IE, '10') | 11494 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 11495 @SupportedBrowser(SupportedBrowser.SAFARI) | 11495 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11496 void pushState(Object data, String title, [String url]) native; | 11496 void pushState(Object data, String title, [String url]) native; |
| 11497 | 11497 |
| 11498 @DomName('History.replaceState') | 11498 @DomName('History.replaceState') |
| 11499 @DocsEditable | 11499 @DocsEditable() |
| 11500 @SupportedBrowser(SupportedBrowser.CHROME) | 11500 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11501 @SupportedBrowser(SupportedBrowser.FIREFOX) | 11501 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 11502 @SupportedBrowser(SupportedBrowser.IE, '10') | 11502 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 11503 @SupportedBrowser(SupportedBrowser.SAFARI) | 11503 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11504 void replaceState(Object data, String title, [String url]) native; | 11504 void replaceState(Object data, String title, [String url]) native; |
| 11505 } | 11505 } |
| 11506 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11506 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11507 // for details. All rights reserved. Use of this source code is governed by a | 11507 // for details. All rights reserved. Use of this source code is governed by a |
| 11508 // BSD-style license that can be found in the LICENSE file. | 11508 // BSD-style license that can be found in the LICENSE file. |
| 11509 | 11509 |
| 11510 | 11510 |
| 11511 @DocsEditable | 11511 @DocsEditable() |
| 11512 @DomName('HTMLAllCollection') | 11512 @DomName('HTMLAllCollection') |
| 11513 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#dom
-document-all | 11513 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#dom
-document-all |
| 11514 @deprecated // deprecated | 11514 @deprecated // deprecated |
| 11515 class HtmlAllCollection extends Interceptor with ListMixin<Node>, ImmutableListM
ixin<Node> implements JavaScriptIndexingBehavior, List<Node> native "HTMLAllColl
ection" { | 11515 class HtmlAllCollection extends Interceptor with ListMixin<Node>, ImmutableListM
ixin<Node> implements JavaScriptIndexingBehavior, List<Node> native "HTMLAllColl
ection" { |
| 11516 | 11516 |
| 11517 @DomName('HTMLAllCollection.length') | 11517 @DomName('HTMLAllCollection.length') |
| 11518 @DocsEditable | 11518 @DocsEditable() |
| 11519 int get length => JS("int", "#.length", this); | 11519 int get length => JS("int", "#.length", this); |
| 11520 | 11520 |
| 11521 Node operator[](int index) { | 11521 Node operator[](int index) { |
| 11522 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 11522 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 11523 index, index, length)) | 11523 index, index, length)) |
| 11524 throw new RangeError.range(index, 0, length); | 11524 throw new RangeError.range(index, 0, length); |
| 11525 return this.item(index); | 11525 return this.item(index); |
| 11526 } | 11526 } |
| 11527 void operator[]=(int index, Node value) { | 11527 void operator[]=(int index, Node value) { |
| 11528 throw new UnsupportedError("Cannot assign element of immutable List."); | 11528 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 11556 return JS('Node', '#[0]', this); | 11556 return JS('Node', '#[0]', this); |
| 11557 } | 11557 } |
| 11558 if (len == 0) throw new StateError("No elements"); | 11558 if (len == 0) throw new StateError("No elements"); |
| 11559 throw new StateError("More than one element"); | 11559 throw new StateError("More than one element"); |
| 11560 } | 11560 } |
| 11561 | 11561 |
| 11562 Node elementAt(int index) => this[index]; | 11562 Node elementAt(int index) => this[index]; |
| 11563 // -- end List<Node> mixins. | 11563 // -- end List<Node> mixins. |
| 11564 | 11564 |
| 11565 @DomName('HTMLAllCollection.__getter__') | 11565 @DomName('HTMLAllCollection.__getter__') |
| 11566 @DocsEditable | 11566 @DocsEditable() |
| 11567 Node __getter__(int index) native; | 11567 Node __getter__(int index) native; |
| 11568 | 11568 |
| 11569 @DomName('HTMLAllCollection.item') | 11569 @DomName('HTMLAllCollection.item') |
| 11570 @DocsEditable | 11570 @DocsEditable() |
| 11571 Node item(int index) native; | 11571 Node item(int index) native; |
| 11572 | 11572 |
| 11573 @DomName('HTMLAllCollection.namedItem') | 11573 @DomName('HTMLAllCollection.namedItem') |
| 11574 @DocsEditable | 11574 @DocsEditable() |
| 11575 Node namedItem(String name) native; | 11575 Node namedItem(String name) native; |
| 11576 | 11576 |
| 11577 @DomName('HTMLAllCollection.tags') | 11577 @DomName('HTMLAllCollection.tags') |
| 11578 @DocsEditable | 11578 @DocsEditable() |
| 11579 @Returns('NodeList') | 11579 @Returns('NodeList') |
| 11580 @Creates('NodeList') | 11580 @Creates('NodeList') |
| 11581 List<Node> tags(String name) native; | 11581 List<Node> tags(String name) native; |
| 11582 } | 11582 } |
| 11583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11583 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11584 // for details. All rights reserved. Use of this source code is governed by a | 11584 // for details. All rights reserved. Use of this source code is governed by a |
| 11585 // BSD-style license that can be found in the LICENSE file. | 11585 // BSD-style license that can be found in the LICENSE file. |
| 11586 | 11586 |
| 11587 | 11587 |
| 11588 @DocsEditable | 11588 @DocsEditable() |
| 11589 @DomName('HTMLCollection') | 11589 @DomName('HTMLCollection') |
| 11590 class HtmlCollection extends Interceptor with ListMixin<Node>, ImmutableListMixi
n<Node> implements JavaScriptIndexingBehavior, List<Node> native "HTMLCollection
" { | 11590 class HtmlCollection extends Interceptor with ListMixin<Node>, ImmutableListMixi
n<Node> implements JavaScriptIndexingBehavior, List<Node> native "HTMLCollection
" { |
| 11591 | 11591 |
| 11592 @DomName('HTMLCollection.length') | 11592 @DomName('HTMLCollection.length') |
| 11593 @DocsEditable | 11593 @DocsEditable() |
| 11594 int get length => JS("int", "#.length", this); | 11594 int get length => JS("int", "#.length", this); |
| 11595 | 11595 |
| 11596 Node operator[](int index) { | 11596 Node operator[](int index) { |
| 11597 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 11597 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 11598 index, index, length)) | 11598 index, index, length)) |
| 11599 throw new RangeError.range(index, 0, length); | 11599 throw new RangeError.range(index, 0, length); |
| 11600 return JS("Node", "#[#]", this, index); | 11600 return JS("Node", "#[#]", this, index); |
| 11601 } | 11601 } |
| 11602 void operator[]=(int index, Node value) { | 11602 void operator[]=(int index, Node value) { |
| 11603 throw new UnsupportedError("Cannot assign element of immutable List."); | 11603 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 11631 return JS('Node', '#[0]', this); | 11631 return JS('Node', '#[0]', this); |
| 11632 } | 11632 } |
| 11633 if (len == 0) throw new StateError("No elements"); | 11633 if (len == 0) throw new StateError("No elements"); |
| 11634 throw new StateError("More than one element"); | 11634 throw new StateError("More than one element"); |
| 11635 } | 11635 } |
| 11636 | 11636 |
| 11637 Node elementAt(int index) => this[index]; | 11637 Node elementAt(int index) => this[index]; |
| 11638 // -- end List<Node> mixins. | 11638 // -- end List<Node> mixins. |
| 11639 | 11639 |
| 11640 @DomName('HTMLCollection.__getter__') | 11640 @DomName('HTMLCollection.__getter__') |
| 11641 @DocsEditable | 11641 @DocsEditable() |
| 11642 Node __getter__(String name) native; | 11642 Node __getter__(String name) native; |
| 11643 | 11643 |
| 11644 @DomName('HTMLCollection.item') | 11644 @DomName('HTMLCollection.item') |
| 11645 @DocsEditable | 11645 @DocsEditable() |
| 11646 Node item(int index) native; | 11646 Node item(int index) native; |
| 11647 | 11647 |
| 11648 @DomName('HTMLCollection.namedItem') | 11648 @DomName('HTMLCollection.namedItem') |
| 11649 @DocsEditable | 11649 @DocsEditable() |
| 11650 Node namedItem(String name) native; | 11650 Node namedItem(String name) native; |
| 11651 } | 11651 } |
| 11652 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11652 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11653 // for details. All rights reserved. Use of this source code is governed by a | 11653 // for details. All rights reserved. Use of this source code is governed by a |
| 11654 // BSD-style license that can be found in the LICENSE file. | 11654 // BSD-style license that can be found in the LICENSE file. |
| 11655 | 11655 |
| 11656 // WARNING: Do not edit - generated code. | 11656 // WARNING: Do not edit - generated code. |
| 11657 | 11657 |
| 11658 | 11658 |
| 11659 @DomName('HTMLDocument') | 11659 @DomName('HTMLDocument') |
| 11660 class HtmlDocument extends Document native "HTMLDocument" { | 11660 class HtmlDocument extends Document native "HTMLDocument" { |
| 11661 // To suppress missing implicit constructor warnings. | 11661 // To suppress missing implicit constructor warnings. |
| 11662 factory HtmlDocument._() { throw new UnsupportedError("Not supported"); } | 11662 factory HtmlDocument._() { throw new UnsupportedError("Not supported"); } |
| 11663 | 11663 |
| 11664 @DomName('HTMLDocument.activeElement') | 11664 @DomName('HTMLDocument.activeElement') |
| 11665 @DocsEditable | 11665 @DocsEditable() |
| 11666 final Element activeElement; | 11666 final Element activeElement; |
| 11667 | 11667 |
| 11668 | 11668 |
| 11669 @DomName('Document.body') | 11669 @DomName('Document.body') |
| 11670 BodyElement body; | 11670 BodyElement body; |
| 11671 | 11671 |
| 11672 @DomName('Document.caretRangeFromPoint') | 11672 @DomName('Document.caretRangeFromPoint') |
| 11673 Range caretRangeFromPoint(int x, int y) { | 11673 Range caretRangeFromPoint(int x, int y) { |
| 11674 return $dom_caretRangeFromPoint(x, y); | 11674 return $dom_caretRangeFromPoint(x, y); |
| 11675 } | 11675 } |
| (...skipping 29 matching lines...) Expand all Loading... |
| 11705 * context.fillStyle = 'red'; | 11705 * context.fillStyle = 'red'; |
| 11706 * context.fillRect(0, 0, 100, 100); | 11706 * context.fillRect(0, 0, 100, 100); |
| 11707 * | 11707 * |
| 11708 * See also: | 11708 * See also: |
| 11709 * | 11709 * |
| 11710 * * [supportsCssCanvasContext] | 11710 * * [supportsCssCanvasContext] |
| 11711 * * [CanvasElement.getContext] | 11711 * * [CanvasElement.getContext] |
| 11712 */ | 11712 */ |
| 11713 @SupportedBrowser(SupportedBrowser.CHROME) | 11713 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11714 @SupportedBrowser(SupportedBrowser.SAFARI) | 11714 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11715 @Experimental | 11715 @Experimental() |
| 11716 @DomName('Document.getCSSCanvasContext') | 11716 @DomName('Document.getCSSCanvasContext') |
| 11717 CanvasRenderingContext getCssCanvasContext(String contextId, String name, | 11717 CanvasRenderingContext getCssCanvasContext(String contextId, String name, |
| 11718 int width, int height) { | 11718 int width, int height) { |
| 11719 return $dom_getCssCanvasContext(contextId, name, width, height); | 11719 return $dom_getCssCanvasContext(contextId, name, width, height); |
| 11720 } | 11720 } |
| 11721 | 11721 |
| 11722 @DomName('Document.head') | 11722 @DomName('Document.head') |
| 11723 HeadElement get head => $dom_head; | 11723 HeadElement get head => $dom_head; |
| 11724 | 11724 |
| 11725 @DomName('Document.lastModified') | 11725 @DomName('Document.lastModified') |
| (...skipping 18 matching lines...) Expand all Loading... |
| 11744 String get title => $dom_title; | 11744 String get title => $dom_title; |
| 11745 | 11745 |
| 11746 @DomName('Document.title') | 11746 @DomName('Document.title') |
| 11747 void set title(String value) { | 11747 void set title(String value) { |
| 11748 $dom_title = value; | 11748 $dom_title = value; |
| 11749 } | 11749 } |
| 11750 | 11750 |
| 11751 @DomName('Document.webkitCancelFullScreen') | 11751 @DomName('Document.webkitCancelFullScreen') |
| 11752 @SupportedBrowser(SupportedBrowser.CHROME) | 11752 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11753 @SupportedBrowser(SupportedBrowser.SAFARI) | 11753 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11754 @Experimental | 11754 @Experimental() |
| 11755 void cancelFullScreen() { | 11755 void cancelFullScreen() { |
| 11756 $dom_webkitCancelFullScreen(); | 11756 $dom_webkitCancelFullScreen(); |
| 11757 } | 11757 } |
| 11758 | 11758 |
| 11759 @DomName('Document.webkitExitFullscreen') | 11759 @DomName('Document.webkitExitFullscreen') |
| 11760 @SupportedBrowser(SupportedBrowser.CHROME) | 11760 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11761 @SupportedBrowser(SupportedBrowser.SAFARI) | 11761 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11762 @Experimental | 11762 @Experimental() |
| 11763 void exitFullscreen() { | 11763 void exitFullscreen() { |
| 11764 $dom_webkitExitFullscreen(); | 11764 $dom_webkitExitFullscreen(); |
| 11765 } | 11765 } |
| 11766 | 11766 |
| 11767 @DomName('Document.webkitExitPointerLock') | 11767 @DomName('Document.webkitExitPointerLock') |
| 11768 @SupportedBrowser(SupportedBrowser.CHROME) | 11768 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11769 @SupportedBrowser(SupportedBrowser.SAFARI) | 11769 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11770 @Experimental | 11770 @Experimental() |
| 11771 void exitPointerLock() { | 11771 void exitPointerLock() { |
| 11772 $dom_webkitExitPointerLock(); | 11772 $dom_webkitExitPointerLock(); |
| 11773 } | 11773 } |
| 11774 | 11774 |
| 11775 @DomName('Document.webkitFullscreenElement') | 11775 @DomName('Document.webkitFullscreenElement') |
| 11776 @SupportedBrowser(SupportedBrowser.CHROME) | 11776 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11777 @SupportedBrowser(SupportedBrowser.SAFARI) | 11777 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11778 @Experimental | 11778 @Experimental() |
| 11779 Element get fullscreenElement => $dom_webkitFullscreenElement; | 11779 Element get fullscreenElement => $dom_webkitFullscreenElement; |
| 11780 | 11780 |
| 11781 @DomName('Document.webkitFullscreenEnabled') | 11781 @DomName('Document.webkitFullscreenEnabled') |
| 11782 @SupportedBrowser(SupportedBrowser.CHROME) | 11782 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11783 @SupportedBrowser(SupportedBrowser.SAFARI) | 11783 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11784 @Experimental | 11784 @Experimental() |
| 11785 bool get fullscreenEnabled => $dom_webkitFullscreenEnabled; | 11785 bool get fullscreenEnabled => $dom_webkitFullscreenEnabled; |
| 11786 | 11786 |
| 11787 @DomName('Document.webkitHidden') | 11787 @DomName('Document.webkitHidden') |
| 11788 @SupportedBrowser(SupportedBrowser.CHROME) | 11788 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11789 @SupportedBrowser(SupportedBrowser.SAFARI) | 11789 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11790 @Experimental | 11790 @Experimental() |
| 11791 bool get hidden => $dom_webkitHidden; | 11791 bool get hidden => $dom_webkitHidden; |
| 11792 | 11792 |
| 11793 @DomName('Document.webkitIsFullScreen') | 11793 @DomName('Document.webkitIsFullScreen') |
| 11794 @SupportedBrowser(SupportedBrowser.CHROME) | 11794 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11795 @SupportedBrowser(SupportedBrowser.SAFARI) | 11795 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11796 @Experimental | 11796 @Experimental() |
| 11797 bool get isFullScreen => $dom_webkitIsFullScreen; | 11797 bool get isFullScreen => $dom_webkitIsFullScreen; |
| 11798 | 11798 |
| 11799 @DomName('Document.webkitPointerLockElement') | 11799 @DomName('Document.webkitPointerLockElement') |
| 11800 @SupportedBrowser(SupportedBrowser.CHROME) | 11800 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11801 @SupportedBrowser(SupportedBrowser.SAFARI) | 11801 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11802 @Experimental | 11802 @Experimental() |
| 11803 Element get pointerLockElement => | 11803 Element get pointerLockElement => |
| 11804 $dom_webkitPointerLockElement; | 11804 $dom_webkitPointerLockElement; |
| 11805 | 11805 |
| 11806 @DomName('Document.webkitVisibilityState') | 11806 @DomName('Document.webkitVisibilityState') |
| 11807 @SupportedBrowser(SupportedBrowser.CHROME) | 11807 @SupportedBrowser(SupportedBrowser.CHROME) |
| 11808 @SupportedBrowser(SupportedBrowser.SAFARI) | 11808 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 11809 @Experimental | 11809 @Experimental() |
| 11810 String get visibilityState => $dom_webkitVisibilityState; | 11810 String get visibilityState => $dom_webkitVisibilityState; |
| 11811 | 11811 |
| 11812 | 11812 |
| 11813 @Creates('Null') // Set from Dart code; does not instantiate a native type. | 11813 @Creates('Null') // Set from Dart code; does not instantiate a native type. |
| 11814 // Note: used to polyfill <template> | 11814 // Note: used to polyfill <template> |
| 11815 Document _templateContentsOwner; | 11815 Document _templateContentsOwner; |
| 11816 } | 11816 } |
| 11817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11817 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11818 // for details. All rights reserved. Use of this source code is governed by a | 11818 // for details. All rights reserved. Use of this source code is governed by a |
| 11819 // BSD-style license that can be found in the LICENSE file. | 11819 // BSD-style license that can be found in the LICENSE file. |
| 11820 | 11820 |
| 11821 | 11821 |
| 11822 @DocsEditable | 11822 @DocsEditable() |
| 11823 @DomName('HTMLHtmlElement') | 11823 @DomName('HTMLHtmlElement') |
| 11824 class HtmlElement extends _HTMLElement native "HTMLHtmlElement" { | 11824 class HtmlElement extends _HTMLElement native "HTMLHtmlElement" { |
| 11825 // To suppress missing implicit constructor warnings. | 11825 // To suppress missing implicit constructor warnings. |
| 11826 factory HtmlElement._() { throw new UnsupportedError("Not supported"); } | 11826 factory HtmlElement._() { throw new UnsupportedError("Not supported"); } |
| 11827 | 11827 |
| 11828 @DomName('HTMLHtmlElement.HTMLHtmlElement') | 11828 @DomName('HTMLHtmlElement.HTMLHtmlElement') |
| 11829 @DocsEditable | 11829 @DocsEditable() |
| 11830 factory HtmlElement() => document.$dom_createElement("html"); | 11830 factory HtmlElement() => document.$dom_createElement("html"); |
| 11831 } | 11831 } |
| 11832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11833 // for details. All rights reserved. Use of this source code is governed by a | 11833 // for details. All rights reserved. Use of this source code is governed by a |
| 11834 // BSD-style license that can be found in the LICENSE file. | 11834 // BSD-style license that can be found in the LICENSE file. |
| 11835 | 11835 |
| 11836 | 11836 |
| 11837 @DocsEditable | 11837 @DocsEditable() |
| 11838 @DomName('HTMLFormControlsCollection') | 11838 @DomName('HTMLFormControlsCollection') |
| 11839 class HtmlFormControlsCollection extends HtmlCollection native "HTMLFormControls
Collection" { | 11839 class HtmlFormControlsCollection extends HtmlCollection native "HTMLFormControls
Collection" { |
| 11840 // To suppress missing implicit constructor warnings. | 11840 // To suppress missing implicit constructor warnings. |
| 11841 factory HtmlFormControlsCollection._() { throw new UnsupportedError("Not suppo
rted"); } | 11841 factory HtmlFormControlsCollection._() { throw new UnsupportedError("Not suppo
rted"); } |
| 11842 | 11842 |
| 11843 @DomName('HTMLFormControlsCollection.__getter__') | 11843 @DomName('HTMLFormControlsCollection.__getter__') |
| 11844 @DocsEditable | 11844 @DocsEditable() |
| 11845 Node __getter__(int index) native; | 11845 Node __getter__(int index) native; |
| 11846 | 11846 |
| 11847 @DomName('HTMLFormControlsCollection.namedItem') | 11847 @DomName('HTMLFormControlsCollection.namedItem') |
| 11848 @DocsEditable | 11848 @DocsEditable() |
| 11849 Node namedItem(String name) native; | 11849 Node namedItem(String name) native; |
| 11850 } | 11850 } |
| 11851 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11851 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11852 // for details. All rights reserved. Use of this source code is governed by a | 11852 // for details. All rights reserved. Use of this source code is governed by a |
| 11853 // BSD-style license that can be found in the LICENSE file. | 11853 // BSD-style license that can be found in the LICENSE file. |
| 11854 | 11854 |
| 11855 | 11855 |
| 11856 @DocsEditable | 11856 @DocsEditable() |
| 11857 @DomName('HTMLOptionsCollection') | 11857 @DomName('HTMLOptionsCollection') |
| 11858 class HtmlOptionsCollection extends HtmlCollection native "HTMLOptionsCollection
" { | 11858 class HtmlOptionsCollection extends HtmlCollection native "HTMLOptionsCollection
" { |
| 11859 // To suppress missing implicit constructor warnings. | 11859 // To suppress missing implicit constructor warnings. |
| 11860 factory HtmlOptionsCollection._() { throw new UnsupportedError("Not supported"
); } | 11860 factory HtmlOptionsCollection._() { throw new UnsupportedError("Not supported"
); } |
| 11861 } | 11861 } |
| 11862 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 11862 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 11863 // for details. All rights reserved. Use of this source code is governed by a | 11863 // for details. All rights reserved. Use of this source code is governed by a |
| 11864 // BSD-style license that can be found in the LICENSE file. | 11864 // BSD-style license that can be found in the LICENSE file. |
| 11865 | 11865 |
| 11866 | 11866 |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 12029 */ | 12029 */ |
| 12030 static bool get supportsOverrideMimeType { | 12030 static bool get supportsOverrideMimeType { |
| 12031 var xhr = new HttpRequest(); | 12031 var xhr = new HttpRequest(); |
| 12032 return JS('bool', '("overrideMimeType" in #)', xhr); | 12032 return JS('bool', '("overrideMimeType" in #)', xhr); |
| 12033 } | 12033 } |
| 12034 | 12034 |
| 12035 // To suppress missing implicit constructor warnings. | 12035 // To suppress missing implicit constructor warnings. |
| 12036 factory HttpRequest._() { throw new UnsupportedError("Not supported"); } | 12036 factory HttpRequest._() { throw new UnsupportedError("Not supported"); } |
| 12037 | 12037 |
| 12038 @DomName('XMLHttpRequest.abortEvent') | 12038 @DomName('XMLHttpRequest.abortEvent') |
| 12039 @DocsEditable | 12039 @DocsEditable() |
| 12040 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream
Provider<ProgressEvent>('abort'); | 12040 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream
Provider<ProgressEvent>('abort'); |
| 12041 | 12041 |
| 12042 @DomName('XMLHttpRequest.errorEvent') | 12042 @DomName('XMLHttpRequest.errorEvent') |
| 12043 @DocsEditable | 12043 @DocsEditable() |
| 12044 static const EventStreamProvider<ProgressEvent> errorEvent = const EventStream
Provider<ProgressEvent>('error'); | 12044 static const EventStreamProvider<ProgressEvent> errorEvent = const EventStream
Provider<ProgressEvent>('error'); |
| 12045 | 12045 |
| 12046 @DomName('XMLHttpRequest.loadEvent') | 12046 @DomName('XMLHttpRequest.loadEvent') |
| 12047 @DocsEditable | 12047 @DocsEditable() |
| 12048 static const EventStreamProvider<ProgressEvent> loadEvent = const EventStreamP
rovider<ProgressEvent>('load'); | 12048 static const EventStreamProvider<ProgressEvent> loadEvent = const EventStreamP
rovider<ProgressEvent>('load'); |
| 12049 | 12049 |
| 12050 @DomName('XMLHttpRequest.loadendEvent') | 12050 @DomName('XMLHttpRequest.loadendEvent') |
| 12051 @DocsEditable | 12051 @DocsEditable() |
| 12052 static const EventStreamProvider<ProgressEvent> loadEndEvent = const EventStre
amProvider<ProgressEvent>('loadend'); | 12052 static const EventStreamProvider<ProgressEvent> loadEndEvent = const EventStre
amProvider<ProgressEvent>('loadend'); |
| 12053 | 12053 |
| 12054 @DomName('XMLHttpRequest.loadstartEvent') | 12054 @DomName('XMLHttpRequest.loadstartEvent') |
| 12055 @DocsEditable | 12055 @DocsEditable() |
| 12056 static const EventStreamProvider<ProgressEvent> loadStartEvent = const EventSt
reamProvider<ProgressEvent>('loadstart'); | 12056 static const EventStreamProvider<ProgressEvent> loadStartEvent = const EventSt
reamProvider<ProgressEvent>('loadstart'); |
| 12057 | 12057 |
| 12058 @DomName('XMLHttpRequest.progressEvent') | 12058 @DomName('XMLHttpRequest.progressEvent') |
| 12059 @DocsEditable | 12059 @DocsEditable() |
| 12060 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr
eamProvider<ProgressEvent>('progress'); | 12060 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr
eamProvider<ProgressEvent>('progress'); |
| 12061 | 12061 |
| 12062 @DomName('XMLHttpRequest.readystatechangeEvent') | 12062 @DomName('XMLHttpRequest.readystatechangeEvent') |
| 12063 @DocsEditable | 12063 @DocsEditable() |
| 12064 static const EventStreamProvider<ProgressEvent> readyStateChangeEvent = const
EventStreamProvider<ProgressEvent>('readystatechange'); | 12064 static const EventStreamProvider<ProgressEvent> readyStateChangeEvent = const
EventStreamProvider<ProgressEvent>('readystatechange'); |
| 12065 | 12065 |
| 12066 /** | 12066 /** |
| 12067 * General constructor for any type of request (GET, POST, etc). | 12067 * General constructor for any type of request (GET, POST, etc). |
| 12068 * | 12068 * |
| 12069 * This call is used in conjunction with [open]: | 12069 * This call is used in conjunction with [open]: |
| 12070 * | 12070 * |
| 12071 * var request = new HttpRequest(); | 12071 * var request = new HttpRequest(); |
| 12072 * request.open('GET', 'http://dartlang.org') | 12072 * request.open('GET', 'http://dartlang.org') |
| 12073 * request.onLoad.add((event) => print('Request complete')); | 12073 * request.onLoad.add((event) => print('Request complete')); |
| 12074 * | 12074 * |
| 12075 * is the (more verbose) equivalent of | 12075 * is the (more verbose) equivalent of |
| 12076 * | 12076 * |
| 12077 * HttpRequest.getString('http://dartlang.org').then( | 12077 * HttpRequest.getString('http://dartlang.org').then( |
| 12078 * (result) => print('Request complete: $result')); | 12078 * (result) => print('Request complete: $result')); |
| 12079 */ | 12079 */ |
| 12080 @DomName('XMLHttpRequest.XMLHttpRequest') | 12080 @DomName('XMLHttpRequest.XMLHttpRequest') |
| 12081 @DocsEditable | 12081 @DocsEditable() |
| 12082 factory HttpRequest() { | 12082 factory HttpRequest() { |
| 12083 return HttpRequest._create_1(); | 12083 return HttpRequest._create_1(); |
| 12084 } | 12084 } |
| 12085 static HttpRequest _create_1() => JS('HttpRequest', 'new XMLHttpRequest()'); | 12085 static HttpRequest _create_1() => JS('HttpRequest', 'new XMLHttpRequest()'); |
| 12086 | 12086 |
| 12087 @DomName('XMLHttpRequest.DONE') | 12087 @DomName('XMLHttpRequest.DONE') |
| 12088 @DocsEditable | 12088 @DocsEditable() |
| 12089 static const int DONE = 4; | 12089 static const int DONE = 4; |
| 12090 | 12090 |
| 12091 @DomName('XMLHttpRequest.HEADERS_RECEIVED') | 12091 @DomName('XMLHttpRequest.HEADERS_RECEIVED') |
| 12092 @DocsEditable | 12092 @DocsEditable() |
| 12093 static const int HEADERS_RECEIVED = 2; | 12093 static const int HEADERS_RECEIVED = 2; |
| 12094 | 12094 |
| 12095 @DomName('XMLHttpRequest.LOADING') | 12095 @DomName('XMLHttpRequest.LOADING') |
| 12096 @DocsEditable | 12096 @DocsEditable() |
| 12097 static const int LOADING = 3; | 12097 static const int LOADING = 3; |
| 12098 | 12098 |
| 12099 @DomName('XMLHttpRequest.OPENED') | 12099 @DomName('XMLHttpRequest.OPENED') |
| 12100 @DocsEditable | 12100 @DocsEditable() |
| 12101 static const int OPENED = 1; | 12101 static const int OPENED = 1; |
| 12102 | 12102 |
| 12103 @DomName('XMLHttpRequest.UNSENT') | 12103 @DomName('XMLHttpRequest.UNSENT') |
| 12104 @DocsEditable | 12104 @DocsEditable() |
| 12105 static const int UNSENT = 0; | 12105 static const int UNSENT = 0; |
| 12106 | 12106 |
| 12107 /** | 12107 /** |
| 12108 * Indicator of the current state of the request: | 12108 * Indicator of the current state of the request: |
| 12109 * | 12109 * |
| 12110 * <table> | 12110 * <table> |
| 12111 * <tr> | 12111 * <tr> |
| 12112 * <td>Value</td> | 12112 * <td>Value</td> |
| 12113 * <td>State</td> | 12113 * <td>State</td> |
| 12114 * <td>Meaning</td> | 12114 * <td>Meaning</td> |
| (...skipping 15 matching lines...) Expand all Loading... |
| 12130 * </tr> | 12130 * </tr> |
| 12131 * <tr> | 12131 * <tr> |
| 12132 * <td>3</td> <td>loading</td> <td><code>responseText</code> holds some da
ta</td> | 12132 * <td>3</td> <td>loading</td> <td><code>responseText</code> holds some da
ta</td> |
| 12133 * </tr> | 12133 * </tr> |
| 12134 * <tr> | 12134 * <tr> |
| 12135 * <td>4</td> <td>done</td> <td>request is complete</td> | 12135 * <td>4</td> <td>done</td> <td>request is complete</td> |
| 12136 * </tr> | 12136 * </tr> |
| 12137 * </table> | 12137 * </table> |
| 12138 */ | 12138 */ |
| 12139 @DomName('XMLHttpRequest.readyState') | 12139 @DomName('XMLHttpRequest.readyState') |
| 12140 @DocsEditable | 12140 @DocsEditable() |
| 12141 final int readyState; | 12141 final int readyState; |
| 12142 | 12142 |
| 12143 /** | 12143 /** |
| 12144 * The data received as a reponse from the request. | 12144 * The data received as a reponse from the request. |
| 12145 * | 12145 * |
| 12146 * The data could be in the | 12146 * The data could be in the |
| 12147 * form of a [String], [ArrayBuffer], [Document], [Blob], or json (also a | 12147 * form of a [String], [ArrayBuffer], [Document], [Blob], or json (also a |
| 12148 * [String]). `null` indicates request failure. | 12148 * [String]). `null` indicates request failure. |
| 12149 */ | 12149 */ |
| 12150 @DomName('XMLHttpRequest.response') | 12150 @DomName('XMLHttpRequest.response') |
| 12151 @DocsEditable | 12151 @DocsEditable() |
| 12152 @SupportedBrowser(SupportedBrowser.CHROME) | 12152 @SupportedBrowser(SupportedBrowser.CHROME) |
| 12153 @SupportedBrowser(SupportedBrowser.FIREFOX) | 12153 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 12154 @SupportedBrowser(SupportedBrowser.IE, '10') | 12154 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 12155 @SupportedBrowser(SupportedBrowser.SAFARI) | 12155 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 12156 @Creates('ByteBuffer|Blob|Document|=Object|JSExtendableArray|String|num') | 12156 @Creates('ByteBuffer|Blob|Document|=Object|JSExtendableArray|String|num') |
| 12157 final Object response; | 12157 final Object response; |
| 12158 | 12158 |
| 12159 /** | 12159 /** |
| 12160 * The response in string form or `null on failure. | 12160 * The response in string form or `null on failure. |
| 12161 */ | 12161 */ |
| 12162 @DomName('XMLHttpRequest.responseText') | 12162 @DomName('XMLHttpRequest.responseText') |
| 12163 @DocsEditable | 12163 @DocsEditable() |
| 12164 final String responseText; | 12164 final String responseText; |
| 12165 | 12165 |
| 12166 /** | 12166 /** |
| 12167 * [String] telling the server the desired response format. | 12167 * [String] telling the server the desired response format. |
| 12168 * | 12168 * |
| 12169 * Default is `String`. | 12169 * Default is `String`. |
| 12170 * Other options are one of 'arraybuffer', 'blob', 'document', 'json', | 12170 * Other options are one of 'arraybuffer', 'blob', 'document', 'json', |
| 12171 * 'text'. Some newer browsers will throw NS_ERROR_DOM_INVALID_ACCESS_ERR if | 12171 * 'text'. Some newer browsers will throw NS_ERROR_DOM_INVALID_ACCESS_ERR if |
| 12172 * `responseType` is set while performing a synchronous request. | 12172 * `responseType` is set while performing a synchronous request. |
| 12173 * | 12173 * |
| 12174 * See also: [MDN responseType](https://developer.mozilla.org/en-US/docs/DOM/X
MLHttpRequest#responseType) | 12174 * See also: [MDN responseType](https://developer.mozilla.org/en-US/docs/DOM/X
MLHttpRequest#responseType) |
| 12175 */ | 12175 */ |
| 12176 @DomName('XMLHttpRequest.responseType') | 12176 @DomName('XMLHttpRequest.responseType') |
| 12177 @DocsEditable | 12177 @DocsEditable() |
| 12178 String responseType; | 12178 String responseType; |
| 12179 | 12179 |
| 12180 @JSName('responseXML') | 12180 @JSName('responseXML') |
| 12181 /** | 12181 /** |
| 12182 * The request response, or null on failure. | 12182 * The request response, or null on failure. |
| 12183 * | 12183 * |
| 12184 * The response is processed as | 12184 * The response is processed as |
| 12185 * `text/xml` stream, unless responseType = 'document' and the request is | 12185 * `text/xml` stream, unless responseType = 'document' and the request is |
| 12186 * synchronous. | 12186 * synchronous. |
| 12187 */ | 12187 */ |
| 12188 @DomName('XMLHttpRequest.responseXML') | 12188 @DomName('XMLHttpRequest.responseXML') |
| 12189 @DocsEditable | 12189 @DocsEditable() |
| 12190 final Document responseXml; | 12190 final Document responseXml; |
| 12191 | 12191 |
| 12192 /** | 12192 /** |
| 12193 * The http result code from the request (200, 404, etc). | 12193 * The http result code from the request (200, 404, etc). |
| 12194 * See also: [Http Status Codes](http://en.wikipedia.org/wiki/List_of_HTTP_sta
tus_codes) | 12194 * See also: [Http Status Codes](http://en.wikipedia.org/wiki/List_of_HTTP_sta
tus_codes) |
| 12195 */ | 12195 */ |
| 12196 @DomName('XMLHttpRequest.status') | 12196 @DomName('XMLHttpRequest.status') |
| 12197 @DocsEditable | 12197 @DocsEditable() |
| 12198 final int status; | 12198 final int status; |
| 12199 | 12199 |
| 12200 /** | 12200 /** |
| 12201 * The request response string (such as \"200 OK\"). | 12201 * The request response string (such as \"200 OK\"). |
| 12202 * See also: [Http Status Codes](http://en.wikipedia.org/wiki/List_of_HTTP_sta
tus_codes) | 12202 * See also: [Http Status Codes](http://en.wikipedia.org/wiki/List_of_HTTP_sta
tus_codes) |
| 12203 */ | 12203 */ |
| 12204 @DomName('XMLHttpRequest.statusText') | 12204 @DomName('XMLHttpRequest.statusText') |
| 12205 @DocsEditable | 12205 @DocsEditable() |
| 12206 final String statusText; | 12206 final String statusText; |
| 12207 | 12207 |
| 12208 /** | 12208 /** |
| 12209 * [EventTarget] that can hold listeners to track the progress of the request. | 12209 * [EventTarget] that can hold listeners to track the progress of the request. |
| 12210 * The events fired will be members of [HttpRequestUploadEvents]. | 12210 * The events fired will be members of [HttpRequestUploadEvents]. |
| 12211 */ | 12211 */ |
| 12212 @DomName('XMLHttpRequest.upload') | 12212 @DomName('XMLHttpRequest.upload') |
| 12213 @DocsEditable | 12213 @DocsEditable() |
| 12214 @Unstable | 12214 @Unstable() |
| 12215 final HttpRequestUpload upload; | 12215 final HttpRequestUpload upload; |
| 12216 | 12216 |
| 12217 /** | 12217 /** |
| 12218 * True if cross-site requests should use credentials such as cookies | 12218 * True if cross-site requests should use credentials such as cookies |
| 12219 * or authorization headers; false otherwise. | 12219 * or authorization headers; false otherwise. |
| 12220 * | 12220 * |
| 12221 * This value is ignored for same-site requests. | 12221 * This value is ignored for same-site requests. |
| 12222 */ | 12222 */ |
| 12223 @DomName('XMLHttpRequest.withCredentials') | 12223 @DomName('XMLHttpRequest.withCredentials') |
| 12224 @DocsEditable | 12224 @DocsEditable() |
| 12225 bool withCredentials; | 12225 bool withCredentials; |
| 12226 | 12226 |
| 12227 /** | 12227 /** |
| 12228 * Stop the current request. | 12228 * Stop the current request. |
| 12229 * | 12229 * |
| 12230 * The request can only be stopped if readyState is `HEADERS_RECIEVED` or | 12230 * The request can only be stopped if readyState is `HEADERS_RECIEVED` or |
| 12231 * `LOADING`. If this method is not in the process of being sent, the method | 12231 * `LOADING`. If this method is not in the process of being sent, the method |
| 12232 * has no effect. | 12232 * has no effect. |
| 12233 */ | 12233 */ |
| 12234 @DomName('XMLHttpRequest.abort') | 12234 @DomName('XMLHttpRequest.abort') |
| 12235 @DocsEditable | 12235 @DocsEditable() |
| 12236 void abort() native; | 12236 void abort() native; |
| 12237 | 12237 |
| 12238 @JSName('addEventListener') | 12238 @JSName('addEventListener') |
| 12239 @DomName('XMLHttpRequest.addEventListener') | 12239 @DomName('XMLHttpRequest.addEventListener') |
| 12240 @DocsEditable | 12240 @DocsEditable() |
| 12241 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 12241 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 12242 | 12242 |
| 12243 @DomName('XMLHttpRequest.dispatchEvent') | 12243 @DomName('XMLHttpRequest.dispatchEvent') |
| 12244 @DocsEditable | 12244 @DocsEditable() |
| 12245 bool dispatchEvent(Event evt) native; | 12245 bool dispatchEvent(Event evt) native; |
| 12246 | 12246 |
| 12247 /** | 12247 /** |
| 12248 * Retrieve all the response headers from a request. | 12248 * Retrieve all the response headers from a request. |
| 12249 * | 12249 * |
| 12250 * `null` if no headers have been received. For multipart requests, | 12250 * `null` if no headers have been received. For multipart requests, |
| 12251 * `getAllResponseHeaders` will return the response headers for the current | 12251 * `getAllResponseHeaders` will return the response headers for the current |
| 12252 * part of the request. | 12252 * part of the request. |
| 12253 * | 12253 * |
| 12254 * See also [HTTP response headers](http://en.wikipedia.org/wiki/List_of_HTTP_
header_fields#Responses) | 12254 * See also [HTTP response headers](http://en.wikipedia.org/wiki/List_of_HTTP_
header_fields#Responses) |
| 12255 * for a list of common response headers. | 12255 * for a list of common response headers. |
| 12256 */ | 12256 */ |
| 12257 @DomName('XMLHttpRequest.getAllResponseHeaders') | 12257 @DomName('XMLHttpRequest.getAllResponseHeaders') |
| 12258 @DocsEditable | 12258 @DocsEditable() |
| 12259 @Unstable | 12259 @Unstable() |
| 12260 String getAllResponseHeaders() native; | 12260 String getAllResponseHeaders() native; |
| 12261 | 12261 |
| 12262 /** | 12262 /** |
| 12263 * Return the response header named `header`, or `null` if not found. | 12263 * Return the response header named `header`, or `null` if not found. |
| 12264 * | 12264 * |
| 12265 * See also [HTTP response headers](http://en.wikipedia.org/wiki/List_of_HTTP_
header_fields#Responses) | 12265 * See also [HTTP response headers](http://en.wikipedia.org/wiki/List_of_HTTP_
header_fields#Responses) |
| 12266 * for a list of common response headers. | 12266 * for a list of common response headers. |
| 12267 */ | 12267 */ |
| 12268 @DomName('XMLHttpRequest.getResponseHeader') | 12268 @DomName('XMLHttpRequest.getResponseHeader') |
| 12269 @DocsEditable | 12269 @DocsEditable() |
| 12270 @Unstable | 12270 @Unstable() |
| 12271 String getResponseHeader(String header) native; | 12271 String getResponseHeader(String header) native; |
| 12272 | 12272 |
| 12273 /** | 12273 /** |
| 12274 * Specify the desired `url`, and `method` to use in making the request. | 12274 * Specify the desired `url`, and `method` to use in making the request. |
| 12275 * | 12275 * |
| 12276 * By default the request is done asyncronously, with no user or password | 12276 * By default the request is done asyncronously, with no user or password |
| 12277 * authentication information. If `async` is false, the request will be send | 12277 * authentication information. If `async` is false, the request will be send |
| 12278 * synchronously. | 12278 * synchronously. |
| 12279 * | 12279 * |
| 12280 * Calling `open` again on a currently active request is equivalent to | 12280 * Calling `open` again on a currently active request is equivalent to |
| 12281 * calling `abort`. | 12281 * calling `abort`. |
| 12282 */ | 12282 */ |
| 12283 @DomName('XMLHttpRequest.open') | 12283 @DomName('XMLHttpRequest.open') |
| 12284 @DocsEditable | 12284 @DocsEditable() |
| 12285 void open(String method, String url, {bool async, String user, String password
}) native; | 12285 void open(String method, String url, {bool async, String user, String password
}) native; |
| 12286 | 12286 |
| 12287 /** | 12287 /** |
| 12288 * Specify a particular MIME type (such as `text/xml`) desired for the | 12288 * Specify a particular MIME type (such as `text/xml`) desired for the |
| 12289 * response. | 12289 * response. |
| 12290 * | 12290 * |
| 12291 * This value must be set before the request has been sent. See also the list | 12291 * This value must be set before the request has been sent. See also the list |
| 12292 * of [common MIME types](http://en.wikipedia.org/wiki/Internet_media_type#Lis
t_of_common_media_types) | 12292 * of [common MIME types](http://en.wikipedia.org/wiki/Internet_media_type#Lis
t_of_common_media_types) |
| 12293 */ | 12293 */ |
| 12294 @DomName('XMLHttpRequest.overrideMimeType') | 12294 @DomName('XMLHttpRequest.overrideMimeType') |
| 12295 @DocsEditable | 12295 @DocsEditable() |
| 12296 @SupportedBrowser(SupportedBrowser.CHROME) | 12296 @SupportedBrowser(SupportedBrowser.CHROME) |
| 12297 @SupportedBrowser(SupportedBrowser.FIREFOX) | 12297 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 12298 @SupportedBrowser(SupportedBrowser.SAFARI) | 12298 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 12299 void overrideMimeType(String override) native; | 12299 void overrideMimeType(String override) native; |
| 12300 | 12300 |
| 12301 @JSName('removeEventListener') | 12301 @JSName('removeEventListener') |
| 12302 @DomName('XMLHttpRequest.removeEventListener') | 12302 @DomName('XMLHttpRequest.removeEventListener') |
| 12303 @DocsEditable | 12303 @DocsEditable() |
| 12304 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 12304 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 12305 | 12305 |
| 12306 /** | 12306 /** |
| 12307 * Send the request with any given `data`. | 12307 * Send the request with any given `data`. |
| 12308 * | 12308 * |
| 12309 * See also: | 12309 * See also: |
| 12310 * | 12310 * |
| 12311 * * [send](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#send
%28%29) | 12311 * * [send](https://developer.mozilla.org/en-US/docs/DOM/XMLHttpRequest#send
%28%29) |
| 12312 * from MDN. | 12312 * from MDN. |
| 12313 */ | 12313 */ |
| 12314 @DomName('XMLHttpRequest.send') | 12314 @DomName('XMLHttpRequest.send') |
| 12315 @DocsEditable | 12315 @DocsEditable() |
| 12316 void send([data]) native; | 12316 void send([data]) native; |
| 12317 | 12317 |
| 12318 @DomName('XMLHttpRequest.setRequestHeader') | 12318 @DomName('XMLHttpRequest.setRequestHeader') |
| 12319 @DocsEditable | 12319 @DocsEditable() |
| 12320 void setRequestHeader(String header, String value) native; | 12320 void setRequestHeader(String header, String value) native; |
| 12321 | 12321 |
| 12322 /** | 12322 /** |
| 12323 * Event listeners to be notified when request has been aborted, | 12323 * Event listeners to be notified when request has been aborted, |
| 12324 * generally due to calling `httpRequest.abort()`. | 12324 * generally due to calling `httpRequest.abort()`. |
| 12325 */ | 12325 */ |
| 12326 @DomName('XMLHttpRequest.onabort') | 12326 @DomName('XMLHttpRequest.onabort') |
| 12327 @DocsEditable | 12327 @DocsEditable() |
| 12328 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this); | 12328 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this); |
| 12329 | 12329 |
| 12330 /** | 12330 /** |
| 12331 * Event listeners to be notified when a request has failed, such as when a | 12331 * Event listeners to be notified when a request has failed, such as when a |
| 12332 * cross-domain error occurred or the file wasn't found on the server. | 12332 * cross-domain error occurred or the file wasn't found on the server. |
| 12333 */ | 12333 */ |
| 12334 @DomName('XMLHttpRequest.onerror') | 12334 @DomName('XMLHttpRequest.onerror') |
| 12335 @DocsEditable | 12335 @DocsEditable() |
| 12336 Stream<ProgressEvent> get onError => errorEvent.forTarget(this); | 12336 Stream<ProgressEvent> get onError => errorEvent.forTarget(this); |
| 12337 | 12337 |
| 12338 /** | 12338 /** |
| 12339 * Event listeners to be notified once the request has completed | 12339 * Event listeners to be notified once the request has completed |
| 12340 * *successfully*. | 12340 * *successfully*. |
| 12341 */ | 12341 */ |
| 12342 @DomName('XMLHttpRequest.onload') | 12342 @DomName('XMLHttpRequest.onload') |
| 12343 @DocsEditable | 12343 @DocsEditable() |
| 12344 Stream<ProgressEvent> get onLoad => loadEvent.forTarget(this); | 12344 Stream<ProgressEvent> get onLoad => loadEvent.forTarget(this); |
| 12345 | 12345 |
| 12346 /** | 12346 /** |
| 12347 * Event listeners to be notified once the request has completed (on | 12347 * Event listeners to be notified once the request has completed (on |
| 12348 * either success or failure). | 12348 * either success or failure). |
| 12349 */ | 12349 */ |
| 12350 @DomName('XMLHttpRequest.onloadend') | 12350 @DomName('XMLHttpRequest.onloadend') |
| 12351 @DocsEditable | 12351 @DocsEditable() |
| 12352 @SupportedBrowser(SupportedBrowser.CHROME) | 12352 @SupportedBrowser(SupportedBrowser.CHROME) |
| 12353 @SupportedBrowser(SupportedBrowser.FIREFOX) | 12353 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 12354 @SupportedBrowser(SupportedBrowser.IE, '10') | 12354 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 12355 @SupportedBrowser(SupportedBrowser.SAFARI) | 12355 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 12356 Stream<ProgressEvent> get onLoadEnd => loadEndEvent.forTarget(this); | 12356 Stream<ProgressEvent> get onLoadEnd => loadEndEvent.forTarget(this); |
| 12357 | 12357 |
| 12358 /** | 12358 /** |
| 12359 * Event listeners to be notified when the request starts, once | 12359 * Event listeners to be notified when the request starts, once |
| 12360 * `httpRequest.send()` has been called. | 12360 * `httpRequest.send()` has been called. |
| 12361 */ | 12361 */ |
| 12362 @DomName('XMLHttpRequest.onloadstart') | 12362 @DomName('XMLHttpRequest.onloadstart') |
| 12363 @DocsEditable | 12363 @DocsEditable() |
| 12364 Stream<ProgressEvent> get onLoadStart => loadStartEvent.forTarget(this); | 12364 Stream<ProgressEvent> get onLoadStart => loadStartEvent.forTarget(this); |
| 12365 | 12365 |
| 12366 /** | 12366 /** |
| 12367 * Event listeners to be notified when data for the request | 12367 * Event listeners to be notified when data for the request |
| 12368 * is being sent or loaded. | 12368 * is being sent or loaded. |
| 12369 * | 12369 * |
| 12370 * Progress events are fired every 50ms or for every byte transmitted, | 12370 * Progress events are fired every 50ms or for every byte transmitted, |
| 12371 * whichever is less frequent. | 12371 * whichever is less frequent. |
| 12372 */ | 12372 */ |
| 12373 @DomName('XMLHttpRequest.onprogress') | 12373 @DomName('XMLHttpRequest.onprogress') |
| 12374 @DocsEditable | 12374 @DocsEditable() |
| 12375 @SupportedBrowser(SupportedBrowser.CHROME) | 12375 @SupportedBrowser(SupportedBrowser.CHROME) |
| 12376 @SupportedBrowser(SupportedBrowser.FIREFOX) | 12376 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 12377 @SupportedBrowser(SupportedBrowser.IE, '10') | 12377 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 12378 @SupportedBrowser(SupportedBrowser.SAFARI) | 12378 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 12379 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); | 12379 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); |
| 12380 | 12380 |
| 12381 /** | 12381 /** |
| 12382 * Event listeners to be notified every time the [HttpRequest] | 12382 * Event listeners to be notified every time the [HttpRequest] |
| 12383 * object's `readyState` changes values. | 12383 * object's `readyState` changes values. |
| 12384 */ | 12384 */ |
| 12385 @DomName('XMLHttpRequest.onreadystatechange') | 12385 @DomName('XMLHttpRequest.onreadystatechange') |
| 12386 @DocsEditable | 12386 @DocsEditable() |
| 12387 Stream<ProgressEvent> get onReadyStateChange => readyStateChangeEvent.forTarge
t(this); | 12387 Stream<ProgressEvent> get onReadyStateChange => readyStateChangeEvent.forTarge
t(this); |
| 12388 | 12388 |
| 12389 } | 12389 } |
| 12390 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12390 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12391 // for details. All rights reserved. Use of this source code is governed by a | 12391 // for details. All rights reserved. Use of this source code is governed by a |
| 12392 // BSD-style license that can be found in the LICENSE file. | 12392 // BSD-style license that can be found in the LICENSE file. |
| 12393 | 12393 |
| 12394 | 12394 |
| 12395 @DocsEditable | 12395 @DocsEditable() |
| 12396 @DomName('XMLHttpRequestProgressEvent') | 12396 @DomName('XMLHttpRequestProgressEvent') |
| 12397 @SupportedBrowser(SupportedBrowser.CHROME) | 12397 @SupportedBrowser(SupportedBrowser.CHROME) |
| 12398 @SupportedBrowser(SupportedBrowser.SAFARI) | 12398 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 12399 @Experimental | 12399 @Experimental() |
| 12400 @Experimental // nonstandard | 12400 @Experimental() // nonstandard |
| 12401 class HttpRequestProgressEvent extends ProgressEvent native "XMLHttpRequestProgr
essEvent" { | 12401 class HttpRequestProgressEvent extends ProgressEvent native "XMLHttpRequestProgr
essEvent" { |
| 12402 // To suppress missing implicit constructor warnings. | 12402 // To suppress missing implicit constructor warnings. |
| 12403 factory HttpRequestProgressEvent._() { throw new UnsupportedError("Not support
ed"); } | 12403 factory HttpRequestProgressEvent._() { throw new UnsupportedError("Not support
ed"); } |
| 12404 | 12404 |
| 12405 /// Checks if this type is supported on the current platform. | 12405 /// Checks if this type is supported on the current platform. |
| 12406 static bool get supported => Device.isEventTypeSupported('XMLHttpRequestProgre
ssEvent'); | 12406 static bool get supported => Device.isEventTypeSupported('XMLHttpRequestProgre
ssEvent'); |
| 12407 | 12407 |
| 12408 @DomName('XMLHttpRequestProgressEvent.position') | 12408 @DomName('XMLHttpRequestProgressEvent.position') |
| 12409 @DocsEditable | 12409 @DocsEditable() |
| 12410 final int position; | 12410 final int position; |
| 12411 | 12411 |
| 12412 @DomName('XMLHttpRequestProgressEvent.totalSize') | 12412 @DomName('XMLHttpRequestProgressEvent.totalSize') |
| 12413 @DocsEditable | 12413 @DocsEditable() |
| 12414 final int totalSize; | 12414 final int totalSize; |
| 12415 } | 12415 } |
| 12416 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12416 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12417 // for details. All rights reserved. Use of this source code is governed by a | 12417 // for details. All rights reserved. Use of this source code is governed by a |
| 12418 // BSD-style license that can be found in the LICENSE file. | 12418 // BSD-style license that can be found in the LICENSE file. |
| 12419 | 12419 |
| 12420 | 12420 |
| 12421 @DocsEditable | 12421 @DocsEditable() |
| 12422 @DomName('XMLHttpRequestUpload') | 12422 @DomName('XMLHttpRequestUpload') |
| 12423 // http://xhr.spec.whatwg.org/#xmlhttprequestupload | 12423 // http://xhr.spec.whatwg.org/#xmlhttprequestupload |
| 12424 @Experimental | 12424 @Experimental() |
| 12425 class HttpRequestUpload extends EventTarget native "XMLHttpRequestUpload,XMLHttp
RequestEventTarget" { | 12425 class HttpRequestUpload extends EventTarget native "XMLHttpRequestUpload,XMLHttp
RequestEventTarget" { |
| 12426 // To suppress missing implicit constructor warnings. | 12426 // To suppress missing implicit constructor warnings. |
| 12427 factory HttpRequestUpload._() { throw new UnsupportedError("Not supported"); } | 12427 factory HttpRequestUpload._() { throw new UnsupportedError("Not supported"); } |
| 12428 | 12428 |
| 12429 @DomName('XMLHttpRequestUpload.abortEvent') | 12429 @DomName('XMLHttpRequestUpload.abortEvent') |
| 12430 @DocsEditable | 12430 @DocsEditable() |
| 12431 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream
Provider<ProgressEvent>('abort'); | 12431 static const EventStreamProvider<ProgressEvent> abortEvent = const EventStream
Provider<ProgressEvent>('abort'); |
| 12432 | 12432 |
| 12433 @DomName('XMLHttpRequestUpload.errorEvent') | 12433 @DomName('XMLHttpRequestUpload.errorEvent') |
| 12434 @DocsEditable | 12434 @DocsEditable() |
| 12435 static const EventStreamProvider<ProgressEvent> errorEvent = const EventStream
Provider<ProgressEvent>('error'); | 12435 static const EventStreamProvider<ProgressEvent> errorEvent = const EventStream
Provider<ProgressEvent>('error'); |
| 12436 | 12436 |
| 12437 @DomName('XMLHttpRequestUpload.loadEvent') | 12437 @DomName('XMLHttpRequestUpload.loadEvent') |
| 12438 @DocsEditable | 12438 @DocsEditable() |
| 12439 static const EventStreamProvider<ProgressEvent> loadEvent = const EventStreamP
rovider<ProgressEvent>('load'); | 12439 static const EventStreamProvider<ProgressEvent> loadEvent = const EventStreamP
rovider<ProgressEvent>('load'); |
| 12440 | 12440 |
| 12441 @DomName('XMLHttpRequestUpload.loadendEvent') | 12441 @DomName('XMLHttpRequestUpload.loadendEvent') |
| 12442 @DocsEditable | 12442 @DocsEditable() |
| 12443 static const EventStreamProvider<ProgressEvent> loadEndEvent = const EventStre
amProvider<ProgressEvent>('loadend'); | 12443 static const EventStreamProvider<ProgressEvent> loadEndEvent = const EventStre
amProvider<ProgressEvent>('loadend'); |
| 12444 | 12444 |
| 12445 @DomName('XMLHttpRequestUpload.loadstartEvent') | 12445 @DomName('XMLHttpRequestUpload.loadstartEvent') |
| 12446 @DocsEditable | 12446 @DocsEditable() |
| 12447 static const EventStreamProvider<ProgressEvent> loadStartEvent = const EventSt
reamProvider<ProgressEvent>('loadstart'); | 12447 static const EventStreamProvider<ProgressEvent> loadStartEvent = const EventSt
reamProvider<ProgressEvent>('loadstart'); |
| 12448 | 12448 |
| 12449 @DomName('XMLHttpRequestUpload.progressEvent') | 12449 @DomName('XMLHttpRequestUpload.progressEvent') |
| 12450 @DocsEditable | 12450 @DocsEditable() |
| 12451 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr
eamProvider<ProgressEvent>('progress'); | 12451 static const EventStreamProvider<ProgressEvent> progressEvent = const EventStr
eamProvider<ProgressEvent>('progress'); |
| 12452 | 12452 |
| 12453 @JSName('addEventListener') | 12453 @JSName('addEventListener') |
| 12454 @DomName('XMLHttpRequestUpload.addEventListener') | 12454 @DomName('XMLHttpRequestUpload.addEventListener') |
| 12455 @DocsEditable | 12455 @DocsEditable() |
| 12456 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 12456 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 12457 | 12457 |
| 12458 @DomName('XMLHttpRequestUpload.dispatchEvent') | 12458 @DomName('XMLHttpRequestUpload.dispatchEvent') |
| 12459 @DocsEditable | 12459 @DocsEditable() |
| 12460 bool dispatchEvent(Event evt) native; | 12460 bool dispatchEvent(Event evt) native; |
| 12461 | 12461 |
| 12462 @JSName('removeEventListener') | 12462 @JSName('removeEventListener') |
| 12463 @DomName('XMLHttpRequestUpload.removeEventListener') | 12463 @DomName('XMLHttpRequestUpload.removeEventListener') |
| 12464 @DocsEditable | 12464 @DocsEditable() |
| 12465 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 12465 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 12466 | 12466 |
| 12467 @DomName('XMLHttpRequestUpload.onabort') | 12467 @DomName('XMLHttpRequestUpload.onabort') |
| 12468 @DocsEditable | 12468 @DocsEditable() |
| 12469 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this); | 12469 Stream<ProgressEvent> get onAbort => abortEvent.forTarget(this); |
| 12470 | 12470 |
| 12471 @DomName('XMLHttpRequestUpload.onerror') | 12471 @DomName('XMLHttpRequestUpload.onerror') |
| 12472 @DocsEditable | 12472 @DocsEditable() |
| 12473 Stream<ProgressEvent> get onError => errorEvent.forTarget(this); | 12473 Stream<ProgressEvent> get onError => errorEvent.forTarget(this); |
| 12474 | 12474 |
| 12475 @DomName('XMLHttpRequestUpload.onload') | 12475 @DomName('XMLHttpRequestUpload.onload') |
| 12476 @DocsEditable | 12476 @DocsEditable() |
| 12477 Stream<ProgressEvent> get onLoad => loadEvent.forTarget(this); | 12477 Stream<ProgressEvent> get onLoad => loadEvent.forTarget(this); |
| 12478 | 12478 |
| 12479 @DomName('XMLHttpRequestUpload.onloadend') | 12479 @DomName('XMLHttpRequestUpload.onloadend') |
| 12480 @DocsEditable | 12480 @DocsEditable() |
| 12481 Stream<ProgressEvent> get onLoadEnd => loadEndEvent.forTarget(this); | 12481 Stream<ProgressEvent> get onLoadEnd => loadEndEvent.forTarget(this); |
| 12482 | 12482 |
| 12483 @DomName('XMLHttpRequestUpload.onloadstart') | 12483 @DomName('XMLHttpRequestUpload.onloadstart') |
| 12484 @DocsEditable | 12484 @DocsEditable() |
| 12485 Stream<ProgressEvent> get onLoadStart => loadStartEvent.forTarget(this); | 12485 Stream<ProgressEvent> get onLoadStart => loadStartEvent.forTarget(this); |
| 12486 | 12486 |
| 12487 @DomName('XMLHttpRequestUpload.onprogress') | 12487 @DomName('XMLHttpRequestUpload.onprogress') |
| 12488 @DocsEditable | 12488 @DocsEditable() |
| 12489 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); | 12489 Stream<ProgressEvent> get onProgress => progressEvent.forTarget(this); |
| 12490 } | 12490 } |
| 12491 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12491 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12492 // for details. All rights reserved. Use of this source code is governed by a | 12492 // for details. All rights reserved. Use of this source code is governed by a |
| 12493 // BSD-style license that can be found in the LICENSE file. | 12493 // BSD-style license that can be found in the LICENSE file. |
| 12494 | 12494 |
| 12495 | 12495 |
| 12496 @DocsEditable | 12496 @DocsEditable() |
| 12497 @DomName('HTMLIFrameElement') | 12497 @DomName('HTMLIFrameElement') |
| 12498 class IFrameElement extends _HTMLElement native "HTMLIFrameElement" { | 12498 class IFrameElement extends _HTMLElement native "HTMLIFrameElement" { |
| 12499 // To suppress missing implicit constructor warnings. | 12499 // To suppress missing implicit constructor warnings. |
| 12500 factory IFrameElement._() { throw new UnsupportedError("Not supported"); } | 12500 factory IFrameElement._() { throw new UnsupportedError("Not supported"); } |
| 12501 | 12501 |
| 12502 @DomName('HTMLIFrameElement.HTMLIFrameElement') | 12502 @DomName('HTMLIFrameElement.HTMLIFrameElement') |
| 12503 @DocsEditable | 12503 @DocsEditable() |
| 12504 factory IFrameElement() => document.$dom_createElement("iframe"); | 12504 factory IFrameElement() => document.$dom_createElement("iframe"); |
| 12505 | 12505 |
| 12506 WindowBase get contentWindow => _convertNativeToDart_Window(this._get_contentW
indow); | 12506 WindowBase get contentWindow => _convertNativeToDart_Window(this._get_contentW
indow); |
| 12507 @JSName('contentWindow') | 12507 @JSName('contentWindow') |
| 12508 @DomName('HTMLIFrameElement.contentWindow') | 12508 @DomName('HTMLIFrameElement.contentWindow') |
| 12509 @DocsEditable | 12509 @DocsEditable() |
| 12510 @Creates('Window|=Object') | 12510 @Creates('Window|=Object') |
| 12511 @Returns('Window|=Object') | 12511 @Returns('Window|=Object') |
| 12512 final dynamic _get_contentWindow; | 12512 final dynamic _get_contentWindow; |
| 12513 | 12513 |
| 12514 @DomName('HTMLIFrameElement.height') | 12514 @DomName('HTMLIFrameElement.height') |
| 12515 @DocsEditable | 12515 @DocsEditable() |
| 12516 String height; | 12516 String height; |
| 12517 | 12517 |
| 12518 @DomName('HTMLIFrameElement.name') | 12518 @DomName('HTMLIFrameElement.name') |
| 12519 @DocsEditable | 12519 @DocsEditable() |
| 12520 String name; | 12520 String name; |
| 12521 | 12521 |
| 12522 @DomName('HTMLIFrameElement.sandbox') | 12522 @DomName('HTMLIFrameElement.sandbox') |
| 12523 @DocsEditable | 12523 @DocsEditable() |
| 12524 String sandbox; | 12524 String sandbox; |
| 12525 | 12525 |
| 12526 @DomName('HTMLIFrameElement.seamless') | 12526 @DomName('HTMLIFrameElement.seamless') |
| 12527 @DocsEditable | 12527 @DocsEditable() |
| 12528 bool seamless; | 12528 bool seamless; |
| 12529 | 12529 |
| 12530 @DomName('HTMLIFrameElement.src') | 12530 @DomName('HTMLIFrameElement.src') |
| 12531 @DocsEditable | 12531 @DocsEditable() |
| 12532 String src; | 12532 String src; |
| 12533 | 12533 |
| 12534 @DomName('HTMLIFrameElement.srcdoc') | 12534 @DomName('HTMLIFrameElement.srcdoc') |
| 12535 @DocsEditable | 12535 @DocsEditable() |
| 12536 String srcdoc; | 12536 String srcdoc; |
| 12537 | 12537 |
| 12538 @DomName('HTMLIFrameElement.width') | 12538 @DomName('HTMLIFrameElement.width') |
| 12539 @DocsEditable | 12539 @DocsEditable() |
| 12540 String width; | 12540 String width; |
| 12541 } | 12541 } |
| 12542 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 12542 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 12543 // for details. All rights reserved. Use of this source code is governed by a | 12543 // for details. All rights reserved. Use of this source code is governed by a |
| 12544 // BSD-style license that can be found in the LICENSE file. | 12544 // BSD-style license that can be found in the LICENSE file. |
| 12545 | 12545 |
| 12546 @DomName('ImageData') | 12546 @DomName('ImageData') |
| 12547 class ImageData extends Interceptor native "ImageData" { | 12547 class ImageData extends Interceptor native "ImageData" { |
| 12548 | 12548 |
| 12549 | 12549 |
| 12550 @DomName('ImageData.data') | 12550 @DomName('ImageData.data') |
| 12551 @DocsEditable | 12551 @DocsEditable() |
| 12552 final List<int> data; | 12552 final List<int> data; |
| 12553 | 12553 |
| 12554 @DomName('ImageData.height') | 12554 @DomName('ImageData.height') |
| 12555 @DocsEditable | 12555 @DocsEditable() |
| 12556 final int height; | 12556 final int height; |
| 12557 | 12557 |
| 12558 @DomName('ImageData.width') | 12558 @DomName('ImageData.width') |
| 12559 @DocsEditable | 12559 @DocsEditable() |
| 12560 final int width; | 12560 final int width; |
| 12561 | 12561 |
| 12562 } | 12562 } |
| 12563 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12563 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12564 // for details. All rights reserved. Use of this source code is governed by a | 12564 // for details. All rights reserved. Use of this source code is governed by a |
| 12565 // BSD-style license that can be found in the LICENSE file. | 12565 // BSD-style license that can be found in the LICENSE file. |
| 12566 | 12566 |
| 12567 | 12567 |
| 12568 @DomName('HTMLImageElement') | 12568 @DomName('HTMLImageElement') |
| 12569 class ImageElement extends _HTMLElement implements CanvasImageSource native "HTM
LImageElement" { | 12569 class ImageElement extends _HTMLElement implements CanvasImageSource native "HTM
LImageElement" { |
| 12570 // To suppress missing implicit constructor warnings. | 12570 // To suppress missing implicit constructor warnings. |
| 12571 factory ImageElement._() { throw new UnsupportedError("Not supported"); } | 12571 factory ImageElement._() { throw new UnsupportedError("Not supported"); } |
| 12572 | 12572 |
| 12573 @DomName('HTMLImageElement.HTMLImageElement') | 12573 @DomName('HTMLImageElement.HTMLImageElement') |
| 12574 @DocsEditable | 12574 @DocsEditable() |
| 12575 factory ImageElement({String src, int width, int height}) { | 12575 factory ImageElement({String src, int width, int height}) { |
| 12576 var e = document.$dom_createElement("img"); | 12576 var e = document.$dom_createElement("img"); |
| 12577 if (src != null) e.src = src; | 12577 if (src != null) e.src = src; |
| 12578 if (width != null) e.width = width; | 12578 if (width != null) e.width = width; |
| 12579 if (height != null) e.height = height; | 12579 if (height != null) e.height = height; |
| 12580 return e; | 12580 return e; |
| 12581 } | 12581 } |
| 12582 | 12582 |
| 12583 @DomName('HTMLImageElement.alt') | 12583 @DomName('HTMLImageElement.alt') |
| 12584 @DocsEditable | 12584 @DocsEditable() |
| 12585 String alt; | 12585 String alt; |
| 12586 | 12586 |
| 12587 @DomName('HTMLImageElement.border') | 12587 @DomName('HTMLImageElement.border') |
| 12588 @DocsEditable | 12588 @DocsEditable() |
| 12589 @deprecated // deprecated | 12589 @deprecated // deprecated |
| 12590 String border; | 12590 String border; |
| 12591 | 12591 |
| 12592 @DomName('HTMLImageElement.complete') | 12592 @DomName('HTMLImageElement.complete') |
| 12593 @DocsEditable | 12593 @DocsEditable() |
| 12594 final bool complete; | 12594 final bool complete; |
| 12595 | 12595 |
| 12596 @DomName('HTMLImageElement.crossOrigin') | 12596 @DomName('HTMLImageElement.crossOrigin') |
| 12597 @DocsEditable | 12597 @DocsEditable() |
| 12598 String crossOrigin; | 12598 String crossOrigin; |
| 12599 | 12599 |
| 12600 @DomName('HTMLImageElement.height') | 12600 @DomName('HTMLImageElement.height') |
| 12601 @DocsEditable | 12601 @DocsEditable() |
| 12602 int height; | 12602 int height; |
| 12603 | 12603 |
| 12604 @DomName('HTMLImageElement.isMap') | 12604 @DomName('HTMLImageElement.isMap') |
| 12605 @DocsEditable | 12605 @DocsEditable() |
| 12606 bool isMap; | 12606 bool isMap; |
| 12607 | 12607 |
| 12608 @DomName('HTMLImageElement.lowsrc') | 12608 @DomName('HTMLImageElement.lowsrc') |
| 12609 @DocsEditable | 12609 @DocsEditable() |
| 12610 @deprecated // deprecated | 12610 @deprecated // deprecated |
| 12611 String lowsrc; | 12611 String lowsrc; |
| 12612 | 12612 |
| 12613 @DomName('HTMLImageElement.naturalHeight') | 12613 @DomName('HTMLImageElement.naturalHeight') |
| 12614 @DocsEditable | 12614 @DocsEditable() |
| 12615 final int naturalHeight; | 12615 final int naturalHeight; |
| 12616 | 12616 |
| 12617 @DomName('HTMLImageElement.naturalWidth') | 12617 @DomName('HTMLImageElement.naturalWidth') |
| 12618 @DocsEditable | 12618 @DocsEditable() |
| 12619 final int naturalWidth; | 12619 final int naturalWidth; |
| 12620 | 12620 |
| 12621 @DomName('HTMLImageElement.src') | 12621 @DomName('HTMLImageElement.src') |
| 12622 @DocsEditable | 12622 @DocsEditable() |
| 12623 String src; | 12623 String src; |
| 12624 | 12624 |
| 12625 @DomName('HTMLImageElement.useMap') | 12625 @DomName('HTMLImageElement.useMap') |
| 12626 @DocsEditable | 12626 @DocsEditable() |
| 12627 String useMap; | 12627 String useMap; |
| 12628 | 12628 |
| 12629 @DomName('HTMLImageElement.width') | 12629 @DomName('HTMLImageElement.width') |
| 12630 @DocsEditable | 12630 @DocsEditable() |
| 12631 int width; | 12631 int width; |
| 12632 | 12632 |
| 12633 @DomName('HTMLImageElement.x') | 12633 @DomName('HTMLImageElement.x') |
| 12634 @DocsEditable | 12634 @DocsEditable() |
| 12635 @deprecated // deprecated | 12635 @deprecated // deprecated |
| 12636 final int x; | 12636 final int x; |
| 12637 | 12637 |
| 12638 @DomName('HTMLImageElement.y') | 12638 @DomName('HTMLImageElement.y') |
| 12639 @DocsEditable | 12639 @DocsEditable() |
| 12640 @deprecated // deprecated | 12640 @deprecated // deprecated |
| 12641 final int y; | 12641 final int y; |
| 12642 | 12642 |
| 12643 } | 12643 } |
| 12644 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 12644 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 12645 // for details. All rights reserved. Use of this source code is governed by a | 12645 // for details. All rights reserved. Use of this source code is governed by a |
| 12646 // BSD-style license that can be found in the LICENSE file. | 12646 // BSD-style license that can be found in the LICENSE file. |
| 12647 | 12647 |
| 12648 | 12648 |
| 12649 @DomName('HTMLInputElement') | 12649 @DomName('HTMLInputElement') |
| (...skipping 29 matching lines...) Expand all Loading... |
| 12679 e.type = type; | 12679 e.type = type; |
| 12680 } catch(_) {} | 12680 } catch(_) {} |
| 12681 } | 12681 } |
| 12682 return e; | 12682 return e; |
| 12683 } | 12683 } |
| 12684 | 12684 |
| 12685 // To suppress missing implicit constructor warnings. | 12685 // To suppress missing implicit constructor warnings. |
| 12686 factory InputElement._() { throw new UnsupportedError("Not supported"); } | 12686 factory InputElement._() { throw new UnsupportedError("Not supported"); } |
| 12687 | 12687 |
| 12688 @DomName('HTMLInputElement.webkitSpeechChangeEvent') | 12688 @DomName('HTMLInputElement.webkitSpeechChangeEvent') |
| 12689 @DocsEditable | 12689 @DocsEditable() |
| 12690 @SupportedBrowser(SupportedBrowser.CHROME) | 12690 @SupportedBrowser(SupportedBrowser.CHROME) |
| 12691 @SupportedBrowser(SupportedBrowser.SAFARI) | 12691 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 12692 @Experimental | 12692 @Experimental() |
| 12693 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/a
pi-draft.html#extending_html_elements | 12693 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/a
pi-draft.html#extending_html_elements |
| 12694 static const EventStreamProvider<Event> speechChangeEvent = const EventStreamP
rovider<Event>('webkitSpeechChange'); | 12694 static const EventStreamProvider<Event> speechChangeEvent = const EventStreamP
rovider<Event>('webkitSpeechChange'); |
| 12695 | 12695 |
| 12696 @DomName('HTMLInputElement.accept') | 12696 @DomName('HTMLInputElement.accept') |
| 12697 @DocsEditable | 12697 @DocsEditable() |
| 12698 String accept; | 12698 String accept; |
| 12699 | 12699 |
| 12700 @DomName('HTMLInputElement.alt') | 12700 @DomName('HTMLInputElement.alt') |
| 12701 @DocsEditable | 12701 @DocsEditable() |
| 12702 String alt; | 12702 String alt; |
| 12703 | 12703 |
| 12704 @DomName('HTMLInputElement.autocomplete') | 12704 @DomName('HTMLInputElement.autocomplete') |
| 12705 @DocsEditable | 12705 @DocsEditable() |
| 12706 String autocomplete; | 12706 String autocomplete; |
| 12707 | 12707 |
| 12708 @DomName('HTMLInputElement.autofocus') | 12708 @DomName('HTMLInputElement.autofocus') |
| 12709 @DocsEditable | 12709 @DocsEditable() |
| 12710 bool autofocus; | 12710 bool autofocus; |
| 12711 | 12711 |
| 12712 @DomName('HTMLInputElement.checked') | 12712 @DomName('HTMLInputElement.checked') |
| 12713 @DocsEditable | 12713 @DocsEditable() |
| 12714 bool checked; | 12714 bool checked; |
| 12715 | 12715 |
| 12716 @DomName('HTMLInputElement.defaultChecked') | 12716 @DomName('HTMLInputElement.defaultChecked') |
| 12717 @DocsEditable | 12717 @DocsEditable() |
| 12718 bool defaultChecked; | 12718 bool defaultChecked; |
| 12719 | 12719 |
| 12720 @DomName('HTMLInputElement.defaultValue') | 12720 @DomName('HTMLInputElement.defaultValue') |
| 12721 @DocsEditable | 12721 @DocsEditable() |
| 12722 String defaultValue; | 12722 String defaultValue; |
| 12723 | 12723 |
| 12724 @DomName('HTMLInputElement.dirName') | 12724 @DomName('HTMLInputElement.dirName') |
| 12725 @DocsEditable | 12725 @DocsEditable() |
| 12726 String dirName; | 12726 String dirName; |
| 12727 | 12727 |
| 12728 @DomName('HTMLInputElement.disabled') | 12728 @DomName('HTMLInputElement.disabled') |
| 12729 @DocsEditable | 12729 @DocsEditable() |
| 12730 bool disabled; | 12730 bool disabled; |
| 12731 | 12731 |
| 12732 @DomName('HTMLInputElement.files') | 12732 @DomName('HTMLInputElement.files') |
| 12733 @DocsEditable | 12733 @DocsEditable() |
| 12734 @Returns('FileList') | 12734 @Returns('FileList') |
| 12735 @Creates('FileList') | 12735 @Creates('FileList') |
| 12736 List<File> files; | 12736 List<File> files; |
| 12737 | 12737 |
| 12738 @DomName('HTMLInputElement.form') | 12738 @DomName('HTMLInputElement.form') |
| 12739 @DocsEditable | 12739 @DocsEditable() |
| 12740 final FormElement form; | 12740 final FormElement form; |
| 12741 | 12741 |
| 12742 @DomName('HTMLInputElement.formAction') | 12742 @DomName('HTMLInputElement.formAction') |
| 12743 @DocsEditable | 12743 @DocsEditable() |
| 12744 String formAction; | 12744 String formAction; |
| 12745 | 12745 |
| 12746 @DomName('HTMLInputElement.formEnctype') | 12746 @DomName('HTMLInputElement.formEnctype') |
| 12747 @DocsEditable | 12747 @DocsEditable() |
| 12748 String formEnctype; | 12748 String formEnctype; |
| 12749 | 12749 |
| 12750 @DomName('HTMLInputElement.formMethod') | 12750 @DomName('HTMLInputElement.formMethod') |
| 12751 @DocsEditable | 12751 @DocsEditable() |
| 12752 String formMethod; | 12752 String formMethod; |
| 12753 | 12753 |
| 12754 @DomName('HTMLInputElement.formNoValidate') | 12754 @DomName('HTMLInputElement.formNoValidate') |
| 12755 @DocsEditable | 12755 @DocsEditable() |
| 12756 bool formNoValidate; | 12756 bool formNoValidate; |
| 12757 | 12757 |
| 12758 @DomName('HTMLInputElement.formTarget') | 12758 @DomName('HTMLInputElement.formTarget') |
| 12759 @DocsEditable | 12759 @DocsEditable() |
| 12760 String formTarget; | 12760 String formTarget; |
| 12761 | 12761 |
| 12762 @DomName('HTMLInputElement.height') | 12762 @DomName('HTMLInputElement.height') |
| 12763 @DocsEditable | 12763 @DocsEditable() |
| 12764 int height; | 12764 int height; |
| 12765 | 12765 |
| 12766 @DomName('HTMLInputElement.incremental') | 12766 @DomName('HTMLInputElement.incremental') |
| 12767 @DocsEditable | 12767 @DocsEditable() |
| 12768 // http://www.w3.org/TR/html-markup/input.search.html | 12768 // http://www.w3.org/TR/html-markup/input.search.html |
| 12769 @Experimental | 12769 @Experimental() |
| 12770 bool incremental; | 12770 bool incremental; |
| 12771 | 12771 |
| 12772 @DomName('HTMLInputElement.indeterminate') | 12772 @DomName('HTMLInputElement.indeterminate') |
| 12773 @DocsEditable | 12773 @DocsEditable() |
| 12774 bool indeterminate; | 12774 bool indeterminate; |
| 12775 | 12775 |
| 12776 @DomName('HTMLInputElement.labels') | 12776 @DomName('HTMLInputElement.labels') |
| 12777 @DocsEditable | 12777 @DocsEditable() |
| 12778 @Returns('NodeList') | 12778 @Returns('NodeList') |
| 12779 @Creates('NodeList') | 12779 @Creates('NodeList') |
| 12780 final List<Node> labels; | 12780 final List<Node> labels; |
| 12781 | 12781 |
| 12782 @DomName('HTMLInputElement.list') | 12782 @DomName('HTMLInputElement.list') |
| 12783 @DocsEditable | 12783 @DocsEditable() |
| 12784 final Element list; | 12784 final Element list; |
| 12785 | 12785 |
| 12786 @DomName('HTMLInputElement.max') | 12786 @DomName('HTMLInputElement.max') |
| 12787 @DocsEditable | 12787 @DocsEditable() |
| 12788 String max; | 12788 String max; |
| 12789 | 12789 |
| 12790 @DomName('HTMLInputElement.maxLength') | 12790 @DomName('HTMLInputElement.maxLength') |
| 12791 @DocsEditable | 12791 @DocsEditable() |
| 12792 int maxLength; | 12792 int maxLength; |
| 12793 | 12793 |
| 12794 @DomName('HTMLInputElement.min') | 12794 @DomName('HTMLInputElement.min') |
| 12795 @DocsEditable | 12795 @DocsEditable() |
| 12796 String min; | 12796 String min; |
| 12797 | 12797 |
| 12798 @DomName('HTMLInputElement.multiple') | 12798 @DomName('HTMLInputElement.multiple') |
| 12799 @DocsEditable | 12799 @DocsEditable() |
| 12800 bool multiple; | 12800 bool multiple; |
| 12801 | 12801 |
| 12802 @DomName('HTMLInputElement.name') | 12802 @DomName('HTMLInputElement.name') |
| 12803 @DocsEditable | 12803 @DocsEditable() |
| 12804 String name; | 12804 String name; |
| 12805 | 12805 |
| 12806 @DomName('HTMLInputElement.pattern') | 12806 @DomName('HTMLInputElement.pattern') |
| 12807 @DocsEditable | 12807 @DocsEditable() |
| 12808 String pattern; | 12808 String pattern; |
| 12809 | 12809 |
| 12810 @DomName('HTMLInputElement.placeholder') | 12810 @DomName('HTMLInputElement.placeholder') |
| 12811 @DocsEditable | 12811 @DocsEditable() |
| 12812 String placeholder; | 12812 String placeholder; |
| 12813 | 12813 |
| 12814 @DomName('HTMLInputElement.readOnly') | 12814 @DomName('HTMLInputElement.readOnly') |
| 12815 @DocsEditable | 12815 @DocsEditable() |
| 12816 bool readOnly; | 12816 bool readOnly; |
| 12817 | 12817 |
| 12818 @DomName('HTMLInputElement.required') | 12818 @DomName('HTMLInputElement.required') |
| 12819 @DocsEditable | 12819 @DocsEditable() |
| 12820 bool required; | 12820 bool required; |
| 12821 | 12821 |
| 12822 @DomName('HTMLInputElement.selectionDirection') | 12822 @DomName('HTMLInputElement.selectionDirection') |
| 12823 @DocsEditable | 12823 @DocsEditable() |
| 12824 String selectionDirection; | 12824 String selectionDirection; |
| 12825 | 12825 |
| 12826 @DomName('HTMLInputElement.selectionEnd') | 12826 @DomName('HTMLInputElement.selectionEnd') |
| 12827 @DocsEditable | 12827 @DocsEditable() |
| 12828 int selectionEnd; | 12828 int selectionEnd; |
| 12829 | 12829 |
| 12830 @DomName('HTMLInputElement.selectionStart') | 12830 @DomName('HTMLInputElement.selectionStart') |
| 12831 @DocsEditable | 12831 @DocsEditable() |
| 12832 int selectionStart; | 12832 int selectionStart; |
| 12833 | 12833 |
| 12834 @DomName('HTMLInputElement.size') | 12834 @DomName('HTMLInputElement.size') |
| 12835 @DocsEditable | 12835 @DocsEditable() |
| 12836 int size; | 12836 int size; |
| 12837 | 12837 |
| 12838 @DomName('HTMLInputElement.src') | 12838 @DomName('HTMLInputElement.src') |
| 12839 @DocsEditable | 12839 @DocsEditable() |
| 12840 String src; | 12840 String src; |
| 12841 | 12841 |
| 12842 @DomName('HTMLInputElement.step') | 12842 @DomName('HTMLInputElement.step') |
| 12843 @DocsEditable | 12843 @DocsEditable() |
| 12844 String step; | 12844 String step; |
| 12845 | 12845 |
| 12846 @DomName('HTMLInputElement.type') | 12846 @DomName('HTMLInputElement.type') |
| 12847 @DocsEditable | 12847 @DocsEditable() |
| 12848 String type; | 12848 String type; |
| 12849 | 12849 |
| 12850 @DomName('HTMLInputElement.useMap') | 12850 @DomName('HTMLInputElement.useMap') |
| 12851 @DocsEditable | 12851 @DocsEditable() |
| 12852 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLInputElement-partial | 12852 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLInputElement-partial |
| 12853 @deprecated // deprecated | 12853 @deprecated // deprecated |
| 12854 String useMap; | 12854 String useMap; |
| 12855 | 12855 |
| 12856 @DomName('HTMLInputElement.validationMessage') | 12856 @DomName('HTMLInputElement.validationMessage') |
| 12857 @DocsEditable | 12857 @DocsEditable() |
| 12858 final String validationMessage; | 12858 final String validationMessage; |
| 12859 | 12859 |
| 12860 @DomName('HTMLInputElement.validity') | 12860 @DomName('HTMLInputElement.validity') |
| 12861 @DocsEditable | 12861 @DocsEditable() |
| 12862 final ValidityState validity; | 12862 final ValidityState validity; |
| 12863 | 12863 |
| 12864 @DomName('HTMLInputElement.value') | 12864 @DomName('HTMLInputElement.value') |
| 12865 @DocsEditable | 12865 @DocsEditable() |
| 12866 String value; | 12866 String value; |
| 12867 | 12867 |
| 12868 DateTime get valueAsDate => convertNativeToDart_DateTime(this._get_valueAsDate
); | 12868 DateTime get valueAsDate => convertNativeToDart_DateTime(this._get_valueAsDate
); |
| 12869 @JSName('valueAsDate') | 12869 @JSName('valueAsDate') |
| 12870 @DomName('HTMLInputElement.valueAsDate') | 12870 @DomName('HTMLInputElement.valueAsDate') |
| 12871 @DocsEditable | 12871 @DocsEditable() |
| 12872 @Creates('Null') | 12872 @Creates('Null') |
| 12873 final dynamic _get_valueAsDate; | 12873 final dynamic _get_valueAsDate; |
| 12874 | 12874 |
| 12875 void set valueAsDate(DateTime value) { | 12875 void set valueAsDate(DateTime value) { |
| 12876 this._set_valueAsDate = convertDartToNative_DateTime(value); | 12876 this._set_valueAsDate = convertDartToNative_DateTime(value); |
| 12877 } | 12877 } |
| 12878 void set _set_valueAsDate(/*dynamic*/ value) { | 12878 void set _set_valueAsDate(/*dynamic*/ value) { |
| 12879 JS("void", "#.valueAsDate = #", this, value); | 12879 JS("void", "#.valueAsDate = #", this, value); |
| 12880 } | 12880 } |
| 12881 | 12881 |
| 12882 @DomName('HTMLInputElement.valueAsNumber') | 12882 @DomName('HTMLInputElement.valueAsNumber') |
| 12883 @DocsEditable | 12883 @DocsEditable() |
| 12884 num valueAsNumber; | 12884 num valueAsNumber; |
| 12885 | 12885 |
| 12886 @JSName('webkitEntries') | 12886 @JSName('webkitEntries') |
| 12887 @DomName('HTMLInputElement.webkitEntries') | 12887 @DomName('HTMLInputElement.webkitEntries') |
| 12888 @DocsEditable | 12888 @DocsEditable() |
| 12889 @SupportedBrowser(SupportedBrowser.CHROME) | 12889 @SupportedBrowser(SupportedBrowser.CHROME) |
| 12890 @SupportedBrowser(SupportedBrowser.SAFARI) | 12890 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 12891 @Experimental | 12891 @Experimental() |
| 12892 // http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-t
ype-attribute.html#concept-input-type-file-selected | 12892 // http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-t
ype-attribute.html#concept-input-type-file-selected |
| 12893 @Returns('_EntryArray') | 12893 @Returns('_EntryArray') |
| 12894 @Creates('_EntryArray') | 12894 @Creates('_EntryArray') |
| 12895 final List<Entry> entries; | 12895 final List<Entry> entries; |
| 12896 | 12896 |
| 12897 @JSName('webkitGrammar') | 12897 @JSName('webkitGrammar') |
| 12898 @DomName('HTMLInputElement.webkitGrammar') | 12898 @DomName('HTMLInputElement.webkitGrammar') |
| 12899 @DocsEditable | 12899 @DocsEditable() |
| 12900 @SupportedBrowser(SupportedBrowser.CHROME) | 12900 @SupportedBrowser(SupportedBrowser.CHROME) |
| 12901 @SupportedBrowser(SupportedBrowser.SAFARI) | 12901 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 12902 @Experimental | 12902 @Experimental() |
| 12903 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/a
pi-draft.html#attrib-grammar | 12903 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/a
pi-draft.html#attrib-grammar |
| 12904 bool grammar; | 12904 bool grammar; |
| 12905 | 12905 |
| 12906 @JSName('webkitSpeech') | 12906 @JSName('webkitSpeech') |
| 12907 @DomName('HTMLInputElement.webkitSpeech') | 12907 @DomName('HTMLInputElement.webkitSpeech') |
| 12908 @DocsEditable | 12908 @DocsEditable() |
| 12909 @SupportedBrowser(SupportedBrowser.CHROME) | 12909 @SupportedBrowser(SupportedBrowser.CHROME) |
| 12910 @SupportedBrowser(SupportedBrowser.SAFARI) | 12910 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 12911 @Experimental | 12911 @Experimental() |
| 12912 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/a
pi-draft.html#attrib-speech | 12912 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/a
pi-draft.html#attrib-speech |
| 12913 bool speech; | 12913 bool speech; |
| 12914 | 12914 |
| 12915 @JSName('webkitdirectory') | 12915 @JSName('webkitdirectory') |
| 12916 @DomName('HTMLInputElement.webkitdirectory') | 12916 @DomName('HTMLInputElement.webkitdirectory') |
| 12917 @DocsEditable | 12917 @DocsEditable() |
| 12918 @SupportedBrowser(SupportedBrowser.CHROME) | 12918 @SupportedBrowser(SupportedBrowser.CHROME) |
| 12919 @SupportedBrowser(SupportedBrowser.SAFARI) | 12919 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 12920 @Experimental | 12920 @Experimental() |
| 12921 // https://plus.sandbox.google.com/+AddyOsmani/posts/Dk5UhZ6zfF3 | 12921 // https://plus.sandbox.google.com/+AddyOsmani/posts/Dk5UhZ6zfF3 |
| 12922 bool directory; | 12922 bool directory; |
| 12923 | 12923 |
| 12924 @DomName('HTMLInputElement.width') | 12924 @DomName('HTMLInputElement.width') |
| 12925 @DocsEditable | 12925 @DocsEditable() |
| 12926 int width; | 12926 int width; |
| 12927 | 12927 |
| 12928 @DomName('HTMLInputElement.willValidate') | 12928 @DomName('HTMLInputElement.willValidate') |
| 12929 @DocsEditable | 12929 @DocsEditable() |
| 12930 final bool willValidate; | 12930 final bool willValidate; |
| 12931 | 12931 |
| 12932 @DomName('HTMLInputElement.checkValidity') | 12932 @DomName('HTMLInputElement.checkValidity') |
| 12933 @DocsEditable | 12933 @DocsEditable() |
| 12934 bool checkValidity() native; | 12934 bool checkValidity() native; |
| 12935 | 12935 |
| 12936 @DomName('HTMLInputElement.select') | 12936 @DomName('HTMLInputElement.select') |
| 12937 @DocsEditable | 12937 @DocsEditable() |
| 12938 void select() native; | 12938 void select() native; |
| 12939 | 12939 |
| 12940 @DomName('HTMLInputElement.setCustomValidity') | 12940 @DomName('HTMLInputElement.setCustomValidity') |
| 12941 @DocsEditable | 12941 @DocsEditable() |
| 12942 void setCustomValidity(String error) native; | 12942 void setCustomValidity(String error) native; |
| 12943 | 12943 |
| 12944 @DomName('HTMLInputElement.setRangeText') | 12944 @DomName('HTMLInputElement.setRangeText') |
| 12945 @DocsEditable | 12945 @DocsEditable() |
| 12946 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#dom-textarea/input-setrangetext | 12946 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#dom-textarea/input-setrangetext |
| 12947 @Experimental // experimental | 12947 @Experimental() // experimental |
| 12948 void setRangeText(String replacement, {int start, int end, String selectionMod
e}) native; | 12948 void setRangeText(String replacement, {int start, int end, String selectionMod
e}) native; |
| 12949 | 12949 |
| 12950 @DomName('HTMLInputElement.setSelectionRange') | 12950 @DomName('HTMLInputElement.setSelectionRange') |
| 12951 @DocsEditable | 12951 @DocsEditable() |
| 12952 void setSelectionRange(int start, int end, [String direction]) native; | 12952 void setSelectionRange(int start, int end, [String direction]) native; |
| 12953 | 12953 |
| 12954 @DomName('HTMLInputElement.stepDown') | 12954 @DomName('HTMLInputElement.stepDown') |
| 12955 @DocsEditable | 12955 @DocsEditable() |
| 12956 void stepDown([int n]) native; | 12956 void stepDown([int n]) native; |
| 12957 | 12957 |
| 12958 @DomName('HTMLInputElement.stepUp') | 12958 @DomName('HTMLInputElement.stepUp') |
| 12959 @DocsEditable | 12959 @DocsEditable() |
| 12960 void stepUp([int n]) native; | 12960 void stepUp([int n]) native; |
| 12961 | 12961 |
| 12962 @DomName('HTMLInputElement.onwebkitSpeechChange') | 12962 @DomName('HTMLInputElement.onwebkitSpeechChange') |
| 12963 @DocsEditable | 12963 @DocsEditable() |
| 12964 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/a
pi-draft.html#extending_html_elements | 12964 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/a
pi-draft.html#extending_html_elements |
| 12965 @Experimental | 12965 @Experimental() |
| 12966 Stream<Event> get onSpeechChange => speechChangeEvent.forTarget(this); | 12966 Stream<Event> get onSpeechChange => speechChangeEvent.forTarget(this); |
| 12967 | 12967 |
| 12968 } | 12968 } |
| 12969 | 12969 |
| 12970 | 12970 |
| 12971 // Interfaces representing the InputElement APIs which are supported | 12971 // Interfaces representing the InputElement APIs which are supported |
| 12972 // for the various types of InputElement. From: | 12972 // for the various types of InputElement. From: |
| 12973 // http://www.w3.org/html/wg/drafts/html/master/forms.html#the-input-element. | 12973 // http://www.w3.org/html/wg/drafts/html/master/forms.html#the-input-element. |
| 12974 | 12974 |
| 12975 /** | 12975 /** |
| (...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13226 @DomName('HTMLInputElement.stepUp') | 13226 @DomName('HTMLInputElement.stepUp') |
| 13227 void stepUp([int n]); | 13227 void stepUp([int n]); |
| 13228 } | 13228 } |
| 13229 | 13229 |
| 13230 /** | 13230 /** |
| 13231 * A date (year, month, day) with no time zone. | 13231 * A date (year, month, day) with no time zone. |
| 13232 * | 13232 * |
| 13233 * Use [supported] to check if this is supported on the current platform. | 13233 * Use [supported] to check if this is supported on the current platform. |
| 13234 */ | 13234 */ |
| 13235 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 13235 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
| 13236 @Experimental | 13236 @Experimental() |
| 13237 abstract class DateInputElement implements RangeInputElementBase { | 13237 abstract class DateInputElement implements RangeInputElementBase { |
| 13238 factory DateInputElement() => new InputElement(type: 'date'); | 13238 factory DateInputElement() => new InputElement(type: 'date'); |
| 13239 | 13239 |
| 13240 @DomName('HTMLInputElement.valueAsDate') | 13240 @DomName('HTMLInputElement.valueAsDate') |
| 13241 DateTime valueAsDate; | 13241 DateTime valueAsDate; |
| 13242 | 13242 |
| 13243 @DomName('HTMLInputElement.readOnly') | 13243 @DomName('HTMLInputElement.readOnly') |
| 13244 bool readOnly; | 13244 bool readOnly; |
| 13245 | 13245 |
| 13246 @DomName('HTMLInputElement.required') | 13246 @DomName('HTMLInputElement.required') |
| 13247 bool required; | 13247 bool required; |
| 13248 | 13248 |
| 13249 /// Returns true if this input type is supported on the current platform. | 13249 /// Returns true if this input type is supported on the current platform. |
| 13250 static bool get supported { | 13250 static bool get supported { |
| 13251 return (new InputElement(type: 'date')).type == 'date'; | 13251 return (new InputElement(type: 'date')).type == 'date'; |
| 13252 } | 13252 } |
| 13253 } | 13253 } |
| 13254 | 13254 |
| 13255 /** | 13255 /** |
| 13256 * A date consisting of a year and a month with no time zone. | 13256 * A date consisting of a year and a month with no time zone. |
| 13257 * | 13257 * |
| 13258 * Use [supported] to check if this is supported on the current platform. | 13258 * Use [supported] to check if this is supported on the current platform. |
| 13259 */ | 13259 */ |
| 13260 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 13260 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
| 13261 @Experimental | 13261 @Experimental() |
| 13262 abstract class MonthInputElement implements RangeInputElementBase { | 13262 abstract class MonthInputElement implements RangeInputElementBase { |
| 13263 factory MonthInputElement() => new InputElement(type: 'month'); | 13263 factory MonthInputElement() => new InputElement(type: 'month'); |
| 13264 | 13264 |
| 13265 @DomName('HTMLInputElement.valueAsDate') | 13265 @DomName('HTMLInputElement.valueAsDate') |
| 13266 DateTime valueAsDate; | 13266 DateTime valueAsDate; |
| 13267 | 13267 |
| 13268 @DomName('HTMLInputElement.readOnly') | 13268 @DomName('HTMLInputElement.readOnly') |
| 13269 bool readOnly; | 13269 bool readOnly; |
| 13270 | 13270 |
| 13271 @DomName('HTMLInputElement.required') | 13271 @DomName('HTMLInputElement.required') |
| 13272 bool required; | 13272 bool required; |
| 13273 | 13273 |
| 13274 /// Returns true if this input type is supported on the current platform. | 13274 /// Returns true if this input type is supported on the current platform. |
| 13275 static bool get supported { | 13275 static bool get supported { |
| 13276 return (new InputElement(type: 'month')).type == 'month'; | 13276 return (new InputElement(type: 'month')).type == 'month'; |
| 13277 } | 13277 } |
| 13278 } | 13278 } |
| 13279 | 13279 |
| 13280 /** | 13280 /** |
| 13281 * A date consisting of a week-year number and a week number with no time zone. | 13281 * A date consisting of a week-year number and a week number with no time zone. |
| 13282 * | 13282 * |
| 13283 * Use [supported] to check if this is supported on the current platform. | 13283 * Use [supported] to check if this is supported on the current platform. |
| 13284 */ | 13284 */ |
| 13285 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 13285 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
| 13286 @Experimental | 13286 @Experimental() |
| 13287 abstract class WeekInputElement implements RangeInputElementBase { | 13287 abstract class WeekInputElement implements RangeInputElementBase { |
| 13288 factory WeekInputElement() => new InputElement(type: 'week'); | 13288 factory WeekInputElement() => new InputElement(type: 'week'); |
| 13289 | 13289 |
| 13290 @DomName('HTMLInputElement.valueAsDate') | 13290 @DomName('HTMLInputElement.valueAsDate') |
| 13291 DateTime valueAsDate; | 13291 DateTime valueAsDate; |
| 13292 | 13292 |
| 13293 @DomName('HTMLInputElement.readOnly') | 13293 @DomName('HTMLInputElement.readOnly') |
| 13294 bool readOnly; | 13294 bool readOnly; |
| 13295 | 13295 |
| 13296 @DomName('HTMLInputElement.required') | 13296 @DomName('HTMLInputElement.required') |
| 13297 bool required; | 13297 bool required; |
| 13298 | 13298 |
| 13299 /// Returns true if this input type is supported on the current platform. | 13299 /// Returns true if this input type is supported on the current platform. |
| 13300 static bool get supported { | 13300 static bool get supported { |
| 13301 return (new InputElement(type: 'week')).type == 'week'; | 13301 return (new InputElement(type: 'week')).type == 'week'; |
| 13302 } | 13302 } |
| 13303 } | 13303 } |
| 13304 | 13304 |
| 13305 /** | 13305 /** |
| 13306 * A time (hour, minute, seconds, fractional seconds) with no time zone. | 13306 * A time (hour, minute, seconds, fractional seconds) with no time zone. |
| 13307 * | 13307 * |
| 13308 * Use [supported] to check if this is supported on the current platform. | 13308 * Use [supported] to check if this is supported on the current platform. |
| 13309 */ | 13309 */ |
| 13310 @SupportedBrowser(SupportedBrowser.CHROME) | 13310 @SupportedBrowser(SupportedBrowser.CHROME) |
| 13311 @Experimental | 13311 @Experimental() |
| 13312 abstract class TimeInputElement implements RangeInputElementBase { | 13312 abstract class TimeInputElement implements RangeInputElementBase { |
| 13313 factory TimeInputElement() => new InputElement(type: 'time'); | 13313 factory TimeInputElement() => new InputElement(type: 'time'); |
| 13314 | 13314 |
| 13315 @DomName('HTMLInputElement.valueAsDate') | 13315 @DomName('HTMLInputElement.valueAsDate') |
| 13316 DateTime valueAsDate; | 13316 DateTime valueAsDate; |
| 13317 | 13317 |
| 13318 @DomName('HTMLInputElement.readOnly') | 13318 @DomName('HTMLInputElement.readOnly') |
| 13319 bool readOnly; | 13319 bool readOnly; |
| 13320 | 13320 |
| 13321 @DomName('HTMLInputElement.required') | 13321 @DomName('HTMLInputElement.required') |
| 13322 bool required; | 13322 bool required; |
| 13323 | 13323 |
| 13324 /// Returns true if this input type is supported on the current platform. | 13324 /// Returns true if this input type is supported on the current platform. |
| 13325 static bool get supported { | 13325 static bool get supported { |
| 13326 return (new InputElement(type: 'time')).type == 'time'; | 13326 return (new InputElement(type: 'time')).type == 'time'; |
| 13327 } | 13327 } |
| 13328 } | 13328 } |
| 13329 | 13329 |
| 13330 /** | 13330 /** |
| 13331 * A date and time (year, month, day, hour, minute, second, fraction of a | 13331 * A date and time (year, month, day, hour, minute, second, fraction of a |
| 13332 * second) with no time zone. | 13332 * second) with no time zone. |
| 13333 * | 13333 * |
| 13334 * Use [supported] to check if this is supported on the current platform. | 13334 * Use [supported] to check if this is supported on the current platform. |
| 13335 */ | 13335 */ |
| 13336 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 13336 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
| 13337 @Experimental | 13337 @Experimental() |
| 13338 abstract class LocalDateTimeInputElement implements RangeInputElementBase { | 13338 abstract class LocalDateTimeInputElement implements RangeInputElementBase { |
| 13339 factory LocalDateTimeInputElement() => | 13339 factory LocalDateTimeInputElement() => |
| 13340 new InputElement(type: 'datetime-local'); | 13340 new InputElement(type: 'datetime-local'); |
| 13341 | 13341 |
| 13342 @DomName('HTMLInputElement.readOnly') | 13342 @DomName('HTMLInputElement.readOnly') |
| 13343 bool readOnly; | 13343 bool readOnly; |
| 13344 | 13344 |
| 13345 @DomName('HTMLInputElement.required') | 13345 @DomName('HTMLInputElement.required') |
| 13346 bool required; | 13346 bool required; |
| 13347 | 13347 |
| 13348 /// Returns true if this input type is supported on the current platform. | 13348 /// Returns true if this input type is supported on the current platform. |
| 13349 static bool get supported { | 13349 static bool get supported { |
| 13350 return (new InputElement(type: 'datetime-local')).type == 'datetime-local'; | 13350 return (new InputElement(type: 'datetime-local')).type == 'datetime-local'; |
| 13351 } | 13351 } |
| 13352 } | 13352 } |
| 13353 | 13353 |
| 13354 /** | 13354 /** |
| 13355 * A numeric editor control. | 13355 * A numeric editor control. |
| 13356 */ | 13356 */ |
| 13357 @SupportedBrowser(SupportedBrowser.CHROME) | 13357 @SupportedBrowser(SupportedBrowser.CHROME) |
| 13358 @SupportedBrowser(SupportedBrowser.IE) | 13358 @SupportedBrowser(SupportedBrowser.IE) |
| 13359 @SupportedBrowser(SupportedBrowser.SAFARI) | 13359 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 13360 @Experimental | 13360 @Experimental() |
| 13361 abstract class NumberInputElement implements RangeInputElementBase { | 13361 abstract class NumberInputElement implements RangeInputElementBase { |
| 13362 factory NumberInputElement() => new InputElement(type: 'number'); | 13362 factory NumberInputElement() => new InputElement(type: 'number'); |
| 13363 | 13363 |
| 13364 @DomName('HTMLInputElement.placeholder') | 13364 @DomName('HTMLInputElement.placeholder') |
| 13365 String placeholder; | 13365 String placeholder; |
| 13366 | 13366 |
| 13367 @DomName('HTMLInputElement.readOnly') | 13367 @DomName('HTMLInputElement.readOnly') |
| 13368 bool readOnly; | 13368 bool readOnly; |
| 13369 | 13369 |
| 13370 @DomName('HTMLInputElement.required') | 13370 @DomName('HTMLInputElement.required') |
| 13371 bool required; | 13371 bool required; |
| 13372 | 13372 |
| 13373 /// Returns true if this input type is supported on the current platform. | 13373 /// Returns true if this input type is supported on the current platform. |
| 13374 static bool get supported { | 13374 static bool get supported { |
| 13375 return (new InputElement(type: 'number')).type == 'number'; | 13375 return (new InputElement(type: 'number')).type == 'number'; |
| 13376 } | 13376 } |
| 13377 } | 13377 } |
| 13378 | 13378 |
| 13379 /** | 13379 /** |
| 13380 * Similar to [NumberInputElement] but the browser may provide more optimal | 13380 * Similar to [NumberInputElement] but the browser may provide more optimal |
| 13381 * styling (such as a slider control). | 13381 * styling (such as a slider control). |
| 13382 * | 13382 * |
| 13383 * Use [supported] to check if this is supported on the current platform. | 13383 * Use [supported] to check if this is supported on the current platform. |
| 13384 */ | 13384 */ |
| 13385 @SupportedBrowser(SupportedBrowser.CHROME) | 13385 @SupportedBrowser(SupportedBrowser.CHROME) |
| 13386 @SupportedBrowser(SupportedBrowser.IE, '10') | 13386 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 13387 @Experimental | 13387 @Experimental() |
| 13388 abstract class RangeInputElement implements RangeInputElementBase { | 13388 abstract class RangeInputElement implements RangeInputElementBase { |
| 13389 factory RangeInputElement() => new InputElement(type: 'range'); | 13389 factory RangeInputElement() => new InputElement(type: 'range'); |
| 13390 | 13390 |
| 13391 /// Returns true if this input type is supported on the current platform. | 13391 /// Returns true if this input type is supported on the current platform. |
| 13392 static bool get supported { | 13392 static bool get supported { |
| 13393 return (new InputElement(type: 'range')).type == 'range'; | 13393 return (new InputElement(type: 'range')).type == 'range'; |
| 13394 } | 13394 } |
| 13395 } | 13395 } |
| 13396 | 13396 |
| 13397 /** | 13397 /** |
| (...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13520 */ | 13520 */ |
| 13521 abstract class ButtonInputElement implements InputElementBase { | 13521 abstract class ButtonInputElement implements InputElementBase { |
| 13522 factory ButtonInputElement() => new InputElement(type: 'button'); | 13522 factory ButtonInputElement() => new InputElement(type: 'button'); |
| 13523 } | 13523 } |
| 13524 | 13524 |
| 13525 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13525 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13526 // for details. All rights reserved. Use of this source code is governed by a | 13526 // for details. All rights reserved. Use of this source code is governed by a |
| 13527 // BSD-style license that can be found in the LICENSE file. | 13527 // BSD-style license that can be found in the LICENSE file. |
| 13528 | 13528 |
| 13529 | 13529 |
| 13530 @DocsEditable | 13530 @DocsEditable() |
| 13531 @DomName('InputMethodContext') | 13531 @DomName('InputMethodContext') |
| 13532 // http://www.w3.org/TR/ime-api/#idl-def-InputMethodContext | 13532 // http://www.w3.org/TR/ime-api/#idl-def-InputMethodContext |
| 13533 @Experimental | 13533 @Experimental() |
| 13534 class InputMethodContext extends Interceptor native "InputMethodContext" { | 13534 class InputMethodContext extends Interceptor native "InputMethodContext" { |
| 13535 | 13535 |
| 13536 @DomName('InputMethodContext.composition') | 13536 @DomName('InputMethodContext.composition') |
| 13537 @DocsEditable | 13537 @DocsEditable() |
| 13538 final Composition composition; | 13538 final Composition composition; |
| 13539 | 13539 |
| 13540 @DomName('InputMethodContext.enabled') | 13540 @DomName('InputMethodContext.enabled') |
| 13541 @DocsEditable | 13541 @DocsEditable() |
| 13542 bool enabled; | 13542 bool enabled; |
| 13543 | 13543 |
| 13544 @DomName('InputMethodContext.locale') | 13544 @DomName('InputMethodContext.locale') |
| 13545 @DocsEditable | 13545 @DocsEditable() |
| 13546 final String locale; | 13546 final String locale; |
| 13547 | 13547 |
| 13548 @DomName('InputMethodContext.confirmComposition') | 13548 @DomName('InputMethodContext.confirmComposition') |
| 13549 @DocsEditable | 13549 @DocsEditable() |
| 13550 void confirmComposition() native; | 13550 void confirmComposition() native; |
| 13551 | 13551 |
| 13552 @DomName('InputMethodContext.open') | 13552 @DomName('InputMethodContext.open') |
| 13553 @DocsEditable | 13553 @DocsEditable() |
| 13554 bool open() native; | 13554 bool open() native; |
| 13555 | 13555 |
| 13556 @DomName('InputMethodContext.setCaretRectangle') | 13556 @DomName('InputMethodContext.setCaretRectangle') |
| 13557 @DocsEditable | 13557 @DocsEditable() |
| 13558 void setCaretRectangle(Node anchor, int x, int y, int w, int h) native; | 13558 void setCaretRectangle(Node anchor, int x, int y, int w, int h) native; |
| 13559 | 13559 |
| 13560 @DomName('InputMethodContext.setExclusionRectangle') | 13560 @DomName('InputMethodContext.setExclusionRectangle') |
| 13561 @DocsEditable | 13561 @DocsEditable() |
| 13562 void setExclusionRectangle(Node anchor, int x, int y, int w, int h) native; | 13562 void setExclusionRectangle(Node anchor, int x, int y, int w, int h) native; |
| 13563 } | 13563 } |
| 13564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13565 // for details. All rights reserved. Use of this source code is governed by a | 13565 // for details. All rights reserved. Use of this source code is governed by a |
| 13566 // BSD-style license that can be found in the LICENSE file. | 13566 // BSD-style license that can be found in the LICENSE file. |
| 13567 | 13567 |
| 13568 | 13568 |
| 13569 /** | 13569 /** |
| 13570 * An event that describes user interaction with the keyboard. | 13570 * An event that describes user interaction with the keyboard. |
| 13571 * | 13571 * |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 13614 | 13614 |
| 13615 @DomName('KeyboardEvent.keyCode') | 13615 @DomName('KeyboardEvent.keyCode') |
| 13616 int get keyCode => $dom_keyCode; | 13616 int get keyCode => $dom_keyCode; |
| 13617 | 13617 |
| 13618 @DomName('KeyboardEvent.charCode') | 13618 @DomName('KeyboardEvent.charCode') |
| 13619 int get charCode => $dom_charCode; | 13619 int get charCode => $dom_charCode; |
| 13620 // To suppress missing implicit constructor warnings. | 13620 // To suppress missing implicit constructor warnings. |
| 13621 factory KeyboardEvent._() { throw new UnsupportedError("Not supported"); } | 13621 factory KeyboardEvent._() { throw new UnsupportedError("Not supported"); } |
| 13622 | 13622 |
| 13623 @DomName('KeyboardEvent.altGraphKey') | 13623 @DomName('KeyboardEvent.altGraphKey') |
| 13624 @DocsEditable | 13624 @DocsEditable() |
| 13625 @Experimental // nonstandard | 13625 @Experimental() // nonstandard |
| 13626 final bool altGraphKey; | 13626 final bool altGraphKey; |
| 13627 | 13627 |
| 13628 @DomName('KeyboardEvent.altKey') | 13628 @DomName('KeyboardEvent.altKey') |
| 13629 @DocsEditable | 13629 @DocsEditable() |
| 13630 final bool altKey; | 13630 final bool altKey; |
| 13631 | 13631 |
| 13632 @DomName('KeyboardEvent.ctrlKey') | 13632 @DomName('KeyboardEvent.ctrlKey') |
| 13633 @DocsEditable | 13633 @DocsEditable() |
| 13634 final bool ctrlKey; | 13634 final bool ctrlKey; |
| 13635 | 13635 |
| 13636 @JSName('keyIdentifier') | 13636 @JSName('keyIdentifier') |
| 13637 @DomName('KeyboardEvent.keyIdentifier') | 13637 @DomName('KeyboardEvent.keyIdentifier') |
| 13638 @DocsEditable | 13638 @DocsEditable() |
| 13639 @Experimental // nonstandard | 13639 @Experimental() // nonstandard |
| 13640 final String $dom_keyIdentifier; | 13640 final String $dom_keyIdentifier; |
| 13641 | 13641 |
| 13642 @DomName('KeyboardEvent.keyLocation') | 13642 @DomName('KeyboardEvent.keyLocation') |
| 13643 @DocsEditable | 13643 @DocsEditable() |
| 13644 @Experimental // nonstandard | 13644 @Experimental() // nonstandard |
| 13645 final int keyLocation; | 13645 final int keyLocation; |
| 13646 | 13646 |
| 13647 @DomName('KeyboardEvent.metaKey') | 13647 @DomName('KeyboardEvent.metaKey') |
| 13648 @DocsEditable | 13648 @DocsEditable() |
| 13649 final bool metaKey; | 13649 final bool metaKey; |
| 13650 | 13650 |
| 13651 @DomName('KeyboardEvent.shiftKey') | 13651 @DomName('KeyboardEvent.shiftKey') |
| 13652 @DocsEditable | 13652 @DocsEditable() |
| 13653 final bool shiftKey; | 13653 final bool shiftKey; |
| 13654 | 13654 |
| 13655 } | 13655 } |
| 13656 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13656 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13657 // for details. All rights reserved. Use of this source code is governed by a | 13657 // for details. All rights reserved. Use of this source code is governed by a |
| 13658 // BSD-style license that can be found in the LICENSE file. | 13658 // BSD-style license that can be found in the LICENSE file. |
| 13659 | 13659 |
| 13660 | 13660 |
| 13661 @DocsEditable | 13661 @DocsEditable() |
| 13662 @DomName('HTMLKeygenElement') | 13662 @DomName('HTMLKeygenElement') |
| 13663 @SupportedBrowser(SupportedBrowser.CHROME) | 13663 @SupportedBrowser(SupportedBrowser.CHROME) |
| 13664 @SupportedBrowser(SupportedBrowser.SAFARI) | 13664 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 13665 @Experimental | 13665 @Experimental() |
| 13666 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-elemen
t.html#the-keygen-element | 13666 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-elemen
t.html#the-keygen-element |
| 13667 class KeygenElement extends _HTMLElement native "HTMLKeygenElement" { | 13667 class KeygenElement extends _HTMLElement native "HTMLKeygenElement" { |
| 13668 // To suppress missing implicit constructor warnings. | 13668 // To suppress missing implicit constructor warnings. |
| 13669 factory KeygenElement._() { throw new UnsupportedError("Not supported"); } | 13669 factory KeygenElement._() { throw new UnsupportedError("Not supported"); } |
| 13670 | 13670 |
| 13671 @DomName('HTMLKeygenElement.HTMLKeygenElement') | 13671 @DomName('HTMLKeygenElement.HTMLKeygenElement') |
| 13672 @DocsEditable | 13672 @DocsEditable() |
| 13673 factory KeygenElement() => document.$dom_createElement("keygen"); | 13673 factory KeygenElement() => document.$dom_createElement("keygen"); |
| 13674 | 13674 |
| 13675 /// Checks if this type is supported on the current platform. | 13675 /// Checks if this type is supported on the current platform. |
| 13676 static bool get supported => Element.isTagSupported('keygen') && (new Element.
tag('keygen') is KeygenElement); | 13676 static bool get supported => Element.isTagSupported('keygen') && (new Element.
tag('keygen') is KeygenElement); |
| 13677 | 13677 |
| 13678 @DomName('HTMLKeygenElement.autofocus') | 13678 @DomName('HTMLKeygenElement.autofocus') |
| 13679 @DocsEditable | 13679 @DocsEditable() |
| 13680 bool autofocus; | 13680 bool autofocus; |
| 13681 | 13681 |
| 13682 @DomName('HTMLKeygenElement.challenge') | 13682 @DomName('HTMLKeygenElement.challenge') |
| 13683 @DocsEditable | 13683 @DocsEditable() |
| 13684 String challenge; | 13684 String challenge; |
| 13685 | 13685 |
| 13686 @DomName('HTMLKeygenElement.disabled') | 13686 @DomName('HTMLKeygenElement.disabled') |
| 13687 @DocsEditable | 13687 @DocsEditable() |
| 13688 bool disabled; | 13688 bool disabled; |
| 13689 | 13689 |
| 13690 @DomName('HTMLKeygenElement.form') | 13690 @DomName('HTMLKeygenElement.form') |
| 13691 @DocsEditable | 13691 @DocsEditable() |
| 13692 final FormElement form; | 13692 final FormElement form; |
| 13693 | 13693 |
| 13694 @DomName('HTMLKeygenElement.keytype') | 13694 @DomName('HTMLKeygenElement.keytype') |
| 13695 @DocsEditable | 13695 @DocsEditable() |
| 13696 String keytype; | 13696 String keytype; |
| 13697 | 13697 |
| 13698 @DomName('HTMLKeygenElement.labels') | 13698 @DomName('HTMLKeygenElement.labels') |
| 13699 @DocsEditable | 13699 @DocsEditable() |
| 13700 @Unstable | 13700 @Unstable() |
| 13701 @Returns('NodeList') | 13701 @Returns('NodeList') |
| 13702 @Creates('NodeList') | 13702 @Creates('NodeList') |
| 13703 final List<Node> labels; | 13703 final List<Node> labels; |
| 13704 | 13704 |
| 13705 @DomName('HTMLKeygenElement.name') | 13705 @DomName('HTMLKeygenElement.name') |
| 13706 @DocsEditable | 13706 @DocsEditable() |
| 13707 String name; | 13707 String name; |
| 13708 | 13708 |
| 13709 @DomName('HTMLKeygenElement.type') | 13709 @DomName('HTMLKeygenElement.type') |
| 13710 @DocsEditable | 13710 @DocsEditable() |
| 13711 final String type; | 13711 final String type; |
| 13712 | 13712 |
| 13713 @DomName('HTMLKeygenElement.validationMessage') | 13713 @DomName('HTMLKeygenElement.validationMessage') |
| 13714 @DocsEditable | 13714 @DocsEditable() |
| 13715 final String validationMessage; | 13715 final String validationMessage; |
| 13716 | 13716 |
| 13717 @DomName('HTMLKeygenElement.validity') | 13717 @DomName('HTMLKeygenElement.validity') |
| 13718 @DocsEditable | 13718 @DocsEditable() |
| 13719 final ValidityState validity; | 13719 final ValidityState validity; |
| 13720 | 13720 |
| 13721 @DomName('HTMLKeygenElement.willValidate') | 13721 @DomName('HTMLKeygenElement.willValidate') |
| 13722 @DocsEditable | 13722 @DocsEditable() |
| 13723 final bool willValidate; | 13723 final bool willValidate; |
| 13724 | 13724 |
| 13725 @DomName('HTMLKeygenElement.checkValidity') | 13725 @DomName('HTMLKeygenElement.checkValidity') |
| 13726 @DocsEditable | 13726 @DocsEditable() |
| 13727 bool checkValidity() native; | 13727 bool checkValidity() native; |
| 13728 | 13728 |
| 13729 @DomName('HTMLKeygenElement.setCustomValidity') | 13729 @DomName('HTMLKeygenElement.setCustomValidity') |
| 13730 @DocsEditable | 13730 @DocsEditable() |
| 13731 void setCustomValidity(String error) native; | 13731 void setCustomValidity(String error) native; |
| 13732 } | 13732 } |
| 13733 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13733 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13734 // for details. All rights reserved. Use of this source code is governed by a | 13734 // for details. All rights reserved. Use of this source code is governed by a |
| 13735 // BSD-style license that can be found in the LICENSE file. | 13735 // BSD-style license that can be found in the LICENSE file. |
| 13736 | 13736 |
| 13737 | 13737 |
| 13738 @DocsEditable | 13738 @DocsEditable() |
| 13739 @DomName('HTMLLIElement') | 13739 @DomName('HTMLLIElement') |
| 13740 class LIElement extends _HTMLElement native "HTMLLIElement" { | 13740 class LIElement extends _HTMLElement native "HTMLLIElement" { |
| 13741 // To suppress missing implicit constructor warnings. | 13741 // To suppress missing implicit constructor warnings. |
| 13742 factory LIElement._() { throw new UnsupportedError("Not supported"); } | 13742 factory LIElement._() { throw new UnsupportedError("Not supported"); } |
| 13743 | 13743 |
| 13744 @DomName('HTMLLIElement.HTMLLIElement') | 13744 @DomName('HTMLLIElement.HTMLLIElement') |
| 13745 @DocsEditable | 13745 @DocsEditable() |
| 13746 factory LIElement() => document.$dom_createElement("li"); | 13746 factory LIElement() => document.$dom_createElement("li"); |
| 13747 | 13747 |
| 13748 @DomName('HTMLLIElement.type') | 13748 @DomName('HTMLLIElement.type') |
| 13749 @DocsEditable | 13749 @DocsEditable() |
| 13750 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLLIElement-partial | 13750 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLLIElement-partial |
| 13751 @deprecated // deprecated | 13751 @deprecated // deprecated |
| 13752 String type; | 13752 String type; |
| 13753 | 13753 |
| 13754 @DomName('HTMLLIElement.value') | 13754 @DomName('HTMLLIElement.value') |
| 13755 @DocsEditable | 13755 @DocsEditable() |
| 13756 int value; | 13756 int value; |
| 13757 } | 13757 } |
| 13758 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13758 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13759 // for details. All rights reserved. Use of this source code is governed by a | 13759 // for details. All rights reserved. Use of this source code is governed by a |
| 13760 // BSD-style license that can be found in the LICENSE file. | 13760 // BSD-style license that can be found in the LICENSE file. |
| 13761 | 13761 |
| 13762 | 13762 |
| 13763 @DocsEditable | 13763 @DocsEditable() |
| 13764 @DomName('HTMLLabelElement') | 13764 @DomName('HTMLLabelElement') |
| 13765 class LabelElement extends _HTMLElement native "HTMLLabelElement" { | 13765 class LabelElement extends _HTMLElement native "HTMLLabelElement" { |
| 13766 // To suppress missing implicit constructor warnings. | 13766 // To suppress missing implicit constructor warnings. |
| 13767 factory LabelElement._() { throw new UnsupportedError("Not supported"); } | 13767 factory LabelElement._() { throw new UnsupportedError("Not supported"); } |
| 13768 | 13768 |
| 13769 @DomName('HTMLLabelElement.HTMLLabelElement') | 13769 @DomName('HTMLLabelElement.HTMLLabelElement') |
| 13770 @DocsEditable | 13770 @DocsEditable() |
| 13771 factory LabelElement() => document.$dom_createElement("label"); | 13771 factory LabelElement() => document.$dom_createElement("label"); |
| 13772 | 13772 |
| 13773 @DomName('HTMLLabelElement.control') | 13773 @DomName('HTMLLabelElement.control') |
| 13774 @DocsEditable | 13774 @DocsEditable() |
| 13775 final Element control; | 13775 final Element control; |
| 13776 | 13776 |
| 13777 @DomName('HTMLLabelElement.form') | 13777 @DomName('HTMLLabelElement.form') |
| 13778 @DocsEditable | 13778 @DocsEditable() |
| 13779 final FormElement form; | 13779 final FormElement form; |
| 13780 | 13780 |
| 13781 @DomName('HTMLLabelElement.htmlFor') | 13781 @DomName('HTMLLabelElement.htmlFor') |
| 13782 @DocsEditable | 13782 @DocsEditable() |
| 13783 String htmlFor; | 13783 String htmlFor; |
| 13784 } | 13784 } |
| 13785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13786 // for details. All rights reserved. Use of this source code is governed by a | 13786 // for details. All rights reserved. Use of this source code is governed by a |
| 13787 // BSD-style license that can be found in the LICENSE file. | 13787 // BSD-style license that can be found in the LICENSE file. |
| 13788 | 13788 |
| 13789 | 13789 |
| 13790 @DocsEditable | 13790 @DocsEditable() |
| 13791 @DomName('HTMLLegendElement') | 13791 @DomName('HTMLLegendElement') |
| 13792 class LegendElement extends _HTMLElement native "HTMLLegendElement" { | 13792 class LegendElement extends _HTMLElement native "HTMLLegendElement" { |
| 13793 // To suppress missing implicit constructor warnings. | 13793 // To suppress missing implicit constructor warnings. |
| 13794 factory LegendElement._() { throw new UnsupportedError("Not supported"); } | 13794 factory LegendElement._() { throw new UnsupportedError("Not supported"); } |
| 13795 | 13795 |
| 13796 @DomName('HTMLLegendElement.HTMLLegendElement') | 13796 @DomName('HTMLLegendElement.HTMLLegendElement') |
| 13797 @DocsEditable | 13797 @DocsEditable() |
| 13798 factory LegendElement() => document.$dom_createElement("legend"); | 13798 factory LegendElement() => document.$dom_createElement("legend"); |
| 13799 | 13799 |
| 13800 @DomName('HTMLLegendElement.form') | 13800 @DomName('HTMLLegendElement.form') |
| 13801 @DocsEditable | 13801 @DocsEditable() |
| 13802 final FormElement form; | 13802 final FormElement form; |
| 13803 } | 13803 } |
| 13804 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13804 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13805 // for details. All rights reserved. Use of this source code is governed by a | 13805 // for details. All rights reserved. Use of this source code is governed by a |
| 13806 // BSD-style license that can be found in the LICENSE file. | 13806 // BSD-style license that can be found in the LICENSE file. |
| 13807 | 13807 |
| 13808 | 13808 |
| 13809 @DocsEditable | 13809 @DocsEditable() |
| 13810 @DomName('HTMLLinkElement') | 13810 @DomName('HTMLLinkElement') |
| 13811 class LinkElement extends _HTMLElement native "HTMLLinkElement" { | 13811 class LinkElement extends _HTMLElement native "HTMLLinkElement" { |
| 13812 // To suppress missing implicit constructor warnings. | 13812 // To suppress missing implicit constructor warnings. |
| 13813 factory LinkElement._() { throw new UnsupportedError("Not supported"); } | 13813 factory LinkElement._() { throw new UnsupportedError("Not supported"); } |
| 13814 | 13814 |
| 13815 @DomName('HTMLLinkElement.HTMLLinkElement') | 13815 @DomName('HTMLLinkElement.HTMLLinkElement') |
| 13816 @DocsEditable | 13816 @DocsEditable() |
| 13817 factory LinkElement() => document.$dom_createElement("link"); | 13817 factory LinkElement() => document.$dom_createElement("link"); |
| 13818 | 13818 |
| 13819 @DomName('HTMLLinkElement.disabled') | 13819 @DomName('HTMLLinkElement.disabled') |
| 13820 @DocsEditable | 13820 @DocsEditable() |
| 13821 bool disabled; | 13821 bool disabled; |
| 13822 | 13822 |
| 13823 @DomName('HTMLLinkElement.href') | 13823 @DomName('HTMLLinkElement.href') |
| 13824 @DocsEditable | 13824 @DocsEditable() |
| 13825 String href; | 13825 String href; |
| 13826 | 13826 |
| 13827 @DomName('HTMLLinkElement.hreflang') | 13827 @DomName('HTMLLinkElement.hreflang') |
| 13828 @DocsEditable | 13828 @DocsEditable() |
| 13829 String hreflang; | 13829 String hreflang; |
| 13830 | 13830 |
| 13831 @DomName('HTMLLinkElement.import') | 13831 @DomName('HTMLLinkElement.import') |
| 13832 @DocsEditable | 13832 @DocsEditable() |
| 13833 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/imports/index.html#i
nterface-import | 13833 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/imports/index.html#i
nterface-import |
| 13834 @Experimental | 13834 @Experimental() |
| 13835 final DocumentFragment import; | 13835 final DocumentFragment import; |
| 13836 | 13836 |
| 13837 @DomName('HTMLLinkElement.media') | 13837 @DomName('HTMLLinkElement.media') |
| 13838 @DocsEditable | 13838 @DocsEditable() |
| 13839 String media; | 13839 String media; |
| 13840 | 13840 |
| 13841 @DomName('HTMLLinkElement.rel') | 13841 @DomName('HTMLLinkElement.rel') |
| 13842 @DocsEditable | 13842 @DocsEditable() |
| 13843 String rel; | 13843 String rel; |
| 13844 | 13844 |
| 13845 @DomName('HTMLLinkElement.sheet') | 13845 @DomName('HTMLLinkElement.sheet') |
| 13846 @DocsEditable | 13846 @DocsEditable() |
| 13847 final StyleSheet sheet; | 13847 final StyleSheet sheet; |
| 13848 | 13848 |
| 13849 @DomName('HTMLLinkElement.sizes') | 13849 @DomName('HTMLLinkElement.sizes') |
| 13850 @DocsEditable | 13850 @DocsEditable() |
| 13851 DomSettableTokenList sizes; | 13851 DomSettableTokenList sizes; |
| 13852 | 13852 |
| 13853 @DomName('HTMLLinkElement.type') | 13853 @DomName('HTMLLinkElement.type') |
| 13854 @DocsEditable | 13854 @DocsEditable() |
| 13855 String type; | 13855 String type; |
| 13856 } | 13856 } |
| 13857 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 13857 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 13858 // for details. All rights reserved. Use of this source code is governed by a | 13858 // for details. All rights reserved. Use of this source code is governed by a |
| 13859 // BSD-style license that can be found in the LICENSE file. | 13859 // BSD-style license that can be found in the LICENSE file. |
| 13860 | 13860 |
| 13861 | 13861 |
| 13862 @DocsEditable | 13862 @DocsEditable() |
| 13863 @DomName('Location') | 13863 @DomName('Location') |
| 13864 class Location extends Interceptor implements LocationBase native "Location" { | 13864 class Location extends Interceptor implements LocationBase native "Location" { |
| 13865 | 13865 |
| 13866 @DomName('Location.ancestorOrigins') | 13866 @DomName('Location.ancestorOrigins') |
| 13867 @DocsEditable | 13867 @DocsEditable() |
| 13868 @Experimental // nonstandard | 13868 @Experimental() // nonstandard |
| 13869 @Returns('DomStringList') | 13869 @Returns('DomStringList') |
| 13870 @Creates('DomStringList') | 13870 @Creates('DomStringList') |
| 13871 final List<String> ancestorOrigins; | 13871 final List<String> ancestorOrigins; |
| 13872 | 13872 |
| 13873 @DomName('Location.hash') | 13873 @DomName('Location.hash') |
| 13874 @DocsEditable | 13874 @DocsEditable() |
| 13875 String hash; | 13875 String hash; |
| 13876 | 13876 |
| 13877 @DomName('Location.host') | 13877 @DomName('Location.host') |
| 13878 @DocsEditable | 13878 @DocsEditable() |
| 13879 String host; | 13879 String host; |
| 13880 | 13880 |
| 13881 @DomName('Location.hostname') | 13881 @DomName('Location.hostname') |
| 13882 @DocsEditable | 13882 @DocsEditable() |
| 13883 String hostname; | 13883 String hostname; |
| 13884 | 13884 |
| 13885 @DomName('Location.href') | 13885 @DomName('Location.href') |
| 13886 @DocsEditable | 13886 @DocsEditable() |
| 13887 String href; | 13887 String href; |
| 13888 | 13888 |
| 13889 @DomName('Location.pathname') | 13889 @DomName('Location.pathname') |
| 13890 @DocsEditable | 13890 @DocsEditable() |
| 13891 String pathname; | 13891 String pathname; |
| 13892 | 13892 |
| 13893 @DomName('Location.port') | 13893 @DomName('Location.port') |
| 13894 @DocsEditable | 13894 @DocsEditable() |
| 13895 String port; | 13895 String port; |
| 13896 | 13896 |
| 13897 @DomName('Location.protocol') | 13897 @DomName('Location.protocol') |
| 13898 @DocsEditable | 13898 @DocsEditable() |
| 13899 String protocol; | 13899 String protocol; |
| 13900 | 13900 |
| 13901 @DomName('Location.search') | 13901 @DomName('Location.search') |
| 13902 @DocsEditable | 13902 @DocsEditable() |
| 13903 String search; | 13903 String search; |
| 13904 | 13904 |
| 13905 @DomName('Location.assign') | 13905 @DomName('Location.assign') |
| 13906 @DocsEditable | 13906 @DocsEditable() |
| 13907 void assign(String url) native; | 13907 void assign(String url) native; |
| 13908 | 13908 |
| 13909 @DomName('Location.reload') | 13909 @DomName('Location.reload') |
| 13910 @DocsEditable | 13910 @DocsEditable() |
| 13911 void reload() native; | 13911 void reload() native; |
| 13912 | 13912 |
| 13913 @DomName('Location.replace') | 13913 @DomName('Location.replace') |
| 13914 @DocsEditable | 13914 @DocsEditable() |
| 13915 void replace(String url) native; | 13915 void replace(String url) native; |
| 13916 | 13916 |
| 13917 @DomName('Location.toString') | 13917 @DomName('Location.toString') |
| 13918 @DocsEditable | 13918 @DocsEditable() |
| 13919 String toString() native; | 13919 String toString() native; |
| 13920 | 13920 |
| 13921 | 13921 |
| 13922 @DomName('Location.origin') | 13922 @DomName('Location.origin') |
| 13923 String get origin { | 13923 String get origin { |
| 13924 if (JS('bool', '("origin" in #)', this)) { | 13924 if (JS('bool', '("origin" in #)', this)) { |
| 13925 return JS('String', '#.origin', this); | 13925 return JS('String', '#.origin', this); |
| 13926 } | 13926 } |
| 13927 return '${this.protocol}//${this.host}'; | 13927 return '${this.protocol}//${this.host}'; |
| 13928 } | 13928 } |
| 13929 } | 13929 } |
| 13930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13930 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13931 // for details. All rights reserved. Use of this source code is governed by a | 13931 // for details. All rights reserved. Use of this source code is governed by a |
| 13932 // BSD-style license that can be found in the LICENSE file. | 13932 // BSD-style license that can be found in the LICENSE file. |
| 13933 | 13933 |
| 13934 // WARNING: Do not edit - generated code. | 13934 // WARNING: Do not edit - generated code. |
| 13935 | 13935 |
| 13936 | 13936 |
| 13937 @DomName('MIDIErrorCallback') | 13937 @DomName('MIDIErrorCallback') |
| 13938 // http://webaudio.github.io/web-midi-api/#midierrorcallback | 13938 // http://webaudio.github.io/web-midi-api/#midierrorcallback |
| 13939 @Experimental | 13939 @Experimental() |
| 13940 typedef void MidiErrorCallback(DomError error); | 13940 typedef void MidiErrorCallback(DomError error); |
| 13941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13941 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13942 // for details. All rights reserved. Use of this source code is governed by a | 13942 // for details. All rights reserved. Use of this source code is governed by a |
| 13943 // BSD-style license that can be found in the LICENSE file. | 13943 // BSD-style license that can be found in the LICENSE file. |
| 13944 | 13944 |
| 13945 | 13945 |
| 13946 @DocsEditable | 13946 @DocsEditable() |
| 13947 @DomName('HTMLMapElement') | 13947 @DomName('HTMLMapElement') |
| 13948 class MapElement extends _HTMLElement native "HTMLMapElement" { | 13948 class MapElement extends _HTMLElement native "HTMLMapElement" { |
| 13949 // To suppress missing implicit constructor warnings. | 13949 // To suppress missing implicit constructor warnings. |
| 13950 factory MapElement._() { throw new UnsupportedError("Not supported"); } | 13950 factory MapElement._() { throw new UnsupportedError("Not supported"); } |
| 13951 | 13951 |
| 13952 @DomName('HTMLMapElement.HTMLMapElement') | 13952 @DomName('HTMLMapElement.HTMLMapElement') |
| 13953 @DocsEditable | 13953 @DocsEditable() |
| 13954 factory MapElement() => document.$dom_createElement("map"); | 13954 factory MapElement() => document.$dom_createElement("map"); |
| 13955 | 13955 |
| 13956 @DomName('HTMLMapElement.areas') | 13956 @DomName('HTMLMapElement.areas') |
| 13957 @DocsEditable | 13957 @DocsEditable() |
| 13958 final HtmlCollection areas; | 13958 final HtmlCollection areas; |
| 13959 | 13959 |
| 13960 @DomName('HTMLMapElement.name') | 13960 @DomName('HTMLMapElement.name') |
| 13961 @DocsEditable | 13961 @DocsEditable() |
| 13962 String name; | 13962 String name; |
| 13963 } | 13963 } |
| 13964 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 13964 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 13965 // for details. All rights reserved. Use of this source code is governed by a | 13965 // for details. All rights reserved. Use of this source code is governed by a |
| 13966 // BSD-style license that can be found in the LICENSE file. | 13966 // BSD-style license that can be found in the LICENSE file. |
| 13967 | 13967 |
| 13968 | 13968 |
| 13969 @DocsEditable | 13969 @DocsEditable() |
| 13970 @DomName('MediaController') | 13970 @DomName('MediaController') |
| 13971 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element
.html#mediacontroller | 13971 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element
.html#mediacontroller |
| 13972 @Experimental | 13972 @Experimental() |
| 13973 class MediaController extends EventTarget native "MediaController" { | 13973 class MediaController extends EventTarget native "MediaController" { |
| 13974 // To suppress missing implicit constructor warnings. | 13974 // To suppress missing implicit constructor warnings. |
| 13975 factory MediaController._() { throw new UnsupportedError("Not supported"); } | 13975 factory MediaController._() { throw new UnsupportedError("Not supported"); } |
| 13976 | 13976 |
| 13977 @DomName('MediaController.MediaController') | 13977 @DomName('MediaController.MediaController') |
| 13978 @DocsEditable | 13978 @DocsEditable() |
| 13979 factory MediaController() { | 13979 factory MediaController() { |
| 13980 return MediaController._create_1(); | 13980 return MediaController._create_1(); |
| 13981 } | 13981 } |
| 13982 static MediaController _create_1() => JS('MediaController', 'new MediaControll
er()'); | 13982 static MediaController _create_1() => JS('MediaController', 'new MediaControll
er()'); |
| 13983 | 13983 |
| 13984 @DomName('MediaController.buffered') | 13984 @DomName('MediaController.buffered') |
| 13985 @DocsEditable | 13985 @DocsEditable() |
| 13986 final TimeRanges buffered; | 13986 final TimeRanges buffered; |
| 13987 | 13987 |
| 13988 @DomName('MediaController.currentTime') | 13988 @DomName('MediaController.currentTime') |
| 13989 @DocsEditable | 13989 @DocsEditable() |
| 13990 num currentTime; | 13990 num currentTime; |
| 13991 | 13991 |
| 13992 @DomName('MediaController.defaultPlaybackRate') | 13992 @DomName('MediaController.defaultPlaybackRate') |
| 13993 @DocsEditable | 13993 @DocsEditable() |
| 13994 num defaultPlaybackRate; | 13994 num defaultPlaybackRate; |
| 13995 | 13995 |
| 13996 @DomName('MediaController.duration') | 13996 @DomName('MediaController.duration') |
| 13997 @DocsEditable | 13997 @DocsEditable() |
| 13998 final num duration; | 13998 final num duration; |
| 13999 | 13999 |
| 14000 @DomName('MediaController.muted') | 14000 @DomName('MediaController.muted') |
| 14001 @DocsEditable | 14001 @DocsEditable() |
| 14002 bool muted; | 14002 bool muted; |
| 14003 | 14003 |
| 14004 @DomName('MediaController.paused') | 14004 @DomName('MediaController.paused') |
| 14005 @DocsEditable | 14005 @DocsEditable() |
| 14006 final bool paused; | 14006 final bool paused; |
| 14007 | 14007 |
| 14008 @DomName('MediaController.playbackRate') | 14008 @DomName('MediaController.playbackRate') |
| 14009 @DocsEditable | 14009 @DocsEditable() |
| 14010 num playbackRate; | 14010 num playbackRate; |
| 14011 | 14011 |
| 14012 @DomName('MediaController.playbackState') | 14012 @DomName('MediaController.playbackState') |
| 14013 @DocsEditable | 14013 @DocsEditable() |
| 14014 final String playbackState; | 14014 final String playbackState; |
| 14015 | 14015 |
| 14016 @DomName('MediaController.played') | 14016 @DomName('MediaController.played') |
| 14017 @DocsEditable | 14017 @DocsEditable() |
| 14018 final TimeRanges played; | 14018 final TimeRanges played; |
| 14019 | 14019 |
| 14020 @DomName('MediaController.seekable') | 14020 @DomName('MediaController.seekable') |
| 14021 @DocsEditable | 14021 @DocsEditable() |
| 14022 final TimeRanges seekable; | 14022 final TimeRanges seekable; |
| 14023 | 14023 |
| 14024 @DomName('MediaController.volume') | 14024 @DomName('MediaController.volume') |
| 14025 @DocsEditable | 14025 @DocsEditable() |
| 14026 num volume; | 14026 num volume; |
| 14027 | 14027 |
| 14028 @JSName('addEventListener') | 14028 @JSName('addEventListener') |
| 14029 @DomName('MediaController.addEventListener') | 14029 @DomName('MediaController.addEventListener') |
| 14030 @DocsEditable | 14030 @DocsEditable() |
| 14031 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 14031 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 14032 | 14032 |
| 14033 @DomName('MediaController.dispatchEvent') | 14033 @DomName('MediaController.dispatchEvent') |
| 14034 @DocsEditable | 14034 @DocsEditable() |
| 14035 bool dispatchEvent(Event evt) native; | 14035 bool dispatchEvent(Event evt) native; |
| 14036 | 14036 |
| 14037 @DomName('MediaController.pause') | 14037 @DomName('MediaController.pause') |
| 14038 @DocsEditable | 14038 @DocsEditable() |
| 14039 void pause() native; | 14039 void pause() native; |
| 14040 | 14040 |
| 14041 @DomName('MediaController.play') | 14041 @DomName('MediaController.play') |
| 14042 @DocsEditable | 14042 @DocsEditable() |
| 14043 void play() native; | 14043 void play() native; |
| 14044 | 14044 |
| 14045 @JSName('removeEventListener') | 14045 @JSName('removeEventListener') |
| 14046 @DomName('MediaController.removeEventListener') | 14046 @DomName('MediaController.removeEventListener') |
| 14047 @DocsEditable | 14047 @DocsEditable() |
| 14048 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 14048 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 14049 | 14049 |
| 14050 @DomName('MediaController.unpause') | 14050 @DomName('MediaController.unpause') |
| 14051 @DocsEditable | 14051 @DocsEditable() |
| 14052 void unpause() native; | 14052 void unpause() native; |
| 14053 } | 14053 } |
| 14054 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14054 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14055 // for details. All rights reserved. Use of this source code is governed by a | 14055 // for details. All rights reserved. Use of this source code is governed by a |
| 14056 // BSD-style license that can be found in the LICENSE file. | 14056 // BSD-style license that can be found in the LICENSE file. |
| 14057 | 14057 |
| 14058 | 14058 |
| 14059 @DocsEditable | 14059 @DocsEditable() |
| 14060 @DomName('HTMLMediaElement') | 14060 @DomName('HTMLMediaElement') |
| 14061 @Unstable | 14061 @Unstable() |
| 14062 class MediaElement extends _HTMLElement native "HTMLMediaElement" { | 14062 class MediaElement extends _HTMLElement native "HTMLMediaElement" { |
| 14063 // To suppress missing implicit constructor warnings. | 14063 // To suppress missing implicit constructor warnings. |
| 14064 factory MediaElement._() { throw new UnsupportedError("Not supported"); } | 14064 factory MediaElement._() { throw new UnsupportedError("Not supported"); } |
| 14065 | 14065 |
| 14066 @DomName('HTMLMediaElement.canplayEvent') | 14066 @DomName('HTMLMediaElement.canplayEvent') |
| 14067 @DocsEditable | 14067 @DocsEditable() |
| 14068 static const EventStreamProvider<Event> canPlayEvent = const EventStreamProvid
er<Event>('canplay'); | 14068 static const EventStreamProvider<Event> canPlayEvent = const EventStreamProvid
er<Event>('canplay'); |
| 14069 | 14069 |
| 14070 @DomName('HTMLMediaElement.canplaythroughEvent') | 14070 @DomName('HTMLMediaElement.canplaythroughEvent') |
| 14071 @DocsEditable | 14071 @DocsEditable() |
| 14072 static const EventStreamProvider<Event> canPlayThroughEvent = const EventStrea
mProvider<Event>('canplaythrough'); | 14072 static const EventStreamProvider<Event> canPlayThroughEvent = const EventStrea
mProvider<Event>('canplaythrough'); |
| 14073 | 14073 |
| 14074 @DomName('HTMLMediaElement.durationchangeEvent') | 14074 @DomName('HTMLMediaElement.durationchangeEvent') |
| 14075 @DocsEditable | 14075 @DocsEditable() |
| 14076 static const EventStreamProvider<Event> durationChangeEvent = const EventStrea
mProvider<Event>('durationchange'); | 14076 static const EventStreamProvider<Event> durationChangeEvent = const EventStrea
mProvider<Event>('durationchange'); |
| 14077 | 14077 |
| 14078 @DomName('HTMLMediaElement.emptiedEvent') | 14078 @DomName('HTMLMediaElement.emptiedEvent') |
| 14079 @DocsEditable | 14079 @DocsEditable() |
| 14080 static const EventStreamProvider<Event> emptiedEvent = const EventStreamProvid
er<Event>('emptied'); | 14080 static const EventStreamProvider<Event> emptiedEvent = const EventStreamProvid
er<Event>('emptied'); |
| 14081 | 14081 |
| 14082 @DomName('HTMLMediaElement.endedEvent') | 14082 @DomName('HTMLMediaElement.endedEvent') |
| 14083 @DocsEditable | 14083 @DocsEditable() |
| 14084 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider
<Event>('ended'); | 14084 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider
<Event>('ended'); |
| 14085 | 14085 |
| 14086 @DomName('HTMLMediaElement.loadeddataEvent') | 14086 @DomName('HTMLMediaElement.loadeddataEvent') |
| 14087 @DocsEditable | 14087 @DocsEditable() |
| 14088 static const EventStreamProvider<Event> loadedDataEvent = const EventStreamPro
vider<Event>('loadeddata'); | 14088 static const EventStreamProvider<Event> loadedDataEvent = const EventStreamPro
vider<Event>('loadeddata'); |
| 14089 | 14089 |
| 14090 @DomName('HTMLMediaElement.loadedmetadataEvent') | 14090 @DomName('HTMLMediaElement.loadedmetadataEvent') |
| 14091 @DocsEditable | 14091 @DocsEditable() |
| 14092 static const EventStreamProvider<Event> loadedMetadataEvent = const EventStrea
mProvider<Event>('loadedmetadata'); | 14092 static const EventStreamProvider<Event> loadedMetadataEvent = const EventStrea
mProvider<Event>('loadedmetadata'); |
| 14093 | 14093 |
| 14094 @DomName('HTMLMediaElement.loadstartEvent') | 14094 @DomName('HTMLMediaElement.loadstartEvent') |
| 14095 @DocsEditable | 14095 @DocsEditable() |
| 14096 static const EventStreamProvider<Event> loadStartEvent = const EventStreamProv
ider<Event>('loadstart'); | 14096 static const EventStreamProvider<Event> loadStartEvent = const EventStreamProv
ider<Event>('loadstart'); |
| 14097 | 14097 |
| 14098 @DomName('HTMLMediaElement.pauseEvent') | 14098 @DomName('HTMLMediaElement.pauseEvent') |
| 14099 @DocsEditable | 14099 @DocsEditable() |
| 14100 static const EventStreamProvider<Event> pauseEvent = const EventStreamProvider
<Event>('pause'); | 14100 static const EventStreamProvider<Event> pauseEvent = const EventStreamProvider
<Event>('pause'); |
| 14101 | 14101 |
| 14102 @DomName('HTMLMediaElement.playEvent') | 14102 @DomName('HTMLMediaElement.playEvent') |
| 14103 @DocsEditable | 14103 @DocsEditable() |
| 14104 static const EventStreamProvider<Event> playEvent = const EventStreamProvider<
Event>('play'); | 14104 static const EventStreamProvider<Event> playEvent = const EventStreamProvider<
Event>('play'); |
| 14105 | 14105 |
| 14106 @DomName('HTMLMediaElement.playingEvent') | 14106 @DomName('HTMLMediaElement.playingEvent') |
| 14107 @DocsEditable | 14107 @DocsEditable() |
| 14108 static const EventStreamProvider<Event> playingEvent = const EventStreamProvid
er<Event>('playing'); | 14108 static const EventStreamProvider<Event> playingEvent = const EventStreamProvid
er<Event>('playing'); |
| 14109 | 14109 |
| 14110 @DomName('HTMLMediaElement.progressEvent') | 14110 @DomName('HTMLMediaElement.progressEvent') |
| 14111 @DocsEditable | 14111 @DocsEditable() |
| 14112 static const EventStreamProvider<Event> progressEvent = const EventStreamProvi
der<Event>('progress'); | 14112 static const EventStreamProvider<Event> progressEvent = const EventStreamProvi
der<Event>('progress'); |
| 14113 | 14113 |
| 14114 @DomName('HTMLMediaElement.ratechangeEvent') | 14114 @DomName('HTMLMediaElement.ratechangeEvent') |
| 14115 @DocsEditable | 14115 @DocsEditable() |
| 14116 static const EventStreamProvider<Event> rateChangeEvent = const EventStreamPro
vider<Event>('ratechange'); | 14116 static const EventStreamProvider<Event> rateChangeEvent = const EventStreamPro
vider<Event>('ratechange'); |
| 14117 | 14117 |
| 14118 @DomName('HTMLMediaElement.seekedEvent') | 14118 @DomName('HTMLMediaElement.seekedEvent') |
| 14119 @DocsEditable | 14119 @DocsEditable() |
| 14120 static const EventStreamProvider<Event> seekedEvent = const EventStreamProvide
r<Event>('seeked'); | 14120 static const EventStreamProvider<Event> seekedEvent = const EventStreamProvide
r<Event>('seeked'); |
| 14121 | 14121 |
| 14122 @DomName('HTMLMediaElement.seekingEvent') | 14122 @DomName('HTMLMediaElement.seekingEvent') |
| 14123 @DocsEditable | 14123 @DocsEditable() |
| 14124 static const EventStreamProvider<Event> seekingEvent = const EventStreamProvid
er<Event>('seeking'); | 14124 static const EventStreamProvider<Event> seekingEvent = const EventStreamProvid
er<Event>('seeking'); |
| 14125 | 14125 |
| 14126 @DomName('HTMLMediaElement.showEvent') | 14126 @DomName('HTMLMediaElement.showEvent') |
| 14127 @DocsEditable | 14127 @DocsEditable() |
| 14128 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-eleme
nt.html#event-media-loadstart | 14128 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-eleme
nt.html#event-media-loadstart |
| 14129 @Experimental | 14129 @Experimental() |
| 14130 static const EventStreamProvider<Event> showEvent = const EventStreamProvider<
Event>('show'); | 14130 static const EventStreamProvider<Event> showEvent = const EventStreamProvider<
Event>('show'); |
| 14131 | 14131 |
| 14132 @DomName('HTMLMediaElement.stalledEvent') | 14132 @DomName('HTMLMediaElement.stalledEvent') |
| 14133 @DocsEditable | 14133 @DocsEditable() |
| 14134 static const EventStreamProvider<Event> stalledEvent = const EventStreamProvid
er<Event>('stalled'); | 14134 static const EventStreamProvider<Event> stalledEvent = const EventStreamProvid
er<Event>('stalled'); |
| 14135 | 14135 |
| 14136 @DomName('HTMLMediaElement.suspendEvent') | 14136 @DomName('HTMLMediaElement.suspendEvent') |
| 14137 @DocsEditable | 14137 @DocsEditable() |
| 14138 static const EventStreamProvider<Event> suspendEvent = const EventStreamProvid
er<Event>('suspend'); | 14138 static const EventStreamProvider<Event> suspendEvent = const EventStreamProvid
er<Event>('suspend'); |
| 14139 | 14139 |
| 14140 @DomName('HTMLMediaElement.timeupdateEvent') | 14140 @DomName('HTMLMediaElement.timeupdateEvent') |
| 14141 @DocsEditable | 14141 @DocsEditable() |
| 14142 static const EventStreamProvider<Event> timeUpdateEvent = const EventStreamPro
vider<Event>('timeupdate'); | 14142 static const EventStreamProvider<Event> timeUpdateEvent = const EventStreamPro
vider<Event>('timeupdate'); |
| 14143 | 14143 |
| 14144 @DomName('HTMLMediaElement.volumechangeEvent') | 14144 @DomName('HTMLMediaElement.volumechangeEvent') |
| 14145 @DocsEditable | 14145 @DocsEditable() |
| 14146 static const EventStreamProvider<Event> volumeChangeEvent = const EventStreamP
rovider<Event>('volumechange'); | 14146 static const EventStreamProvider<Event> volumeChangeEvent = const EventStreamP
rovider<Event>('volumechange'); |
| 14147 | 14147 |
| 14148 @DomName('HTMLMediaElement.waitingEvent') | 14148 @DomName('HTMLMediaElement.waitingEvent') |
| 14149 @DocsEditable | 14149 @DocsEditable() |
| 14150 static const EventStreamProvider<Event> waitingEvent = const EventStreamProvid
er<Event>('waiting'); | 14150 static const EventStreamProvider<Event> waitingEvent = const EventStreamProvid
er<Event>('waiting'); |
| 14151 | 14151 |
| 14152 @DomName('HTMLMediaElement.webkitkeyaddedEvent') | 14152 @DomName('HTMLMediaElement.webkitkeyaddedEvent') |
| 14153 @DocsEditable | 14153 @DocsEditable() |
| 14154 @SupportedBrowser(SupportedBrowser.CHROME) | 14154 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14155 @SupportedBrowser(SupportedBrowser.SAFARI) | 14155 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14156 @Experimental | 14156 @Experimental() |
| 14157 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded | 14157 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded |
| 14158 static const EventStreamProvider<MediaKeyEvent> keyAddedEvent = const EventStr
eamProvider<MediaKeyEvent>('webkitkeyadded'); | 14158 static const EventStreamProvider<MediaKeyEvent> keyAddedEvent = const EventStr
eamProvider<MediaKeyEvent>('webkitkeyadded'); |
| 14159 | 14159 |
| 14160 @DomName('HTMLMediaElement.webkitkeyerrorEvent') | 14160 @DomName('HTMLMediaElement.webkitkeyerrorEvent') |
| 14161 @DocsEditable | 14161 @DocsEditable() |
| 14162 @SupportedBrowser(SupportedBrowser.CHROME) | 14162 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14163 @SupportedBrowser(SupportedBrowser.SAFARI) | 14163 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14164 @Experimental | 14164 @Experimental() |
| 14165 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded | 14165 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded |
| 14166 static const EventStreamProvider<MediaKeyEvent> keyErrorEvent = const EventStr
eamProvider<MediaKeyEvent>('webkitkeyerror'); | 14166 static const EventStreamProvider<MediaKeyEvent> keyErrorEvent = const EventStr
eamProvider<MediaKeyEvent>('webkitkeyerror'); |
| 14167 | 14167 |
| 14168 @DomName('HTMLMediaElement.webkitkeymessageEvent') | 14168 @DomName('HTMLMediaElement.webkitkeymessageEvent') |
| 14169 @DocsEditable | 14169 @DocsEditable() |
| 14170 @SupportedBrowser(SupportedBrowser.CHROME) | 14170 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14171 @SupportedBrowser(SupportedBrowser.SAFARI) | 14171 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14172 @Experimental | 14172 @Experimental() |
| 14173 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded | 14173 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded |
| 14174 static const EventStreamProvider<MediaKeyEvent> keyMessageEvent = const EventS
treamProvider<MediaKeyEvent>('webkitkeymessage'); | 14174 static const EventStreamProvider<MediaKeyEvent> keyMessageEvent = const EventS
treamProvider<MediaKeyEvent>('webkitkeymessage'); |
| 14175 | 14175 |
| 14176 @DomName('HTMLMediaElement.webkitneedkeyEvent') | 14176 @DomName('HTMLMediaElement.webkitneedkeyEvent') |
| 14177 @DocsEditable | 14177 @DocsEditable() |
| 14178 @SupportedBrowser(SupportedBrowser.CHROME) | 14178 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14179 @SupportedBrowser(SupportedBrowser.SAFARI) | 14179 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14180 @Experimental | 14180 @Experimental() |
| 14181 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded | 14181 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded |
| 14182 static const EventStreamProvider<MediaKeyEvent> needKeyEvent = const EventStre
amProvider<MediaKeyEvent>('webkitneedkey'); | 14182 static const EventStreamProvider<MediaKeyEvent> needKeyEvent = const EventStre
amProvider<MediaKeyEvent>('webkitneedkey'); |
| 14183 | 14183 |
| 14184 @DomName('HTMLMediaElement.HAVE_CURRENT_DATA') | 14184 @DomName('HTMLMediaElement.HAVE_CURRENT_DATA') |
| 14185 @DocsEditable | 14185 @DocsEditable() |
| 14186 static const int HAVE_CURRENT_DATA = 2; | 14186 static const int HAVE_CURRENT_DATA = 2; |
| 14187 | 14187 |
| 14188 @DomName('HTMLMediaElement.HAVE_ENOUGH_DATA') | 14188 @DomName('HTMLMediaElement.HAVE_ENOUGH_DATA') |
| 14189 @DocsEditable | 14189 @DocsEditable() |
| 14190 static const int HAVE_ENOUGH_DATA = 4; | 14190 static const int HAVE_ENOUGH_DATA = 4; |
| 14191 | 14191 |
| 14192 @DomName('HTMLMediaElement.HAVE_FUTURE_DATA') | 14192 @DomName('HTMLMediaElement.HAVE_FUTURE_DATA') |
| 14193 @DocsEditable | 14193 @DocsEditable() |
| 14194 static const int HAVE_FUTURE_DATA = 3; | 14194 static const int HAVE_FUTURE_DATA = 3; |
| 14195 | 14195 |
| 14196 @DomName('HTMLMediaElement.HAVE_METADATA') | 14196 @DomName('HTMLMediaElement.HAVE_METADATA') |
| 14197 @DocsEditable | 14197 @DocsEditable() |
| 14198 static const int HAVE_METADATA = 1; | 14198 static const int HAVE_METADATA = 1; |
| 14199 | 14199 |
| 14200 @DomName('HTMLMediaElement.HAVE_NOTHING') | 14200 @DomName('HTMLMediaElement.HAVE_NOTHING') |
| 14201 @DocsEditable | 14201 @DocsEditable() |
| 14202 static const int HAVE_NOTHING = 0; | 14202 static const int HAVE_NOTHING = 0; |
| 14203 | 14203 |
| 14204 @DomName('HTMLMediaElement.NETWORK_EMPTY') | 14204 @DomName('HTMLMediaElement.NETWORK_EMPTY') |
| 14205 @DocsEditable | 14205 @DocsEditable() |
| 14206 static const int NETWORK_EMPTY = 0; | 14206 static const int NETWORK_EMPTY = 0; |
| 14207 | 14207 |
| 14208 @DomName('HTMLMediaElement.NETWORK_IDLE') | 14208 @DomName('HTMLMediaElement.NETWORK_IDLE') |
| 14209 @DocsEditable | 14209 @DocsEditable() |
| 14210 static const int NETWORK_IDLE = 1; | 14210 static const int NETWORK_IDLE = 1; |
| 14211 | 14211 |
| 14212 @DomName('HTMLMediaElement.NETWORK_LOADING') | 14212 @DomName('HTMLMediaElement.NETWORK_LOADING') |
| 14213 @DocsEditable | 14213 @DocsEditable() |
| 14214 static const int NETWORK_LOADING = 2; | 14214 static const int NETWORK_LOADING = 2; |
| 14215 | 14215 |
| 14216 @DomName('HTMLMediaElement.NETWORK_NO_SOURCE') | 14216 @DomName('HTMLMediaElement.NETWORK_NO_SOURCE') |
| 14217 @DocsEditable | 14217 @DocsEditable() |
| 14218 static const int NETWORK_NO_SOURCE = 3; | 14218 static const int NETWORK_NO_SOURCE = 3; |
| 14219 | 14219 |
| 14220 @DomName('HTMLMediaElement.autoplay') | 14220 @DomName('HTMLMediaElement.autoplay') |
| 14221 @DocsEditable | 14221 @DocsEditable() |
| 14222 bool autoplay; | 14222 bool autoplay; |
| 14223 | 14223 |
| 14224 @DomName('HTMLMediaElement.buffered') | 14224 @DomName('HTMLMediaElement.buffered') |
| 14225 @DocsEditable | 14225 @DocsEditable() |
| 14226 final TimeRanges buffered; | 14226 final TimeRanges buffered; |
| 14227 | 14227 |
| 14228 @DomName('HTMLMediaElement.controller') | 14228 @DomName('HTMLMediaElement.controller') |
| 14229 @DocsEditable | 14229 @DocsEditable() |
| 14230 MediaController controller; | 14230 MediaController controller; |
| 14231 | 14231 |
| 14232 @DomName('HTMLMediaElement.controls') | 14232 @DomName('HTMLMediaElement.controls') |
| 14233 @DocsEditable | 14233 @DocsEditable() |
| 14234 bool controls; | 14234 bool controls; |
| 14235 | 14235 |
| 14236 @DomName('HTMLMediaElement.currentSrc') | 14236 @DomName('HTMLMediaElement.currentSrc') |
| 14237 @DocsEditable | 14237 @DocsEditable() |
| 14238 final String currentSrc; | 14238 final String currentSrc; |
| 14239 | 14239 |
| 14240 @DomName('HTMLMediaElement.currentTime') | 14240 @DomName('HTMLMediaElement.currentTime') |
| 14241 @DocsEditable | 14241 @DocsEditable() |
| 14242 num currentTime; | 14242 num currentTime; |
| 14243 | 14243 |
| 14244 @DomName('HTMLMediaElement.defaultMuted') | 14244 @DomName('HTMLMediaElement.defaultMuted') |
| 14245 @DocsEditable | 14245 @DocsEditable() |
| 14246 bool defaultMuted; | 14246 bool defaultMuted; |
| 14247 | 14247 |
| 14248 @DomName('HTMLMediaElement.defaultPlaybackRate') | 14248 @DomName('HTMLMediaElement.defaultPlaybackRate') |
| 14249 @DocsEditable | 14249 @DocsEditable() |
| 14250 num defaultPlaybackRate; | 14250 num defaultPlaybackRate; |
| 14251 | 14251 |
| 14252 @DomName('HTMLMediaElement.duration') | 14252 @DomName('HTMLMediaElement.duration') |
| 14253 @DocsEditable | 14253 @DocsEditable() |
| 14254 final num duration; | 14254 final num duration; |
| 14255 | 14255 |
| 14256 @DomName('HTMLMediaElement.ended') | 14256 @DomName('HTMLMediaElement.ended') |
| 14257 @DocsEditable | 14257 @DocsEditable() |
| 14258 final bool ended; | 14258 final bool ended; |
| 14259 | 14259 |
| 14260 @DomName('HTMLMediaElement.error') | 14260 @DomName('HTMLMediaElement.error') |
| 14261 @DocsEditable | 14261 @DocsEditable() |
| 14262 final MediaError error; | 14262 final MediaError error; |
| 14263 | 14263 |
| 14264 @DomName('HTMLMediaElement.initialTime') | 14264 @DomName('HTMLMediaElement.initialTime') |
| 14265 @DocsEditable | 14265 @DocsEditable() |
| 14266 // http://www.w3.org/TR/2011/WD-html5-20110113/video.html#dom-media-initialtim
e | 14266 // http://www.w3.org/TR/2011/WD-html5-20110113/video.html#dom-media-initialtim
e |
| 14267 @Experimental | 14267 @Experimental() |
| 14268 final num initialTime; | 14268 final num initialTime; |
| 14269 | 14269 |
| 14270 @DomName('HTMLMediaElement.loop') | 14270 @DomName('HTMLMediaElement.loop') |
| 14271 @DocsEditable | 14271 @DocsEditable() |
| 14272 bool loop; | 14272 bool loop; |
| 14273 | 14273 |
| 14274 @DomName('HTMLMediaElement.mediaGroup') | 14274 @DomName('HTMLMediaElement.mediaGroup') |
| 14275 @DocsEditable | 14275 @DocsEditable() |
| 14276 String mediaGroup; | 14276 String mediaGroup; |
| 14277 | 14277 |
| 14278 @DomName('HTMLMediaElement.mediaKeys') | 14278 @DomName('HTMLMediaElement.mediaKeys') |
| 14279 @DocsEditable | 14279 @DocsEditable() |
| 14280 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html | 14280 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html |
| 14281 @Experimental | 14281 @Experimental() |
| 14282 MediaKeys mediaKeys; | 14282 MediaKeys mediaKeys; |
| 14283 | 14283 |
| 14284 @DomName('HTMLMediaElement.muted') | 14284 @DomName('HTMLMediaElement.muted') |
| 14285 @DocsEditable | 14285 @DocsEditable() |
| 14286 bool muted; | 14286 bool muted; |
| 14287 | 14287 |
| 14288 @DomName('HTMLMediaElement.networkState') | 14288 @DomName('HTMLMediaElement.networkState') |
| 14289 @DocsEditable | 14289 @DocsEditable() |
| 14290 final int networkState; | 14290 final int networkState; |
| 14291 | 14291 |
| 14292 @DomName('HTMLMediaElement.paused') | 14292 @DomName('HTMLMediaElement.paused') |
| 14293 @DocsEditable | 14293 @DocsEditable() |
| 14294 final bool paused; | 14294 final bool paused; |
| 14295 | 14295 |
| 14296 @DomName('HTMLMediaElement.playbackRate') | 14296 @DomName('HTMLMediaElement.playbackRate') |
| 14297 @DocsEditable | 14297 @DocsEditable() |
| 14298 num playbackRate; | 14298 num playbackRate; |
| 14299 | 14299 |
| 14300 @DomName('HTMLMediaElement.played') | 14300 @DomName('HTMLMediaElement.played') |
| 14301 @DocsEditable | 14301 @DocsEditable() |
| 14302 final TimeRanges played; | 14302 final TimeRanges played; |
| 14303 | 14303 |
| 14304 @DomName('HTMLMediaElement.preload') | 14304 @DomName('HTMLMediaElement.preload') |
| 14305 @DocsEditable | 14305 @DocsEditable() |
| 14306 String preload; | 14306 String preload; |
| 14307 | 14307 |
| 14308 @DomName('HTMLMediaElement.readyState') | 14308 @DomName('HTMLMediaElement.readyState') |
| 14309 @DocsEditable | 14309 @DocsEditable() |
| 14310 final int readyState; | 14310 final int readyState; |
| 14311 | 14311 |
| 14312 @DomName('HTMLMediaElement.seekable') | 14312 @DomName('HTMLMediaElement.seekable') |
| 14313 @DocsEditable | 14313 @DocsEditable() |
| 14314 final TimeRanges seekable; | 14314 final TimeRanges seekable; |
| 14315 | 14315 |
| 14316 @DomName('HTMLMediaElement.seeking') | 14316 @DomName('HTMLMediaElement.seeking') |
| 14317 @DocsEditable | 14317 @DocsEditable() |
| 14318 final bool seeking; | 14318 final bool seeking; |
| 14319 | 14319 |
| 14320 @DomName('HTMLMediaElement.src') | 14320 @DomName('HTMLMediaElement.src') |
| 14321 @DocsEditable | 14321 @DocsEditable() |
| 14322 String src; | 14322 String src; |
| 14323 | 14323 |
| 14324 @DomName('HTMLMediaElement.startTime') | 14324 @DomName('HTMLMediaElement.startTime') |
| 14325 @DocsEditable | 14325 @DocsEditable() |
| 14326 @Experimental // non-standard | 14326 @Experimental() // non-standard |
| 14327 final num startTime; | 14327 final num startTime; |
| 14328 | 14328 |
| 14329 @DomName('HTMLMediaElement.textTracks') | 14329 @DomName('HTMLMediaElement.textTracks') |
| 14330 @DocsEditable | 14330 @DocsEditable() |
| 14331 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-eleme
nt.html#dom-media-texttracks | 14331 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-eleme
nt.html#dom-media-texttracks |
| 14332 @Experimental | 14332 @Experimental() |
| 14333 final TextTrackList textTracks; | 14333 final TextTrackList textTracks; |
| 14334 | 14334 |
| 14335 @DomName('HTMLMediaElement.volume') | 14335 @DomName('HTMLMediaElement.volume') |
| 14336 @DocsEditable | 14336 @DocsEditable() |
| 14337 num volume; | 14337 num volume; |
| 14338 | 14338 |
| 14339 @JSName('webkitAudioDecodedByteCount') | 14339 @JSName('webkitAudioDecodedByteCount') |
| 14340 @DomName('HTMLMediaElement.webkitAudioDecodedByteCount') | 14340 @DomName('HTMLMediaElement.webkitAudioDecodedByteCount') |
| 14341 @DocsEditable | 14341 @DocsEditable() |
| 14342 @SupportedBrowser(SupportedBrowser.CHROME) | 14342 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14343 @SupportedBrowser(SupportedBrowser.SAFARI) | 14343 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14344 @Experimental | 14344 @Experimental() |
| 14345 @Experimental // nonstandard | 14345 @Experimental() // nonstandard |
| 14346 final int audioDecodedByteCount; | 14346 final int audioDecodedByteCount; |
| 14347 | 14347 |
| 14348 @JSName('webkitClosedCaptionsVisible') | 14348 @JSName('webkitClosedCaptionsVisible') |
| 14349 @DomName('HTMLMediaElement.webkitClosedCaptionsVisible') | 14349 @DomName('HTMLMediaElement.webkitClosedCaptionsVisible') |
| 14350 @DocsEditable | 14350 @DocsEditable() |
| 14351 @SupportedBrowser(SupportedBrowser.CHROME) | 14351 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14352 @SupportedBrowser(SupportedBrowser.SAFARI) | 14352 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14353 @Experimental | 14353 @Experimental() |
| 14354 @Experimental // nonstandard | 14354 @Experimental() // nonstandard |
| 14355 bool closedCaptionsVisible; | 14355 bool closedCaptionsVisible; |
| 14356 | 14356 |
| 14357 @JSName('webkitHasClosedCaptions') | 14357 @JSName('webkitHasClosedCaptions') |
| 14358 @DomName('HTMLMediaElement.webkitHasClosedCaptions') | 14358 @DomName('HTMLMediaElement.webkitHasClosedCaptions') |
| 14359 @DocsEditable | 14359 @DocsEditable() |
| 14360 @SupportedBrowser(SupportedBrowser.CHROME) | 14360 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14361 @SupportedBrowser(SupportedBrowser.SAFARI) | 14361 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14362 @Experimental | 14362 @Experimental() |
| 14363 @Experimental // nonstandard | 14363 @Experimental() // nonstandard |
| 14364 final bool hasClosedCaptions; | 14364 final bool hasClosedCaptions; |
| 14365 | 14365 |
| 14366 @JSName('webkitPreservesPitch') | 14366 @JSName('webkitPreservesPitch') |
| 14367 @DomName('HTMLMediaElement.webkitPreservesPitch') | 14367 @DomName('HTMLMediaElement.webkitPreservesPitch') |
| 14368 @DocsEditable | 14368 @DocsEditable() |
| 14369 @SupportedBrowser(SupportedBrowser.CHROME) | 14369 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14370 @SupportedBrowser(SupportedBrowser.SAFARI) | 14370 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14371 @Experimental | 14371 @Experimental() |
| 14372 @Experimental // nonstandard | 14372 @Experimental() // nonstandard |
| 14373 bool preservesPitch; | 14373 bool preservesPitch; |
| 14374 | 14374 |
| 14375 @JSName('webkitVideoDecodedByteCount') | 14375 @JSName('webkitVideoDecodedByteCount') |
| 14376 @DomName('HTMLMediaElement.webkitVideoDecodedByteCount') | 14376 @DomName('HTMLMediaElement.webkitVideoDecodedByteCount') |
| 14377 @DocsEditable | 14377 @DocsEditable() |
| 14378 @SupportedBrowser(SupportedBrowser.CHROME) | 14378 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14379 @SupportedBrowser(SupportedBrowser.SAFARI) | 14379 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14380 @Experimental | 14380 @Experimental() |
| 14381 @Experimental // nonstandard | 14381 @Experimental() // nonstandard |
| 14382 final int videoDecodedByteCount; | 14382 final int videoDecodedByteCount; |
| 14383 | 14383 |
| 14384 @DomName('HTMLMediaElement.addTextTrack') | 14384 @DomName('HTMLMediaElement.addTextTrack') |
| 14385 @DocsEditable | 14385 @DocsEditable() |
| 14386 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-eleme
nt.html#dom-media-addtexttrack | 14386 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-eleme
nt.html#dom-media-addtexttrack |
| 14387 @Experimental | 14387 @Experimental() |
| 14388 TextTrack addTextTrack(String kind, [String label, String language]) native; | 14388 TextTrack addTextTrack(String kind, [String label, String language]) native; |
| 14389 | 14389 |
| 14390 @DomName('HTMLMediaElement.canPlayType') | 14390 @DomName('HTMLMediaElement.canPlayType') |
| 14391 @DocsEditable | 14391 @DocsEditable() |
| 14392 @Unstable | 14392 @Unstable() |
| 14393 String canPlayType(String type, String keySystem) native; | 14393 String canPlayType(String type, String keySystem) native; |
| 14394 | 14394 |
| 14395 @DomName('HTMLMediaElement.load') | 14395 @DomName('HTMLMediaElement.load') |
| 14396 @DocsEditable | 14396 @DocsEditable() |
| 14397 void load() native; | 14397 void load() native; |
| 14398 | 14398 |
| 14399 @DomName('HTMLMediaElement.pause') | 14399 @DomName('HTMLMediaElement.pause') |
| 14400 @DocsEditable | 14400 @DocsEditable() |
| 14401 void pause() native; | 14401 void pause() native; |
| 14402 | 14402 |
| 14403 @DomName('HTMLMediaElement.play') | 14403 @DomName('HTMLMediaElement.play') |
| 14404 @DocsEditable | 14404 @DocsEditable() |
| 14405 void play() native; | 14405 void play() native; |
| 14406 | 14406 |
| 14407 @JSName('webkitAddKey') | 14407 @JSName('webkitAddKey') |
| 14408 @DomName('HTMLMediaElement.webkitAddKey') | 14408 @DomName('HTMLMediaElement.webkitAddKey') |
| 14409 @DocsEditable | 14409 @DocsEditable() |
| 14410 @SupportedBrowser(SupportedBrowser.CHROME) | 14410 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14411 @SupportedBrowser(SupportedBrowser.SAFARI) | 14411 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14412 @Experimental | 14412 @Experimental() |
| 14413 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#extensions | 14413 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#extensions |
| 14414 void addKey(String keySystem, Uint8List key, [Uint8List initData, String sessi
onId]) native; | 14414 void addKey(String keySystem, Uint8List key, [Uint8List initData, String sessi
onId]) native; |
| 14415 | 14415 |
| 14416 @JSName('webkitCancelKeyRequest') | 14416 @JSName('webkitCancelKeyRequest') |
| 14417 @DomName('HTMLMediaElement.webkitCancelKeyRequest') | 14417 @DomName('HTMLMediaElement.webkitCancelKeyRequest') |
| 14418 @DocsEditable | 14418 @DocsEditable() |
| 14419 @SupportedBrowser(SupportedBrowser.CHROME) | 14419 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14420 @SupportedBrowser(SupportedBrowser.SAFARI) | 14420 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14421 @Experimental | 14421 @Experimental() |
| 14422 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#extensions | 14422 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#extensions |
| 14423 void cancelKeyRequest(String keySystem, String sessionId) native; | 14423 void cancelKeyRequest(String keySystem, String sessionId) native; |
| 14424 | 14424 |
| 14425 @JSName('webkitGenerateKeyRequest') | 14425 @JSName('webkitGenerateKeyRequest') |
| 14426 @DomName('HTMLMediaElement.webkitGenerateKeyRequest') | 14426 @DomName('HTMLMediaElement.webkitGenerateKeyRequest') |
| 14427 @DocsEditable | 14427 @DocsEditable() |
| 14428 @SupportedBrowser(SupportedBrowser.CHROME) | 14428 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14429 @SupportedBrowser(SupportedBrowser.SAFARI) | 14429 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14430 @Experimental | 14430 @Experimental() |
| 14431 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#extensions | 14431 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#extensions |
| 14432 void generateKeyRequest(String keySystem, [Uint8List initData]) native; | 14432 void generateKeyRequest(String keySystem, [Uint8List initData]) native; |
| 14433 | 14433 |
| 14434 @DomName('HTMLMediaElement.oncanplay') | 14434 @DomName('HTMLMediaElement.oncanplay') |
| 14435 @DocsEditable | 14435 @DocsEditable() |
| 14436 Stream<Event> get onCanPlay => canPlayEvent.forTarget(this); | 14436 Stream<Event> get onCanPlay => canPlayEvent.forTarget(this); |
| 14437 | 14437 |
| 14438 @DomName('HTMLMediaElement.oncanplaythrough') | 14438 @DomName('HTMLMediaElement.oncanplaythrough') |
| 14439 @DocsEditable | 14439 @DocsEditable() |
| 14440 Stream<Event> get onCanPlayThrough => canPlayThroughEvent.forTarget(this); | 14440 Stream<Event> get onCanPlayThrough => canPlayThroughEvent.forTarget(this); |
| 14441 | 14441 |
| 14442 @DomName('HTMLMediaElement.ondurationchange') | 14442 @DomName('HTMLMediaElement.ondurationchange') |
| 14443 @DocsEditable | 14443 @DocsEditable() |
| 14444 Stream<Event> get onDurationChange => durationChangeEvent.forTarget(this); | 14444 Stream<Event> get onDurationChange => durationChangeEvent.forTarget(this); |
| 14445 | 14445 |
| 14446 @DomName('HTMLMediaElement.onemptied') | 14446 @DomName('HTMLMediaElement.onemptied') |
| 14447 @DocsEditable | 14447 @DocsEditable() |
| 14448 Stream<Event> get onEmptied => emptiedEvent.forTarget(this); | 14448 Stream<Event> get onEmptied => emptiedEvent.forTarget(this); |
| 14449 | 14449 |
| 14450 @DomName('HTMLMediaElement.onended') | 14450 @DomName('HTMLMediaElement.onended') |
| 14451 @DocsEditable | 14451 @DocsEditable() |
| 14452 Stream<Event> get onEnded => endedEvent.forTarget(this); | 14452 Stream<Event> get onEnded => endedEvent.forTarget(this); |
| 14453 | 14453 |
| 14454 @DomName('HTMLMediaElement.onloadeddata') | 14454 @DomName('HTMLMediaElement.onloadeddata') |
| 14455 @DocsEditable | 14455 @DocsEditable() |
| 14456 Stream<Event> get onLoadedData => loadedDataEvent.forTarget(this); | 14456 Stream<Event> get onLoadedData => loadedDataEvent.forTarget(this); |
| 14457 | 14457 |
| 14458 @DomName('HTMLMediaElement.onloadedmetadata') | 14458 @DomName('HTMLMediaElement.onloadedmetadata') |
| 14459 @DocsEditable | 14459 @DocsEditable() |
| 14460 Stream<Event> get onLoadedMetadata => loadedMetadataEvent.forTarget(this); | 14460 Stream<Event> get onLoadedMetadata => loadedMetadataEvent.forTarget(this); |
| 14461 | 14461 |
| 14462 @DomName('HTMLMediaElement.onloadstart') | 14462 @DomName('HTMLMediaElement.onloadstart') |
| 14463 @DocsEditable | 14463 @DocsEditable() |
| 14464 Stream<Event> get onLoadStart => loadStartEvent.forTarget(this); | 14464 Stream<Event> get onLoadStart => loadStartEvent.forTarget(this); |
| 14465 | 14465 |
| 14466 @DomName('HTMLMediaElement.onpause') | 14466 @DomName('HTMLMediaElement.onpause') |
| 14467 @DocsEditable | 14467 @DocsEditable() |
| 14468 Stream<Event> get onPause => pauseEvent.forTarget(this); | 14468 Stream<Event> get onPause => pauseEvent.forTarget(this); |
| 14469 | 14469 |
| 14470 @DomName('HTMLMediaElement.onplay') | 14470 @DomName('HTMLMediaElement.onplay') |
| 14471 @DocsEditable | 14471 @DocsEditable() |
| 14472 Stream<Event> get onPlay => playEvent.forTarget(this); | 14472 Stream<Event> get onPlay => playEvent.forTarget(this); |
| 14473 | 14473 |
| 14474 @DomName('HTMLMediaElement.onplaying') | 14474 @DomName('HTMLMediaElement.onplaying') |
| 14475 @DocsEditable | 14475 @DocsEditable() |
| 14476 Stream<Event> get onPlaying => playingEvent.forTarget(this); | 14476 Stream<Event> get onPlaying => playingEvent.forTarget(this); |
| 14477 | 14477 |
| 14478 @DomName('HTMLMediaElement.onprogress') | 14478 @DomName('HTMLMediaElement.onprogress') |
| 14479 @DocsEditable | 14479 @DocsEditable() |
| 14480 Stream<Event> get onProgress => progressEvent.forTarget(this); | 14480 Stream<Event> get onProgress => progressEvent.forTarget(this); |
| 14481 | 14481 |
| 14482 @DomName('HTMLMediaElement.onratechange') | 14482 @DomName('HTMLMediaElement.onratechange') |
| 14483 @DocsEditable | 14483 @DocsEditable() |
| 14484 Stream<Event> get onRateChange => rateChangeEvent.forTarget(this); | 14484 Stream<Event> get onRateChange => rateChangeEvent.forTarget(this); |
| 14485 | 14485 |
| 14486 @DomName('HTMLMediaElement.onseeked') | 14486 @DomName('HTMLMediaElement.onseeked') |
| 14487 @DocsEditable | 14487 @DocsEditable() |
| 14488 Stream<Event> get onSeeked => seekedEvent.forTarget(this); | 14488 Stream<Event> get onSeeked => seekedEvent.forTarget(this); |
| 14489 | 14489 |
| 14490 @DomName('HTMLMediaElement.onseeking') | 14490 @DomName('HTMLMediaElement.onseeking') |
| 14491 @DocsEditable | 14491 @DocsEditable() |
| 14492 Stream<Event> get onSeeking => seekingEvent.forTarget(this); | 14492 Stream<Event> get onSeeking => seekingEvent.forTarget(this); |
| 14493 | 14493 |
| 14494 @DomName('HTMLMediaElement.onshow') | 14494 @DomName('HTMLMediaElement.onshow') |
| 14495 @DocsEditable | 14495 @DocsEditable() |
| 14496 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-eleme
nt.html#event-media-loadstart | 14496 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-eleme
nt.html#event-media-loadstart |
| 14497 @Experimental | 14497 @Experimental() |
| 14498 Stream<Event> get onShow => showEvent.forTarget(this); | 14498 Stream<Event> get onShow => showEvent.forTarget(this); |
| 14499 | 14499 |
| 14500 @DomName('HTMLMediaElement.onstalled') | 14500 @DomName('HTMLMediaElement.onstalled') |
| 14501 @DocsEditable | 14501 @DocsEditable() |
| 14502 Stream<Event> get onStalled => stalledEvent.forTarget(this); | 14502 Stream<Event> get onStalled => stalledEvent.forTarget(this); |
| 14503 | 14503 |
| 14504 @DomName('HTMLMediaElement.onsuspend') | 14504 @DomName('HTMLMediaElement.onsuspend') |
| 14505 @DocsEditable | 14505 @DocsEditable() |
| 14506 Stream<Event> get onSuspend => suspendEvent.forTarget(this); | 14506 Stream<Event> get onSuspend => suspendEvent.forTarget(this); |
| 14507 | 14507 |
| 14508 @DomName('HTMLMediaElement.ontimeupdate') | 14508 @DomName('HTMLMediaElement.ontimeupdate') |
| 14509 @DocsEditable | 14509 @DocsEditable() |
| 14510 Stream<Event> get onTimeUpdate => timeUpdateEvent.forTarget(this); | 14510 Stream<Event> get onTimeUpdate => timeUpdateEvent.forTarget(this); |
| 14511 | 14511 |
| 14512 @DomName('HTMLMediaElement.onvolumechange') | 14512 @DomName('HTMLMediaElement.onvolumechange') |
| 14513 @DocsEditable | 14513 @DocsEditable() |
| 14514 Stream<Event> get onVolumeChange => volumeChangeEvent.forTarget(this); | 14514 Stream<Event> get onVolumeChange => volumeChangeEvent.forTarget(this); |
| 14515 | 14515 |
| 14516 @DomName('HTMLMediaElement.onwaiting') | 14516 @DomName('HTMLMediaElement.onwaiting') |
| 14517 @DocsEditable | 14517 @DocsEditable() |
| 14518 Stream<Event> get onWaiting => waitingEvent.forTarget(this); | 14518 Stream<Event> get onWaiting => waitingEvent.forTarget(this); |
| 14519 | 14519 |
| 14520 @DomName('HTMLMediaElement.onwebkitkeyadded') | 14520 @DomName('HTMLMediaElement.onwebkitkeyadded') |
| 14521 @DocsEditable | 14521 @DocsEditable() |
| 14522 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded | 14522 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded |
| 14523 @Experimental | 14523 @Experimental() |
| 14524 Stream<MediaKeyEvent> get onKeyAdded => keyAddedEvent.forTarget(this); | 14524 Stream<MediaKeyEvent> get onKeyAdded => keyAddedEvent.forTarget(this); |
| 14525 | 14525 |
| 14526 @DomName('HTMLMediaElement.onwebkitkeyerror') | 14526 @DomName('HTMLMediaElement.onwebkitkeyerror') |
| 14527 @DocsEditable | 14527 @DocsEditable() |
| 14528 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded | 14528 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded |
| 14529 @Experimental | 14529 @Experimental() |
| 14530 Stream<MediaKeyEvent> get onKeyError => keyErrorEvent.forTarget(this); | 14530 Stream<MediaKeyEvent> get onKeyError => keyErrorEvent.forTarget(this); |
| 14531 | 14531 |
| 14532 @DomName('HTMLMediaElement.onwebkitkeymessage') | 14532 @DomName('HTMLMediaElement.onwebkitkeymessage') |
| 14533 @DocsEditable | 14533 @DocsEditable() |
| 14534 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded | 14534 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded |
| 14535 @Experimental | 14535 @Experimental() |
| 14536 Stream<MediaKeyEvent> get onKeyMessage => keyMessageEvent.forTarget(this); | 14536 Stream<MediaKeyEvent> get onKeyMessage => keyMessageEvent.forTarget(this); |
| 14537 | 14537 |
| 14538 @DomName('HTMLMediaElement.onwebkitneedkey') | 14538 @DomName('HTMLMediaElement.onwebkitneedkey') |
| 14539 @DocsEditable | 14539 @DocsEditable() |
| 14540 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded | 14540 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#dom-keyadded |
| 14541 @Experimental | 14541 @Experimental() |
| 14542 Stream<MediaKeyEvent> get onNeedKey => needKeyEvent.forTarget(this); | 14542 Stream<MediaKeyEvent> get onNeedKey => needKeyEvent.forTarget(this); |
| 14543 } | 14543 } |
| 14544 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14544 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14545 // for details. All rights reserved. Use of this source code is governed by a | 14545 // for details. All rights reserved. Use of this source code is governed by a |
| 14546 // BSD-style license that can be found in the LICENSE file. | 14546 // BSD-style license that can be found in the LICENSE file. |
| 14547 | 14547 |
| 14548 | 14548 |
| 14549 @DocsEditable | 14549 @DocsEditable() |
| 14550 @DomName('MediaError') | 14550 @DomName('MediaError') |
| 14551 @Unstable | 14551 @Unstable() |
| 14552 class MediaError extends Interceptor native "MediaError" { | 14552 class MediaError extends Interceptor native "MediaError" { |
| 14553 | 14553 |
| 14554 @DomName('MediaError.MEDIA_ERR_ABORTED') | 14554 @DomName('MediaError.MEDIA_ERR_ABORTED') |
| 14555 @DocsEditable | 14555 @DocsEditable() |
| 14556 static const int MEDIA_ERR_ABORTED = 1; | 14556 static const int MEDIA_ERR_ABORTED = 1; |
| 14557 | 14557 |
| 14558 @DomName('MediaError.MEDIA_ERR_DECODE') | 14558 @DomName('MediaError.MEDIA_ERR_DECODE') |
| 14559 @DocsEditable | 14559 @DocsEditable() |
| 14560 static const int MEDIA_ERR_DECODE = 3; | 14560 static const int MEDIA_ERR_DECODE = 3; |
| 14561 | 14561 |
| 14562 @DomName('MediaError.MEDIA_ERR_ENCRYPTED') | 14562 @DomName('MediaError.MEDIA_ERR_ENCRYPTED') |
| 14563 @DocsEditable | 14563 @DocsEditable() |
| 14564 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#error-codes | 14564 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypt
ed-media.html#error-codes |
| 14565 @Experimental | 14565 @Experimental() |
| 14566 static const int MEDIA_ERR_ENCRYPTED = 5; | 14566 static const int MEDIA_ERR_ENCRYPTED = 5; |
| 14567 | 14567 |
| 14568 @DomName('MediaError.MEDIA_ERR_NETWORK') | 14568 @DomName('MediaError.MEDIA_ERR_NETWORK') |
| 14569 @DocsEditable | 14569 @DocsEditable() |
| 14570 static const int MEDIA_ERR_NETWORK = 2; | 14570 static const int MEDIA_ERR_NETWORK = 2; |
| 14571 | 14571 |
| 14572 @DomName('MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED') | 14572 @DomName('MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED') |
| 14573 @DocsEditable | 14573 @DocsEditable() |
| 14574 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; | 14574 static const int MEDIA_ERR_SRC_NOT_SUPPORTED = 4; |
| 14575 | 14575 |
| 14576 @DomName('MediaError.code') | 14576 @DomName('MediaError.code') |
| 14577 @DocsEditable | 14577 @DocsEditable() |
| 14578 final int code; | 14578 final int code; |
| 14579 } | 14579 } |
| 14580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14580 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14581 // for details. All rights reserved. Use of this source code is governed by a | 14581 // for details. All rights reserved. Use of this source code is governed by a |
| 14582 // BSD-style license that can be found in the LICENSE file. | 14582 // BSD-style license that can be found in the LICENSE file. |
| 14583 | 14583 |
| 14584 | 14584 |
| 14585 @DocsEditable | 14585 @DocsEditable() |
| 14586 @DomName('MediaKeyError') | 14586 @DomName('MediaKeyError') |
| 14587 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted
-media.html#error-codes | 14587 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted
-media.html#error-codes |
| 14588 @Experimental | 14588 @Experimental() |
| 14589 class MediaKeyError extends Interceptor native "MediaKeyError" { | 14589 class MediaKeyError extends Interceptor native "MediaKeyError" { |
| 14590 | 14590 |
| 14591 @DomName('MediaKeyError.MEDIA_KEYERR_CLIENT') | 14591 @DomName('MediaKeyError.MEDIA_KEYERR_CLIENT') |
| 14592 @DocsEditable | 14592 @DocsEditable() |
| 14593 static const int MEDIA_KEYERR_CLIENT = 2; | 14593 static const int MEDIA_KEYERR_CLIENT = 2; |
| 14594 | 14594 |
| 14595 @DomName('MediaKeyError.MEDIA_KEYERR_DOMAIN') | 14595 @DomName('MediaKeyError.MEDIA_KEYERR_DOMAIN') |
| 14596 @DocsEditable | 14596 @DocsEditable() |
| 14597 static const int MEDIA_KEYERR_DOMAIN = 6; | 14597 static const int MEDIA_KEYERR_DOMAIN = 6; |
| 14598 | 14598 |
| 14599 @DomName('MediaKeyError.MEDIA_KEYERR_HARDWARECHANGE') | 14599 @DomName('MediaKeyError.MEDIA_KEYERR_HARDWARECHANGE') |
| 14600 @DocsEditable | 14600 @DocsEditable() |
| 14601 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; | 14601 static const int MEDIA_KEYERR_HARDWARECHANGE = 5; |
| 14602 | 14602 |
| 14603 @DomName('MediaKeyError.MEDIA_KEYERR_OUTPUT') | 14603 @DomName('MediaKeyError.MEDIA_KEYERR_OUTPUT') |
| 14604 @DocsEditable | 14604 @DocsEditable() |
| 14605 static const int MEDIA_KEYERR_OUTPUT = 4; | 14605 static const int MEDIA_KEYERR_OUTPUT = 4; |
| 14606 | 14606 |
| 14607 @DomName('MediaKeyError.MEDIA_KEYERR_SERVICE') | 14607 @DomName('MediaKeyError.MEDIA_KEYERR_SERVICE') |
| 14608 @DocsEditable | 14608 @DocsEditable() |
| 14609 static const int MEDIA_KEYERR_SERVICE = 3; | 14609 static const int MEDIA_KEYERR_SERVICE = 3; |
| 14610 | 14610 |
| 14611 @DomName('MediaKeyError.MEDIA_KEYERR_UNKNOWN') | 14611 @DomName('MediaKeyError.MEDIA_KEYERR_UNKNOWN') |
| 14612 @DocsEditable | 14612 @DocsEditable() |
| 14613 static const int MEDIA_KEYERR_UNKNOWN = 1; | 14613 static const int MEDIA_KEYERR_UNKNOWN = 1; |
| 14614 | 14614 |
| 14615 @DomName('MediaKeyError.code') | 14615 @DomName('MediaKeyError.code') |
| 14616 @DocsEditable | 14616 @DocsEditable() |
| 14617 final int code; | 14617 final int code; |
| 14618 | 14618 |
| 14619 @DomName('MediaKeyError.systemCode') | 14619 @DomName('MediaKeyError.systemCode') |
| 14620 @DocsEditable | 14620 @DocsEditable() |
| 14621 @Experimental // non-standard | 14621 @Experimental() // non-standard |
| 14622 final int systemCode; | 14622 final int systemCode; |
| 14623 } | 14623 } |
| 14624 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14624 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14625 // for details. All rights reserved. Use of this source code is governed by a | 14625 // for details. All rights reserved. Use of this source code is governed by a |
| 14626 // BSD-style license that can be found in the LICENSE file. | 14626 // BSD-style license that can be found in the LICENSE file. |
| 14627 | 14627 |
| 14628 | 14628 |
| 14629 @DocsEditable | 14629 @DocsEditable() |
| 14630 @DomName('MediaKeyEvent') | 14630 @DomName('MediaKeyEvent') |
| 14631 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted
-media.html#event-definitions | 14631 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted
-media.html#event-definitions |
| 14632 @Experimental | 14632 @Experimental() |
| 14633 class MediaKeyEvent extends Event native "MediaKeyEvent" { | 14633 class MediaKeyEvent extends Event native "MediaKeyEvent" { |
| 14634 // To suppress missing implicit constructor warnings. | 14634 // To suppress missing implicit constructor warnings. |
| 14635 factory MediaKeyEvent._() { throw new UnsupportedError("Not supported"); } | 14635 factory MediaKeyEvent._() { throw new UnsupportedError("Not supported"); } |
| 14636 | 14636 |
| 14637 @JSName('defaultURL') | 14637 @JSName('defaultURL') |
| 14638 @DomName('MediaKeyEvent.defaultURL') | 14638 @DomName('MediaKeyEvent.defaultURL') |
| 14639 @DocsEditable | 14639 @DocsEditable() |
| 14640 final String defaultUrl; | 14640 final String defaultUrl; |
| 14641 | 14641 |
| 14642 @DomName('MediaKeyEvent.errorCode') | 14642 @DomName('MediaKeyEvent.errorCode') |
| 14643 @DocsEditable | 14643 @DocsEditable() |
| 14644 final MediaKeyError errorCode; | 14644 final MediaKeyError errorCode; |
| 14645 | 14645 |
| 14646 @DomName('MediaKeyEvent.initData') | 14646 @DomName('MediaKeyEvent.initData') |
| 14647 @DocsEditable | 14647 @DocsEditable() |
| 14648 final Uint8List initData; | 14648 final Uint8List initData; |
| 14649 | 14649 |
| 14650 @DomName('MediaKeyEvent.keySystem') | 14650 @DomName('MediaKeyEvent.keySystem') |
| 14651 @DocsEditable | 14651 @DocsEditable() |
| 14652 final String keySystem; | 14652 final String keySystem; |
| 14653 | 14653 |
| 14654 @DomName('MediaKeyEvent.message') | 14654 @DomName('MediaKeyEvent.message') |
| 14655 @DocsEditable | 14655 @DocsEditable() |
| 14656 final Uint8List message; | 14656 final Uint8List message; |
| 14657 | 14657 |
| 14658 @DomName('MediaKeyEvent.sessionId') | 14658 @DomName('MediaKeyEvent.sessionId') |
| 14659 @DocsEditable | 14659 @DocsEditable() |
| 14660 final String sessionId; | 14660 final String sessionId; |
| 14661 | 14661 |
| 14662 @DomName('MediaKeyEvent.systemCode') | 14662 @DomName('MediaKeyEvent.systemCode') |
| 14663 @DocsEditable | 14663 @DocsEditable() |
| 14664 final int systemCode; | 14664 final int systemCode; |
| 14665 } | 14665 } |
| 14666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14666 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14667 // for details. All rights reserved. Use of this source code is governed by a | 14667 // for details. All rights reserved. Use of this source code is governed by a |
| 14668 // BSD-style license that can be found in the LICENSE file. | 14668 // BSD-style license that can be found in the LICENSE file. |
| 14669 | 14669 |
| 14670 | 14670 |
| 14671 @DocsEditable | 14671 @DocsEditable() |
| 14672 @DomName('MediaKeyMessageEvent') | 14672 @DomName('MediaKeyMessageEvent') |
| 14673 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted
-media.html#dom-mediakeymessageevent | 14673 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted
-media.html#dom-mediakeymessageevent |
| 14674 @Experimental | 14674 @Experimental() |
| 14675 class MediaKeyMessageEvent extends Event native "MediaKeyMessageEvent" { | 14675 class MediaKeyMessageEvent extends Event native "MediaKeyMessageEvent" { |
| 14676 // To suppress missing implicit constructor warnings. | 14676 // To suppress missing implicit constructor warnings. |
| 14677 factory MediaKeyMessageEvent._() { throw new UnsupportedError("Not supported")
; } | 14677 factory MediaKeyMessageEvent._() { throw new UnsupportedError("Not supported")
; } |
| 14678 | 14678 |
| 14679 @JSName('destinationURL') | 14679 @JSName('destinationURL') |
| 14680 @DomName('MediaKeyMessageEvent.destinationURL') | 14680 @DomName('MediaKeyMessageEvent.destinationURL') |
| 14681 @DocsEditable | 14681 @DocsEditable() |
| 14682 final String destinationUrl; | 14682 final String destinationUrl; |
| 14683 | 14683 |
| 14684 @DomName('MediaKeyMessageEvent.message') | 14684 @DomName('MediaKeyMessageEvent.message') |
| 14685 @DocsEditable | 14685 @DocsEditable() |
| 14686 final Uint8List message; | 14686 final Uint8List message; |
| 14687 } | 14687 } |
| 14688 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14688 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14689 // for details. All rights reserved. Use of this source code is governed by a | 14689 // for details. All rights reserved. Use of this source code is governed by a |
| 14690 // BSD-style license that can be found in the LICENSE file. | 14690 // BSD-style license that can be found in the LICENSE file. |
| 14691 | 14691 |
| 14692 | 14692 |
| 14693 @DocsEditable | 14693 @DocsEditable() |
| 14694 @DomName('MediaKeyNeededEvent') | 14694 @DomName('MediaKeyNeededEvent') |
| 14695 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted
-media.html#dom-mediakeyneededevent | 14695 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted
-media.html#dom-mediakeyneededevent |
| 14696 @Experimental | 14696 @Experimental() |
| 14697 class MediaKeyNeededEvent extends Event native "MediaKeyNeededEvent" { | 14697 class MediaKeyNeededEvent extends Event native "MediaKeyNeededEvent" { |
| 14698 // To suppress missing implicit constructor warnings. | 14698 // To suppress missing implicit constructor warnings. |
| 14699 factory MediaKeyNeededEvent._() { throw new UnsupportedError("Not supported");
} | 14699 factory MediaKeyNeededEvent._() { throw new UnsupportedError("Not supported");
} |
| 14700 | 14700 |
| 14701 @DomName('MediaKeyNeededEvent.initData') | 14701 @DomName('MediaKeyNeededEvent.initData') |
| 14702 @DocsEditable | 14702 @DocsEditable() |
| 14703 final Uint8List initData; | 14703 final Uint8List initData; |
| 14704 } | 14704 } |
| 14705 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14705 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14706 // for details. All rights reserved. Use of this source code is governed by a | 14706 // for details. All rights reserved. Use of this source code is governed by a |
| 14707 // BSD-style license that can be found in the LICENSE file. | 14707 // BSD-style license that can be found in the LICENSE file. |
| 14708 | 14708 |
| 14709 | 14709 |
| 14710 @DocsEditable | 14710 @DocsEditable() |
| 14711 @DomName('MediaKeySession') | 14711 @DomName('MediaKeySession') |
| 14712 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted
-media.html#dom-mediakeysession | 14712 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted
-media.html#dom-mediakeysession |
| 14713 @Experimental | 14713 @Experimental() |
| 14714 class MediaKeySession extends EventTarget native "MediaKeySession" { | 14714 class MediaKeySession extends EventTarget native "MediaKeySession" { |
| 14715 // To suppress missing implicit constructor warnings. | 14715 // To suppress missing implicit constructor warnings. |
| 14716 factory MediaKeySession._() { throw new UnsupportedError("Not supported"); } | 14716 factory MediaKeySession._() { throw new UnsupportedError("Not supported"); } |
| 14717 | 14717 |
| 14718 @DomName('MediaKeySession.webkitkeyaddedEvent') | 14718 @DomName('MediaKeySession.webkitkeyaddedEvent') |
| 14719 @DocsEditable | 14719 @DocsEditable() |
| 14720 @SupportedBrowser(SupportedBrowser.CHROME) | 14720 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14721 @SupportedBrowser(SupportedBrowser.SAFARI) | 14721 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14722 @Experimental | 14722 @Experimental() |
| 14723 static const EventStreamProvider<MediaKeyEvent> keyAddedEvent = const EventStr
eamProvider<MediaKeyEvent>('webkitkeyadded'); | 14723 static const EventStreamProvider<MediaKeyEvent> keyAddedEvent = const EventStr
eamProvider<MediaKeyEvent>('webkitkeyadded'); |
| 14724 | 14724 |
| 14725 @DomName('MediaKeySession.webkitkeyerrorEvent') | 14725 @DomName('MediaKeySession.webkitkeyerrorEvent') |
| 14726 @DocsEditable | 14726 @DocsEditable() |
| 14727 @SupportedBrowser(SupportedBrowser.CHROME) | 14727 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14728 @SupportedBrowser(SupportedBrowser.SAFARI) | 14728 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14729 @Experimental | 14729 @Experimental() |
| 14730 static const EventStreamProvider<MediaKeyEvent> keyErrorEvent = const EventStr
eamProvider<MediaKeyEvent>('webkitkeyerror'); | 14730 static const EventStreamProvider<MediaKeyEvent> keyErrorEvent = const EventStr
eamProvider<MediaKeyEvent>('webkitkeyerror'); |
| 14731 | 14731 |
| 14732 @DomName('MediaKeySession.webkitkeymessageEvent') | 14732 @DomName('MediaKeySession.webkitkeymessageEvent') |
| 14733 @DocsEditable | 14733 @DocsEditable() |
| 14734 @SupportedBrowser(SupportedBrowser.CHROME) | 14734 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14735 @SupportedBrowser(SupportedBrowser.SAFARI) | 14735 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14736 @Experimental | 14736 @Experimental() |
| 14737 static const EventStreamProvider<MediaKeyEvent> keyMessageEvent = const EventS
treamProvider<MediaKeyEvent>('webkitkeymessage'); | 14737 static const EventStreamProvider<MediaKeyEvent> keyMessageEvent = const EventS
treamProvider<MediaKeyEvent>('webkitkeymessage'); |
| 14738 | 14738 |
| 14739 @DomName('MediaKeySession.error') | 14739 @DomName('MediaKeySession.error') |
| 14740 @DocsEditable | 14740 @DocsEditable() |
| 14741 final MediaKeyError error; | 14741 final MediaKeyError error; |
| 14742 | 14742 |
| 14743 @DomName('MediaKeySession.keySystem') | 14743 @DomName('MediaKeySession.keySystem') |
| 14744 @DocsEditable | 14744 @DocsEditable() |
| 14745 final String keySystem; | 14745 final String keySystem; |
| 14746 | 14746 |
| 14747 @DomName('MediaKeySession.sessionId') | 14747 @DomName('MediaKeySession.sessionId') |
| 14748 @DocsEditable | 14748 @DocsEditable() |
| 14749 final String sessionId; | 14749 final String sessionId; |
| 14750 | 14750 |
| 14751 @JSName('addEventListener') | 14751 @JSName('addEventListener') |
| 14752 @DomName('MediaKeySession.addEventListener') | 14752 @DomName('MediaKeySession.addEventListener') |
| 14753 @DocsEditable | 14753 @DocsEditable() |
| 14754 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 14754 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 14755 | 14755 |
| 14756 @DomName('MediaKeySession.close') | 14756 @DomName('MediaKeySession.close') |
| 14757 @DocsEditable | 14757 @DocsEditable() |
| 14758 void close() native; | 14758 void close() native; |
| 14759 | 14759 |
| 14760 @DomName('MediaKeySession.dispatchEvent') | 14760 @DomName('MediaKeySession.dispatchEvent') |
| 14761 @DocsEditable | 14761 @DocsEditable() |
| 14762 bool dispatchEvent(Event evt) native; | 14762 bool dispatchEvent(Event evt) native; |
| 14763 | 14763 |
| 14764 @JSName('removeEventListener') | 14764 @JSName('removeEventListener') |
| 14765 @DomName('MediaKeySession.removeEventListener') | 14765 @DomName('MediaKeySession.removeEventListener') |
| 14766 @DocsEditable | 14766 @DocsEditable() |
| 14767 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 14767 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 14768 | 14768 |
| 14769 @DomName('MediaKeySession.update') | 14769 @DomName('MediaKeySession.update') |
| 14770 @DocsEditable | 14770 @DocsEditable() |
| 14771 void update(Uint8List key) native; | 14771 void update(Uint8List key) native; |
| 14772 | 14772 |
| 14773 @DomName('MediaKeySession.onwebkitkeyadded') | 14773 @DomName('MediaKeySession.onwebkitkeyadded') |
| 14774 @DocsEditable | 14774 @DocsEditable() |
| 14775 Stream<MediaKeyEvent> get onKeyAdded => keyAddedEvent.forTarget(this); | 14775 Stream<MediaKeyEvent> get onKeyAdded => keyAddedEvent.forTarget(this); |
| 14776 | 14776 |
| 14777 @DomName('MediaKeySession.onwebkitkeyerror') | 14777 @DomName('MediaKeySession.onwebkitkeyerror') |
| 14778 @DocsEditable | 14778 @DocsEditable() |
| 14779 Stream<MediaKeyEvent> get onKeyError => keyErrorEvent.forTarget(this); | 14779 Stream<MediaKeyEvent> get onKeyError => keyErrorEvent.forTarget(this); |
| 14780 | 14780 |
| 14781 @DomName('MediaKeySession.onwebkitkeymessage') | 14781 @DomName('MediaKeySession.onwebkitkeymessage') |
| 14782 @DocsEditable | 14782 @DocsEditable() |
| 14783 Stream<MediaKeyEvent> get onKeyMessage => keyMessageEvent.forTarget(this); | 14783 Stream<MediaKeyEvent> get onKeyMessage => keyMessageEvent.forTarget(this); |
| 14784 } | 14784 } |
| 14785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14786 // for details. All rights reserved. Use of this source code is governed by a | 14786 // for details. All rights reserved. Use of this source code is governed by a |
| 14787 // BSD-style license that can be found in the LICENSE file. | 14787 // BSD-style license that can be found in the LICENSE file. |
| 14788 | 14788 |
| 14789 | 14789 |
| 14790 @DocsEditable | 14790 @DocsEditable() |
| 14791 @DomName('MediaKeys') | 14791 @DomName('MediaKeys') |
| 14792 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted
-media.html | 14792 // https://dvcs.w3.org/hg/html-media/raw-file/eme-v0.1/encrypted-media/encrypted
-media.html |
| 14793 @Experimental | 14793 @Experimental() |
| 14794 class MediaKeys extends Interceptor native "MediaKeys" { | 14794 class MediaKeys extends Interceptor native "MediaKeys" { |
| 14795 | 14795 |
| 14796 @DomName('MediaKeys.MediaKeys') | 14796 @DomName('MediaKeys.MediaKeys') |
| 14797 @DocsEditable | 14797 @DocsEditable() |
| 14798 factory MediaKeys(String keySystem) { | 14798 factory MediaKeys(String keySystem) { |
| 14799 return MediaKeys._create_1(keySystem); | 14799 return MediaKeys._create_1(keySystem); |
| 14800 } | 14800 } |
| 14801 static MediaKeys _create_1(keySystem) => JS('MediaKeys', 'new MediaKeys(#)', k
eySystem); | 14801 static MediaKeys _create_1(keySystem) => JS('MediaKeys', 'new MediaKeys(#)', k
eySystem); |
| 14802 | 14802 |
| 14803 @DomName('MediaKeys.keySystem') | 14803 @DomName('MediaKeys.keySystem') |
| 14804 @DocsEditable | 14804 @DocsEditable() |
| 14805 final String keySystem; | 14805 final String keySystem; |
| 14806 | 14806 |
| 14807 @DomName('MediaKeys.createSession') | 14807 @DomName('MediaKeys.createSession') |
| 14808 @DocsEditable | 14808 @DocsEditable() |
| 14809 MediaKeySession createSession(String type, Uint8List initData) native; | 14809 MediaKeySession createSession(String type, Uint8List initData) native; |
| 14810 } | 14810 } |
| 14811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14811 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14812 // for details. All rights reserved. Use of this source code is governed by a | 14812 // for details. All rights reserved. Use of this source code is governed by a |
| 14813 // BSD-style license that can be found in the LICENSE file. | 14813 // BSD-style license that can be found in the LICENSE file. |
| 14814 | 14814 |
| 14815 | 14815 |
| 14816 @DocsEditable | 14816 @DocsEditable() |
| 14817 @DomName('MediaList') | 14817 @DomName('MediaList') |
| 14818 @Unstable | 14818 @Unstable() |
| 14819 class MediaList extends Interceptor native "MediaList" { | 14819 class MediaList extends Interceptor native "MediaList" { |
| 14820 | 14820 |
| 14821 @DomName('MediaList.length') | 14821 @DomName('MediaList.length') |
| 14822 @DocsEditable | 14822 @DocsEditable() |
| 14823 final int length; | 14823 final int length; |
| 14824 | 14824 |
| 14825 @DomName('MediaList.mediaText') | 14825 @DomName('MediaList.mediaText') |
| 14826 @DocsEditable | 14826 @DocsEditable() |
| 14827 String mediaText; | 14827 String mediaText; |
| 14828 | 14828 |
| 14829 @DomName('MediaList.appendMedium') | 14829 @DomName('MediaList.appendMedium') |
| 14830 @DocsEditable | 14830 @DocsEditable() |
| 14831 void appendMedium(String newMedium) native; | 14831 void appendMedium(String newMedium) native; |
| 14832 | 14832 |
| 14833 @DomName('MediaList.deleteMedium') | 14833 @DomName('MediaList.deleteMedium') |
| 14834 @DocsEditable | 14834 @DocsEditable() |
| 14835 void deleteMedium(String oldMedium) native; | 14835 void deleteMedium(String oldMedium) native; |
| 14836 | 14836 |
| 14837 @DomName('MediaList.item') | 14837 @DomName('MediaList.item') |
| 14838 @DocsEditable | 14838 @DocsEditable() |
| 14839 String item(int index) native; | 14839 String item(int index) native; |
| 14840 } | 14840 } |
| 14841 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14841 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14842 // for details. All rights reserved. Use of this source code is governed by a | 14842 // for details. All rights reserved. Use of this source code is governed by a |
| 14843 // BSD-style license that can be found in the LICENSE file. | 14843 // BSD-style license that can be found in the LICENSE file. |
| 14844 | 14844 |
| 14845 | 14845 |
| 14846 @DocsEditable | 14846 @DocsEditable() |
| 14847 @DomName('MediaQueryList') | 14847 @DomName('MediaQueryList') |
| 14848 @Unstable | 14848 @Unstable() |
| 14849 class MediaQueryList extends Interceptor native "MediaQueryList" { | 14849 class MediaQueryList extends Interceptor native "MediaQueryList" { |
| 14850 | 14850 |
| 14851 @DomName('MediaQueryList.matches') | 14851 @DomName('MediaQueryList.matches') |
| 14852 @DocsEditable | 14852 @DocsEditable() |
| 14853 final bool matches; | 14853 final bool matches; |
| 14854 | 14854 |
| 14855 @DomName('MediaQueryList.media') | 14855 @DomName('MediaQueryList.media') |
| 14856 @DocsEditable | 14856 @DocsEditable() |
| 14857 final String media; | 14857 final String media; |
| 14858 | 14858 |
| 14859 @DomName('MediaQueryList.addListener') | 14859 @DomName('MediaQueryList.addListener') |
| 14860 @DocsEditable | 14860 @DocsEditable() |
| 14861 void addListener(MediaQueryListListener listener) native; | 14861 void addListener(MediaQueryListListener listener) native; |
| 14862 | 14862 |
| 14863 @DomName('MediaQueryList.removeListener') | 14863 @DomName('MediaQueryList.removeListener') |
| 14864 @DocsEditable | 14864 @DocsEditable() |
| 14865 void removeListener(MediaQueryListListener listener) native; | 14865 void removeListener(MediaQueryListListener listener) native; |
| 14866 } | 14866 } |
| 14867 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14867 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14868 // for details. All rights reserved. Use of this source code is governed by a | 14868 // for details. All rights reserved. Use of this source code is governed by a |
| 14869 // BSD-style license that can be found in the LICENSE file. | 14869 // BSD-style license that can be found in the LICENSE file. |
| 14870 | 14870 |
| 14871 | 14871 |
| 14872 @DocsEditable | 14872 @DocsEditable() |
| 14873 @DomName('MediaQueryListListener') | 14873 @DomName('MediaQueryListListener') |
| 14874 @Unstable | 14874 @Unstable() |
| 14875 abstract class MediaQueryListListener extends Interceptor { | 14875 abstract class MediaQueryListListener extends Interceptor { |
| 14876 | 14876 |
| 14877 void queryChanged(MediaQueryList list); | 14877 void queryChanged(MediaQueryList list); |
| 14878 } | 14878 } |
| 14879 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 14879 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 14880 // for details. All rights reserved. Use of this source code is governed by a | 14880 // for details. All rights reserved. Use of this source code is governed by a |
| 14881 // BSD-style license that can be found in the LICENSE file. | 14881 // BSD-style license that can be found in the LICENSE file. |
| 14882 | 14882 |
| 14883 | 14883 |
| 14884 @DocsEditable | 14884 @DocsEditable() |
| 14885 @DomName('WebKitMediaSource') | 14885 @DomName('WebKitMediaSource') |
| 14886 @SupportedBrowser(SupportedBrowser.CHROME) | 14886 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14887 @SupportedBrowser(SupportedBrowser.SAFARI) | 14887 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 14888 @Experimental | 14888 @Experimental() |
| 14889 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html
#mediasource | 14889 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html
#mediasource |
| 14890 class MediaSource extends EventTarget native "WebKitMediaSource" { | 14890 class MediaSource extends EventTarget native "WebKitMediaSource" { |
| 14891 // To suppress missing implicit constructor warnings. | 14891 // To suppress missing implicit constructor warnings. |
| 14892 factory MediaSource._() { throw new UnsupportedError("Not supported"); } | 14892 factory MediaSource._() { throw new UnsupportedError("Not supported"); } |
| 14893 | 14893 |
| 14894 @DomName('WebKitMediaSource.WebKitMediaSource') | 14894 @DomName('WebKitMediaSource.WebKitMediaSource') |
| 14895 @DocsEditable | 14895 @DocsEditable() |
| 14896 factory MediaSource() { | 14896 factory MediaSource() { |
| 14897 return MediaSource._create_1(); | 14897 return MediaSource._create_1(); |
| 14898 } | 14898 } |
| 14899 static MediaSource _create_1() => JS('MediaSource', 'new WebKitMediaSource()')
; | 14899 static MediaSource _create_1() => JS('MediaSource', 'new WebKitMediaSource()')
; |
| 14900 | 14900 |
| 14901 @DomName('WebKitMediaSource.activeSourceBuffers') | 14901 @DomName('WebKitMediaSource.activeSourceBuffers') |
| 14902 @DocsEditable | 14902 @DocsEditable() |
| 14903 final SourceBufferList activeSourceBuffers; | 14903 final SourceBufferList activeSourceBuffers; |
| 14904 | 14904 |
| 14905 @DomName('WebKitMediaSource.duration') | 14905 @DomName('WebKitMediaSource.duration') |
| 14906 @DocsEditable | 14906 @DocsEditable() |
| 14907 num duration; | 14907 num duration; |
| 14908 | 14908 |
| 14909 @DomName('WebKitMediaSource.readyState') | 14909 @DomName('WebKitMediaSource.readyState') |
| 14910 @DocsEditable | 14910 @DocsEditable() |
| 14911 final String readyState; | 14911 final String readyState; |
| 14912 | 14912 |
| 14913 @DomName('WebKitMediaSource.sourceBuffers') | 14913 @DomName('WebKitMediaSource.sourceBuffers') |
| 14914 @DocsEditable | 14914 @DocsEditable() |
| 14915 final SourceBufferList sourceBuffers; | 14915 final SourceBufferList sourceBuffers; |
| 14916 | 14916 |
| 14917 @JSName('addEventListener') | 14917 @JSName('addEventListener') |
| 14918 @DomName('WebKitMediaSource.addEventListener') | 14918 @DomName('WebKitMediaSource.addEventListener') |
| 14919 @DocsEditable | 14919 @DocsEditable() |
| 14920 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 14920 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 14921 | 14921 |
| 14922 @DomName('WebKitMediaSource.addSourceBuffer') | 14922 @DomName('WebKitMediaSource.addSourceBuffer') |
| 14923 @DocsEditable | 14923 @DocsEditable() |
| 14924 SourceBuffer addSourceBuffer(String type) native; | 14924 SourceBuffer addSourceBuffer(String type) native; |
| 14925 | 14925 |
| 14926 @DomName('WebKitMediaSource.dispatchEvent') | 14926 @DomName('WebKitMediaSource.dispatchEvent') |
| 14927 @DocsEditable | 14927 @DocsEditable() |
| 14928 bool dispatchEvent(Event event) native; | 14928 bool dispatchEvent(Event event) native; |
| 14929 | 14929 |
| 14930 @DomName('WebKitMediaSource.endOfStream') | 14930 @DomName('WebKitMediaSource.endOfStream') |
| 14931 @DocsEditable | 14931 @DocsEditable() |
| 14932 void endOfStream(String error) native; | 14932 void endOfStream(String error) native; |
| 14933 | 14933 |
| 14934 @DomName('WebKitMediaSource.isTypeSupported') | 14934 @DomName('WebKitMediaSource.isTypeSupported') |
| 14935 @DocsEditable | 14935 @DocsEditable() |
| 14936 static bool isTypeSupported(String type) native; | 14936 static bool isTypeSupported(String type) native; |
| 14937 | 14937 |
| 14938 @JSName('removeEventListener') | 14938 @JSName('removeEventListener') |
| 14939 @DomName('WebKitMediaSource.removeEventListener') | 14939 @DomName('WebKitMediaSource.removeEventListener') |
| 14940 @DocsEditable | 14940 @DocsEditable() |
| 14941 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 14941 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 14942 | 14942 |
| 14943 @DomName('WebKitMediaSource.removeSourceBuffer') | 14943 @DomName('WebKitMediaSource.removeSourceBuffer') |
| 14944 @DocsEditable | 14944 @DocsEditable() |
| 14945 void removeSourceBuffer(SourceBuffer buffer) native; | 14945 void removeSourceBuffer(SourceBuffer buffer) native; |
| 14946 } | 14946 } |
| 14947 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 14947 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 14948 // for details. All rights reserved. Use of this source code is governed by a | 14948 // for details. All rights reserved. Use of this source code is governed by a |
| 14949 // BSD-style license that can be found in the LICENSE file. | 14949 // BSD-style license that can be found in the LICENSE file. |
| 14950 | 14950 |
| 14951 | 14951 |
| 14952 @DomName('MediaStream') | 14952 @DomName('MediaStream') |
| 14953 @SupportedBrowser(SupportedBrowser.CHROME) | 14953 @SupportedBrowser(SupportedBrowser.CHROME) |
| 14954 @Experimental | 14954 @Experimental() |
| 14955 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastream | 14955 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastream |
| 14956 class MediaStream extends EventTarget native "MediaStream" { | 14956 class MediaStream extends EventTarget native "MediaStream" { |
| 14957 // To suppress missing implicit constructor warnings. | 14957 // To suppress missing implicit constructor warnings. |
| 14958 factory MediaStream._() { throw new UnsupportedError("Not supported"); } | 14958 factory MediaStream._() { throw new UnsupportedError("Not supported"); } |
| 14959 | 14959 |
| 14960 @DomName('MediaStream.addtrackEvent') | 14960 @DomName('MediaStream.addtrackEvent') |
| 14961 @DocsEditable | 14961 @DocsEditable() |
| 14962 static const EventStreamProvider<Event> addTrackEvent = const EventStreamProvi
der<Event>('addtrack'); | 14962 static const EventStreamProvider<Event> addTrackEvent = const EventStreamProvi
der<Event>('addtrack'); |
| 14963 | 14963 |
| 14964 @DomName('MediaStream.endedEvent') | 14964 @DomName('MediaStream.endedEvent') |
| 14965 @DocsEditable | 14965 @DocsEditable() |
| 14966 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider
<Event>('ended'); | 14966 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider
<Event>('ended'); |
| 14967 | 14967 |
| 14968 @DomName('MediaStream.removetrackEvent') | 14968 @DomName('MediaStream.removetrackEvent') |
| 14969 @DocsEditable | 14969 @DocsEditable() |
| 14970 static const EventStreamProvider<Event> removeTrackEvent = const EventStreamPr
ovider<Event>('removetrack'); | 14970 static const EventStreamProvider<Event> removeTrackEvent = const EventStreamPr
ovider<Event>('removetrack'); |
| 14971 | 14971 |
| 14972 @DomName('MediaStream.MediaStream') | 14972 @DomName('MediaStream.MediaStream') |
| 14973 @DocsEditable | 14973 @DocsEditable() |
| 14974 factory MediaStream([stream_OR_tracks]) { | 14974 factory MediaStream([stream_OR_tracks]) { |
| 14975 if (stream_OR_tracks == null) { | 14975 if (stream_OR_tracks == null) { |
| 14976 return MediaStream._create_1(); | 14976 return MediaStream._create_1(); |
| 14977 } | 14977 } |
| 14978 if ((stream_OR_tracks is MediaStream || stream_OR_tracks == null)) { | 14978 if ((stream_OR_tracks is MediaStream || stream_OR_tracks == null)) { |
| 14979 return MediaStream._create_2(stream_OR_tracks); | 14979 return MediaStream._create_2(stream_OR_tracks); |
| 14980 } | 14980 } |
| 14981 if ((stream_OR_tracks is List<MediaStreamTrack> || stream_OR_tracks == null)
) { | 14981 if ((stream_OR_tracks is List<MediaStreamTrack> || stream_OR_tracks == null)
) { |
| 14982 return MediaStream._create_3(stream_OR_tracks); | 14982 return MediaStream._create_3(stream_OR_tracks); |
| 14983 } | 14983 } |
| 14984 throw new ArgumentError("Incorrect number or type of arguments"); | 14984 throw new ArgumentError("Incorrect number or type of arguments"); |
| 14985 } | 14985 } |
| 14986 static MediaStream _create_1() => JS('MediaStream', 'new MediaStream()'); | 14986 static MediaStream _create_1() => JS('MediaStream', 'new MediaStream()'); |
| 14987 static MediaStream _create_2(stream_OR_tracks) => JS('MediaStream', 'new Media
Stream(#)', stream_OR_tracks); | 14987 static MediaStream _create_2(stream_OR_tracks) => JS('MediaStream', 'new Media
Stream(#)', stream_OR_tracks); |
| 14988 static MediaStream _create_3(stream_OR_tracks) => JS('MediaStream', 'new Media
Stream(#)', stream_OR_tracks); | 14988 static MediaStream _create_3(stream_OR_tracks) => JS('MediaStream', 'new Media
Stream(#)', stream_OR_tracks); |
| 14989 | 14989 |
| 14990 @DomName('MediaStream.ended') | 14990 @DomName('MediaStream.ended') |
| 14991 @DocsEditable | 14991 @DocsEditable() |
| 14992 final bool ended; | 14992 final bool ended; |
| 14993 | 14993 |
| 14994 @DomName('MediaStream.id') | 14994 @DomName('MediaStream.id') |
| 14995 @DocsEditable | 14995 @DocsEditable() |
| 14996 final String id; | 14996 final String id; |
| 14997 | 14997 |
| 14998 @DomName('MediaStream.label') | 14998 @DomName('MediaStream.label') |
| 14999 @DocsEditable | 14999 @DocsEditable() |
| 15000 @Experimental // non-standard | 15000 @Experimental() // non-standard |
| 15001 final String label; | 15001 final String label; |
| 15002 | 15002 |
| 15003 @JSName('addEventListener') | 15003 @JSName('addEventListener') |
| 15004 @DomName('MediaStream.addEventListener') | 15004 @DomName('MediaStream.addEventListener') |
| 15005 @DocsEditable | 15005 @DocsEditable() |
| 15006 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 15006 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 15007 | 15007 |
| 15008 @DomName('MediaStream.addTrack') | 15008 @DomName('MediaStream.addTrack') |
| 15009 @DocsEditable | 15009 @DocsEditable() |
| 15010 void addTrack(MediaStreamTrack track) native; | 15010 void addTrack(MediaStreamTrack track) native; |
| 15011 | 15011 |
| 15012 @DomName('MediaStream.dispatchEvent') | 15012 @DomName('MediaStream.dispatchEvent') |
| 15013 @DocsEditable | 15013 @DocsEditable() |
| 15014 bool dispatchEvent(Event event) native; | 15014 bool dispatchEvent(Event event) native; |
| 15015 | 15015 |
| 15016 @DomName('MediaStream.getAudioTracks') | 15016 @DomName('MediaStream.getAudioTracks') |
| 15017 @DocsEditable | 15017 @DocsEditable() |
| 15018 List<MediaStreamTrack> getAudioTracks() native; | 15018 List<MediaStreamTrack> getAudioTracks() native; |
| 15019 | 15019 |
| 15020 @DomName('MediaStream.getTrackById') | 15020 @DomName('MediaStream.getTrackById') |
| 15021 @DocsEditable | 15021 @DocsEditable() |
| 15022 MediaStreamTrack getTrackById(String trackId) native; | 15022 MediaStreamTrack getTrackById(String trackId) native; |
| 15023 | 15023 |
| 15024 @DomName('MediaStream.getVideoTracks') | 15024 @DomName('MediaStream.getVideoTracks') |
| 15025 @DocsEditable | 15025 @DocsEditable() |
| 15026 List<MediaStreamTrack> getVideoTracks() native; | 15026 List<MediaStreamTrack> getVideoTracks() native; |
| 15027 | 15027 |
| 15028 @JSName('removeEventListener') | 15028 @JSName('removeEventListener') |
| 15029 @DomName('MediaStream.removeEventListener') | 15029 @DomName('MediaStream.removeEventListener') |
| 15030 @DocsEditable | 15030 @DocsEditable() |
| 15031 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 15031 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 15032 | 15032 |
| 15033 @DomName('MediaStream.removeTrack') | 15033 @DomName('MediaStream.removeTrack') |
| 15034 @DocsEditable | 15034 @DocsEditable() |
| 15035 void removeTrack(MediaStreamTrack track) native; | 15035 void removeTrack(MediaStreamTrack track) native; |
| 15036 | 15036 |
| 15037 @DomName('MediaStream.stop') | 15037 @DomName('MediaStream.stop') |
| 15038 @DocsEditable | 15038 @DocsEditable() |
| 15039 void stop() native; | 15039 void stop() native; |
| 15040 | 15040 |
| 15041 @DomName('MediaStream.onaddtrack') | 15041 @DomName('MediaStream.onaddtrack') |
| 15042 @DocsEditable | 15042 @DocsEditable() |
| 15043 Stream<Event> get onAddTrack => addTrackEvent.forTarget(this); | 15043 Stream<Event> get onAddTrack => addTrackEvent.forTarget(this); |
| 15044 | 15044 |
| 15045 @DomName('MediaStream.onended') | 15045 @DomName('MediaStream.onended') |
| 15046 @DocsEditable | 15046 @DocsEditable() |
| 15047 Stream<Event> get onEnded => endedEvent.forTarget(this); | 15047 Stream<Event> get onEnded => endedEvent.forTarget(this); |
| 15048 | 15048 |
| 15049 @DomName('MediaStream.onremovetrack') | 15049 @DomName('MediaStream.onremovetrack') |
| 15050 @DocsEditable | 15050 @DocsEditable() |
| 15051 Stream<Event> get onRemoveTrack => removeTrackEvent.forTarget(this); | 15051 Stream<Event> get onRemoveTrack => removeTrackEvent.forTarget(this); |
| 15052 | 15052 |
| 15053 | 15053 |
| 15054 /** | 15054 /** |
| 15055 * Checks if the MediaStream APIs are supported on the current platform. | 15055 * Checks if the MediaStream APIs are supported on the current platform. |
| 15056 * | 15056 * |
| 15057 * See also: | 15057 * See also: |
| 15058 * | 15058 * |
| 15059 * * [Navigator.getUserMedia] | 15059 * * [Navigator.getUserMedia] |
| 15060 */ | 15060 */ |
| 15061 static bool get supported => | 15061 static bool get supported => |
| 15062 JS('bool', '''!!(#.getUserMedia || #.webkitGetUserMedia || | 15062 JS('bool', '''!!(#.getUserMedia || #.webkitGetUserMedia || |
| 15063 #.mozGetUserMedia || #.msGetUserMedia)''', | 15063 #.mozGetUserMedia || #.msGetUserMedia)''', |
| 15064 window.navigator, | 15064 window.navigator, |
| 15065 window.navigator, | 15065 window.navigator, |
| 15066 window.navigator, | 15066 window.navigator, |
| 15067 window.navigator); | 15067 window.navigator); |
| 15068 } | 15068 } |
| 15069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15069 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15070 // for details. All rights reserved. Use of this source code is governed by a | 15070 // for details. All rights reserved. Use of this source code is governed by a |
| 15071 // BSD-style license that can be found in the LICENSE file. | 15071 // BSD-style license that can be found in the LICENSE file. |
| 15072 | 15072 |
| 15073 | 15073 |
| 15074 @DocsEditable | 15074 @DocsEditable() |
| 15075 @DomName('MediaStreamEvent') | 15075 @DomName('MediaStreamEvent') |
| 15076 @SupportedBrowser(SupportedBrowser.CHROME) | 15076 @SupportedBrowser(SupportedBrowser.CHROME) |
| 15077 @Experimental | 15077 @Experimental() |
| 15078 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html | 15078 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html |
| 15079 class MediaStreamEvent extends Event native "MediaStreamEvent" { | 15079 class MediaStreamEvent extends Event native "MediaStreamEvent" { |
| 15080 // To suppress missing implicit constructor warnings. | 15080 // To suppress missing implicit constructor warnings. |
| 15081 factory MediaStreamEvent._() { throw new UnsupportedError("Not supported"); } | 15081 factory MediaStreamEvent._() { throw new UnsupportedError("Not supported"); } |
| 15082 | 15082 |
| 15083 /// Checks if this type is supported on the current platform. | 15083 /// Checks if this type is supported on the current platform. |
| 15084 static bool get supported => Device.isEventTypeSupported('MediaStreamEvent'); | 15084 static bool get supported => Device.isEventTypeSupported('MediaStreamEvent'); |
| 15085 | 15085 |
| 15086 @DomName('MediaStreamEvent.stream') | 15086 @DomName('MediaStreamEvent.stream') |
| 15087 @DocsEditable | 15087 @DocsEditable() |
| 15088 final MediaStream stream; | 15088 final MediaStream stream; |
| 15089 } | 15089 } |
| 15090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15091 // for details. All rights reserved. Use of this source code is governed by a | 15091 // for details. All rights reserved. Use of this source code is governed by a |
| 15092 // BSD-style license that can be found in the LICENSE file. | 15092 // BSD-style license that can be found in the LICENSE file. |
| 15093 | 15093 |
| 15094 | 15094 |
| 15095 @DocsEditable | 15095 @DocsEditable() |
| 15096 @DomName('MediaStreamTrack') | 15096 @DomName('MediaStreamTrack') |
| 15097 @SupportedBrowser(SupportedBrowser.CHROME) | 15097 @SupportedBrowser(SupportedBrowser.CHROME) |
| 15098 @Experimental | 15098 @Experimental() |
| 15099 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastreamtrack | 15099 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#mediastreamtrack |
| 15100 class MediaStreamTrack extends EventTarget native "MediaStreamTrack" { | 15100 class MediaStreamTrack extends EventTarget native "MediaStreamTrack" { |
| 15101 // To suppress missing implicit constructor warnings. | 15101 // To suppress missing implicit constructor warnings. |
| 15102 factory MediaStreamTrack._() { throw new UnsupportedError("Not supported"); } | 15102 factory MediaStreamTrack._() { throw new UnsupportedError("Not supported"); } |
| 15103 | 15103 |
| 15104 @DomName('MediaStreamTrack.endedEvent') | 15104 @DomName('MediaStreamTrack.endedEvent') |
| 15105 @DocsEditable | 15105 @DocsEditable() |
| 15106 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider
<Event>('ended'); | 15106 static const EventStreamProvider<Event> endedEvent = const EventStreamProvider
<Event>('ended'); |
| 15107 | 15107 |
| 15108 @DomName('MediaStreamTrack.muteEvent') | 15108 @DomName('MediaStreamTrack.muteEvent') |
| 15109 @DocsEditable | 15109 @DocsEditable() |
| 15110 static const EventStreamProvider<Event> muteEvent = const EventStreamProvider<
Event>('mute'); | 15110 static const EventStreamProvider<Event> muteEvent = const EventStreamProvider<
Event>('mute'); |
| 15111 | 15111 |
| 15112 @DomName('MediaStreamTrack.unmuteEvent') | 15112 @DomName('MediaStreamTrack.unmuteEvent') |
| 15113 @DocsEditable | 15113 @DocsEditable() |
| 15114 static const EventStreamProvider<Event> unmuteEvent = const EventStreamProvide
r<Event>('unmute'); | 15114 static const EventStreamProvider<Event> unmuteEvent = const EventStreamProvide
r<Event>('unmute'); |
| 15115 | 15115 |
| 15116 @DomName('MediaStreamTrack.enabled') | 15116 @DomName('MediaStreamTrack.enabled') |
| 15117 @DocsEditable | 15117 @DocsEditable() |
| 15118 bool enabled; | 15118 bool enabled; |
| 15119 | 15119 |
| 15120 @DomName('MediaStreamTrack.id') | 15120 @DomName('MediaStreamTrack.id') |
| 15121 @DocsEditable | 15121 @DocsEditable() |
| 15122 final String id; | 15122 final String id; |
| 15123 | 15123 |
| 15124 @DomName('MediaStreamTrack.kind') | 15124 @DomName('MediaStreamTrack.kind') |
| 15125 @DocsEditable | 15125 @DocsEditable() |
| 15126 final String kind; | 15126 final String kind; |
| 15127 | 15127 |
| 15128 @DomName('MediaStreamTrack.label') | 15128 @DomName('MediaStreamTrack.label') |
| 15129 @DocsEditable | 15129 @DocsEditable() |
| 15130 final String label; | 15130 final String label; |
| 15131 | 15131 |
| 15132 @DomName('MediaStreamTrack.readyState') | 15132 @DomName('MediaStreamTrack.readyState') |
| 15133 @DocsEditable | 15133 @DocsEditable() |
| 15134 final String readyState; | 15134 final String readyState; |
| 15135 | 15135 |
| 15136 @JSName('addEventListener') | 15136 @JSName('addEventListener') |
| 15137 @DomName('MediaStreamTrack.addEventListener') | 15137 @DomName('MediaStreamTrack.addEventListener') |
| 15138 @DocsEditable | 15138 @DocsEditable() |
| 15139 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 15139 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 15140 | 15140 |
| 15141 @DomName('MediaStreamTrack.dispatchEvent') | 15141 @DomName('MediaStreamTrack.dispatchEvent') |
| 15142 @DocsEditable | 15142 @DocsEditable() |
| 15143 bool dispatchEvent(Event event) native; | 15143 bool dispatchEvent(Event event) native; |
| 15144 | 15144 |
| 15145 @JSName('removeEventListener') | 15145 @JSName('removeEventListener') |
| 15146 @DomName('MediaStreamTrack.removeEventListener') | 15146 @DomName('MediaStreamTrack.removeEventListener') |
| 15147 @DocsEditable | 15147 @DocsEditable() |
| 15148 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 15148 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 15149 | 15149 |
| 15150 @DomName('MediaStreamTrack.onended') | 15150 @DomName('MediaStreamTrack.onended') |
| 15151 @DocsEditable | 15151 @DocsEditable() |
| 15152 Stream<Event> get onEnded => endedEvent.forTarget(this); | 15152 Stream<Event> get onEnded => endedEvent.forTarget(this); |
| 15153 | 15153 |
| 15154 @DomName('MediaStreamTrack.onmute') | 15154 @DomName('MediaStreamTrack.onmute') |
| 15155 @DocsEditable | 15155 @DocsEditable() |
| 15156 Stream<Event> get onMute => muteEvent.forTarget(this); | 15156 Stream<Event> get onMute => muteEvent.forTarget(this); |
| 15157 | 15157 |
| 15158 @DomName('MediaStreamTrack.onunmute') | 15158 @DomName('MediaStreamTrack.onunmute') |
| 15159 @DocsEditable | 15159 @DocsEditable() |
| 15160 Stream<Event> get onUnmute => unmuteEvent.forTarget(this); | 15160 Stream<Event> get onUnmute => unmuteEvent.forTarget(this); |
| 15161 } | 15161 } |
| 15162 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15162 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15163 // for details. All rights reserved. Use of this source code is governed by a | 15163 // for details. All rights reserved. Use of this source code is governed by a |
| 15164 // BSD-style license that can be found in the LICENSE file. | 15164 // BSD-style license that can be found in the LICENSE file. |
| 15165 | 15165 |
| 15166 | 15166 |
| 15167 @DocsEditable | 15167 @DocsEditable() |
| 15168 @DomName('MediaStreamTrackEvent') | 15168 @DomName('MediaStreamTrackEvent') |
| 15169 @SupportedBrowser(SupportedBrowser.CHROME) | 15169 @SupportedBrowser(SupportedBrowser.CHROME) |
| 15170 @Experimental | 15170 @Experimental() |
| 15171 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html | 15171 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html |
| 15172 class MediaStreamTrackEvent extends Event native "MediaStreamTrackEvent" { | 15172 class MediaStreamTrackEvent extends Event native "MediaStreamTrackEvent" { |
| 15173 // To suppress missing implicit constructor warnings. | 15173 // To suppress missing implicit constructor warnings. |
| 15174 factory MediaStreamTrackEvent._() { throw new UnsupportedError("Not supported"
); } | 15174 factory MediaStreamTrackEvent._() { throw new UnsupportedError("Not supported"
); } |
| 15175 | 15175 |
| 15176 /// Checks if this type is supported on the current platform. | 15176 /// Checks if this type is supported on the current platform. |
| 15177 static bool get supported => Device.isEventTypeSupported('MediaStreamTrackEven
t'); | 15177 static bool get supported => Device.isEventTypeSupported('MediaStreamTrackEven
t'); |
| 15178 | 15178 |
| 15179 @DomName('MediaStreamTrackEvent.track') | 15179 @DomName('MediaStreamTrackEvent.track') |
| 15180 @DocsEditable | 15180 @DocsEditable() |
| 15181 final MediaStreamTrack track; | 15181 final MediaStreamTrack track; |
| 15182 } | 15182 } |
| 15183 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15183 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15184 // for details. All rights reserved. Use of this source code is governed by a | 15184 // for details. All rights reserved. Use of this source code is governed by a |
| 15185 // BSD-style license that can be found in the LICENSE file. | 15185 // BSD-style license that can be found in the LICENSE file. |
| 15186 | 15186 |
| 15187 | 15187 |
| 15188 @DocsEditable | 15188 @DocsEditable() |
| 15189 @DomName('MemoryInfo') | 15189 @DomName('MemoryInfo') |
| 15190 @Experimental // nonstandard | 15190 @Experimental() // nonstandard |
| 15191 class MemoryInfo extends Interceptor native "MemoryInfo" { | 15191 class MemoryInfo extends Interceptor native "MemoryInfo" { |
| 15192 | 15192 |
| 15193 @DomName('MemoryInfo.jsHeapSizeLimit') | 15193 @DomName('MemoryInfo.jsHeapSizeLimit') |
| 15194 @DocsEditable | 15194 @DocsEditable() |
| 15195 final int jsHeapSizeLimit; | 15195 final int jsHeapSizeLimit; |
| 15196 | 15196 |
| 15197 @DomName('MemoryInfo.totalJSHeapSize') | 15197 @DomName('MemoryInfo.totalJSHeapSize') |
| 15198 @DocsEditable | 15198 @DocsEditable() |
| 15199 final int totalJSHeapSize; | 15199 final int totalJSHeapSize; |
| 15200 | 15200 |
| 15201 @DomName('MemoryInfo.usedJSHeapSize') | 15201 @DomName('MemoryInfo.usedJSHeapSize') |
| 15202 @DocsEditable | 15202 @DocsEditable() |
| 15203 final int usedJSHeapSize; | 15203 final int usedJSHeapSize; |
| 15204 } | 15204 } |
| 15205 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15205 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15206 // for details. All rights reserved. Use of this source code is governed by a | 15206 // for details. All rights reserved. Use of this source code is governed by a |
| 15207 // BSD-style license that can be found in the LICENSE file. | 15207 // BSD-style license that can be found in the LICENSE file. |
| 15208 | 15208 |
| 15209 | 15209 |
| 15210 @DocsEditable | 15210 @DocsEditable() |
| 15211 /** | 15211 /** |
| 15212 * An HTML <menu> element. | 15212 * An HTML <menu> element. |
| 15213 * | 15213 * |
| 15214 * A <menu> element represents an unordered list of menu commands. | 15214 * A <menu> element represents an unordered list of menu commands. |
| 15215 * | 15215 * |
| 15216 * See also: | 15216 * See also: |
| 15217 * | 15217 * |
| 15218 * * [Menu Element](https://developer.mozilla.org/en-US/docs/HTML/Element/menu)
from MDN. | 15218 * * [Menu Element](https://developer.mozilla.org/en-US/docs/HTML/Element/menu)
from MDN. |
| 15219 * * [Menu Element](http://www.w3.org/TR/html5/the-menu-element.html#the-menu-e
lement) from the W3C. | 15219 * * [Menu Element](http://www.w3.org/TR/html5/the-menu-element.html#the-menu-e
lement) from the W3C. |
| 15220 */ | 15220 */ |
| 15221 @DomName('HTMLMenuElement') | 15221 @DomName('HTMLMenuElement') |
| 15222 class MenuElement extends _HTMLElement native "HTMLMenuElement" { | 15222 class MenuElement extends _HTMLElement native "HTMLMenuElement" { |
| 15223 // To suppress missing implicit constructor warnings. | 15223 // To suppress missing implicit constructor warnings. |
| 15224 factory MenuElement._() { throw new UnsupportedError("Not supported"); } | 15224 factory MenuElement._() { throw new UnsupportedError("Not supported"); } |
| 15225 | 15225 |
| 15226 @DomName('HTMLMenuElement.HTMLMenuElement') | 15226 @DomName('HTMLMenuElement.HTMLMenuElement') |
| 15227 @DocsEditable | 15227 @DocsEditable() |
| 15228 factory MenuElement() => document.$dom_createElement("menu"); | 15228 factory MenuElement() => document.$dom_createElement("menu"); |
| 15229 } | 15229 } |
| 15230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15230 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15231 // for details. All rights reserved. Use of this source code is governed by a | 15231 // for details. All rights reserved. Use of this source code is governed by a |
| 15232 // BSD-style license that can be found in the LICENSE file. | 15232 // BSD-style license that can be found in the LICENSE file. |
| 15233 | 15233 |
| 15234 | 15234 |
| 15235 @DocsEditable | 15235 @DocsEditable() |
| 15236 @DomName('MessageChannel') | 15236 @DomName('MessageChannel') |
| 15237 @Unstable | 15237 @Unstable() |
| 15238 class MessageChannel extends Interceptor native "MessageChannel" { | 15238 class MessageChannel extends Interceptor native "MessageChannel" { |
| 15239 | 15239 |
| 15240 @DomName('MessageChannel.MessageChannel') | 15240 @DomName('MessageChannel.MessageChannel') |
| 15241 @DocsEditable | 15241 @DocsEditable() |
| 15242 factory MessageChannel() { | 15242 factory MessageChannel() { |
| 15243 return MessageChannel._create_1(); | 15243 return MessageChannel._create_1(); |
| 15244 } | 15244 } |
| 15245 static MessageChannel _create_1() => JS('MessageChannel', 'new MessageChannel(
)'); | 15245 static MessageChannel _create_1() => JS('MessageChannel', 'new MessageChannel(
)'); |
| 15246 | 15246 |
| 15247 @DomName('MessageChannel.port1') | 15247 @DomName('MessageChannel.port1') |
| 15248 @DocsEditable | 15248 @DocsEditable() |
| 15249 final MessagePort port1; | 15249 final MessagePort port1; |
| 15250 | 15250 |
| 15251 @DomName('MessageChannel.port2') | 15251 @DomName('MessageChannel.port2') |
| 15252 @DocsEditable | 15252 @DocsEditable() |
| 15253 final MessagePort port2; | 15253 final MessagePort port2; |
| 15254 } | 15254 } |
| 15255 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 15255 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 15256 // for details. All rights reserved. Use of this source code is governed by a | 15256 // for details. All rights reserved. Use of this source code is governed by a |
| 15257 // BSD-style license that can be found in the LICENSE file. | 15257 // BSD-style license that can be found in the LICENSE file. |
| 15258 | 15258 |
| 15259 // WARNING: Do not edit - generated code. | 15259 // WARNING: Do not edit - generated code. |
| 15260 | 15260 |
| 15261 | 15261 |
| 15262 @DomName('MessageEvent') | 15262 @DomName('MessageEvent') |
| 15263 class MessageEvent extends Event native "MessageEvent" { | 15263 class MessageEvent extends Event native "MessageEvent" { |
| 15264 factory MessageEvent(String type, | 15264 factory MessageEvent(String type, |
| 15265 {bool canBubble: false, bool cancelable: false, Object data, | 15265 {bool canBubble: false, bool cancelable: false, Object data, |
| 15266 String origin, String lastEventId, | 15266 String origin, String lastEventId, |
| 15267 Window source, List messagePorts}) { | 15267 Window source, List messagePorts}) { |
| 15268 if (source == null) { | 15268 if (source == null) { |
| 15269 source = window; | 15269 source = window; |
| 15270 } | 15270 } |
| 15271 var event = document.$dom_createEvent("MessageEvent"); | 15271 var event = document.$dom_createEvent("MessageEvent"); |
| 15272 event.$dom_initMessageEvent(type, canBubble, cancelable, data, origin, | 15272 event.$dom_initMessageEvent(type, canBubble, cancelable, data, origin, |
| 15273 lastEventId, source, messagePorts); | 15273 lastEventId, source, messagePorts); |
| 15274 return event; | 15274 return event; |
| 15275 } | 15275 } |
| 15276 // To suppress missing implicit constructor warnings. | 15276 // To suppress missing implicit constructor warnings. |
| 15277 factory MessageEvent._() { throw new UnsupportedError("Not supported"); } | 15277 factory MessageEvent._() { throw new UnsupportedError("Not supported"); } |
| 15278 | 15278 |
| 15279 dynamic get data => convertNativeToDart_SerializedScriptValue(this._get_data); | 15279 dynamic get data => convertNativeToDart_SerializedScriptValue(this._get_data); |
| 15280 @JSName('data') | 15280 @JSName('data') |
| 15281 @DomName('MessageEvent.data') | 15281 @DomName('MessageEvent.data') |
| 15282 @DocsEditable | 15282 @DocsEditable() |
| 15283 @annotation_Creates_SerializedScriptValue | 15283 @annotation_Creates_SerializedScriptValue |
| 15284 @annotation_Returns_SerializedScriptValue | 15284 @annotation_Returns_SerializedScriptValue |
| 15285 final dynamic _get_data; | 15285 final dynamic _get_data; |
| 15286 | 15286 |
| 15287 @DomName('MessageEvent.lastEventId') | 15287 @DomName('MessageEvent.lastEventId') |
| 15288 @DocsEditable | 15288 @DocsEditable() |
| 15289 @Unstable | 15289 @Unstable() |
| 15290 final String lastEventId; | 15290 final String lastEventId; |
| 15291 | 15291 |
| 15292 @DomName('MessageEvent.origin') | 15292 @DomName('MessageEvent.origin') |
| 15293 @DocsEditable | 15293 @DocsEditable() |
| 15294 final String origin; | 15294 final String origin; |
| 15295 | 15295 |
| 15296 @DomName('MessageEvent.ports') | 15296 @DomName('MessageEvent.ports') |
| 15297 @DocsEditable | 15297 @DocsEditable() |
| 15298 @Unstable | 15298 @Unstable() |
| 15299 @Creates('JSExtendableArray') | 15299 @Creates('JSExtendableArray') |
| 15300 final List<MessagePort> ports; | 15300 final List<MessagePort> ports; |
| 15301 | 15301 |
| 15302 WindowBase get source => _convertNativeToDart_Window(this._get_source); | 15302 WindowBase get source => _convertNativeToDart_Window(this._get_source); |
| 15303 @JSName('source') | 15303 @JSName('source') |
| 15304 @DomName('MessageEvent.source') | 15304 @DomName('MessageEvent.source') |
| 15305 @DocsEditable | 15305 @DocsEditable() |
| 15306 @Creates('Window|=Object') | 15306 @Creates('Window|=Object') |
| 15307 @Returns('Window|=Object') | 15307 @Returns('Window|=Object') |
| 15308 final dynamic _get_source; | 15308 final dynamic _get_source; |
| 15309 | 15309 |
| 15310 @JSName('initMessageEvent') | 15310 @JSName('initMessageEvent') |
| 15311 @DomName('MessageEvent.initMessageEvent') | 15311 @DomName('MessageEvent.initMessageEvent') |
| 15312 @DocsEditable | 15312 @DocsEditable() |
| 15313 void $dom_initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableA
rg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, L
ist messagePorts) native; | 15313 void $dom_initMessageEvent(String typeArg, bool canBubbleArg, bool cancelableA
rg, Object dataArg, String originArg, String lastEventIdArg, Window sourceArg, L
ist messagePorts) native; |
| 15314 | 15314 |
| 15315 } | 15315 } |
| 15316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15316 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15317 // for details. All rights reserved. Use of this source code is governed by a | 15317 // for details. All rights reserved. Use of this source code is governed by a |
| 15318 // BSD-style license that can be found in the LICENSE file. | 15318 // BSD-style license that can be found in the LICENSE file. |
| 15319 | 15319 |
| 15320 | 15320 |
| 15321 @DocsEditable | 15321 @DocsEditable() |
| 15322 @DomName('MessagePort') | 15322 @DomName('MessagePort') |
| 15323 @Unstable | 15323 @Unstable() |
| 15324 class MessagePort extends EventTarget native "MessagePort" { | 15324 class MessagePort extends EventTarget native "MessagePort" { |
| 15325 // To suppress missing implicit constructor warnings. | 15325 // To suppress missing implicit constructor warnings. |
| 15326 factory MessagePort._() { throw new UnsupportedError("Not supported"); } | 15326 factory MessagePort._() { throw new UnsupportedError("Not supported"); } |
| 15327 | 15327 |
| 15328 @DomName('MessagePort.messageEvent') | 15328 @DomName('MessagePort.messageEvent') |
| 15329 @DocsEditable | 15329 @DocsEditable() |
| 15330 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea
mProvider<MessageEvent>('message'); | 15330 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea
mProvider<MessageEvent>('message'); |
| 15331 | 15331 |
| 15332 @JSName('addEventListener') | 15332 @JSName('addEventListener') |
| 15333 @DomName('MessagePort.addEventListener') | 15333 @DomName('MessagePort.addEventListener') |
| 15334 @DocsEditable | 15334 @DocsEditable() |
| 15335 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 15335 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 15336 | 15336 |
| 15337 @DomName('MessagePort.close') | 15337 @DomName('MessagePort.close') |
| 15338 @DocsEditable | 15338 @DocsEditable() |
| 15339 void close() native; | 15339 void close() native; |
| 15340 | 15340 |
| 15341 @DomName('MessagePort.dispatchEvent') | 15341 @DomName('MessagePort.dispatchEvent') |
| 15342 @DocsEditable | 15342 @DocsEditable() |
| 15343 bool dispatchEvent(Event evt) native; | 15343 bool dispatchEvent(Event evt) native; |
| 15344 | 15344 |
| 15345 @DomName('MessagePort.postMessage') | 15345 @DomName('MessagePort.postMessage') |
| 15346 @DocsEditable | 15346 @DocsEditable() |
| 15347 void postMessage(/*any*/ message, [List messagePorts]) { | 15347 void postMessage(/*any*/ message, [List messagePorts]) { |
| 15348 if (messagePorts != null) { | 15348 if (messagePorts != null) { |
| 15349 var message_1 = convertDartToNative_SerializedScriptValue(message); | 15349 var message_1 = convertDartToNative_SerializedScriptValue(message); |
| 15350 _postMessage_1(message_1, messagePorts); | 15350 _postMessage_1(message_1, messagePorts); |
| 15351 return; | 15351 return; |
| 15352 } | 15352 } |
| 15353 var message_2 = convertDartToNative_SerializedScriptValue(message); | 15353 var message_2 = convertDartToNative_SerializedScriptValue(message); |
| 15354 _postMessage_2(message_2); | 15354 _postMessage_2(message_2); |
| 15355 return; | 15355 return; |
| 15356 } | 15356 } |
| 15357 @JSName('postMessage') | 15357 @JSName('postMessage') |
| 15358 @DomName('MessagePort.postMessage') | 15358 @DomName('MessagePort.postMessage') |
| 15359 @DocsEditable | 15359 @DocsEditable() |
| 15360 void _postMessage_1(message, List messagePorts) native; | 15360 void _postMessage_1(message, List messagePorts) native; |
| 15361 @JSName('postMessage') | 15361 @JSName('postMessage') |
| 15362 @DomName('MessagePort.postMessage') | 15362 @DomName('MessagePort.postMessage') |
| 15363 @DocsEditable | 15363 @DocsEditable() |
| 15364 void _postMessage_2(message) native; | 15364 void _postMessage_2(message) native; |
| 15365 | 15365 |
| 15366 @JSName('removeEventListener') | 15366 @JSName('removeEventListener') |
| 15367 @DomName('MessagePort.removeEventListener') | 15367 @DomName('MessagePort.removeEventListener') |
| 15368 @DocsEditable | 15368 @DocsEditable() |
| 15369 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 15369 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 15370 | 15370 |
| 15371 @DomName('MessagePort.start') | 15371 @DomName('MessagePort.start') |
| 15372 @DocsEditable | 15372 @DocsEditable() |
| 15373 void start() native; | 15373 void start() native; |
| 15374 | 15374 |
| 15375 @DomName('MessagePort.onmessage') | 15375 @DomName('MessagePort.onmessage') |
| 15376 @DocsEditable | 15376 @DocsEditable() |
| 15377 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); | 15377 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); |
| 15378 } | 15378 } |
| 15379 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15379 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15380 // for details. All rights reserved. Use of this source code is governed by a | 15380 // for details. All rights reserved. Use of this source code is governed by a |
| 15381 // BSD-style license that can be found in the LICENSE file. | 15381 // BSD-style license that can be found in the LICENSE file. |
| 15382 | 15382 |
| 15383 | 15383 |
| 15384 @DocsEditable | 15384 @DocsEditable() |
| 15385 @DomName('HTMLMetaElement') | 15385 @DomName('HTMLMetaElement') |
| 15386 class MetaElement extends _HTMLElement native "HTMLMetaElement" { | 15386 class MetaElement extends _HTMLElement native "HTMLMetaElement" { |
| 15387 // To suppress missing implicit constructor warnings. | 15387 // To suppress missing implicit constructor warnings. |
| 15388 factory MetaElement._() { throw new UnsupportedError("Not supported"); } | 15388 factory MetaElement._() { throw new UnsupportedError("Not supported"); } |
| 15389 | 15389 |
| 15390 @DomName('HTMLMetaElement.HTMLMetaElement') | 15390 @DomName('HTMLMetaElement.HTMLMetaElement') |
| 15391 @DocsEditable | 15391 @DocsEditable() |
| 15392 factory MetaElement() => document.$dom_createElement("meta"); | 15392 factory MetaElement() => document.$dom_createElement("meta"); |
| 15393 | 15393 |
| 15394 @DomName('HTMLMetaElement.content') | 15394 @DomName('HTMLMetaElement.content') |
| 15395 @DocsEditable | 15395 @DocsEditable() |
| 15396 String content; | 15396 String content; |
| 15397 | 15397 |
| 15398 @DomName('HTMLMetaElement.httpEquiv') | 15398 @DomName('HTMLMetaElement.httpEquiv') |
| 15399 @DocsEditable | 15399 @DocsEditable() |
| 15400 String httpEquiv; | 15400 String httpEquiv; |
| 15401 | 15401 |
| 15402 @DomName('HTMLMetaElement.name') | 15402 @DomName('HTMLMetaElement.name') |
| 15403 @DocsEditable | 15403 @DocsEditable() |
| 15404 String name; | 15404 String name; |
| 15405 } | 15405 } |
| 15406 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15406 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15407 // for details. All rights reserved. Use of this source code is governed by a | 15407 // for details. All rights reserved. Use of this source code is governed by a |
| 15408 // BSD-style license that can be found in the LICENSE file. | 15408 // BSD-style license that can be found in the LICENSE file. |
| 15409 | 15409 |
| 15410 | 15410 |
| 15411 @DocsEditable | 15411 @DocsEditable() |
| 15412 @DomName('Metadata') | 15412 @DomName('Metadata') |
| 15413 // http://www.w3.org/TR/file-system-api/#the-metadata-interface | 15413 // http://www.w3.org/TR/file-system-api/#the-metadata-interface |
| 15414 @Experimental | 15414 @Experimental() |
| 15415 class Metadata extends Interceptor native "Metadata" { | 15415 class Metadata extends Interceptor native "Metadata" { |
| 15416 | 15416 |
| 15417 DateTime get modificationTime => convertNativeToDart_DateTime(this._get_modifi
cationTime); | 15417 DateTime get modificationTime => convertNativeToDart_DateTime(this._get_modifi
cationTime); |
| 15418 @JSName('modificationTime') | 15418 @JSName('modificationTime') |
| 15419 @DomName('Metadata.modificationTime') | 15419 @DomName('Metadata.modificationTime') |
| 15420 @DocsEditable | 15420 @DocsEditable() |
| 15421 @Creates('Null') | 15421 @Creates('Null') |
| 15422 final dynamic _get_modificationTime; | 15422 final dynamic _get_modificationTime; |
| 15423 | 15423 |
| 15424 @DomName('Metadata.size') | 15424 @DomName('Metadata.size') |
| 15425 @DocsEditable | 15425 @DocsEditable() |
| 15426 final int size; | 15426 final int size; |
| 15427 } | 15427 } |
| 15428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15428 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15429 // for details. All rights reserved. Use of this source code is governed by a | 15429 // for details. All rights reserved. Use of this source code is governed by a |
| 15430 // BSD-style license that can be found in the LICENSE file. | 15430 // BSD-style license that can be found in the LICENSE file. |
| 15431 | 15431 |
| 15432 // WARNING: Do not edit - generated code. | 15432 // WARNING: Do not edit - generated code. |
| 15433 | 15433 |
| 15434 | 15434 |
| 15435 @DomName('MetadataCallback') | 15435 @DomName('MetadataCallback') |
| 15436 // http://www.w3.org/TR/file-system-api/#idl-def-MetadataCallback | 15436 // http://www.w3.org/TR/file-system-api/#idl-def-MetadataCallback |
| 15437 @Experimental | 15437 @Experimental() |
| 15438 typedef void MetadataCallback(Metadata metadata); | 15438 typedef void MetadataCallback(Metadata metadata); |
| 15439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15439 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15440 // for details. All rights reserved. Use of this source code is governed by a | 15440 // for details. All rights reserved. Use of this source code is governed by a |
| 15441 // BSD-style license that can be found in the LICENSE file. | 15441 // BSD-style license that can be found in the LICENSE file. |
| 15442 | 15442 |
| 15443 | 15443 |
| 15444 @DocsEditable | 15444 @DocsEditable() |
| 15445 @DomName('HTMLMeterElement') | 15445 @DomName('HTMLMeterElement') |
| 15446 @SupportedBrowser(SupportedBrowser.CHROME) | 15446 @SupportedBrowser(SupportedBrowser.CHROME) |
| 15447 @SupportedBrowser(SupportedBrowser.FIREFOX) | 15447 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 15448 @SupportedBrowser(SupportedBrowser.SAFARI) | 15448 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 15449 @Unstable | 15449 @Unstable() |
| 15450 class MeterElement extends _HTMLElement native "HTMLMeterElement" { | 15450 class MeterElement extends _HTMLElement native "HTMLMeterElement" { |
| 15451 // To suppress missing implicit constructor warnings. | 15451 // To suppress missing implicit constructor warnings. |
| 15452 factory MeterElement._() { throw new UnsupportedError("Not supported"); } | 15452 factory MeterElement._() { throw new UnsupportedError("Not supported"); } |
| 15453 | 15453 |
| 15454 @DomName('HTMLMeterElement.HTMLMeterElement') | 15454 @DomName('HTMLMeterElement.HTMLMeterElement') |
| 15455 @DocsEditable | 15455 @DocsEditable() |
| 15456 factory MeterElement() => document.$dom_createElement("meter"); | 15456 factory MeterElement() => document.$dom_createElement("meter"); |
| 15457 | 15457 |
| 15458 /// Checks if this type is supported on the current platform. | 15458 /// Checks if this type is supported on the current platform. |
| 15459 static bool get supported => Element.isTagSupported('meter'); | 15459 static bool get supported => Element.isTagSupported('meter'); |
| 15460 | 15460 |
| 15461 @DomName('HTMLMeterElement.high') | 15461 @DomName('HTMLMeterElement.high') |
| 15462 @DocsEditable | 15462 @DocsEditable() |
| 15463 num high; | 15463 num high; |
| 15464 | 15464 |
| 15465 @DomName('HTMLMeterElement.labels') | 15465 @DomName('HTMLMeterElement.labels') |
| 15466 @DocsEditable | 15466 @DocsEditable() |
| 15467 @Unstable | 15467 @Unstable() |
| 15468 @Returns('NodeList') | 15468 @Returns('NodeList') |
| 15469 @Creates('NodeList') | 15469 @Creates('NodeList') |
| 15470 final List<Node> labels; | 15470 final List<Node> labels; |
| 15471 | 15471 |
| 15472 @DomName('HTMLMeterElement.low') | 15472 @DomName('HTMLMeterElement.low') |
| 15473 @DocsEditable | 15473 @DocsEditable() |
| 15474 num low; | 15474 num low; |
| 15475 | 15475 |
| 15476 @DomName('HTMLMeterElement.max') | 15476 @DomName('HTMLMeterElement.max') |
| 15477 @DocsEditable | 15477 @DocsEditable() |
| 15478 num max; | 15478 num max; |
| 15479 | 15479 |
| 15480 @DomName('HTMLMeterElement.min') | 15480 @DomName('HTMLMeterElement.min') |
| 15481 @DocsEditable | 15481 @DocsEditable() |
| 15482 num min; | 15482 num min; |
| 15483 | 15483 |
| 15484 @DomName('HTMLMeterElement.optimum') | 15484 @DomName('HTMLMeterElement.optimum') |
| 15485 @DocsEditable | 15485 @DocsEditable() |
| 15486 num optimum; | 15486 num optimum; |
| 15487 | 15487 |
| 15488 @DomName('HTMLMeterElement.value') | 15488 @DomName('HTMLMeterElement.value') |
| 15489 @DocsEditable | 15489 @DocsEditable() |
| 15490 num value; | 15490 num value; |
| 15491 } | 15491 } |
| 15492 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15492 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15493 // for details. All rights reserved. Use of this source code is governed by a | 15493 // for details. All rights reserved. Use of this source code is governed by a |
| 15494 // BSD-style license that can be found in the LICENSE file. | 15494 // BSD-style license that can be found in the LICENSE file. |
| 15495 | 15495 |
| 15496 | 15496 |
| 15497 @DocsEditable | 15497 @DocsEditable() |
| 15498 @DomName('MIDIAccess') | 15498 @DomName('MIDIAccess') |
| 15499 // http://webaudio.github.io/web-midi-api/#midiaccess-interface | 15499 // http://webaudio.github.io/web-midi-api/#midiaccess-interface |
| 15500 @Experimental | 15500 @Experimental() |
| 15501 class MidiAccess extends EventTarget native "MIDIAccess" { | 15501 class MidiAccess extends EventTarget native "MIDIAccess" { |
| 15502 // To suppress missing implicit constructor warnings. | 15502 // To suppress missing implicit constructor warnings. |
| 15503 factory MidiAccess._() { throw new UnsupportedError("Not supported"); } | 15503 factory MidiAccess._() { throw new UnsupportedError("Not supported"); } |
| 15504 | 15504 |
| 15505 @DomName('MIDIAccess.connectEvent') | 15505 @DomName('MIDIAccess.connectEvent') |
| 15506 @DocsEditable | 15506 @DocsEditable() |
| 15507 static const EventStreamProvider<MidiConnectionEvent> connectEvent = const Eve
ntStreamProvider<MidiConnectionEvent>('connect'); | 15507 static const EventStreamProvider<MidiConnectionEvent> connectEvent = const Eve
ntStreamProvider<MidiConnectionEvent>('connect'); |
| 15508 | 15508 |
| 15509 @DomName('MIDIAccess.disconnectEvent') | 15509 @DomName('MIDIAccess.disconnectEvent') |
| 15510 @DocsEditable | 15510 @DocsEditable() |
| 15511 static const EventStreamProvider<MidiConnectionEvent> disconnectEvent = const
EventStreamProvider<MidiConnectionEvent>('disconnect'); | 15511 static const EventStreamProvider<MidiConnectionEvent> disconnectEvent = const
EventStreamProvider<MidiConnectionEvent>('disconnect'); |
| 15512 | 15512 |
| 15513 @JSName('addEventListener') | 15513 @JSName('addEventListener') |
| 15514 @DomName('MIDIAccess.addEventListener') | 15514 @DomName('MIDIAccess.addEventListener') |
| 15515 @DocsEditable | 15515 @DocsEditable() |
| 15516 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 15516 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 15517 | 15517 |
| 15518 @DomName('MIDIAccess.dispatchEvent') | 15518 @DomName('MIDIAccess.dispatchEvent') |
| 15519 @DocsEditable | 15519 @DocsEditable() |
| 15520 bool dispatchEvent(Event event) native; | 15520 bool dispatchEvent(Event event) native; |
| 15521 | 15521 |
| 15522 @DomName('MIDIAccess.inputs') | 15522 @DomName('MIDIAccess.inputs') |
| 15523 @DocsEditable | 15523 @DocsEditable() |
| 15524 List<MidiInput> inputs() native; | 15524 List<MidiInput> inputs() native; |
| 15525 | 15525 |
| 15526 @DomName('MIDIAccess.outputs') | 15526 @DomName('MIDIAccess.outputs') |
| 15527 @DocsEditable | 15527 @DocsEditable() |
| 15528 List<MidiOutput> outputs() native; | 15528 List<MidiOutput> outputs() native; |
| 15529 | 15529 |
| 15530 @JSName('removeEventListener') | 15530 @JSName('removeEventListener') |
| 15531 @DomName('MIDIAccess.removeEventListener') | 15531 @DomName('MIDIAccess.removeEventListener') |
| 15532 @DocsEditable | 15532 @DocsEditable() |
| 15533 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 15533 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 15534 | 15534 |
| 15535 @DomName('MIDIAccess.onconnect') | 15535 @DomName('MIDIAccess.onconnect') |
| 15536 @DocsEditable | 15536 @DocsEditable() |
| 15537 Stream<MidiConnectionEvent> get onConnect => connectEvent.forTarget(this); | 15537 Stream<MidiConnectionEvent> get onConnect => connectEvent.forTarget(this); |
| 15538 | 15538 |
| 15539 @DomName('MIDIAccess.ondisconnect') | 15539 @DomName('MIDIAccess.ondisconnect') |
| 15540 @DocsEditable | 15540 @DocsEditable() |
| 15541 Stream<MidiConnectionEvent> get onDisconnect => disconnectEvent.forTarget(this
); | 15541 Stream<MidiConnectionEvent> get onDisconnect => disconnectEvent.forTarget(this
); |
| 15542 } | 15542 } |
| 15543 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15543 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15544 // for details. All rights reserved. Use of this source code is governed by a | 15544 // for details. All rights reserved. Use of this source code is governed by a |
| 15545 // BSD-style license that can be found in the LICENSE file. | 15545 // BSD-style license that can be found in the LICENSE file. |
| 15546 | 15546 |
| 15547 | 15547 |
| 15548 @DocsEditable | 15548 @DocsEditable() |
| 15549 @DomName('MIDIConnectionEvent') | 15549 @DomName('MIDIConnectionEvent') |
| 15550 // http://webaudio.github.io/web-midi-api/#midiconnectionevent-interface | 15550 // http://webaudio.github.io/web-midi-api/#midiconnectionevent-interface |
| 15551 @Experimental | 15551 @Experimental() |
| 15552 class MidiConnectionEvent extends Event native "MIDIConnectionEvent" { | 15552 class MidiConnectionEvent extends Event native "MIDIConnectionEvent" { |
| 15553 // To suppress missing implicit constructor warnings. | 15553 // To suppress missing implicit constructor warnings. |
| 15554 factory MidiConnectionEvent._() { throw new UnsupportedError("Not supported");
} | 15554 factory MidiConnectionEvent._() { throw new UnsupportedError("Not supported");
} |
| 15555 | 15555 |
| 15556 @DomName('MIDIConnectionEvent.port') | 15556 @DomName('MIDIConnectionEvent.port') |
| 15557 @DocsEditable | 15557 @DocsEditable() |
| 15558 final MidiPort port; | 15558 final MidiPort port; |
| 15559 } | 15559 } |
| 15560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15560 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15561 // for details. All rights reserved. Use of this source code is governed by a | 15561 // for details. All rights reserved. Use of this source code is governed by a |
| 15562 // BSD-style license that can be found in the LICENSE file. | 15562 // BSD-style license that can be found in the LICENSE file. |
| 15563 | 15563 |
| 15564 | 15564 |
| 15565 @DocsEditable | 15565 @DocsEditable() |
| 15566 @DomName('MIDIInput') | 15566 @DomName('MIDIInput') |
| 15567 // http://webaudio.github.io/web-midi-api/#idl-def-MIDIInput | 15567 // http://webaudio.github.io/web-midi-api/#idl-def-MIDIInput |
| 15568 @Experimental | 15568 @Experimental() |
| 15569 class MidiInput extends MidiPort implements EventTarget native "MIDIInput" { | 15569 class MidiInput extends MidiPort implements EventTarget native "MIDIInput" { |
| 15570 // To suppress missing implicit constructor warnings. | 15570 // To suppress missing implicit constructor warnings. |
| 15571 factory MidiInput._() { throw new UnsupportedError("Not supported"); } | 15571 factory MidiInput._() { throw new UnsupportedError("Not supported"); } |
| 15572 | 15572 |
| 15573 @DomName('MIDIInput.midimessageEvent') | 15573 @DomName('MIDIInput.midimessageEvent') |
| 15574 @DocsEditable | 15574 @DocsEditable() |
| 15575 static const EventStreamProvider<MidiMessageEvent> midiMessageEvent = const Ev
entStreamProvider<MidiMessageEvent>('midimessage'); | 15575 static const EventStreamProvider<MidiMessageEvent> midiMessageEvent = const Ev
entStreamProvider<MidiMessageEvent>('midimessage'); |
| 15576 | 15576 |
| 15577 @DomName('MIDIInput.onmidimessage') | 15577 @DomName('MIDIInput.onmidimessage') |
| 15578 @DocsEditable | 15578 @DocsEditable() |
| 15579 Stream<MidiMessageEvent> get onMidiMessage => midiMessageEvent.forTarget(this)
; | 15579 Stream<MidiMessageEvent> get onMidiMessage => midiMessageEvent.forTarget(this)
; |
| 15580 } | 15580 } |
| 15581 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15581 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15582 // for details. All rights reserved. Use of this source code is governed by a | 15582 // for details. All rights reserved. Use of this source code is governed by a |
| 15583 // BSD-style license that can be found in the LICENSE file. | 15583 // BSD-style license that can be found in the LICENSE file. |
| 15584 | 15584 |
| 15585 | 15585 |
| 15586 @DocsEditable | 15586 @DocsEditable() |
| 15587 @DomName('MIDIMessageEvent') | 15587 @DomName('MIDIMessageEvent') |
| 15588 // http://webaudio.github.io/web-midi-api/#midimessageevent-interface | 15588 // http://webaudio.github.io/web-midi-api/#midimessageevent-interface |
| 15589 @Experimental | 15589 @Experimental() |
| 15590 class MidiMessageEvent extends Event native "MIDIMessageEvent" { | 15590 class MidiMessageEvent extends Event native "MIDIMessageEvent" { |
| 15591 // To suppress missing implicit constructor warnings. | 15591 // To suppress missing implicit constructor warnings. |
| 15592 factory MidiMessageEvent._() { throw new UnsupportedError("Not supported"); } | 15592 factory MidiMessageEvent._() { throw new UnsupportedError("Not supported"); } |
| 15593 | 15593 |
| 15594 @DomName('MIDIMessageEvent.data') | 15594 @DomName('MIDIMessageEvent.data') |
| 15595 @DocsEditable | 15595 @DocsEditable() |
| 15596 final Uint8List data; | 15596 final Uint8List data; |
| 15597 | 15597 |
| 15598 @DomName('MIDIMessageEvent.receivedTime') | 15598 @DomName('MIDIMessageEvent.receivedTime') |
| 15599 @DocsEditable | 15599 @DocsEditable() |
| 15600 final num receivedTime; | 15600 final num receivedTime; |
| 15601 } | 15601 } |
| 15602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15602 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15603 // for details. All rights reserved. Use of this source code is governed by a | 15603 // for details. All rights reserved. Use of this source code is governed by a |
| 15604 // BSD-style license that can be found in the LICENSE file. | 15604 // BSD-style license that can be found in the LICENSE file. |
| 15605 | 15605 |
| 15606 | 15606 |
| 15607 @DocsEditable | 15607 @DocsEditable() |
| 15608 @DomName('MIDIOutput') | 15608 @DomName('MIDIOutput') |
| 15609 // http://webaudio.github.io/web-midi-api/#midioutput-interface | 15609 // http://webaudio.github.io/web-midi-api/#midioutput-interface |
| 15610 @Experimental | 15610 @Experimental() |
| 15611 class MidiOutput extends MidiPort native "MIDIOutput" { | 15611 class MidiOutput extends MidiPort native "MIDIOutput" { |
| 15612 // To suppress missing implicit constructor warnings. | 15612 // To suppress missing implicit constructor warnings. |
| 15613 factory MidiOutput._() { throw new UnsupportedError("Not supported"); } | 15613 factory MidiOutput._() { throw new UnsupportedError("Not supported"); } |
| 15614 | 15614 |
| 15615 @DomName('MIDIOutput.send') | 15615 @DomName('MIDIOutput.send') |
| 15616 @DocsEditable | 15616 @DocsEditable() |
| 15617 void send(Uint8List data, [num timestamp]) native; | 15617 void send(Uint8List data, [num timestamp]) native; |
| 15618 } | 15618 } |
| 15619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15620 // for details. All rights reserved. Use of this source code is governed by a | 15620 // for details. All rights reserved. Use of this source code is governed by a |
| 15621 // BSD-style license that can be found in the LICENSE file. | 15621 // BSD-style license that can be found in the LICENSE file. |
| 15622 | 15622 |
| 15623 | 15623 |
| 15624 @DocsEditable | 15624 @DocsEditable() |
| 15625 @DomName('MIDIPort') | 15625 @DomName('MIDIPort') |
| 15626 // http://webaudio.github.io/web-midi-api/#idl-def-MIDIPort | 15626 // http://webaudio.github.io/web-midi-api/#idl-def-MIDIPort |
| 15627 @Experimental | 15627 @Experimental() |
| 15628 class MidiPort extends EventTarget native "MIDIPort" { | 15628 class MidiPort extends EventTarget native "MIDIPort" { |
| 15629 // To suppress missing implicit constructor warnings. | 15629 // To suppress missing implicit constructor warnings. |
| 15630 factory MidiPort._() { throw new UnsupportedError("Not supported"); } | 15630 factory MidiPort._() { throw new UnsupportedError("Not supported"); } |
| 15631 | 15631 |
| 15632 @DomName('MIDIPort.disconnectEvent') | 15632 @DomName('MIDIPort.disconnectEvent') |
| 15633 @DocsEditable | 15633 @DocsEditable() |
| 15634 static const EventStreamProvider<MidiConnectionEvent> disconnectEvent = const
EventStreamProvider<MidiConnectionEvent>('disconnect'); | 15634 static const EventStreamProvider<MidiConnectionEvent> disconnectEvent = const
EventStreamProvider<MidiConnectionEvent>('disconnect'); |
| 15635 | 15635 |
| 15636 @DomName('MIDIPort.id') | 15636 @DomName('MIDIPort.id') |
| 15637 @DocsEditable | 15637 @DocsEditable() |
| 15638 final String id; | 15638 final String id; |
| 15639 | 15639 |
| 15640 @DomName('MIDIPort.manufacturer') | 15640 @DomName('MIDIPort.manufacturer') |
| 15641 @DocsEditable | 15641 @DocsEditable() |
| 15642 final String manufacturer; | 15642 final String manufacturer; |
| 15643 | 15643 |
| 15644 @DomName('MIDIPort.name') | 15644 @DomName('MIDIPort.name') |
| 15645 @DocsEditable | 15645 @DocsEditable() |
| 15646 final String name; | 15646 final String name; |
| 15647 | 15647 |
| 15648 @DomName('MIDIPort.type') | 15648 @DomName('MIDIPort.type') |
| 15649 @DocsEditable | 15649 @DocsEditable() |
| 15650 final String type; | 15650 final String type; |
| 15651 | 15651 |
| 15652 @DomName('MIDIPort.version') | 15652 @DomName('MIDIPort.version') |
| 15653 @DocsEditable | 15653 @DocsEditable() |
| 15654 final String version; | 15654 final String version; |
| 15655 | 15655 |
| 15656 @JSName('addEventListener') | 15656 @JSName('addEventListener') |
| 15657 @DomName('MIDIPort.addEventListener') | 15657 @DomName('MIDIPort.addEventListener') |
| 15658 @DocsEditable | 15658 @DocsEditable() |
| 15659 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 15659 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 15660 | 15660 |
| 15661 @DomName('MIDIPort.dispatchEvent') | 15661 @DomName('MIDIPort.dispatchEvent') |
| 15662 @DocsEditable | 15662 @DocsEditable() |
| 15663 bool dispatchEvent(Event event) native; | 15663 bool dispatchEvent(Event event) native; |
| 15664 | 15664 |
| 15665 @JSName('removeEventListener') | 15665 @JSName('removeEventListener') |
| 15666 @DomName('MIDIPort.removeEventListener') | 15666 @DomName('MIDIPort.removeEventListener') |
| 15667 @DocsEditable | 15667 @DocsEditable() |
| 15668 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 15668 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 15669 | 15669 |
| 15670 @DomName('MIDIPort.ondisconnect') | 15670 @DomName('MIDIPort.ondisconnect') |
| 15671 @DocsEditable | 15671 @DocsEditable() |
| 15672 Stream<MidiConnectionEvent> get onDisconnect => disconnectEvent.forTarget(this
); | 15672 Stream<MidiConnectionEvent> get onDisconnect => disconnectEvent.forTarget(this
); |
| 15673 } | 15673 } |
| 15674 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15674 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15675 // for details. All rights reserved. Use of this source code is governed by a | 15675 // for details. All rights reserved. Use of this source code is governed by a |
| 15676 // BSD-style license that can be found in the LICENSE file. | 15676 // BSD-style license that can be found in the LICENSE file. |
| 15677 | 15677 |
| 15678 | 15678 |
| 15679 @DocsEditable | 15679 @DocsEditable() |
| 15680 @DomName('MimeType') | 15680 @DomName('MimeType') |
| 15681 @Experimental // non-standard | 15681 @Experimental() // non-standard |
| 15682 class MimeType extends Interceptor native "MimeType" { | 15682 class MimeType extends Interceptor native "MimeType" { |
| 15683 | 15683 |
| 15684 @DomName('MimeType.description') | 15684 @DomName('MimeType.description') |
| 15685 @DocsEditable | 15685 @DocsEditable() |
| 15686 final String description; | 15686 final String description; |
| 15687 | 15687 |
| 15688 @DomName('MimeType.enabledPlugin') | 15688 @DomName('MimeType.enabledPlugin') |
| 15689 @DocsEditable | 15689 @DocsEditable() |
| 15690 final Plugin enabledPlugin; | 15690 final Plugin enabledPlugin; |
| 15691 | 15691 |
| 15692 @DomName('MimeType.suffixes') | 15692 @DomName('MimeType.suffixes') |
| 15693 @DocsEditable | 15693 @DocsEditable() |
| 15694 final String suffixes; | 15694 final String suffixes; |
| 15695 | 15695 |
| 15696 @DomName('MimeType.type') | 15696 @DomName('MimeType.type') |
| 15697 @DocsEditable | 15697 @DocsEditable() |
| 15698 final String type; | 15698 final String type; |
| 15699 } | 15699 } |
| 15700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15700 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15701 // for details. All rights reserved. Use of this source code is governed by a | 15701 // for details. All rights reserved. Use of this source code is governed by a |
| 15702 // BSD-style license that can be found in the LICENSE file. | 15702 // BSD-style license that can be found in the LICENSE file. |
| 15703 | 15703 |
| 15704 | 15704 |
| 15705 @DocsEditable | 15705 @DocsEditable() |
| 15706 @DomName('MimeTypeArray') | 15706 @DomName('MimeTypeArray') |
| 15707 @Experimental // non-standard | 15707 @Experimental() // non-standard |
| 15708 class MimeTypeArray extends Interceptor with ListMixin<MimeType>, ImmutableListM
ixin<MimeType> implements JavaScriptIndexingBehavior, List<MimeType> native "Mim
eTypeArray" { | 15708 class MimeTypeArray extends Interceptor with ListMixin<MimeType>, ImmutableListM
ixin<MimeType> implements JavaScriptIndexingBehavior, List<MimeType> native "Mim
eTypeArray" { |
| 15709 | 15709 |
| 15710 @DomName('MimeTypeArray.length') | 15710 @DomName('MimeTypeArray.length') |
| 15711 @DocsEditable | 15711 @DocsEditable() |
| 15712 int get length => JS("int", "#.length", this); | 15712 int get length => JS("int", "#.length", this); |
| 15713 | 15713 |
| 15714 MimeType operator[](int index) { | 15714 MimeType operator[](int index) { |
| 15715 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 15715 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 15716 index, index, length)) | 15716 index, index, length)) |
| 15717 throw new RangeError.range(index, 0, length); | 15717 throw new RangeError.range(index, 0, length); |
| 15718 return JS("MimeType", "#[#]", this, index); | 15718 return JS("MimeType", "#[#]", this, index); |
| 15719 } | 15719 } |
| 15720 void operator[]=(int index, MimeType value) { | 15720 void operator[]=(int index, MimeType value) { |
| 15721 throw new UnsupportedError("Cannot assign element of immutable List."); | 15721 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 15749 return JS('MimeType', '#[0]', this); | 15749 return JS('MimeType', '#[0]', this); |
| 15750 } | 15750 } |
| 15751 if (len == 0) throw new StateError("No elements"); | 15751 if (len == 0) throw new StateError("No elements"); |
| 15752 throw new StateError("More than one element"); | 15752 throw new StateError("More than one element"); |
| 15753 } | 15753 } |
| 15754 | 15754 |
| 15755 MimeType elementAt(int index) => this[index]; | 15755 MimeType elementAt(int index) => this[index]; |
| 15756 // -- end List<MimeType> mixins. | 15756 // -- end List<MimeType> mixins. |
| 15757 | 15757 |
| 15758 @DomName('MimeTypeArray.__getter__') | 15758 @DomName('MimeTypeArray.__getter__') |
| 15759 @DocsEditable | 15759 @DocsEditable() |
| 15760 MimeType __getter__(String name) native; | 15760 MimeType __getter__(String name) native; |
| 15761 | 15761 |
| 15762 @DomName('MimeTypeArray.item') | 15762 @DomName('MimeTypeArray.item') |
| 15763 @DocsEditable | 15763 @DocsEditable() |
| 15764 MimeType item(int index) native; | 15764 MimeType item(int index) native; |
| 15765 | 15765 |
| 15766 @DomName('MimeTypeArray.namedItem') | 15766 @DomName('MimeTypeArray.namedItem') |
| 15767 @DocsEditable | 15767 @DocsEditable() |
| 15768 MimeType namedItem(String name) native; | 15768 MimeType namedItem(String name) native; |
| 15769 } | 15769 } |
| 15770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15770 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15771 // for details. All rights reserved. Use of this source code is governed by a | 15771 // for details. All rights reserved. Use of this source code is governed by a |
| 15772 // BSD-style license that can be found in the LICENSE file. | 15772 // BSD-style license that can be found in the LICENSE file. |
| 15773 | 15773 |
| 15774 | 15774 |
| 15775 @DocsEditable | 15775 @DocsEditable() |
| 15776 @DomName('HTMLModElement') | 15776 @DomName('HTMLModElement') |
| 15777 @Unstable | 15777 @Unstable() |
| 15778 class ModElement extends _HTMLElement native "HTMLModElement" { | 15778 class ModElement extends _HTMLElement native "HTMLModElement" { |
| 15779 // To suppress missing implicit constructor warnings. | 15779 // To suppress missing implicit constructor warnings. |
| 15780 factory ModElement._() { throw new UnsupportedError("Not supported"); } | 15780 factory ModElement._() { throw new UnsupportedError("Not supported"); } |
| 15781 | 15781 |
| 15782 @DomName('HTMLModElement.cite') | 15782 @DomName('HTMLModElement.cite') |
| 15783 @DocsEditable | 15783 @DocsEditable() |
| 15784 String cite; | 15784 String cite; |
| 15785 | 15785 |
| 15786 @DomName('HTMLModElement.dateTime') | 15786 @DomName('HTMLModElement.dateTime') |
| 15787 @DocsEditable | 15787 @DocsEditable() |
| 15788 String dateTime; | 15788 String dateTime; |
| 15789 } | 15789 } |
| 15790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 15790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 15791 // for details. All rights reserved. Use of this source code is governed by a | 15791 // for details. All rights reserved. Use of this source code is governed by a |
| 15792 // BSD-style license that can be found in the LICENSE file. | 15792 // BSD-style license that can be found in the LICENSE file. |
| 15793 | 15793 |
| 15794 | 15794 |
| 15795 @DomName('MouseEvent') | 15795 @DomName('MouseEvent') |
| 15796 class MouseEvent extends UIEvent native "MouseEvent,DragEvent" { | 15796 class MouseEvent extends UIEvent native "MouseEvent,DragEvent" { |
| 15797 factory MouseEvent(String type, | 15797 factory MouseEvent(String type, |
| 15798 {Window view, int detail: 0, int screenX: 0, int screenY: 0, | 15798 {Window view, int detail: 0, int screenX: 0, int screenY: 0, |
| 15799 int clientX: 0, int clientY: 0, int button: 0, bool canBubble: true, | 15799 int clientX: 0, int clientY: 0, int button: 0, bool canBubble: true, |
| 15800 bool cancelable: true, bool ctrlKey: false, bool altKey: false, | 15800 bool cancelable: true, bool ctrlKey: false, bool altKey: false, |
| 15801 bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) { | 15801 bool shiftKey: false, bool metaKey: false, EventTarget relatedTarget}) { |
| 15802 | 15802 |
| 15803 if (view == null) { | 15803 if (view == null) { |
| 15804 view = window; | 15804 view = window; |
| 15805 } | 15805 } |
| 15806 var event = document.$dom_createEvent('MouseEvent'); | 15806 var event = document.$dom_createEvent('MouseEvent'); |
| 15807 event.$dom_initMouseEvent(type, canBubble, cancelable, view, detail, | 15807 event.$dom_initMouseEvent(type, canBubble, cancelable, view, detail, |
| 15808 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, | 15808 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, |
| 15809 button, relatedTarget); | 15809 button, relatedTarget); |
| 15810 return event; | 15810 return event; |
| 15811 } | 15811 } |
| 15812 // To suppress missing implicit constructor warnings. | 15812 // To suppress missing implicit constructor warnings. |
| 15813 factory MouseEvent._() { throw new UnsupportedError("Not supported"); } | 15813 factory MouseEvent._() { throw new UnsupportedError("Not supported"); } |
| 15814 | 15814 |
| 15815 @DomName('MouseEvent.altKey') | 15815 @DomName('MouseEvent.altKey') |
| 15816 @DocsEditable | 15816 @DocsEditable() |
| 15817 final bool altKey; | 15817 final bool altKey; |
| 15818 | 15818 |
| 15819 @DomName('MouseEvent.button') | 15819 @DomName('MouseEvent.button') |
| 15820 @DocsEditable | 15820 @DocsEditable() |
| 15821 final int button; | 15821 final int button; |
| 15822 | 15822 |
| 15823 @JSName('clientX') | 15823 @JSName('clientX') |
| 15824 @DomName('MouseEvent.clientX') | 15824 @DomName('MouseEvent.clientX') |
| 15825 @DocsEditable | 15825 @DocsEditable() |
| 15826 final int $dom_clientX; | 15826 final int $dom_clientX; |
| 15827 | 15827 |
| 15828 @JSName('clientY') | 15828 @JSName('clientY') |
| 15829 @DomName('MouseEvent.clientY') | 15829 @DomName('MouseEvent.clientY') |
| 15830 @DocsEditable | 15830 @DocsEditable() |
| 15831 final int $dom_clientY; | 15831 final int $dom_clientY; |
| 15832 | 15832 |
| 15833 @DomName('MouseEvent.ctrlKey') | 15833 @DomName('MouseEvent.ctrlKey') |
| 15834 @DocsEditable | 15834 @DocsEditable() |
| 15835 final bool ctrlKey; | 15835 final bool ctrlKey; |
| 15836 | 15836 |
| 15837 @DomName('MouseEvent.dataTransfer') | 15837 @DomName('MouseEvent.dataTransfer') |
| 15838 @DocsEditable | 15838 @DocsEditable() |
| 15839 @Unstable | 15839 @Unstable() |
| 15840 final DataTransfer dataTransfer; | 15840 final DataTransfer dataTransfer; |
| 15841 | 15841 |
| 15842 @DomName('MouseEvent.fromElement') | 15842 @DomName('MouseEvent.fromElement') |
| 15843 @DocsEditable | 15843 @DocsEditable() |
| 15844 @Experimental // nonstandard | 15844 @Experimental() // nonstandard |
| 15845 final Node fromElement; | 15845 final Node fromElement; |
| 15846 | 15846 |
| 15847 @DomName('MouseEvent.metaKey') | 15847 @DomName('MouseEvent.metaKey') |
| 15848 @DocsEditable | 15848 @DocsEditable() |
| 15849 final bool metaKey; | 15849 final bool metaKey; |
| 15850 | 15850 |
| 15851 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_re
latedTarget); | 15851 EventTarget get relatedTarget => _convertNativeToDart_EventTarget(this._get_re
latedTarget); |
| 15852 @JSName('relatedTarget') | 15852 @JSName('relatedTarget') |
| 15853 @DomName('MouseEvent.relatedTarget') | 15853 @DomName('MouseEvent.relatedTarget') |
| 15854 @DocsEditable | 15854 @DocsEditable() |
| 15855 @Creates('Node') | 15855 @Creates('Node') |
| 15856 @Returns('EventTarget|=Object') | 15856 @Returns('EventTarget|=Object') |
| 15857 final dynamic _get_relatedTarget; | 15857 final dynamic _get_relatedTarget; |
| 15858 | 15858 |
| 15859 @JSName('screenX') | 15859 @JSName('screenX') |
| 15860 @DomName('MouseEvent.screenX') | 15860 @DomName('MouseEvent.screenX') |
| 15861 @DocsEditable | 15861 @DocsEditable() |
| 15862 final int $dom_screenX; | 15862 final int $dom_screenX; |
| 15863 | 15863 |
| 15864 @JSName('screenY') | 15864 @JSName('screenY') |
| 15865 @DomName('MouseEvent.screenY') | 15865 @DomName('MouseEvent.screenY') |
| 15866 @DocsEditable | 15866 @DocsEditable() |
| 15867 final int $dom_screenY; | 15867 final int $dom_screenY; |
| 15868 | 15868 |
| 15869 @DomName('MouseEvent.shiftKey') | 15869 @DomName('MouseEvent.shiftKey') |
| 15870 @DocsEditable | 15870 @DocsEditable() |
| 15871 final bool shiftKey; | 15871 final bool shiftKey; |
| 15872 | 15872 |
| 15873 @DomName('MouseEvent.toElement') | 15873 @DomName('MouseEvent.toElement') |
| 15874 @DocsEditable | 15874 @DocsEditable() |
| 15875 @Experimental // nonstandard | 15875 @Experimental() // nonstandard |
| 15876 final Node toElement; | 15876 final Node toElement; |
| 15877 | 15877 |
| 15878 @JSName('webkitMovementX') | 15878 @JSName('webkitMovementX') |
| 15879 @DomName('MouseEvent.webkitMovementX') | 15879 @DomName('MouseEvent.webkitMovementX') |
| 15880 @DocsEditable | 15880 @DocsEditable() |
| 15881 @SupportedBrowser(SupportedBrowser.CHROME) | 15881 @SupportedBrowser(SupportedBrowser.CHROME) |
| 15882 @SupportedBrowser(SupportedBrowser.SAFARI) | 15882 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 15883 @Experimental | 15883 @Experimental() |
| 15884 final int $dom_webkitMovementX; | 15884 final int $dom_webkitMovementX; |
| 15885 | 15885 |
| 15886 @JSName('webkitMovementY') | 15886 @JSName('webkitMovementY') |
| 15887 @DomName('MouseEvent.webkitMovementY') | 15887 @DomName('MouseEvent.webkitMovementY') |
| 15888 @DocsEditable | 15888 @DocsEditable() |
| 15889 @SupportedBrowser(SupportedBrowser.CHROME) | 15889 @SupportedBrowser(SupportedBrowser.CHROME) |
| 15890 @SupportedBrowser(SupportedBrowser.SAFARI) | 15890 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 15891 @Experimental | 15891 @Experimental() |
| 15892 final int $dom_webkitMovementY; | 15892 final int $dom_webkitMovementY; |
| 15893 | 15893 |
| 15894 @DomName('MouseEvent.initMouseEvent') | 15894 @DomName('MouseEvent.initMouseEvent') |
| 15895 @DocsEditable | 15895 @DocsEditable() |
| 15896 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, Window
view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlK
ey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTar
get) { | 15896 void $dom_initMouseEvent(String type, bool canBubble, bool cancelable, Window
view, int detail, int screenX, int screenY, int clientX, int clientY, bool ctrlK
ey, bool altKey, bool shiftKey, bool metaKey, int button, EventTarget relatedTar
get) { |
| 15897 var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget); | 15897 var relatedTarget_1 = _convertDartToNative_EventTarget(relatedTarget); |
| 15898 _$dom_initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, s
creenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTar
get_1); | 15898 _$dom_initMouseEvent_1(type, canBubble, cancelable, view, detail, screenX, s
creenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button, relatedTar
get_1); |
| 15899 return; | 15899 return; |
| 15900 } | 15900 } |
| 15901 @JSName('initMouseEvent') | 15901 @JSName('initMouseEvent') |
| 15902 @DomName('MouseEvent.initMouseEvent') | 15902 @DomName('MouseEvent.initMouseEvent') |
| 15903 @DocsEditable | 15903 @DocsEditable() |
| 15904 void _$dom_initMouseEvent_1(type, canBubble, cancelable, Window view, detail,
screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button,
relatedTarget) native; | 15904 void _$dom_initMouseEvent_1(type, canBubble, cancelable, Window view, detail,
screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey, button,
relatedTarget) native; |
| 15905 | 15905 |
| 15906 | 15906 |
| 15907 @deprecated | 15907 @deprecated |
| 15908 int get clientX => client.x; | 15908 int get clientX => client.x; |
| 15909 @deprecated | 15909 @deprecated |
| 15910 int get clientY => client.y; | 15910 int get clientY => client.y; |
| 15911 @deprecated | 15911 @deprecated |
| 15912 int get offsetX => offset.x; | 15912 int get offsetX => offset.x; |
| 15913 @deprecated | 15913 @deprecated |
| 15914 int get offsetY => offset.y; | 15914 int get offsetY => offset.y; |
| 15915 @deprecated | 15915 @deprecated |
| 15916 int get movementX => movement.x; | 15916 int get movementX => movement.x; |
| 15917 @deprecated | 15917 @deprecated |
| 15918 int get movementY => movement.y; | 15918 int get movementY => movement.y; |
| 15919 @deprecated | 15919 @deprecated |
| 15920 int get screenX => screen.x; | 15920 int get screenX => screen.x; |
| 15921 @deprecated | 15921 @deprecated |
| 15922 int get screenY => screen.y; | 15922 int get screenY => screen.y; |
| 15923 | 15923 |
| 15924 @DomName('MouseEvent.clientX') | 15924 @DomName('MouseEvent.clientX') |
| 15925 @DomName('MouseEvent.clientY') | 15925 @DomName('MouseEvent.clientY') |
| 15926 Point get client => new Point($dom_clientX, $dom_clientY); | 15926 Point get client => new Point($dom_clientX, $dom_clientY); |
| 15927 | 15927 |
| 15928 @DomName('MouseEvent.movementX') | 15928 @DomName('MouseEvent.movementX') |
| 15929 @DomName('MouseEvent.movementY') | 15929 @DomName('MouseEvent.movementY') |
| 15930 @SupportedBrowser(SupportedBrowser.CHROME) | 15930 @SupportedBrowser(SupportedBrowser.CHROME) |
| 15931 @SupportedBrowser(SupportedBrowser.SAFARI) | 15931 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 15932 @Experimental | 15932 @Experimental() |
| 15933 Point get movement => new Point($dom_webkitMovementX, $dom_webkitMovementY); | 15933 Point get movement => new Point($dom_webkitMovementX, $dom_webkitMovementY); |
| 15934 | 15934 |
| 15935 /** | 15935 /** |
| 15936 * The coordinates of the mouse pointer in target node coordinates. | 15936 * The coordinates of the mouse pointer in target node coordinates. |
| 15937 * | 15937 * |
| 15938 * This value may vary between platforms if the target node moves | 15938 * This value may vary between platforms if the target node moves |
| 15939 * after the event has fired or if the element has CSS transforms affecting | 15939 * after the event has fired or if the element has CSS transforms affecting |
| 15940 * it. | 15940 * it. |
| 15941 */ | 15941 */ |
| 15942 Point get offset { | 15942 Point get offset { |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 15983 | 15983 |
| 15984 var event = document.$dom_createEvent('MutationEvent'); | 15984 var event = document.$dom_createEvent('MutationEvent'); |
| 15985 event.$dom_initMutationEvent(type, canBubble, cancelable, relatedNode, | 15985 event.$dom_initMutationEvent(type, canBubble, cancelable, relatedNode, |
| 15986 prevValue, newValue, attrName, attrChange); | 15986 prevValue, newValue, attrName, attrChange); |
| 15987 return event; | 15987 return event; |
| 15988 } | 15988 } |
| 15989 // To suppress missing implicit constructor warnings. | 15989 // To suppress missing implicit constructor warnings. |
| 15990 factory MutationEvent._() { throw new UnsupportedError("Not supported"); } | 15990 factory MutationEvent._() { throw new UnsupportedError("Not supported"); } |
| 15991 | 15991 |
| 15992 @DomName('MutationEvent.ADDITION') | 15992 @DomName('MutationEvent.ADDITION') |
| 15993 @DocsEditable | 15993 @DocsEditable() |
| 15994 static const int ADDITION = 2; | 15994 static const int ADDITION = 2; |
| 15995 | 15995 |
| 15996 @DomName('MutationEvent.MODIFICATION') | 15996 @DomName('MutationEvent.MODIFICATION') |
| 15997 @DocsEditable | 15997 @DocsEditable() |
| 15998 static const int MODIFICATION = 1; | 15998 static const int MODIFICATION = 1; |
| 15999 | 15999 |
| 16000 @DomName('MutationEvent.REMOVAL') | 16000 @DomName('MutationEvent.REMOVAL') |
| 16001 @DocsEditable | 16001 @DocsEditable() |
| 16002 static const int REMOVAL = 3; | 16002 static const int REMOVAL = 3; |
| 16003 | 16003 |
| 16004 @DomName('MutationEvent.attrChange') | 16004 @DomName('MutationEvent.attrChange') |
| 16005 @DocsEditable | 16005 @DocsEditable() |
| 16006 final int attrChange; | 16006 final int attrChange; |
| 16007 | 16007 |
| 16008 @DomName('MutationEvent.attrName') | 16008 @DomName('MutationEvent.attrName') |
| 16009 @DocsEditable | 16009 @DocsEditable() |
| 16010 final String attrName; | 16010 final String attrName; |
| 16011 | 16011 |
| 16012 @DomName('MutationEvent.newValue') | 16012 @DomName('MutationEvent.newValue') |
| 16013 @DocsEditable | 16013 @DocsEditable() |
| 16014 final String newValue; | 16014 final String newValue; |
| 16015 | 16015 |
| 16016 @DomName('MutationEvent.prevValue') | 16016 @DomName('MutationEvent.prevValue') |
| 16017 @DocsEditable | 16017 @DocsEditable() |
| 16018 final String prevValue; | 16018 final String prevValue; |
| 16019 | 16019 |
| 16020 @DomName('MutationEvent.relatedNode') | 16020 @DomName('MutationEvent.relatedNode') |
| 16021 @DocsEditable | 16021 @DocsEditable() |
| 16022 final Node relatedNode; | 16022 final Node relatedNode; |
| 16023 | 16023 |
| 16024 @JSName('initMutationEvent') | 16024 @JSName('initMutationEvent') |
| 16025 @DomName('MutationEvent.initMutationEvent') | 16025 @DomName('MutationEvent.initMutationEvent') |
| 16026 @DocsEditable | 16026 @DocsEditable() |
| 16027 void $dom_initMutationEvent(String type, bool canBubble, bool cancelable, Node
relatedNode, String prevValue, String newValue, String attrName, int attrChange
) native; | 16027 void $dom_initMutationEvent(String type, bool canBubble, bool cancelable, Node
relatedNode, String prevValue, String newValue, String attrName, int attrChange
) native; |
| 16028 | 16028 |
| 16029 } | 16029 } |
| 16030 | 16030 |
| 16031 | 16031 |
| 16032 | 16032 |
| 16033 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16033 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16034 // for details. All rights reserved. Use of this source code is governed by a | 16034 // for details. All rights reserved. Use of this source code is governed by a |
| 16035 // BSD-style license that can be found in the LICENSE file. | 16035 // BSD-style license that can be found in the LICENSE file. |
| 16036 | 16036 |
| 16037 | 16037 |
| 16038 @DomName('MutationObserver') | 16038 @DomName('MutationObserver') |
| 16039 @SupportedBrowser(SupportedBrowser.CHROME) | 16039 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16040 @SupportedBrowser(SupportedBrowser.FIREFOX) | 16040 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 16041 @SupportedBrowser(SupportedBrowser.SAFARI) | 16041 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16042 @Experimental | 16042 @Experimental() |
| 16043 class MutationObserver extends Interceptor native "MutationObserver,WebKitMutati
onObserver" { | 16043 class MutationObserver extends Interceptor native "MutationObserver,WebKitMutati
onObserver" { |
| 16044 | 16044 |
| 16045 @DomName('MutationObserver.disconnect') | 16045 @DomName('MutationObserver.disconnect') |
| 16046 @DocsEditable | 16046 @DocsEditable() |
| 16047 void disconnect() native; | 16047 void disconnect() native; |
| 16048 | 16048 |
| 16049 @DomName('MutationObserver.observe') | 16049 @DomName('MutationObserver.observe') |
| 16050 @DocsEditable | 16050 @DocsEditable() |
| 16051 void _observe(Node target, Map options) { | 16051 void _observe(Node target, Map options) { |
| 16052 var options_1 = convertDartToNative_Dictionary(options); | 16052 var options_1 = convertDartToNative_Dictionary(options); |
| 16053 __observe_1(target, options_1); | 16053 __observe_1(target, options_1); |
| 16054 return; | 16054 return; |
| 16055 } | 16055 } |
| 16056 @JSName('observe') | 16056 @JSName('observe') |
| 16057 @DomName('MutationObserver.observe') | 16057 @DomName('MutationObserver.observe') |
| 16058 @DocsEditable | 16058 @DocsEditable() |
| 16059 void __observe_1(Node target, options) native; | 16059 void __observe_1(Node target, options) native; |
| 16060 | 16060 |
| 16061 @DomName('MutationObserver.takeRecords') | 16061 @DomName('MutationObserver.takeRecords') |
| 16062 @DocsEditable | 16062 @DocsEditable() |
| 16063 List<MutationRecord> takeRecords() native; | 16063 List<MutationRecord> takeRecords() native; |
| 16064 | 16064 |
| 16065 /** | 16065 /** |
| 16066 * Checks to see if the mutation observer API is supported on the current | 16066 * Checks to see if the mutation observer API is supported on the current |
| 16067 * platform. | 16067 * platform. |
| 16068 */ | 16068 */ |
| 16069 static bool get supported { | 16069 static bool get supported { |
| 16070 return JS('bool', | 16070 return JS('bool', |
| 16071 '!!(window.MutationObserver || window.WebKitMutationObserver)'); | 16071 '!!(window.MutationObserver || window.WebKitMutationObserver)'); |
| 16072 } | 16072 } |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16127 'new(window.MutationObserver||window.WebKitMutationObserver||' | 16127 'new(window.MutationObserver||window.WebKitMutationObserver||' |
| 16128 'window.MozMutationObserver)(#)', | 16128 'window.MozMutationObserver)(#)', |
| 16129 convertDartClosureToJS(callback, 2)); | 16129 convertDartClosureToJS(callback, 2)); |
| 16130 } | 16130 } |
| 16131 } | 16131 } |
| 16132 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16132 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16133 // for details. All rights reserved. Use of this source code is governed by a | 16133 // for details. All rights reserved. Use of this source code is governed by a |
| 16134 // BSD-style license that can be found in the LICENSE file. | 16134 // BSD-style license that can be found in the LICENSE file. |
| 16135 | 16135 |
| 16136 | 16136 |
| 16137 @DocsEditable | 16137 @DocsEditable() |
| 16138 @DomName('MutationRecord') | 16138 @DomName('MutationRecord') |
| 16139 class MutationRecord extends Interceptor native "MutationRecord" { | 16139 class MutationRecord extends Interceptor native "MutationRecord" { |
| 16140 | 16140 |
| 16141 @DomName('MutationRecord.addedNodes') | 16141 @DomName('MutationRecord.addedNodes') |
| 16142 @DocsEditable | 16142 @DocsEditable() |
| 16143 @Returns('NodeList') | 16143 @Returns('NodeList') |
| 16144 @Creates('NodeList') | 16144 @Creates('NodeList') |
| 16145 final List<Node> addedNodes; | 16145 final List<Node> addedNodes; |
| 16146 | 16146 |
| 16147 @DomName('MutationRecord.attributeName') | 16147 @DomName('MutationRecord.attributeName') |
| 16148 @DocsEditable | 16148 @DocsEditable() |
| 16149 final String attributeName; | 16149 final String attributeName; |
| 16150 | 16150 |
| 16151 @DomName('MutationRecord.attributeNamespace') | 16151 @DomName('MutationRecord.attributeNamespace') |
| 16152 @DocsEditable | 16152 @DocsEditable() |
| 16153 final String attributeNamespace; | 16153 final String attributeNamespace; |
| 16154 | 16154 |
| 16155 @DomName('MutationRecord.nextSibling') | 16155 @DomName('MutationRecord.nextSibling') |
| 16156 @DocsEditable | 16156 @DocsEditable() |
| 16157 final Node nextSibling; | 16157 final Node nextSibling; |
| 16158 | 16158 |
| 16159 @DomName('MutationRecord.oldValue') | 16159 @DomName('MutationRecord.oldValue') |
| 16160 @DocsEditable | 16160 @DocsEditable() |
| 16161 final String oldValue; | 16161 final String oldValue; |
| 16162 | 16162 |
| 16163 @DomName('MutationRecord.previousSibling') | 16163 @DomName('MutationRecord.previousSibling') |
| 16164 @DocsEditable | 16164 @DocsEditable() |
| 16165 final Node previousSibling; | 16165 final Node previousSibling; |
| 16166 | 16166 |
| 16167 @DomName('MutationRecord.removedNodes') | 16167 @DomName('MutationRecord.removedNodes') |
| 16168 @DocsEditable | 16168 @DocsEditable() |
| 16169 @Returns('NodeList') | 16169 @Returns('NodeList') |
| 16170 @Creates('NodeList') | 16170 @Creates('NodeList') |
| 16171 final List<Node> removedNodes; | 16171 final List<Node> removedNodes; |
| 16172 | 16172 |
| 16173 @DomName('MutationRecord.target') | 16173 @DomName('MutationRecord.target') |
| 16174 @DocsEditable | 16174 @DocsEditable() |
| 16175 final Node target; | 16175 final Node target; |
| 16176 | 16176 |
| 16177 @DomName('MutationRecord.type') | 16177 @DomName('MutationRecord.type') |
| 16178 @DocsEditable | 16178 @DocsEditable() |
| 16179 final String type; | 16179 final String type; |
| 16180 } | 16180 } |
| 16181 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16181 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16182 // for details. All rights reserved. Use of this source code is governed by a | 16182 // for details. All rights reserved. Use of this source code is governed by a |
| 16183 // BSD-style license that can be found in the LICENSE file. | 16183 // BSD-style license that can be found in the LICENSE file. |
| 16184 | 16184 |
| 16185 | 16185 |
| 16186 @DocsEditable | 16186 @DocsEditable() |
| 16187 @DomName('WebKitNamedFlow') | 16187 @DomName('WebKitNamedFlow') |
| 16188 @SupportedBrowser(SupportedBrowser.CHROME) | 16188 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16189 @SupportedBrowser(SupportedBrowser.SAFARI) | 16189 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16190 @Experimental | 16190 @Experimental() |
| 16191 // http://www.w3.org/TR/css3-regions/#dom-named-flow-collection | 16191 // http://www.w3.org/TR/css3-regions/#dom-named-flow-collection |
| 16192 class NamedFlow extends EventTarget native "WebKitNamedFlow" { | 16192 class NamedFlow extends EventTarget native "WebKitNamedFlow" { |
| 16193 // To suppress missing implicit constructor warnings. | 16193 // To suppress missing implicit constructor warnings. |
| 16194 factory NamedFlow._() { throw new UnsupportedError("Not supported"); } | 16194 factory NamedFlow._() { throw new UnsupportedError("Not supported"); } |
| 16195 | 16195 |
| 16196 @DomName('WebKitNamedFlow.firstEmptyRegionIndex') | 16196 @DomName('WebKitNamedFlow.firstEmptyRegionIndex') |
| 16197 @DocsEditable | 16197 @DocsEditable() |
| 16198 final int firstEmptyRegionIndex; | 16198 final int firstEmptyRegionIndex; |
| 16199 | 16199 |
| 16200 @DomName('WebKitNamedFlow.name') | 16200 @DomName('WebKitNamedFlow.name') |
| 16201 @DocsEditable | 16201 @DocsEditable() |
| 16202 final String name; | 16202 final String name; |
| 16203 | 16203 |
| 16204 @DomName('WebKitNamedFlow.overset') | 16204 @DomName('WebKitNamedFlow.overset') |
| 16205 @DocsEditable | 16205 @DocsEditable() |
| 16206 final bool overset; | 16206 final bool overset; |
| 16207 | 16207 |
| 16208 @JSName('addEventListener') | 16208 @JSName('addEventListener') |
| 16209 @DomName('WebKitNamedFlow.addEventListener') | 16209 @DomName('WebKitNamedFlow.addEventListener') |
| 16210 @DocsEditable | 16210 @DocsEditable() |
| 16211 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 16211 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 16212 | 16212 |
| 16213 @DomName('WebKitNamedFlow.dispatchEvent') | 16213 @DomName('WebKitNamedFlow.dispatchEvent') |
| 16214 @DocsEditable | 16214 @DocsEditable() |
| 16215 bool dispatchEvent(Event event) native; | 16215 bool dispatchEvent(Event event) native; |
| 16216 | 16216 |
| 16217 @DomName('WebKitNamedFlow.getContent') | 16217 @DomName('WebKitNamedFlow.getContent') |
| 16218 @DocsEditable | 16218 @DocsEditable() |
| 16219 @Returns('NodeList') | 16219 @Returns('NodeList') |
| 16220 @Creates('NodeList') | 16220 @Creates('NodeList') |
| 16221 List<Node> getContent() native; | 16221 List<Node> getContent() native; |
| 16222 | 16222 |
| 16223 @DomName('WebKitNamedFlow.getRegions') | 16223 @DomName('WebKitNamedFlow.getRegions') |
| 16224 @DocsEditable | 16224 @DocsEditable() |
| 16225 @Returns('NodeList') | 16225 @Returns('NodeList') |
| 16226 @Creates('NodeList') | 16226 @Creates('NodeList') |
| 16227 List<Node> getRegions() native; | 16227 List<Node> getRegions() native; |
| 16228 | 16228 |
| 16229 @DomName('WebKitNamedFlow.getRegionsByContent') | 16229 @DomName('WebKitNamedFlow.getRegionsByContent') |
| 16230 @DocsEditable | 16230 @DocsEditable() |
| 16231 @Returns('NodeList') | 16231 @Returns('NodeList') |
| 16232 @Creates('NodeList') | 16232 @Creates('NodeList') |
| 16233 List<Node> getRegionsByContent(Node contentNode) native; | 16233 List<Node> getRegionsByContent(Node contentNode) native; |
| 16234 | 16234 |
| 16235 @JSName('removeEventListener') | 16235 @JSName('removeEventListener') |
| 16236 @DomName('WebKitNamedFlow.removeEventListener') | 16236 @DomName('WebKitNamedFlow.removeEventListener') |
| 16237 @DocsEditable | 16237 @DocsEditable() |
| 16238 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 16238 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 16239 } | 16239 } |
| 16240 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16240 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16241 // for details. All rights reserved. Use of this source code is governed by a | 16241 // for details. All rights reserved. Use of this source code is governed by a |
| 16242 // BSD-style license that can be found in the LICENSE file. | 16242 // BSD-style license that can be found in the LICENSE file. |
| 16243 | 16243 |
| 16244 | 16244 |
| 16245 @DocsEditable | 16245 @DocsEditable() |
| 16246 @DomName('WebKitNamedFlowCollection') | 16246 @DomName('WebKitNamedFlowCollection') |
| 16247 @SupportedBrowser(SupportedBrowser.CHROME) | 16247 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16248 @SupportedBrowser(SupportedBrowser.SAFARI) | 16248 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16249 @Experimental | 16249 @Experimental() |
| 16250 // http://dev.w3.org/csswg/css-regions/#dom-named-flow-collection | 16250 // http://dev.w3.org/csswg/css-regions/#dom-named-flow-collection |
| 16251 class NamedFlowCollection extends Interceptor native "WebKitNamedFlowCollection"
{ | 16251 class NamedFlowCollection extends Interceptor native "WebKitNamedFlowCollection"
{ |
| 16252 | 16252 |
| 16253 @DomName('WebKitNamedFlowCollection.length') | 16253 @DomName('WebKitNamedFlowCollection.length') |
| 16254 @DocsEditable | 16254 @DocsEditable() |
| 16255 final int length; | 16255 final int length; |
| 16256 | 16256 |
| 16257 @DomName('WebKitNamedFlowCollection.__getter__') | 16257 @DomName('WebKitNamedFlowCollection.__getter__') |
| 16258 @DocsEditable | 16258 @DocsEditable() |
| 16259 NamedFlow __getter__(String name) native; | 16259 NamedFlow __getter__(String name) native; |
| 16260 | 16260 |
| 16261 @DomName('WebKitNamedFlowCollection.item') | 16261 @DomName('WebKitNamedFlowCollection.item') |
| 16262 @DocsEditable | 16262 @DocsEditable() |
| 16263 NamedFlow item(int index) native; | 16263 NamedFlow item(int index) native; |
| 16264 | 16264 |
| 16265 @DomName('WebKitNamedFlowCollection.namedItem') | 16265 @DomName('WebKitNamedFlowCollection.namedItem') |
| 16266 @DocsEditable | 16266 @DocsEditable() |
| 16267 NamedFlow namedItem(String name) native; | 16267 NamedFlow namedItem(String name) native; |
| 16268 } | 16268 } |
| 16269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16269 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16270 // for details. All rights reserved. Use of this source code is governed by a | 16270 // for details. All rights reserved. Use of this source code is governed by a |
| 16271 // BSD-style license that can be found in the LICENSE file. | 16271 // BSD-style license that can be found in the LICENSE file. |
| 16272 | 16272 |
| 16273 | 16273 |
| 16274 @DomName('Navigator') | 16274 @DomName('Navigator') |
| 16275 class Navigator extends Interceptor native "Navigator" { | 16275 class Navigator extends Interceptor native "Navigator" { |
| 16276 | 16276 |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16308 * 'optional': | 16308 * 'optional': |
| 16309 * [{ 'minFrameRate': 60 }, | 16309 * [{ 'minFrameRate': 60 }, |
| 16310 * { 'maxWidth': 640 }] | 16310 * { 'maxWidth': 640 }] |
| 16311 * }); | 16311 * }); |
| 16312 * | 16312 * |
| 16313 * See also: | 16313 * See also: |
| 16314 * * [MediaStream.supported] | 16314 * * [MediaStream.supported] |
| 16315 */ | 16315 */ |
| 16316 @DomName('Navigator.webkitGetUserMedia') | 16316 @DomName('Navigator.webkitGetUserMedia') |
| 16317 @SupportedBrowser(SupportedBrowser.CHROME) | 16317 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16318 @Experimental | 16318 @Experimental() |
| 16319 Future<MediaStream> getUserMedia({audio: false, video: false}) { | 16319 Future<MediaStream> getUserMedia({audio: false, video: false}) { |
| 16320 var completer = new Completer<MediaStream>(); | 16320 var completer = new Completer<MediaStream>(); |
| 16321 var options = { | 16321 var options = { |
| 16322 'audio': audio, | 16322 'audio': audio, |
| 16323 'video': video | 16323 'video': video |
| 16324 }; | 16324 }; |
| 16325 _ensureGetUserMedia(); | 16325 _ensureGetUserMedia(); |
| 16326 this._getUserMedia(convertDartToNative_SerializedScriptValue(options), | 16326 this._getUserMedia(convertDartToNative_SerializedScriptValue(options), |
| 16327 (stream) { | 16327 (stream) { |
| 16328 completer.complete(stream); | 16328 completer.complete(stream); |
| (...skipping 11 matching lines...) Expand all Loading... |
| 16340 '#.msGetUserMedia)', this, this, this, this, this); | 16340 '#.msGetUserMedia)', this, this, this, this, this); |
| 16341 } | 16341 } |
| 16342 } | 16342 } |
| 16343 | 16343 |
| 16344 @JSName('getUserMedia') | 16344 @JSName('getUserMedia') |
| 16345 void _getUserMedia(options, _NavigatorUserMediaSuccessCallback success, | 16345 void _getUserMedia(options, _NavigatorUserMediaSuccessCallback success, |
| 16346 _NavigatorUserMediaErrorCallback error) native; | 16346 _NavigatorUserMediaErrorCallback error) native; |
| 16347 | 16347 |
| 16348 | 16348 |
| 16349 @DomName('Navigator.appCodeName') | 16349 @DomName('Navigator.appCodeName') |
| 16350 @DocsEditable | 16350 @DocsEditable() |
| 16351 @Experimental // non-standard | 16351 @Experimental() // non-standard |
| 16352 final String appCodeName; | 16352 final String appCodeName; |
| 16353 | 16353 |
| 16354 @DomName('Navigator.appName') | 16354 @DomName('Navigator.appName') |
| 16355 @DocsEditable | 16355 @DocsEditable() |
| 16356 final String appName; | 16356 final String appName; |
| 16357 | 16357 |
| 16358 @DomName('Navigator.appVersion') | 16358 @DomName('Navigator.appVersion') |
| 16359 @DocsEditable | 16359 @DocsEditable() |
| 16360 final String appVersion; | 16360 final String appVersion; |
| 16361 | 16361 |
| 16362 @DomName('Navigator.cookieEnabled') | 16362 @DomName('Navigator.cookieEnabled') |
| 16363 @DocsEditable | 16363 @DocsEditable() |
| 16364 @Unstable | 16364 @Unstable() |
| 16365 final bool cookieEnabled; | 16365 final bool cookieEnabled; |
| 16366 | 16366 |
| 16367 @DomName('Navigator.doNotTrack') | 16367 @DomName('Navigator.doNotTrack') |
| 16368 @DocsEditable | 16368 @DocsEditable() |
| 16369 // http://www.w3.org/2011/tracking-protection/drafts/tracking-dnt.html#js-dom | 16369 // http://www.w3.org/2011/tracking-protection/drafts/tracking-dnt.html#js-dom |
| 16370 @Experimental // experimental | 16370 @Experimental() // experimental |
| 16371 final String doNotTrack; | 16371 final String doNotTrack; |
| 16372 | 16372 |
| 16373 @DomName('Navigator.geolocation') | 16373 @DomName('Navigator.geolocation') |
| 16374 @DocsEditable | 16374 @DocsEditable() |
| 16375 @Unstable | 16375 @Unstable() |
| 16376 final Geolocation geolocation; | 16376 final Geolocation geolocation; |
| 16377 | 16377 |
| 16378 @DomName('Navigator.mimeTypes') | 16378 @DomName('Navigator.mimeTypes') |
| 16379 @DocsEditable | 16379 @DocsEditable() |
| 16380 @Experimental // nonstandard | 16380 @Experimental() // nonstandard |
| 16381 final MimeTypeArray mimeTypes; | 16381 final MimeTypeArray mimeTypes; |
| 16382 | 16382 |
| 16383 @DomName('Navigator.onLine') | 16383 @DomName('Navigator.onLine') |
| 16384 @DocsEditable | 16384 @DocsEditable() |
| 16385 @Unstable | 16385 @Unstable() |
| 16386 final bool onLine; | 16386 final bool onLine; |
| 16387 | 16387 |
| 16388 @DomName('Navigator.platform') | 16388 @DomName('Navigator.platform') |
| 16389 @DocsEditable | 16389 @DocsEditable() |
| 16390 final String platform; | 16390 final String platform; |
| 16391 | 16391 |
| 16392 @DomName('Navigator.plugins') | 16392 @DomName('Navigator.plugins') |
| 16393 @DocsEditable | 16393 @DocsEditable() |
| 16394 @deprecated // nonstandard | 16394 @deprecated // nonstandard |
| 16395 final PluginArray plugins; | 16395 final PluginArray plugins; |
| 16396 | 16396 |
| 16397 @DomName('Navigator.product') | 16397 @DomName('Navigator.product') |
| 16398 @DocsEditable | 16398 @DocsEditable() |
| 16399 @Unstable | 16399 @Unstable() |
| 16400 final String product; | 16400 final String product; |
| 16401 | 16401 |
| 16402 @DomName('Navigator.productSub') | 16402 @DomName('Navigator.productSub') |
| 16403 @DocsEditable | 16403 @DocsEditable() |
| 16404 @Unstable | 16404 @Unstable() |
| 16405 final String productSub; | 16405 final String productSub; |
| 16406 | 16406 |
| 16407 @DomName('Navigator.userAgent') | 16407 @DomName('Navigator.userAgent') |
| 16408 @DocsEditable | 16408 @DocsEditable() |
| 16409 final String userAgent; | 16409 final String userAgent; |
| 16410 | 16410 |
| 16411 @DomName('Navigator.vendor') | 16411 @DomName('Navigator.vendor') |
| 16412 @DocsEditable | 16412 @DocsEditable() |
| 16413 @Unstable | 16413 @Unstable() |
| 16414 final String vendor; | 16414 final String vendor; |
| 16415 | 16415 |
| 16416 @DomName('Navigator.vendorSub') | 16416 @DomName('Navigator.vendorSub') |
| 16417 @DocsEditable | 16417 @DocsEditable() |
| 16418 @Unstable | 16418 @Unstable() |
| 16419 final String vendorSub; | 16419 final String vendorSub; |
| 16420 | 16420 |
| 16421 @JSName('webkitPersistentStorage') | 16421 @JSName('webkitPersistentStorage') |
| 16422 @DomName('Navigator.webkitPersistentStorage') | 16422 @DomName('Navigator.webkitPersistentStorage') |
| 16423 @DocsEditable | 16423 @DocsEditable() |
| 16424 @SupportedBrowser(SupportedBrowser.CHROME) | 16424 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16425 @SupportedBrowser(SupportedBrowser.SAFARI) | 16425 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16426 @Experimental | 16426 @Experimental() |
| 16427 // http://www.w3.org/TR/quota-api/#accessing-storagequota | 16427 // http://www.w3.org/TR/quota-api/#accessing-storagequota |
| 16428 final StorageQuota persistentStorage; | 16428 final StorageQuota persistentStorage; |
| 16429 | 16429 |
| 16430 @JSName('webkitTemporaryStorage') | 16430 @JSName('webkitTemporaryStorage') |
| 16431 @DomName('Navigator.webkitTemporaryStorage') | 16431 @DomName('Navigator.webkitTemporaryStorage') |
| 16432 @DocsEditable | 16432 @DocsEditable() |
| 16433 @SupportedBrowser(SupportedBrowser.CHROME) | 16433 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16434 @SupportedBrowser(SupportedBrowser.SAFARI) | 16434 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16435 @Experimental | 16435 @Experimental() |
| 16436 // http://www.w3.org/TR/quota-api/#accessing-storagequota | 16436 // http://www.w3.org/TR/quota-api/#accessing-storagequota |
| 16437 final StorageQuota temporaryStorage; | 16437 final StorageQuota temporaryStorage; |
| 16438 | 16438 |
| 16439 @DomName('Navigator.getStorageUpdates') | 16439 @DomName('Navigator.getStorageUpdates') |
| 16440 @DocsEditable | 16440 @DocsEditable() |
| 16441 // http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#nav
igatorstorageutils | 16441 // http://www.whatwg.org/specs/web-apps/current-work/multipage/timers.html#nav
igatorstorageutils |
| 16442 @Experimental | 16442 @Experimental() |
| 16443 void getStorageUpdates() native; | 16443 void getStorageUpdates() native; |
| 16444 | 16444 |
| 16445 @DomName('Navigator.javaEnabled') | 16445 @DomName('Navigator.javaEnabled') |
| 16446 @DocsEditable | 16446 @DocsEditable() |
| 16447 @deprecated // nonstandard | 16447 @deprecated // nonstandard |
| 16448 bool javaEnabled() native; | 16448 bool javaEnabled() native; |
| 16449 | 16449 |
| 16450 @DomName('Navigator.registerProtocolHandler') | 16450 @DomName('Navigator.registerProtocolHandler') |
| 16451 @DocsEditable | 16451 @DocsEditable() |
| 16452 @Unstable | 16452 @Unstable() |
| 16453 void registerProtocolHandler(String scheme, String url, String title) native; | 16453 void registerProtocolHandler(String scheme, String url, String title) native; |
| 16454 | 16454 |
| 16455 @JSName('webkitGetGamepads') | 16455 @JSName('webkitGetGamepads') |
| 16456 @DomName('Navigator.webkitGetGamepads') | 16456 @DomName('Navigator.webkitGetGamepads') |
| 16457 @DocsEditable | 16457 @DocsEditable() |
| 16458 @SupportedBrowser(SupportedBrowser.CHROME) | 16458 @SupportedBrowser(SupportedBrowser.CHROME) |
| 16459 @SupportedBrowser(SupportedBrowser.SAFARI) | 16459 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 16460 @Experimental | 16460 @Experimental() |
| 16461 // https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#widl-Navigator
-getGamepads-Gamepad | 16461 // https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html#widl-Navigator
-getGamepads-Gamepad |
| 16462 @Returns('_GamepadList') | 16462 @Returns('_GamepadList') |
| 16463 @Creates('_GamepadList') | 16463 @Creates('_GamepadList') |
| 16464 List<Gamepad> getGamepads() native; | 16464 List<Gamepad> getGamepads() native; |
| 16465 | 16465 |
| 16466 } | 16466 } |
| 16467 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16467 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16468 // for details. All rights reserved. Use of this source code is governed by a | 16468 // for details. All rights reserved. Use of this source code is governed by a |
| 16469 // BSD-style license that can be found in the LICENSE file. | 16469 // BSD-style license that can be found in the LICENSE file. |
| 16470 | 16470 |
| 16471 | 16471 |
| 16472 @DocsEditable | 16472 @DocsEditable() |
| 16473 @DomName('NavigatorUserMediaError') | 16473 @DomName('NavigatorUserMediaError') |
| 16474 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-NavigatorUserM
ediaError | 16474 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-NavigatorUserM
ediaError |
| 16475 @Experimental | 16475 @Experimental() |
| 16476 class NavigatorUserMediaError extends Interceptor native "NavigatorUserMediaErro
r" { | 16476 class NavigatorUserMediaError extends Interceptor native "NavigatorUserMediaErro
r" { |
| 16477 | 16477 |
| 16478 @DomName('NavigatorUserMediaError.constraintName') | 16478 @DomName('NavigatorUserMediaError.constraintName') |
| 16479 @DocsEditable | 16479 @DocsEditable() |
| 16480 final String constraintName; | 16480 final String constraintName; |
| 16481 | 16481 |
| 16482 @DomName('NavigatorUserMediaError.message') | 16482 @DomName('NavigatorUserMediaError.message') |
| 16483 @DocsEditable | 16483 @DocsEditable() |
| 16484 final String message; | 16484 final String message; |
| 16485 | 16485 |
| 16486 @DomName('NavigatorUserMediaError.name') | 16486 @DomName('NavigatorUserMediaError.name') |
| 16487 @DocsEditable | 16487 @DocsEditable() |
| 16488 final String name; | 16488 final String name; |
| 16489 } | 16489 } |
| 16490 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16490 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16491 // for details. All rights reserved. Use of this source code is governed by a | 16491 // for details. All rights reserved. Use of this source code is governed by a |
| 16492 // BSD-style license that can be found in the LICENSE file. | 16492 // BSD-style license that can be found in the LICENSE file. |
| 16493 | 16493 |
| 16494 // WARNING: Do not edit - generated code. | 16494 // WARNING: Do not edit - generated code. |
| 16495 | 16495 |
| 16496 | 16496 |
| 16497 @DomName('NavigatorUserMediaErrorCallback') | 16497 @DomName('NavigatorUserMediaErrorCallback') |
| 16498 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-NavigatorUserM
ediaErrorCallback | 16498 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-NavigatorUserM
ediaErrorCallback |
| 16499 @Experimental | 16499 @Experimental() |
| 16500 typedef void _NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); | 16500 typedef void _NavigatorUserMediaErrorCallback(NavigatorUserMediaError error); |
| 16501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16501 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16502 // for details. All rights reserved. Use of this source code is governed by a | 16502 // for details. All rights reserved. Use of this source code is governed by a |
| 16503 // BSD-style license that can be found in the LICENSE file. | 16503 // BSD-style license that can be found in the LICENSE file. |
| 16504 | 16504 |
| 16505 // WARNING: Do not edit - generated code. | 16505 // WARNING: Do not edit - generated code. |
| 16506 | 16506 |
| 16507 | 16507 |
| 16508 @DomName('NavigatorUserMediaSuccessCallback') | 16508 @DomName('NavigatorUserMediaSuccessCallback') |
| 16509 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-NavigatorUserM
ediaSuccessCallback | 16509 // http://dev.w3.org/2011/webrtc/editor/getusermedia.html#idl-def-NavigatorUserM
ediaSuccessCallback |
| 16510 @Experimental | 16510 @Experimental() |
| 16511 typedef void _NavigatorUserMediaSuccessCallback(MediaStream stream); | 16511 typedef void _NavigatorUserMediaSuccessCallback(MediaStream stream); |
| 16512 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16512 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16513 // for details. All rights reserved. Use of this source code is governed by a | 16513 // for details. All rights reserved. Use of this source code is governed by a |
| 16514 // BSD-style license that can be found in the LICENSE file. | 16514 // BSD-style license that can be found in the LICENSE file. |
| 16515 | 16515 |
| 16516 | 16516 |
| 16517 /** | 16517 /** |
| 16518 * Lazy implementation of the child nodes of an element that does not request | 16518 * Lazy implementation of the child nodes of an element that does not request |
| 16519 * the actual child nodes of an element until strictly necessary greatly | 16519 * the actual child nodes of an element until strictly necessary greatly |
| 16520 * improving performance for the typical cases where it is not required. | 16520 * improving performance for the typical cases where it is not required. |
| (...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 16760 | 16760 |
| 16761 /** | 16761 /** |
| 16762 * Print out a String representation of this Node. | 16762 * Print out a String representation of this Node. |
| 16763 */ | 16763 */ |
| 16764 String toString() => nodeValue == null ? super.toString() : nodeValue; | 16764 String toString() => nodeValue == null ? super.toString() : nodeValue; |
| 16765 | 16765 |
| 16766 /** | 16766 /** |
| 16767 * Binds the attribute [name] to the [path] of the [model]. | 16767 * Binds the attribute [name] to the [path] of the [model]. |
| 16768 * Path is a String of accessors such as `foo.bar.baz`. | 16768 * Path is a String of accessors such as `foo.bar.baz`. |
| 16769 */ | 16769 */ |
| 16770 @Experimental | 16770 @Experimental() |
| 16771 void bind(String name, model, String path) { | 16771 void bind(String name, model, String path) { |
| 16772 TemplateElement.mdvPackage(this).bind(name, model, path); | 16772 TemplateElement.mdvPackage(this).bind(name, model, path); |
| 16773 } | 16773 } |
| 16774 | 16774 |
| 16775 /** Unbinds the attribute [name]. */ | 16775 /** Unbinds the attribute [name]. */ |
| 16776 @Experimental | 16776 @Experimental() |
| 16777 void unbind(String name) { | 16777 void unbind(String name) { |
| 16778 TemplateElement.mdvPackage(this).unbind(name); | 16778 TemplateElement.mdvPackage(this).unbind(name); |
| 16779 } | 16779 } |
| 16780 | 16780 |
| 16781 /** Unbinds all bound attributes. */ | 16781 /** Unbinds all bound attributes. */ |
| 16782 @Experimental | 16782 @Experimental() |
| 16783 void unbindAll() { | 16783 void unbindAll() { |
| 16784 TemplateElement.mdvPackage(this).unbindAll(); | 16784 TemplateElement.mdvPackage(this).unbindAll(); |
| 16785 } | 16785 } |
| 16786 | 16786 |
| 16787 /** Gets the template instance that instantiated this node, if any. */ | 16787 /** Gets the template instance that instantiated this node, if any. */ |
| 16788 @Experimental | 16788 @Experimental() |
| 16789 TemplateInstance get templateInstance => | 16789 TemplateInstance get templateInstance => |
| 16790 TemplateElement.mdvPackage(this).templateInstance; | 16790 TemplateElement.mdvPackage(this).templateInstance; |
| 16791 | 16791 |
| 16792 // To suppress missing implicit constructor warnings. | 16792 // To suppress missing implicit constructor warnings. |
| 16793 factory Node._() { throw new UnsupportedError("Not supported"); } | 16793 factory Node._() { throw new UnsupportedError("Not supported"); } |
| 16794 | 16794 |
| 16795 @DomName('Node.ATTRIBUTE_NODE') | 16795 @DomName('Node.ATTRIBUTE_NODE') |
| 16796 @DocsEditable | 16796 @DocsEditable() |
| 16797 static const int ATTRIBUTE_NODE = 2; | 16797 static const int ATTRIBUTE_NODE = 2; |
| 16798 | 16798 |
| 16799 @DomName('Node.CDATA_SECTION_NODE') | 16799 @DomName('Node.CDATA_SECTION_NODE') |
| 16800 @DocsEditable | 16800 @DocsEditable() |
| 16801 static const int CDATA_SECTION_NODE = 4; | 16801 static const int CDATA_SECTION_NODE = 4; |
| 16802 | 16802 |
| 16803 @DomName('Node.COMMENT_NODE') | 16803 @DomName('Node.COMMENT_NODE') |
| 16804 @DocsEditable | 16804 @DocsEditable() |
| 16805 static const int COMMENT_NODE = 8; | 16805 static const int COMMENT_NODE = 8; |
| 16806 | 16806 |
| 16807 @DomName('Node.DOCUMENT_FRAGMENT_NODE') | 16807 @DomName('Node.DOCUMENT_FRAGMENT_NODE') |
| 16808 @DocsEditable | 16808 @DocsEditable() |
| 16809 static const int DOCUMENT_FRAGMENT_NODE = 11; | 16809 static const int DOCUMENT_FRAGMENT_NODE = 11; |
| 16810 | 16810 |
| 16811 @DomName('Node.DOCUMENT_NODE') | 16811 @DomName('Node.DOCUMENT_NODE') |
| 16812 @DocsEditable | 16812 @DocsEditable() |
| 16813 static const int DOCUMENT_NODE = 9; | 16813 static const int DOCUMENT_NODE = 9; |
| 16814 | 16814 |
| 16815 @DomName('Node.DOCUMENT_TYPE_NODE') | 16815 @DomName('Node.DOCUMENT_TYPE_NODE') |
| 16816 @DocsEditable | 16816 @DocsEditable() |
| 16817 static const int DOCUMENT_TYPE_NODE = 10; | 16817 static const int DOCUMENT_TYPE_NODE = 10; |
| 16818 | 16818 |
| 16819 @DomName('Node.ELEMENT_NODE') | 16819 @DomName('Node.ELEMENT_NODE') |
| 16820 @DocsEditable | 16820 @DocsEditable() |
| 16821 static const int ELEMENT_NODE = 1; | 16821 static const int ELEMENT_NODE = 1; |
| 16822 | 16822 |
| 16823 @DomName('Node.ENTITY_NODE') | 16823 @DomName('Node.ENTITY_NODE') |
| 16824 @DocsEditable | 16824 @DocsEditable() |
| 16825 static const int ENTITY_NODE = 6; | 16825 static const int ENTITY_NODE = 6; |
| 16826 | 16826 |
| 16827 @DomName('Node.ENTITY_REFERENCE_NODE') | 16827 @DomName('Node.ENTITY_REFERENCE_NODE') |
| 16828 @DocsEditable | 16828 @DocsEditable() |
| 16829 static const int ENTITY_REFERENCE_NODE = 5; | 16829 static const int ENTITY_REFERENCE_NODE = 5; |
| 16830 | 16830 |
| 16831 @DomName('Node.NOTATION_NODE') | 16831 @DomName('Node.NOTATION_NODE') |
| 16832 @DocsEditable | 16832 @DocsEditable() |
| 16833 static const int NOTATION_NODE = 12; | 16833 static const int NOTATION_NODE = 12; |
| 16834 | 16834 |
| 16835 @DomName('Node.PROCESSING_INSTRUCTION_NODE') | 16835 @DomName('Node.PROCESSING_INSTRUCTION_NODE') |
| 16836 @DocsEditable | 16836 @DocsEditable() |
| 16837 static const int PROCESSING_INSTRUCTION_NODE = 7; | 16837 static const int PROCESSING_INSTRUCTION_NODE = 7; |
| 16838 | 16838 |
| 16839 @DomName('Node.TEXT_NODE') | 16839 @DomName('Node.TEXT_NODE') |
| 16840 @DocsEditable | 16840 @DocsEditable() |
| 16841 static const int TEXT_NODE = 3; | 16841 static const int TEXT_NODE = 3; |
| 16842 | 16842 |
| 16843 @JSName('childNodes') | 16843 @JSName('childNodes') |
| 16844 @DomName('Node.childNodes') | 16844 @DomName('Node.childNodes') |
| 16845 @DocsEditable | 16845 @DocsEditable() |
| 16846 @Returns('NodeList') | 16846 @Returns('NodeList') |
| 16847 @Creates('NodeList') | 16847 @Creates('NodeList') |
| 16848 final List<Node> $dom_childNodes; | 16848 final List<Node> $dom_childNodes; |
| 16849 | 16849 |
| 16850 @DomName('Node.firstChild') | 16850 @DomName('Node.firstChild') |
| 16851 @DocsEditable | 16851 @DocsEditable() |
| 16852 final Node firstChild; | 16852 final Node firstChild; |
| 16853 | 16853 |
| 16854 @DomName('Node.lastChild') | 16854 @DomName('Node.lastChild') |
| 16855 @DocsEditable | 16855 @DocsEditable() |
| 16856 final Node lastChild; | 16856 final Node lastChild; |
| 16857 | 16857 |
| 16858 @JSName('localName') | 16858 @JSName('localName') |
| 16859 @DomName('Node.localName') | 16859 @DomName('Node.localName') |
| 16860 @DocsEditable | 16860 @DocsEditable() |
| 16861 // http://dom.spec.whatwg.org/#dom-node-localname | 16861 // http://dom.spec.whatwg.org/#dom-node-localname |
| 16862 @deprecated // deprecated | 16862 @deprecated // deprecated |
| 16863 final String $dom_localName; | 16863 final String $dom_localName; |
| 16864 | 16864 |
| 16865 @JSName('namespaceURI') | 16865 @JSName('namespaceURI') |
| 16866 @DomName('Node.namespaceURI') | 16866 @DomName('Node.namespaceURI') |
| 16867 @DocsEditable | 16867 @DocsEditable() |
| 16868 // http://dom.spec.whatwg.org/#dom-node-namespaceuri | 16868 // http://dom.spec.whatwg.org/#dom-node-namespaceuri |
| 16869 @deprecated // deprecated | 16869 @deprecated // deprecated |
| 16870 final String $dom_namespaceUri; | 16870 final String $dom_namespaceUri; |
| 16871 | 16871 |
| 16872 @JSName('nextSibling') | 16872 @JSName('nextSibling') |
| 16873 @DomName('Node.nextSibling') | 16873 @DomName('Node.nextSibling') |
| 16874 @DocsEditable | 16874 @DocsEditable() |
| 16875 final Node nextNode; | 16875 final Node nextNode; |
| 16876 | 16876 |
| 16877 @DomName('Node.nodeType') | 16877 @DomName('Node.nodeType') |
| 16878 @DocsEditable | 16878 @DocsEditable() |
| 16879 final int nodeType; | 16879 final int nodeType; |
| 16880 | 16880 |
| 16881 @DomName('Node.nodeValue') | 16881 @DomName('Node.nodeValue') |
| 16882 @DocsEditable | 16882 @DocsEditable() |
| 16883 final String nodeValue; | 16883 final String nodeValue; |
| 16884 | 16884 |
| 16885 @JSName('ownerDocument') | 16885 @JSName('ownerDocument') |
| 16886 @DomName('Node.ownerDocument') | 16886 @DomName('Node.ownerDocument') |
| 16887 @DocsEditable | 16887 @DocsEditable() |
| 16888 final Document document; | 16888 final Document document; |
| 16889 | 16889 |
| 16890 @JSName('parentElement') | 16890 @JSName('parentElement') |
| 16891 @DomName('Node.parentElement') | 16891 @DomName('Node.parentElement') |
| 16892 @DocsEditable | 16892 @DocsEditable() |
| 16893 final Element parent; | 16893 final Element parent; |
| 16894 | 16894 |
| 16895 @DomName('Node.parentNode') | 16895 @DomName('Node.parentNode') |
| 16896 @DocsEditable | 16896 @DocsEditable() |
| 16897 final Node parentNode; | 16897 final Node parentNode; |
| 16898 | 16898 |
| 16899 @JSName('previousSibling') | 16899 @JSName('previousSibling') |
| 16900 @DomName('Node.previousSibling') | 16900 @DomName('Node.previousSibling') |
| 16901 @DocsEditable | 16901 @DocsEditable() |
| 16902 final Node previousNode; | 16902 final Node previousNode; |
| 16903 | 16903 |
| 16904 @JSName('textContent') | 16904 @JSName('textContent') |
| 16905 @DomName('Node.textContent') | 16905 @DomName('Node.textContent') |
| 16906 @DocsEditable | 16906 @DocsEditable() |
| 16907 String text; | 16907 String text; |
| 16908 | 16908 |
| 16909 @JSName('addEventListener') | 16909 @JSName('addEventListener') |
| 16910 @DomName('Node.addEventListener') | 16910 @DomName('Node.addEventListener') |
| 16911 @DocsEditable | 16911 @DocsEditable() |
| 16912 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 16912 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 16913 | 16913 |
| 16914 @JSName('appendChild') | 16914 @JSName('appendChild') |
| 16915 /** | 16915 /** |
| 16916 * Adds a node to the end of the child [nodes] list of this node. | 16916 * Adds a node to the end of the child [nodes] list of this node. |
| 16917 * | 16917 * |
| 16918 * If the node already exists in this document, it will be removed from its | 16918 * If the node already exists in this document, it will be removed from its |
| 16919 * current parent node, then added to this node. | 16919 * current parent node, then added to this node. |
| 16920 * | 16920 * |
| 16921 * This method is more efficient than `nodes.add`, and is the preferred | 16921 * This method is more efficient than `nodes.add`, and is the preferred |
| 16922 * way of appending a child node. | 16922 * way of appending a child node. |
| 16923 */ | 16923 */ |
| 16924 @DomName('Node.appendChild') | 16924 @DomName('Node.appendChild') |
| 16925 @DocsEditable | 16925 @DocsEditable() |
| 16926 Node append(Node newChild) native; | 16926 Node append(Node newChild) native; |
| 16927 | 16927 |
| 16928 @JSName('cloneNode') | 16928 @JSName('cloneNode') |
| 16929 @DomName('Node.cloneNode') | 16929 @DomName('Node.cloneNode') |
| 16930 @DocsEditable | 16930 @DocsEditable() |
| 16931 Node clone(bool deep) native; | 16931 Node clone(bool deep) native; |
| 16932 | 16932 |
| 16933 @DomName('Node.contains') | 16933 @DomName('Node.contains') |
| 16934 @DocsEditable | 16934 @DocsEditable() |
| 16935 bool contains(Node other) native; | 16935 bool contains(Node other) native; |
| 16936 | 16936 |
| 16937 @DomName('Node.dispatchEvent') | 16937 @DomName('Node.dispatchEvent') |
| 16938 @DocsEditable | 16938 @DocsEditable() |
| 16939 bool dispatchEvent(Event event) native; | 16939 bool dispatchEvent(Event event) native; |
| 16940 | 16940 |
| 16941 @DomName('Node.hasChildNodes') | 16941 @DomName('Node.hasChildNodes') |
| 16942 @DocsEditable | 16942 @DocsEditable() |
| 16943 bool hasChildNodes() native; | 16943 bool hasChildNodes() native; |
| 16944 | 16944 |
| 16945 @DomName('Node.insertBefore') | 16945 @DomName('Node.insertBefore') |
| 16946 @DocsEditable | 16946 @DocsEditable() |
| 16947 Node insertBefore(Node newChild, Node refChild) native; | 16947 Node insertBefore(Node newChild, Node refChild) native; |
| 16948 | 16948 |
| 16949 @JSName('removeChild') | 16949 @JSName('removeChild') |
| 16950 @DomName('Node.removeChild') | 16950 @DomName('Node.removeChild') |
| 16951 @DocsEditable | 16951 @DocsEditable() |
| 16952 Node $dom_removeChild(Node oldChild) native; | 16952 Node $dom_removeChild(Node oldChild) native; |
| 16953 | 16953 |
| 16954 @JSName('removeEventListener') | 16954 @JSName('removeEventListener') |
| 16955 @DomName('Node.removeEventListener') | 16955 @DomName('Node.removeEventListener') |
| 16956 @DocsEditable | 16956 @DocsEditable() |
| 16957 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 16957 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 16958 | 16958 |
| 16959 @JSName('replaceChild') | 16959 @JSName('replaceChild') |
| 16960 @DomName('Node.replaceChild') | 16960 @DomName('Node.replaceChild') |
| 16961 @DocsEditable | 16961 @DocsEditable() |
| 16962 Node $dom_replaceChild(Node newChild, Node oldChild) native; | 16962 Node $dom_replaceChild(Node newChild, Node oldChild) native; |
| 16963 | 16963 |
| 16964 } | 16964 } |
| 16965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 16965 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 16966 // for details. All rights reserved. Use of this source code is governed by a | 16966 // for details. All rights reserved. Use of this source code is governed by a |
| 16967 // BSD-style license that can be found in the LICENSE file. | 16967 // BSD-style license that can be found in the LICENSE file. |
| 16968 | 16968 |
| 16969 | 16969 |
| 16970 @DocsEditable | 16970 @DocsEditable() |
| 16971 @DomName('NodeFilter') | 16971 @DomName('NodeFilter') |
| 16972 @Unstable | 16972 @Unstable() |
| 16973 class NodeFilter extends Interceptor native "NodeFilter" { | 16973 class NodeFilter extends Interceptor native "NodeFilter" { |
| 16974 | 16974 |
| 16975 @DomName('NodeFilter.FILTER_ACCEPT') | 16975 @DomName('NodeFilter.FILTER_ACCEPT') |
| 16976 @DocsEditable | 16976 @DocsEditable() |
| 16977 static const int FILTER_ACCEPT = 1; | 16977 static const int FILTER_ACCEPT = 1; |
| 16978 | 16978 |
| 16979 @DomName('NodeFilter.FILTER_REJECT') | 16979 @DomName('NodeFilter.FILTER_REJECT') |
| 16980 @DocsEditable | 16980 @DocsEditable() |
| 16981 static const int FILTER_REJECT = 2; | 16981 static const int FILTER_REJECT = 2; |
| 16982 | 16982 |
| 16983 @DomName('NodeFilter.FILTER_SKIP') | 16983 @DomName('NodeFilter.FILTER_SKIP') |
| 16984 @DocsEditable | 16984 @DocsEditable() |
| 16985 static const int FILTER_SKIP = 3; | 16985 static const int FILTER_SKIP = 3; |
| 16986 | 16986 |
| 16987 @DomName('NodeFilter.SHOW_ALL') | 16987 @DomName('NodeFilter.SHOW_ALL') |
| 16988 @DocsEditable | 16988 @DocsEditable() |
| 16989 static const int SHOW_ALL = 0xFFFFFFFF; | 16989 static const int SHOW_ALL = 0xFFFFFFFF; |
| 16990 | 16990 |
| 16991 @DomName('NodeFilter.SHOW_ATTRIBUTE') | 16991 @DomName('NodeFilter.SHOW_ATTRIBUTE') |
| 16992 @DocsEditable | 16992 @DocsEditable() |
| 16993 @deprecated // deprecated | 16993 @deprecated // deprecated |
| 16994 static const int SHOW_ATTRIBUTE = 0x00000002; | 16994 static const int SHOW_ATTRIBUTE = 0x00000002; |
| 16995 | 16995 |
| 16996 @DomName('NodeFilter.SHOW_CDATA_SECTION') | 16996 @DomName('NodeFilter.SHOW_CDATA_SECTION') |
| 16997 @DocsEditable | 16997 @DocsEditable() |
| 16998 @deprecated // deprecated | 16998 @deprecated // deprecated |
| 16999 static const int SHOW_CDATA_SECTION = 0x00000008; | 16999 static const int SHOW_CDATA_SECTION = 0x00000008; |
| 17000 | 17000 |
| 17001 @DomName('NodeFilter.SHOW_COMMENT') | 17001 @DomName('NodeFilter.SHOW_COMMENT') |
| 17002 @DocsEditable | 17002 @DocsEditable() |
| 17003 static const int SHOW_COMMENT = 0x00000080; | 17003 static const int SHOW_COMMENT = 0x00000080; |
| 17004 | 17004 |
| 17005 @DomName('NodeFilter.SHOW_DOCUMENT') | 17005 @DomName('NodeFilter.SHOW_DOCUMENT') |
| 17006 @DocsEditable | 17006 @DocsEditable() |
| 17007 static const int SHOW_DOCUMENT = 0x00000100; | 17007 static const int SHOW_DOCUMENT = 0x00000100; |
| 17008 | 17008 |
| 17009 @DomName('NodeFilter.SHOW_DOCUMENT_FRAGMENT') | 17009 @DomName('NodeFilter.SHOW_DOCUMENT_FRAGMENT') |
| 17010 @DocsEditable | 17010 @DocsEditable() |
| 17011 static const int SHOW_DOCUMENT_FRAGMENT = 0x00000400; | 17011 static const int SHOW_DOCUMENT_FRAGMENT = 0x00000400; |
| 17012 | 17012 |
| 17013 @DomName('NodeFilter.SHOW_DOCUMENT_TYPE') | 17013 @DomName('NodeFilter.SHOW_DOCUMENT_TYPE') |
| 17014 @DocsEditable | 17014 @DocsEditable() |
| 17015 static const int SHOW_DOCUMENT_TYPE = 0x00000200; | 17015 static const int SHOW_DOCUMENT_TYPE = 0x00000200; |
| 17016 | 17016 |
| 17017 @DomName('NodeFilter.SHOW_ELEMENT') | 17017 @DomName('NodeFilter.SHOW_ELEMENT') |
| 17018 @DocsEditable | 17018 @DocsEditable() |
| 17019 static const int SHOW_ELEMENT = 0x00000001; | 17019 static const int SHOW_ELEMENT = 0x00000001; |
| 17020 | 17020 |
| 17021 @DomName('NodeFilter.SHOW_ENTITY') | 17021 @DomName('NodeFilter.SHOW_ENTITY') |
| 17022 @DocsEditable | 17022 @DocsEditable() |
| 17023 @deprecated // deprecated | 17023 @deprecated // deprecated |
| 17024 static const int SHOW_ENTITY = 0x00000020; | 17024 static const int SHOW_ENTITY = 0x00000020; |
| 17025 | 17025 |
| 17026 @DomName('NodeFilter.SHOW_ENTITY_REFERENCE') | 17026 @DomName('NodeFilter.SHOW_ENTITY_REFERENCE') |
| 17027 @DocsEditable | 17027 @DocsEditable() |
| 17028 @deprecated // deprecated | 17028 @deprecated // deprecated |
| 17029 static const int SHOW_ENTITY_REFERENCE = 0x00000010; | 17029 static const int SHOW_ENTITY_REFERENCE = 0x00000010; |
| 17030 | 17030 |
| 17031 @DomName('NodeFilter.SHOW_NOTATION') | 17031 @DomName('NodeFilter.SHOW_NOTATION') |
| 17032 @DocsEditable | 17032 @DocsEditable() |
| 17033 @deprecated // deprecated | 17033 @deprecated // deprecated |
| 17034 static const int SHOW_NOTATION = 0x00000800; | 17034 static const int SHOW_NOTATION = 0x00000800; |
| 17035 | 17035 |
| 17036 @DomName('NodeFilter.SHOW_PROCESSING_INSTRUCTION') | 17036 @DomName('NodeFilter.SHOW_PROCESSING_INSTRUCTION') |
| 17037 @DocsEditable | 17037 @DocsEditable() |
| 17038 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; | 17038 static const int SHOW_PROCESSING_INSTRUCTION = 0x00000040; |
| 17039 | 17039 |
| 17040 @DomName('NodeFilter.SHOW_TEXT') | 17040 @DomName('NodeFilter.SHOW_TEXT') |
| 17041 @DocsEditable | 17041 @DocsEditable() |
| 17042 static const int SHOW_TEXT = 0x00000004; | 17042 static const int SHOW_TEXT = 0x00000004; |
| 17043 } | 17043 } |
| 17044 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 17044 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 17045 // for details. All rights reserved. Use of this source code is governed by a | 17045 // for details. All rights reserved. Use of this source code is governed by a |
| 17046 // BSD-style license that can be found in the LICENSE file. | 17046 // BSD-style license that can be found in the LICENSE file. |
| 17047 | 17047 |
| 17048 | 17048 |
| 17049 @DomName('NodeIterator') | 17049 @DomName('NodeIterator') |
| 17050 @Unstable | 17050 @Unstable() |
| 17051 class NodeIterator extends Interceptor native "NodeIterator" { | 17051 class NodeIterator extends Interceptor native "NodeIterator" { |
| 17052 factory NodeIterator(Node root, int whatToShow) { | 17052 factory NodeIterator(Node root, int whatToShow) { |
| 17053 return document.$dom_createNodeIterator(root, whatToShow, null, false); | 17053 return document.$dom_createNodeIterator(root, whatToShow, null, false); |
| 17054 } | 17054 } |
| 17055 | 17055 |
| 17056 @DomName('NodeIterator.pointerBeforeReferenceNode') | 17056 @DomName('NodeIterator.pointerBeforeReferenceNode') |
| 17057 @DocsEditable | 17057 @DocsEditable() |
| 17058 final bool pointerBeforeReferenceNode; | 17058 final bool pointerBeforeReferenceNode; |
| 17059 | 17059 |
| 17060 @DomName('NodeIterator.referenceNode') | 17060 @DomName('NodeIterator.referenceNode') |
| 17061 @DocsEditable | 17061 @DocsEditable() |
| 17062 final Node referenceNode; | 17062 final Node referenceNode; |
| 17063 | 17063 |
| 17064 @DomName('NodeIterator.root') | 17064 @DomName('NodeIterator.root') |
| 17065 @DocsEditable | 17065 @DocsEditable() |
| 17066 final Node root; | 17066 final Node root; |
| 17067 | 17067 |
| 17068 @DomName('NodeIterator.whatToShow') | 17068 @DomName('NodeIterator.whatToShow') |
| 17069 @DocsEditable | 17069 @DocsEditable() |
| 17070 final int whatToShow; | 17070 final int whatToShow; |
| 17071 | 17071 |
| 17072 @DomName('NodeIterator.detach') | 17072 @DomName('NodeIterator.detach') |
| 17073 @DocsEditable | 17073 @DocsEditable() |
| 17074 void detach() native; | 17074 void detach() native; |
| 17075 | 17075 |
| 17076 @DomName('NodeIterator.nextNode') | 17076 @DomName('NodeIterator.nextNode') |
| 17077 @DocsEditable | 17077 @DocsEditable() |
| 17078 Node nextNode() native; | 17078 Node nextNode() native; |
| 17079 | 17079 |
| 17080 @DomName('NodeIterator.previousNode') | 17080 @DomName('NodeIterator.previousNode') |
| 17081 @DocsEditable | 17081 @DocsEditable() |
| 17082 Node previousNode() native; | 17082 Node previousNode() native; |
| 17083 | 17083 |
| 17084 } | 17084 } |
| 17085 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17085 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17086 // for details. All rights reserved. Use of this source code is governed by a | 17086 // for details. All rights reserved. Use of this source code is governed by a |
| 17087 // BSD-style license that can be found in the LICENSE file. | 17087 // BSD-style license that can be found in the LICENSE file. |
| 17088 | 17088 |
| 17089 | 17089 |
| 17090 @DocsEditable | 17090 @DocsEditable() |
| 17091 @DomName('NodeList') | 17091 @DomName('NodeList') |
| 17092 class NodeList extends Interceptor with ListMixin<Node>, ImmutableListMixin<Node
> implements JavaScriptIndexingBehavior, List<Node> native "NodeList,RadioNodeLi
st" { | 17092 class NodeList extends Interceptor with ListMixin<Node>, ImmutableListMixin<Node
> implements JavaScriptIndexingBehavior, List<Node> native "NodeList,RadioNodeLi
st" { |
| 17093 | 17093 |
| 17094 @DomName('NodeList.length') | 17094 @DomName('NodeList.length') |
| 17095 @DocsEditable | 17095 @DocsEditable() |
| 17096 int get length => JS("int", "#.length", this); | 17096 int get length => JS("int", "#.length", this); |
| 17097 | 17097 |
| 17098 Node operator[](int index) { | 17098 Node operator[](int index) { |
| 17099 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 17099 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 17100 index, index, length)) | 17100 index, index, length)) |
| 17101 throw new RangeError.range(index, 0, length); | 17101 throw new RangeError.range(index, 0, length); |
| 17102 return JS("Node", "#[#]", this, index); | 17102 return JS("Node", "#[#]", this, index); |
| 17103 } | 17103 } |
| 17104 void operator[]=(int index, Node value) { | 17104 void operator[]=(int index, Node value) { |
| 17105 throw new UnsupportedError("Cannot assign element of immutable List."); | 17105 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 17134 } | 17134 } |
| 17135 if (len == 0) throw new StateError("No elements"); | 17135 if (len == 0) throw new StateError("No elements"); |
| 17136 throw new StateError("More than one element"); | 17136 throw new StateError("More than one element"); |
| 17137 } | 17137 } |
| 17138 | 17138 |
| 17139 Node elementAt(int index) => this[index]; | 17139 Node elementAt(int index) => this[index]; |
| 17140 // -- end List<Node> mixins. | 17140 // -- end List<Node> mixins. |
| 17141 | 17141 |
| 17142 @JSName('item') | 17142 @JSName('item') |
| 17143 @DomName('NodeList.item') | 17143 @DomName('NodeList.item') |
| 17144 @DocsEditable | 17144 @DocsEditable() |
| 17145 Node _item(int index) native; | 17145 Node _item(int index) native; |
| 17146 } | 17146 } |
| 17147 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17147 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17148 // for details. All rights reserved. Use of this source code is governed by a | 17148 // for details. All rights reserved. Use of this source code is governed by a |
| 17149 // BSD-style license that can be found in the LICENSE file. | 17149 // BSD-style license that can be found in the LICENSE file. |
| 17150 | 17150 |
| 17151 | 17151 |
| 17152 @DocsEditable | 17152 @DocsEditable() |
| 17153 @DomName('Notation') | 17153 @DomName('Notation') |
| 17154 // http://dom.spec.whatwg.org/#notation | 17154 // http://dom.spec.whatwg.org/#notation |
| 17155 @deprecated // deprecated | 17155 @deprecated // deprecated |
| 17156 class Notation extends Node native "Notation" { | 17156 class Notation extends Node native "Notation" { |
| 17157 // To suppress missing implicit constructor warnings. | 17157 // To suppress missing implicit constructor warnings. |
| 17158 factory Notation._() { throw new UnsupportedError("Not supported"); } | 17158 factory Notation._() { throw new UnsupportedError("Not supported"); } |
| 17159 | 17159 |
| 17160 @DomName('Notation.publicId') | 17160 @DomName('Notation.publicId') |
| 17161 @DocsEditable | 17161 @DocsEditable() |
| 17162 final String publicId; | 17162 final String publicId; |
| 17163 | 17163 |
| 17164 @DomName('Notation.systemId') | 17164 @DomName('Notation.systemId') |
| 17165 @DocsEditable | 17165 @DocsEditable() |
| 17166 final String systemId; | 17166 final String systemId; |
| 17167 } | 17167 } |
| 17168 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 17168 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 17169 // for details. All rights reserved. Use of this source code is governed by a | 17169 // for details. All rights reserved. Use of this source code is governed by a |
| 17170 // BSD-style license that can be found in the LICENSE file. | 17170 // BSD-style license that can be found in the LICENSE file. |
| 17171 | 17171 |
| 17172 | 17172 |
| 17173 @DomName('Notification') | 17173 @DomName('Notification') |
| 17174 // http://www.w3.org/TR/notifications/#notification | 17174 // http://www.w3.org/TR/notifications/#notification |
| 17175 @Experimental // experimental | 17175 @Experimental() // experimental |
| 17176 class Notification extends EventTarget native "Notification" { | 17176 class Notification extends EventTarget native "Notification" { |
| 17177 | 17177 |
| 17178 factory Notification(String title, {String titleDir: null, String body: null, | 17178 factory Notification(String title, {String titleDir: null, String body: null, |
| 17179 String bodyDir: null, String tag: null, String iconUrl: null}) { | 17179 String bodyDir: null, String tag: null, String iconUrl: null}) { |
| 17180 | 17180 |
| 17181 var parsedOptions = {}; | 17181 var parsedOptions = {}; |
| 17182 if (titleDir != null) parsedOptions['titleDir'] = titleDir; | 17182 if (titleDir != null) parsedOptions['titleDir'] = titleDir; |
| 17183 if (body != null) parsedOptions['body'] = body; | 17183 if (body != null) parsedOptions['body'] = body; |
| 17184 if (bodyDir != null) parsedOptions['bodyDir'] = bodyDir; | 17184 if (bodyDir != null) parsedOptions['bodyDir'] = bodyDir; |
| 17185 if (tag != null) parsedOptions['tag'] = tag; | 17185 if (tag != null) parsedOptions['tag'] = tag; |
| 17186 if (iconUrl != null) parsedOptions['iconUrl'] = iconUrl; | 17186 if (iconUrl != null) parsedOptions['iconUrl'] = iconUrl; |
| 17187 | 17187 |
| 17188 return Notification._factoryNotification(title, parsedOptions); | 17188 return Notification._factoryNotification(title, parsedOptions); |
| 17189 } | 17189 } |
| 17190 // To suppress missing implicit constructor warnings. | 17190 // To suppress missing implicit constructor warnings. |
| 17191 factory Notification._() { throw new UnsupportedError("Not supported"); } | 17191 factory Notification._() { throw new UnsupportedError("Not supported"); } |
| 17192 | 17192 |
| 17193 @DomName('Notification.clickEvent') | 17193 @DomName('Notification.clickEvent') |
| 17194 @DocsEditable | 17194 @DocsEditable() |
| 17195 static const EventStreamProvider<Event> clickEvent = const EventStreamProvider
<Event>('click'); | 17195 static const EventStreamProvider<Event> clickEvent = const EventStreamProvider
<Event>('click'); |
| 17196 | 17196 |
| 17197 @DomName('Notification.closeEvent') | 17197 @DomName('Notification.closeEvent') |
| 17198 @DocsEditable | 17198 @DocsEditable() |
| 17199 static const EventStreamProvider<Event> closeEvent = const EventStreamProvider
<Event>('close'); | 17199 static const EventStreamProvider<Event> closeEvent = const EventStreamProvider
<Event>('close'); |
| 17200 | 17200 |
| 17201 @DomName('Notification.displayEvent') | 17201 @DomName('Notification.displayEvent') |
| 17202 @DocsEditable | 17202 @DocsEditable() |
| 17203 @Experimental // nonstandard | 17203 @Experimental() // nonstandard |
| 17204 static const EventStreamProvider<Event> displayEvent = const EventStreamProvid
er<Event>('display'); | 17204 static const EventStreamProvider<Event> displayEvent = const EventStreamProvid
er<Event>('display'); |
| 17205 | 17205 |
| 17206 @DomName('Notification.errorEvent') | 17206 @DomName('Notification.errorEvent') |
| 17207 @DocsEditable | 17207 @DocsEditable() |
| 17208 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 17208 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 17209 | 17209 |
| 17210 @DomName('Notification.showEvent') | 17210 @DomName('Notification.showEvent') |
| 17211 @DocsEditable | 17211 @DocsEditable() |
| 17212 static const EventStreamProvider<Event> showEvent = const EventStreamProvider<
Event>('show'); | 17212 static const EventStreamProvider<Event> showEvent = const EventStreamProvider<
Event>('show'); |
| 17213 | 17213 |
| 17214 @DomName('Notification.Notification') | 17214 @DomName('Notification.Notification') |
| 17215 @DocsEditable | 17215 @DocsEditable() |
| 17216 static Notification _factoryNotification(String title, [Map options]) { | 17216 static Notification _factoryNotification(String title, [Map options]) { |
| 17217 if (options != null) { | 17217 if (options != null) { |
| 17218 return Notification._create_1(title, options); | 17218 return Notification._create_1(title, options); |
| 17219 } | 17219 } |
| 17220 return Notification._create_2(title); | 17220 return Notification._create_2(title); |
| 17221 } | 17221 } |
| 17222 static Notification _create_1(title, options) => JS('Notification', 'new Notif
ication(#,#)', title, options); | 17222 static Notification _create_1(title, options) => JS('Notification', 'new Notif
ication(#,#)', title, options); |
| 17223 static Notification _create_2(title) => JS('Notification', 'new Notification(#
)', title); | 17223 static Notification _create_2(title) => JS('Notification', 'new Notification(#
)', title); |
| 17224 | 17224 |
| 17225 @DomName('Notification.dir') | 17225 @DomName('Notification.dir') |
| 17226 @DocsEditable | 17226 @DocsEditable() |
| 17227 @Experimental // nonstandard | 17227 @Experimental() // nonstandard |
| 17228 String dir; | 17228 String dir; |
| 17229 | 17229 |
| 17230 @DomName('Notification.permission') | 17230 @DomName('Notification.permission') |
| 17231 @DocsEditable | 17231 @DocsEditable() |
| 17232 final String permission; | 17232 final String permission; |
| 17233 | 17233 |
| 17234 @DomName('Notification.replaceId') | 17234 @DomName('Notification.replaceId') |
| 17235 @DocsEditable | 17235 @DocsEditable() |
| 17236 @Experimental // nonstandard | 17236 @Experimental() // nonstandard |
| 17237 String replaceId; | 17237 String replaceId; |
| 17238 | 17238 |
| 17239 @DomName('Notification.tag') | 17239 @DomName('Notification.tag') |
| 17240 @DocsEditable | 17240 @DocsEditable() |
| 17241 @Experimental // nonstandard | 17241 @Experimental() // nonstandard |
| 17242 String tag; | 17242 String tag; |
| 17243 | 17243 |
| 17244 @JSName('addEventListener') | 17244 @JSName('addEventListener') |
| 17245 @DomName('Notification.addEventListener') | 17245 @DomName('Notification.addEventListener') |
| 17246 @DocsEditable | 17246 @DocsEditable() |
| 17247 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 17247 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 17248 | 17248 |
| 17249 @DomName('Notification.cancel') | 17249 @DomName('Notification.cancel') |
| 17250 @DocsEditable | 17250 @DocsEditable() |
| 17251 @Experimental // nonstandard | 17251 @Experimental() // nonstandard |
| 17252 void cancel() native; | 17252 void cancel() native; |
| 17253 | 17253 |
| 17254 @DomName('Notification.close') | 17254 @DomName('Notification.close') |
| 17255 @DocsEditable | 17255 @DocsEditable() |
| 17256 void close() native; | 17256 void close() native; |
| 17257 | 17257 |
| 17258 @DomName('Notification.dispatchEvent') | 17258 @DomName('Notification.dispatchEvent') |
| 17259 @DocsEditable | 17259 @DocsEditable() |
| 17260 bool dispatchEvent(Event evt) native; | 17260 bool dispatchEvent(Event evt) native; |
| 17261 | 17261 |
| 17262 @JSName('removeEventListener') | 17262 @JSName('removeEventListener') |
| 17263 @DomName('Notification.removeEventListener') | 17263 @DomName('Notification.removeEventListener') |
| 17264 @DocsEditable | 17264 @DocsEditable() |
| 17265 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 17265 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 17266 | 17266 |
| 17267 @JSName('requestPermission') | 17267 @JSName('requestPermission') |
| 17268 @DomName('Notification.requestPermission') | 17268 @DomName('Notification.requestPermission') |
| 17269 @DocsEditable | 17269 @DocsEditable() |
| 17270 static void _requestPermission([_NotificationPermissionCallback callback]) nat
ive; | 17270 static void _requestPermission([_NotificationPermissionCallback callback]) nat
ive; |
| 17271 | 17271 |
| 17272 @JSName('requestPermission') | 17272 @JSName('requestPermission') |
| 17273 @DomName('Notification.requestPermission') | 17273 @DomName('Notification.requestPermission') |
| 17274 @DocsEditable | 17274 @DocsEditable() |
| 17275 static Future<String> requestPermission() { | 17275 static Future<String> requestPermission() { |
| 17276 var completer = new Completer<String>(); | 17276 var completer = new Completer<String>(); |
| 17277 _requestPermission( | 17277 _requestPermission( |
| 17278 (value) { completer.complete(value); }); | 17278 (value) { completer.complete(value); }); |
| 17279 return completer.future; | 17279 return completer.future; |
| 17280 } | 17280 } |
| 17281 | 17281 |
| 17282 @DomName('Notification.show') | 17282 @DomName('Notification.show') |
| 17283 @DocsEditable | 17283 @DocsEditable() |
| 17284 @Experimental // nonstandard | 17284 @Experimental() // nonstandard |
| 17285 void show() native; | 17285 void show() native; |
| 17286 | 17286 |
| 17287 @DomName('Notification.onclick') | 17287 @DomName('Notification.onclick') |
| 17288 @DocsEditable | 17288 @DocsEditable() |
| 17289 Stream<Event> get onClick => clickEvent.forTarget(this); | 17289 Stream<Event> get onClick => clickEvent.forTarget(this); |
| 17290 | 17290 |
| 17291 @DomName('Notification.onclose') | 17291 @DomName('Notification.onclose') |
| 17292 @DocsEditable | 17292 @DocsEditable() |
| 17293 Stream<Event> get onClose => closeEvent.forTarget(this); | 17293 Stream<Event> get onClose => closeEvent.forTarget(this); |
| 17294 | 17294 |
| 17295 @DomName('Notification.ondisplay') | 17295 @DomName('Notification.ondisplay') |
| 17296 @DocsEditable | 17296 @DocsEditable() |
| 17297 @Experimental // nonstandard | 17297 @Experimental() // nonstandard |
| 17298 Stream<Event> get onDisplay => displayEvent.forTarget(this); | 17298 Stream<Event> get onDisplay => displayEvent.forTarget(this); |
| 17299 | 17299 |
| 17300 @DomName('Notification.onerror') | 17300 @DomName('Notification.onerror') |
| 17301 @DocsEditable | 17301 @DocsEditable() |
| 17302 Stream<Event> get onError => errorEvent.forTarget(this); | 17302 Stream<Event> get onError => errorEvent.forTarget(this); |
| 17303 | 17303 |
| 17304 @DomName('Notification.onshow') | 17304 @DomName('Notification.onshow') |
| 17305 @DocsEditable | 17305 @DocsEditable() |
| 17306 Stream<Event> get onShow => showEvent.forTarget(this); | 17306 Stream<Event> get onShow => showEvent.forTarget(this); |
| 17307 | 17307 |
| 17308 } | 17308 } |
| 17309 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17309 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17310 // for details. All rights reserved. Use of this source code is governed by a | 17310 // for details. All rights reserved. Use of this source code is governed by a |
| 17311 // BSD-style license that can be found in the LICENSE file. | 17311 // BSD-style license that can be found in the LICENSE file. |
| 17312 | 17312 |
| 17313 | 17313 |
| 17314 @DocsEditable | 17314 @DocsEditable() |
| 17315 @DomName('NotificationCenter') | 17315 @DomName('NotificationCenter') |
| 17316 @SupportedBrowser(SupportedBrowser.CHROME) | 17316 @SupportedBrowser(SupportedBrowser.CHROME) |
| 17317 @SupportedBrowser(SupportedBrowser.SAFARI) | 17317 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 17318 @Experimental | 17318 @Experimental() |
| 17319 // http://www.w3.org/TR/notifications/#showing-a-notification | 17319 // http://www.w3.org/TR/notifications/#showing-a-notification |
| 17320 @deprecated // deprecated | 17320 @deprecated // deprecated |
| 17321 class NotificationCenter extends Interceptor native "NotificationCenter" { | 17321 class NotificationCenter extends Interceptor native "NotificationCenter" { |
| 17322 | 17322 |
| 17323 /// Checks if this type is supported on the current platform. | 17323 /// Checks if this type is supported on the current platform. |
| 17324 static bool get supported => JS('bool', '!!(window.webkitNotifications)'); | 17324 static bool get supported => JS('bool', '!!(window.webkitNotifications)'); |
| 17325 | 17325 |
| 17326 @DomName('NotificationCenter.checkPermission') | 17326 @DomName('NotificationCenter.checkPermission') |
| 17327 @DocsEditable | 17327 @DocsEditable() |
| 17328 int checkPermission() native; | 17328 int checkPermission() native; |
| 17329 | 17329 |
| 17330 @JSName('createHTMLNotification') | 17330 @JSName('createHTMLNotification') |
| 17331 @DomName('NotificationCenter.createHTMLNotification') | 17331 @DomName('NotificationCenter.createHTMLNotification') |
| 17332 @DocsEditable | 17332 @DocsEditable() |
| 17333 Notification createHtmlNotification(String url) native; | 17333 Notification createHtmlNotification(String url) native; |
| 17334 | 17334 |
| 17335 @DomName('NotificationCenter.createNotification') | 17335 @DomName('NotificationCenter.createNotification') |
| 17336 @DocsEditable | 17336 @DocsEditable() |
| 17337 Notification createNotification(String iconUrl, String title, String body) nat
ive; | 17337 Notification createNotification(String iconUrl, String title, String body) nat
ive; |
| 17338 | 17338 |
| 17339 @JSName('requestPermission') | 17339 @JSName('requestPermission') |
| 17340 @DomName('NotificationCenter.requestPermission') | 17340 @DomName('NotificationCenter.requestPermission') |
| 17341 @DocsEditable | 17341 @DocsEditable() |
| 17342 void _requestPermission([VoidCallback callback]) native; | 17342 void _requestPermission([VoidCallback callback]) native; |
| 17343 | 17343 |
| 17344 @JSName('requestPermission') | 17344 @JSName('requestPermission') |
| 17345 @DomName('NotificationCenter.requestPermission') | 17345 @DomName('NotificationCenter.requestPermission') |
| 17346 @DocsEditable | 17346 @DocsEditable() |
| 17347 Future requestPermission() { | 17347 Future requestPermission() { |
| 17348 var completer = new Completer(); | 17348 var completer = new Completer(); |
| 17349 _requestPermission( | 17349 _requestPermission( |
| 17350 () { completer.complete(); }); | 17350 () { completer.complete(); }); |
| 17351 return completer.future; | 17351 return completer.future; |
| 17352 } | 17352 } |
| 17353 } | 17353 } |
| 17354 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17354 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17355 // for details. All rights reserved. Use of this source code is governed by a | 17355 // for details. All rights reserved. Use of this source code is governed by a |
| 17356 // BSD-style license that can be found in the LICENSE file. | 17356 // BSD-style license that can be found in the LICENSE file. |
| 17357 | 17357 |
| 17358 // WARNING: Do not edit - generated code. | 17358 // WARNING: Do not edit - generated code. |
| 17359 | 17359 |
| 17360 | 17360 |
| 17361 @DomName('NotificationPermissionCallback') | 17361 @DomName('NotificationPermissionCallback') |
| 17362 // http://www.w3.org/TR/notifications/#notificationpermissioncallback | 17362 // http://www.w3.org/TR/notifications/#notificationpermissioncallback |
| 17363 @Experimental | 17363 @Experimental() |
| 17364 typedef void _NotificationPermissionCallback(String permission); | 17364 typedef void _NotificationPermissionCallback(String permission); |
| 17365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17365 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17366 // for details. All rights reserved. Use of this source code is governed by a | 17366 // for details. All rights reserved. Use of this source code is governed by a |
| 17367 // BSD-style license that can be found in the LICENSE file. | 17367 // BSD-style license that can be found in the LICENSE file. |
| 17368 | 17368 |
| 17369 | 17369 |
| 17370 @DocsEditable | 17370 @DocsEditable() |
| 17371 @DomName('HTMLOListElement') | 17371 @DomName('HTMLOListElement') |
| 17372 class OListElement extends _HTMLElement native "HTMLOListElement" { | 17372 class OListElement extends _HTMLElement native "HTMLOListElement" { |
| 17373 // To suppress missing implicit constructor warnings. | 17373 // To suppress missing implicit constructor warnings. |
| 17374 factory OListElement._() { throw new UnsupportedError("Not supported"); } | 17374 factory OListElement._() { throw new UnsupportedError("Not supported"); } |
| 17375 | 17375 |
| 17376 @DomName('HTMLOListElement.HTMLOListElement') | 17376 @DomName('HTMLOListElement.HTMLOListElement') |
| 17377 @DocsEditable | 17377 @DocsEditable() |
| 17378 factory OListElement() => document.$dom_createElement("ol"); | 17378 factory OListElement() => document.$dom_createElement("ol"); |
| 17379 | 17379 |
| 17380 @DomName('HTMLOListElement.reversed') | 17380 @DomName('HTMLOListElement.reversed') |
| 17381 @DocsEditable | 17381 @DocsEditable() |
| 17382 bool reversed; | 17382 bool reversed; |
| 17383 | 17383 |
| 17384 @DomName('HTMLOListElement.start') | 17384 @DomName('HTMLOListElement.start') |
| 17385 @DocsEditable | 17385 @DocsEditable() |
| 17386 int start; | 17386 int start; |
| 17387 | 17387 |
| 17388 @DomName('HTMLOListElement.type') | 17388 @DomName('HTMLOListElement.type') |
| 17389 @DocsEditable | 17389 @DocsEditable() |
| 17390 String type; | 17390 String type; |
| 17391 } | 17391 } |
| 17392 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17392 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17393 // for details. All rights reserved. Use of this source code is governed by a | 17393 // for details. All rights reserved. Use of this source code is governed by a |
| 17394 // BSD-style license that can be found in the LICENSE file. | 17394 // BSD-style license that can be found in the LICENSE file. |
| 17395 | 17395 |
| 17396 | 17396 |
| 17397 @DocsEditable | 17397 @DocsEditable() |
| 17398 @DomName('HTMLObjectElement') | 17398 @DomName('HTMLObjectElement') |
| 17399 @SupportedBrowser(SupportedBrowser.CHROME) | 17399 @SupportedBrowser(SupportedBrowser.CHROME) |
| 17400 @SupportedBrowser(SupportedBrowser.IE) | 17400 @SupportedBrowser(SupportedBrowser.IE) |
| 17401 @SupportedBrowser(SupportedBrowser.SAFARI) | 17401 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 17402 @Unstable | 17402 @Unstable() |
| 17403 class ObjectElement extends _HTMLElement native "HTMLObjectElement" { | 17403 class ObjectElement extends _HTMLElement native "HTMLObjectElement" { |
| 17404 // To suppress missing implicit constructor warnings. | 17404 // To suppress missing implicit constructor warnings. |
| 17405 factory ObjectElement._() { throw new UnsupportedError("Not supported"); } | 17405 factory ObjectElement._() { throw new UnsupportedError("Not supported"); } |
| 17406 | 17406 |
| 17407 @DomName('HTMLObjectElement.HTMLObjectElement') | 17407 @DomName('HTMLObjectElement.HTMLObjectElement') |
| 17408 @DocsEditable | 17408 @DocsEditable() |
| 17409 factory ObjectElement() => document.$dom_createElement("object"); | 17409 factory ObjectElement() => document.$dom_createElement("object"); |
| 17410 | 17410 |
| 17411 /// Checks if this type is supported on the current platform. | 17411 /// Checks if this type is supported on the current platform. |
| 17412 static bool get supported => Element.isTagSupported('object'); | 17412 static bool get supported => Element.isTagSupported('object'); |
| 17413 | 17413 |
| 17414 @DomName('HTMLObjectElement.code') | 17414 @DomName('HTMLObjectElement.code') |
| 17415 @DocsEditable | 17415 @DocsEditable() |
| 17416 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLObjectElement-partial | 17416 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLObjectElement-partial |
| 17417 @deprecated // deprecated | 17417 @deprecated // deprecated |
| 17418 String code; | 17418 String code; |
| 17419 | 17419 |
| 17420 @DomName('HTMLObjectElement.data') | 17420 @DomName('HTMLObjectElement.data') |
| 17421 @DocsEditable | 17421 @DocsEditable() |
| 17422 String data; | 17422 String data; |
| 17423 | 17423 |
| 17424 @DomName('HTMLObjectElement.form') | 17424 @DomName('HTMLObjectElement.form') |
| 17425 @DocsEditable | 17425 @DocsEditable() |
| 17426 final FormElement form; | 17426 final FormElement form; |
| 17427 | 17427 |
| 17428 @DomName('HTMLObjectElement.height') | 17428 @DomName('HTMLObjectElement.height') |
| 17429 @DocsEditable | 17429 @DocsEditable() |
| 17430 String height; | 17430 String height; |
| 17431 | 17431 |
| 17432 @DomName('HTMLObjectElement.name') | 17432 @DomName('HTMLObjectElement.name') |
| 17433 @DocsEditable | 17433 @DocsEditable() |
| 17434 String name; | 17434 String name; |
| 17435 | 17435 |
| 17436 @DomName('HTMLObjectElement.type') | 17436 @DomName('HTMLObjectElement.type') |
| 17437 @DocsEditable | 17437 @DocsEditable() |
| 17438 String type; | 17438 String type; |
| 17439 | 17439 |
| 17440 @DomName('HTMLObjectElement.useMap') | 17440 @DomName('HTMLObjectElement.useMap') |
| 17441 @DocsEditable | 17441 @DocsEditable() |
| 17442 String useMap; | 17442 String useMap; |
| 17443 | 17443 |
| 17444 @DomName('HTMLObjectElement.validationMessage') | 17444 @DomName('HTMLObjectElement.validationMessage') |
| 17445 @DocsEditable | 17445 @DocsEditable() |
| 17446 final String validationMessage; | 17446 final String validationMessage; |
| 17447 | 17447 |
| 17448 @DomName('HTMLObjectElement.validity') | 17448 @DomName('HTMLObjectElement.validity') |
| 17449 @DocsEditable | 17449 @DocsEditable() |
| 17450 final ValidityState validity; | 17450 final ValidityState validity; |
| 17451 | 17451 |
| 17452 @DomName('HTMLObjectElement.width') | 17452 @DomName('HTMLObjectElement.width') |
| 17453 @DocsEditable | 17453 @DocsEditable() |
| 17454 String width; | 17454 String width; |
| 17455 | 17455 |
| 17456 @DomName('HTMLObjectElement.willValidate') | 17456 @DomName('HTMLObjectElement.willValidate') |
| 17457 @DocsEditable | 17457 @DocsEditable() |
| 17458 final bool willValidate; | 17458 final bool willValidate; |
| 17459 | 17459 |
| 17460 @DomName('HTMLObjectElement.__getter__') | 17460 @DomName('HTMLObjectElement.__getter__') |
| 17461 @DocsEditable | 17461 @DocsEditable() |
| 17462 bool __getter__(index_OR_name) native; | 17462 bool __getter__(index_OR_name) native; |
| 17463 | 17463 |
| 17464 @DomName('HTMLObjectElement.__setter__') | 17464 @DomName('HTMLObjectElement.__setter__') |
| 17465 @DocsEditable | 17465 @DocsEditable() |
| 17466 void __setter__(index_OR_name, Node value) native; | 17466 void __setter__(index_OR_name, Node value) native; |
| 17467 | 17467 |
| 17468 @DomName('HTMLObjectElement.checkValidity') | 17468 @DomName('HTMLObjectElement.checkValidity') |
| 17469 @DocsEditable | 17469 @DocsEditable() |
| 17470 bool checkValidity() native; | 17470 bool checkValidity() native; |
| 17471 | 17471 |
| 17472 @DomName('HTMLObjectElement.setCustomValidity') | 17472 @DomName('HTMLObjectElement.setCustomValidity') |
| 17473 @DocsEditable | 17473 @DocsEditable() |
| 17474 void setCustomValidity(String error) native; | 17474 void setCustomValidity(String error) native; |
| 17475 } | 17475 } |
| 17476 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17476 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17477 // for details. All rights reserved. Use of this source code is governed by a | 17477 // for details. All rights reserved. Use of this source code is governed by a |
| 17478 // BSD-style license that can be found in the LICENSE file. | 17478 // BSD-style license that can be found in the LICENSE file. |
| 17479 | 17479 |
| 17480 | 17480 |
| 17481 @DocsEditable | 17481 @DocsEditable() |
| 17482 @DomName('HTMLOptGroupElement') | 17482 @DomName('HTMLOptGroupElement') |
| 17483 class OptGroupElement extends _HTMLElement native "HTMLOptGroupElement" { | 17483 class OptGroupElement extends _HTMLElement native "HTMLOptGroupElement" { |
| 17484 // To suppress missing implicit constructor warnings. | 17484 // To suppress missing implicit constructor warnings. |
| 17485 factory OptGroupElement._() { throw new UnsupportedError("Not supported"); } | 17485 factory OptGroupElement._() { throw new UnsupportedError("Not supported"); } |
| 17486 | 17486 |
| 17487 @DomName('HTMLOptGroupElement.HTMLOptGroupElement') | 17487 @DomName('HTMLOptGroupElement.HTMLOptGroupElement') |
| 17488 @DocsEditable | 17488 @DocsEditable() |
| 17489 factory OptGroupElement() => document.$dom_createElement("optgroup"); | 17489 factory OptGroupElement() => document.$dom_createElement("optgroup"); |
| 17490 | 17490 |
| 17491 @DomName('HTMLOptGroupElement.disabled') | 17491 @DomName('HTMLOptGroupElement.disabled') |
| 17492 @DocsEditable | 17492 @DocsEditable() |
| 17493 bool disabled; | 17493 bool disabled; |
| 17494 | 17494 |
| 17495 @DomName('HTMLOptGroupElement.label') | 17495 @DomName('HTMLOptGroupElement.label') |
| 17496 @DocsEditable | 17496 @DocsEditable() |
| 17497 String label; | 17497 String label; |
| 17498 } | 17498 } |
| 17499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17499 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17500 // for details. All rights reserved. Use of this source code is governed by a | 17500 // for details. All rights reserved. Use of this source code is governed by a |
| 17501 // BSD-style license that can be found in the LICENSE file. | 17501 // BSD-style license that can be found in the LICENSE file. |
| 17502 | 17502 |
| 17503 | 17503 |
| 17504 @DocsEditable | 17504 @DocsEditable() |
| 17505 @DomName('HTMLOptionElement') | 17505 @DomName('HTMLOptionElement') |
| 17506 class OptionElement extends _HTMLElement native "HTMLOptionElement" { | 17506 class OptionElement extends _HTMLElement native "HTMLOptionElement" { |
| 17507 // To suppress missing implicit constructor warnings. | 17507 // To suppress missing implicit constructor warnings. |
| 17508 factory OptionElement._() { throw new UnsupportedError("Not supported"); } | 17508 factory OptionElement._() { throw new UnsupportedError("Not supported"); } |
| 17509 | 17509 |
| 17510 @DomName('HTMLOptionElement.HTMLOptionElement') | 17510 @DomName('HTMLOptionElement.HTMLOptionElement') |
| 17511 @DocsEditable | 17511 @DocsEditable() |
| 17512 factory OptionElement([String data, String value, bool defaultSelected, bool s
elected]) { | 17512 factory OptionElement([String data, String value, bool defaultSelected, bool s
elected]) { |
| 17513 if (selected != null) { | 17513 if (selected != null) { |
| 17514 return OptionElement._create_1(data, value, defaultSelected, selected); | 17514 return OptionElement._create_1(data, value, defaultSelected, selected); |
| 17515 } | 17515 } |
| 17516 if (defaultSelected != null) { | 17516 if (defaultSelected != null) { |
| 17517 return OptionElement._create_2(data, value, defaultSelected); | 17517 return OptionElement._create_2(data, value, defaultSelected); |
| 17518 } | 17518 } |
| 17519 if (value != null) { | 17519 if (value != null) { |
| 17520 return OptionElement._create_3(data, value); | 17520 return OptionElement._create_3(data, value); |
| 17521 } | 17521 } |
| 17522 if (data != null) { | 17522 if (data != null) { |
| 17523 return OptionElement._create_4(data); | 17523 return OptionElement._create_4(data); |
| 17524 } | 17524 } |
| 17525 return OptionElement._create_5(); | 17525 return OptionElement._create_5(); |
| 17526 } | 17526 } |
| 17527 static OptionElement _create_1(data, value, defaultSelected, selected) => JS('
OptionElement', 'new Option(#,#,#,#)', data, value, defaultSelected, selected); | 17527 static OptionElement _create_1(data, value, defaultSelected, selected) => JS('
OptionElement', 'new Option(#,#,#,#)', data, value, defaultSelected, selected); |
| 17528 static OptionElement _create_2(data, value, defaultSelected) => JS('OptionElem
ent', 'new Option(#,#,#)', data, value, defaultSelected); | 17528 static OptionElement _create_2(data, value, defaultSelected) => JS('OptionElem
ent', 'new Option(#,#,#)', data, value, defaultSelected); |
| 17529 static OptionElement _create_3(data, value) => JS('OptionElement', 'new Option
(#,#)', data, value); | 17529 static OptionElement _create_3(data, value) => JS('OptionElement', 'new Option
(#,#)', data, value); |
| 17530 static OptionElement _create_4(data) => JS('OptionElement', 'new Option(#)', d
ata); | 17530 static OptionElement _create_4(data) => JS('OptionElement', 'new Option(#)', d
ata); |
| 17531 static OptionElement _create_5() => JS('OptionElement', 'new Option()'); | 17531 static OptionElement _create_5() => JS('OptionElement', 'new Option()'); |
| 17532 | 17532 |
| 17533 @DomName('HTMLOptionElement.defaultSelected') | 17533 @DomName('HTMLOptionElement.defaultSelected') |
| 17534 @DocsEditable | 17534 @DocsEditable() |
| 17535 bool defaultSelected; | 17535 bool defaultSelected; |
| 17536 | 17536 |
| 17537 @DomName('HTMLOptionElement.disabled') | 17537 @DomName('HTMLOptionElement.disabled') |
| 17538 @DocsEditable | 17538 @DocsEditable() |
| 17539 bool disabled; | 17539 bool disabled; |
| 17540 | 17540 |
| 17541 @DomName('HTMLOptionElement.form') | 17541 @DomName('HTMLOptionElement.form') |
| 17542 @DocsEditable | 17542 @DocsEditable() |
| 17543 final FormElement form; | 17543 final FormElement form; |
| 17544 | 17544 |
| 17545 @DomName('HTMLOptionElement.index') | 17545 @DomName('HTMLOptionElement.index') |
| 17546 @DocsEditable | 17546 @DocsEditable() |
| 17547 final int index; | 17547 final int index; |
| 17548 | 17548 |
| 17549 @DomName('HTMLOptionElement.label') | 17549 @DomName('HTMLOptionElement.label') |
| 17550 @DocsEditable | 17550 @DocsEditable() |
| 17551 String label; | 17551 String label; |
| 17552 | 17552 |
| 17553 @DomName('HTMLOptionElement.selected') | 17553 @DomName('HTMLOptionElement.selected') |
| 17554 @DocsEditable | 17554 @DocsEditable() |
| 17555 bool selected; | 17555 bool selected; |
| 17556 | 17556 |
| 17557 @DomName('HTMLOptionElement.value') | 17557 @DomName('HTMLOptionElement.value') |
| 17558 @DocsEditable | 17558 @DocsEditable() |
| 17559 String value; | 17559 String value; |
| 17560 } | 17560 } |
| 17561 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17561 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17562 // for details. All rights reserved. Use of this source code is governed by a | 17562 // for details. All rights reserved. Use of this source code is governed by a |
| 17563 // BSD-style license that can be found in the LICENSE file. | 17563 // BSD-style license that can be found in the LICENSE file. |
| 17564 | 17564 |
| 17565 | 17565 |
| 17566 @DocsEditable | 17566 @DocsEditable() |
| 17567 @DomName('HTMLOutputElement') | 17567 @DomName('HTMLOutputElement') |
| 17568 @SupportedBrowser(SupportedBrowser.CHROME) | 17568 @SupportedBrowser(SupportedBrowser.CHROME) |
| 17569 @SupportedBrowser(SupportedBrowser.FIREFOX) | 17569 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 17570 @SupportedBrowser(SupportedBrowser.SAFARI) | 17570 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 17571 class OutputElement extends _HTMLElement native "HTMLOutputElement" { | 17571 class OutputElement extends _HTMLElement native "HTMLOutputElement" { |
| 17572 // To suppress missing implicit constructor warnings. | 17572 // To suppress missing implicit constructor warnings. |
| 17573 factory OutputElement._() { throw new UnsupportedError("Not supported"); } | 17573 factory OutputElement._() { throw new UnsupportedError("Not supported"); } |
| 17574 | 17574 |
| 17575 @DomName('HTMLOutputElement.HTMLOutputElement') | 17575 @DomName('HTMLOutputElement.HTMLOutputElement') |
| 17576 @DocsEditable | 17576 @DocsEditable() |
| 17577 factory OutputElement() => document.$dom_createElement("output"); | 17577 factory OutputElement() => document.$dom_createElement("output"); |
| 17578 | 17578 |
| 17579 /// Checks if this type is supported on the current platform. | 17579 /// Checks if this type is supported on the current platform. |
| 17580 static bool get supported => Element.isTagSupported('output'); | 17580 static bool get supported => Element.isTagSupported('output'); |
| 17581 | 17581 |
| 17582 @DomName('HTMLOutputElement.defaultValue') | 17582 @DomName('HTMLOutputElement.defaultValue') |
| 17583 @DocsEditable | 17583 @DocsEditable() |
| 17584 String defaultValue; | 17584 String defaultValue; |
| 17585 | 17585 |
| 17586 @DomName('HTMLOutputElement.form') | 17586 @DomName('HTMLOutputElement.form') |
| 17587 @DocsEditable | 17587 @DocsEditable() |
| 17588 final FormElement form; | 17588 final FormElement form; |
| 17589 | 17589 |
| 17590 @DomName('HTMLOutputElement.htmlFor') | 17590 @DomName('HTMLOutputElement.htmlFor') |
| 17591 @DocsEditable | 17591 @DocsEditable() |
| 17592 final DomSettableTokenList htmlFor; | 17592 final DomSettableTokenList htmlFor; |
| 17593 | 17593 |
| 17594 @DomName('HTMLOutputElement.labels') | 17594 @DomName('HTMLOutputElement.labels') |
| 17595 @DocsEditable | 17595 @DocsEditable() |
| 17596 @Unstable | 17596 @Unstable() |
| 17597 @Returns('NodeList') | 17597 @Returns('NodeList') |
| 17598 @Creates('NodeList') | 17598 @Creates('NodeList') |
| 17599 final List<Node> labels; | 17599 final List<Node> labels; |
| 17600 | 17600 |
| 17601 @DomName('HTMLOutputElement.name') | 17601 @DomName('HTMLOutputElement.name') |
| 17602 @DocsEditable | 17602 @DocsEditable() |
| 17603 String name; | 17603 String name; |
| 17604 | 17604 |
| 17605 @DomName('HTMLOutputElement.type') | 17605 @DomName('HTMLOutputElement.type') |
| 17606 @DocsEditable | 17606 @DocsEditable() |
| 17607 final String type; | 17607 final String type; |
| 17608 | 17608 |
| 17609 @DomName('HTMLOutputElement.validationMessage') | 17609 @DomName('HTMLOutputElement.validationMessage') |
| 17610 @DocsEditable | 17610 @DocsEditable() |
| 17611 final String validationMessage; | 17611 final String validationMessage; |
| 17612 | 17612 |
| 17613 @DomName('HTMLOutputElement.validity') | 17613 @DomName('HTMLOutputElement.validity') |
| 17614 @DocsEditable | 17614 @DocsEditable() |
| 17615 final ValidityState validity; | 17615 final ValidityState validity; |
| 17616 | 17616 |
| 17617 @DomName('HTMLOutputElement.value') | 17617 @DomName('HTMLOutputElement.value') |
| 17618 @DocsEditable | 17618 @DocsEditable() |
| 17619 String value; | 17619 String value; |
| 17620 | 17620 |
| 17621 @DomName('HTMLOutputElement.willValidate') | 17621 @DomName('HTMLOutputElement.willValidate') |
| 17622 @DocsEditable | 17622 @DocsEditable() |
| 17623 final bool willValidate; | 17623 final bool willValidate; |
| 17624 | 17624 |
| 17625 @DomName('HTMLOutputElement.checkValidity') | 17625 @DomName('HTMLOutputElement.checkValidity') |
| 17626 @DocsEditable | 17626 @DocsEditable() |
| 17627 bool checkValidity() native; | 17627 bool checkValidity() native; |
| 17628 | 17628 |
| 17629 @DomName('HTMLOutputElement.setCustomValidity') | 17629 @DomName('HTMLOutputElement.setCustomValidity') |
| 17630 @DocsEditable | 17630 @DocsEditable() |
| 17631 void setCustomValidity(String error) native; | 17631 void setCustomValidity(String error) native; |
| 17632 } | 17632 } |
| 17633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17633 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17634 // for details. All rights reserved. Use of this source code is governed by a | 17634 // for details. All rights reserved. Use of this source code is governed by a |
| 17635 // BSD-style license that can be found in the LICENSE file. | 17635 // BSD-style license that can be found in the LICENSE file. |
| 17636 | 17636 |
| 17637 | 17637 |
| 17638 @DocsEditable | 17638 @DocsEditable() |
| 17639 @DomName('OverflowEvent') | 17639 @DomName('OverflowEvent') |
| 17640 @Experimental // nonstandard | 17640 @Experimental() // nonstandard |
| 17641 class OverflowEvent extends Event native "OverflowEvent" { | 17641 class OverflowEvent extends Event native "OverflowEvent" { |
| 17642 // To suppress missing implicit constructor warnings. | 17642 // To suppress missing implicit constructor warnings. |
| 17643 factory OverflowEvent._() { throw new UnsupportedError("Not supported"); } | 17643 factory OverflowEvent._() { throw new UnsupportedError("Not supported"); } |
| 17644 | 17644 |
| 17645 @DomName('OverflowEvent.BOTH') | 17645 @DomName('OverflowEvent.BOTH') |
| 17646 @DocsEditable | 17646 @DocsEditable() |
| 17647 static const int BOTH = 2; | 17647 static const int BOTH = 2; |
| 17648 | 17648 |
| 17649 @DomName('OverflowEvent.HORIZONTAL') | 17649 @DomName('OverflowEvent.HORIZONTAL') |
| 17650 @DocsEditable | 17650 @DocsEditable() |
| 17651 static const int HORIZONTAL = 0; | 17651 static const int HORIZONTAL = 0; |
| 17652 | 17652 |
| 17653 @DomName('OverflowEvent.VERTICAL') | 17653 @DomName('OverflowEvent.VERTICAL') |
| 17654 @DocsEditable | 17654 @DocsEditable() |
| 17655 static const int VERTICAL = 1; | 17655 static const int VERTICAL = 1; |
| 17656 | 17656 |
| 17657 @DomName('OverflowEvent.horizontalOverflow') | 17657 @DomName('OverflowEvent.horizontalOverflow') |
| 17658 @DocsEditable | 17658 @DocsEditable() |
| 17659 final bool horizontalOverflow; | 17659 final bool horizontalOverflow; |
| 17660 | 17660 |
| 17661 @DomName('OverflowEvent.orient') | 17661 @DomName('OverflowEvent.orient') |
| 17662 @DocsEditable | 17662 @DocsEditable() |
| 17663 final int orient; | 17663 final int orient; |
| 17664 | 17664 |
| 17665 @DomName('OverflowEvent.verticalOverflow') | 17665 @DomName('OverflowEvent.verticalOverflow') |
| 17666 @DocsEditable | 17666 @DocsEditable() |
| 17667 final bool verticalOverflow; | 17667 final bool verticalOverflow; |
| 17668 } | 17668 } |
| 17669 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17669 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17670 // for details. All rights reserved. Use of this source code is governed by a | 17670 // for details. All rights reserved. Use of this source code is governed by a |
| 17671 // BSD-style license that can be found in the LICENSE file. | 17671 // BSD-style license that can be found in the LICENSE file. |
| 17672 | 17672 |
| 17673 | 17673 |
| 17674 @DocsEditable | 17674 @DocsEditable() |
| 17675 @DomName('PageTransitionEvent') | 17675 @DomName('PageTransitionEvent') |
| 17676 // http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#page
transitionevent | 17676 // http://www.whatwg.org/specs/web-apps/current-work/multipage/history.html#page
transitionevent |
| 17677 @Experimental | 17677 @Experimental() |
| 17678 class PageTransitionEvent extends Event native "PageTransitionEvent" { | 17678 class PageTransitionEvent extends Event native "PageTransitionEvent" { |
| 17679 // To suppress missing implicit constructor warnings. | 17679 // To suppress missing implicit constructor warnings. |
| 17680 factory PageTransitionEvent._() { throw new UnsupportedError("Not supported");
} | 17680 factory PageTransitionEvent._() { throw new UnsupportedError("Not supported");
} |
| 17681 | 17681 |
| 17682 @DomName('PageTransitionEvent.persisted') | 17682 @DomName('PageTransitionEvent.persisted') |
| 17683 @DocsEditable | 17683 @DocsEditable() |
| 17684 final bool persisted; | 17684 final bool persisted; |
| 17685 } | 17685 } |
| 17686 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17686 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17687 // for details. All rights reserved. Use of this source code is governed by a | 17687 // for details. All rights reserved. Use of this source code is governed by a |
| 17688 // BSD-style license that can be found in the LICENSE file. | 17688 // BSD-style license that can be found in the LICENSE file. |
| 17689 | 17689 |
| 17690 | 17690 |
| 17691 @DocsEditable | 17691 @DocsEditable() |
| 17692 @DomName('HTMLParagraphElement') | 17692 @DomName('HTMLParagraphElement') |
| 17693 class ParagraphElement extends _HTMLElement native "HTMLParagraphElement" { | 17693 class ParagraphElement extends _HTMLElement native "HTMLParagraphElement" { |
| 17694 // To suppress missing implicit constructor warnings. | 17694 // To suppress missing implicit constructor warnings. |
| 17695 factory ParagraphElement._() { throw new UnsupportedError("Not supported"); } | 17695 factory ParagraphElement._() { throw new UnsupportedError("Not supported"); } |
| 17696 | 17696 |
| 17697 @DomName('HTMLParagraphElement.HTMLParagraphElement') | 17697 @DomName('HTMLParagraphElement.HTMLParagraphElement') |
| 17698 @DocsEditable | 17698 @DocsEditable() |
| 17699 factory ParagraphElement() => document.$dom_createElement("p"); | 17699 factory ParagraphElement() => document.$dom_createElement("p"); |
| 17700 } | 17700 } |
| 17701 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17701 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17702 // for details. All rights reserved. Use of this source code is governed by a | 17702 // for details. All rights reserved. Use of this source code is governed by a |
| 17703 // BSD-style license that can be found in the LICENSE file. | 17703 // BSD-style license that can be found in the LICENSE file. |
| 17704 | 17704 |
| 17705 | 17705 |
| 17706 @DocsEditable | 17706 @DocsEditable() |
| 17707 @DomName('HTMLParamElement') | 17707 @DomName('HTMLParamElement') |
| 17708 @Unstable | 17708 @Unstable() |
| 17709 class ParamElement extends _HTMLElement native "HTMLParamElement" { | 17709 class ParamElement extends _HTMLElement native "HTMLParamElement" { |
| 17710 // To suppress missing implicit constructor warnings. | 17710 // To suppress missing implicit constructor warnings. |
| 17711 factory ParamElement._() { throw new UnsupportedError("Not supported"); } | 17711 factory ParamElement._() { throw new UnsupportedError("Not supported"); } |
| 17712 | 17712 |
| 17713 @DomName('HTMLParamElement.HTMLParamElement') | 17713 @DomName('HTMLParamElement.HTMLParamElement') |
| 17714 @DocsEditable | 17714 @DocsEditable() |
| 17715 factory ParamElement() => document.$dom_createElement("param"); | 17715 factory ParamElement() => document.$dom_createElement("param"); |
| 17716 | 17716 |
| 17717 @DomName('HTMLParamElement.name') | 17717 @DomName('HTMLParamElement.name') |
| 17718 @DocsEditable | 17718 @DocsEditable() |
| 17719 String name; | 17719 String name; |
| 17720 | 17720 |
| 17721 @DomName('HTMLParamElement.value') | 17721 @DomName('HTMLParamElement.value') |
| 17722 @DocsEditable | 17722 @DocsEditable() |
| 17723 String value; | 17723 String value; |
| 17724 } | 17724 } |
| 17725 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17725 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17726 // for details. All rights reserved. Use of this source code is governed by a | 17726 // for details. All rights reserved. Use of this source code is governed by a |
| 17727 // BSD-style license that can be found in the LICENSE file. | 17727 // BSD-style license that can be found in the LICENSE file. |
| 17728 | 17728 |
| 17729 | 17729 |
| 17730 @DocsEditable | 17730 @DocsEditable() |
| 17731 @DomName('Path') | 17731 @DomName('Path') |
| 17732 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-elemen
t.html#path-objects | 17732 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-canvas-elemen
t.html#path-objects |
| 17733 @Experimental | 17733 @Experimental() |
| 17734 class Path extends Interceptor native "Path" { | 17734 class Path extends Interceptor native "Path" { |
| 17735 | 17735 |
| 17736 @DomName('Path.Path') | 17736 @DomName('Path.Path') |
| 17737 @DocsEditable | 17737 @DocsEditable() |
| 17738 factory Path([path_OR_text]) { | 17738 factory Path([path_OR_text]) { |
| 17739 if (path_OR_text == null) { | 17739 if (path_OR_text == null) { |
| 17740 return Path._create_1(); | 17740 return Path._create_1(); |
| 17741 } | 17741 } |
| 17742 if ((path_OR_text is Path || path_OR_text == null)) { | 17742 if ((path_OR_text is Path || path_OR_text == null)) { |
| 17743 return Path._create_2(path_OR_text); | 17743 return Path._create_2(path_OR_text); |
| 17744 } | 17744 } |
| 17745 if ((path_OR_text is String || path_OR_text == null)) { | 17745 if ((path_OR_text is String || path_OR_text == null)) { |
| 17746 return Path._create_3(path_OR_text); | 17746 return Path._create_3(path_OR_text); |
| 17747 } | 17747 } |
| 17748 throw new ArgumentError("Incorrect number or type of arguments"); | 17748 throw new ArgumentError("Incorrect number or type of arguments"); |
| 17749 } | 17749 } |
| 17750 static Path _create_1() => JS('Path', 'new Path()'); | 17750 static Path _create_1() => JS('Path', 'new Path()'); |
| 17751 static Path _create_2(path_OR_text) => JS('Path', 'new Path(#)', path_OR_text)
; | 17751 static Path _create_2(path_OR_text) => JS('Path', 'new Path(#)', path_OR_text)
; |
| 17752 static Path _create_3(path_OR_text) => JS('Path', 'new Path(#)', path_OR_text)
; | 17752 static Path _create_3(path_OR_text) => JS('Path', 'new Path(#)', path_OR_text)
; |
| 17753 | 17753 |
| 17754 @DomName('Path.arc') | 17754 @DomName('Path.arc') |
| 17755 @DocsEditable | 17755 @DocsEditable() |
| 17756 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise) native; | 17756 void arc(num x, num y, num radius, num startAngle, num endAngle, bool anticloc
kwise) native; |
| 17757 | 17757 |
| 17758 @DomName('Path.arcTo') | 17758 @DomName('Path.arcTo') |
| 17759 @DocsEditable | 17759 @DocsEditable() |
| 17760 void arcTo(num x1, num y1, num x2, num y2, num radius) native; | 17760 void arcTo(num x1, num y1, num x2, num y2, num radius) native; |
| 17761 | 17761 |
| 17762 @DomName('Path.bezierCurveTo') | 17762 @DomName('Path.bezierCurveTo') |
| 17763 @DocsEditable | 17763 @DocsEditable() |
| 17764 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; | 17764 void bezierCurveTo(num cp1x, num cp1y, num cp2x, num cp2y, num x, num y) nativ
e; |
| 17765 | 17765 |
| 17766 @DomName('Path.closePath') | 17766 @DomName('Path.closePath') |
| 17767 @DocsEditable | 17767 @DocsEditable() |
| 17768 void closePath() native; | 17768 void closePath() native; |
| 17769 | 17769 |
| 17770 @DomName('Path.lineTo') | 17770 @DomName('Path.lineTo') |
| 17771 @DocsEditable | 17771 @DocsEditable() |
| 17772 void lineTo(num x, num y) native; | 17772 void lineTo(num x, num y) native; |
| 17773 | 17773 |
| 17774 @DomName('Path.moveTo') | 17774 @DomName('Path.moveTo') |
| 17775 @DocsEditable | 17775 @DocsEditable() |
| 17776 void moveTo(num x, num y) native; | 17776 void moveTo(num x, num y) native; |
| 17777 | 17777 |
| 17778 @DomName('Path.quadraticCurveTo') | 17778 @DomName('Path.quadraticCurveTo') |
| 17779 @DocsEditable | 17779 @DocsEditable() |
| 17780 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; | 17780 void quadraticCurveTo(num cpx, num cpy, num x, num y) native; |
| 17781 | 17781 |
| 17782 @DomName('Path.rect') | 17782 @DomName('Path.rect') |
| 17783 @DocsEditable | 17783 @DocsEditable() |
| 17784 void rect(num x, num y, num width, num height) native; | 17784 void rect(num x, num y, num width, num height) native; |
| 17785 } | 17785 } |
| 17786 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17786 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17787 // for details. All rights reserved. Use of this source code is governed by a | 17787 // for details. All rights reserved. Use of this source code is governed by a |
| 17788 // BSD-style license that can be found in the LICENSE file. | 17788 // BSD-style license that can be found in the LICENSE file. |
| 17789 | 17789 |
| 17790 | 17790 |
| 17791 @DocsEditable | 17791 @DocsEditable() |
| 17792 @DomName('Performance') | 17792 @DomName('Performance') |
| 17793 @SupportedBrowser(SupportedBrowser.CHROME) | 17793 @SupportedBrowser(SupportedBrowser.CHROME) |
| 17794 @SupportedBrowser(SupportedBrowser.FIREFOX) | 17794 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 17795 @SupportedBrowser(SupportedBrowser.IE) | 17795 @SupportedBrowser(SupportedBrowser.IE) |
| 17796 class Performance extends EventTarget native "Performance" { | 17796 class Performance extends EventTarget native "Performance" { |
| 17797 // To suppress missing implicit constructor warnings. | 17797 // To suppress missing implicit constructor warnings. |
| 17798 factory Performance._() { throw new UnsupportedError("Not supported"); } | 17798 factory Performance._() { throw new UnsupportedError("Not supported"); } |
| 17799 | 17799 |
| 17800 @DomName('Performance.webkitresourcetimingbufferfullEvent') | 17800 @DomName('Performance.webkitresourcetimingbufferfullEvent') |
| 17801 @DocsEditable | 17801 @DocsEditable() |
| 17802 @SupportedBrowser(SupportedBrowser.CHROME) | 17802 @SupportedBrowser(SupportedBrowser.CHROME) |
| 17803 @SupportedBrowser(SupportedBrowser.SAFARI) | 17803 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 17804 @Experimental | 17804 @Experimental() |
| 17805 // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourceti
ming-methods | 17805 // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourceti
ming-methods |
| 17806 static const EventStreamProvider<Event> resourceTimingBufferFullEvent = const
EventStreamProvider<Event>('webkitresourcetimingbufferfull'); | 17806 static const EventStreamProvider<Event> resourceTimingBufferFullEvent = const
EventStreamProvider<Event>('webkitresourcetimingbufferfull'); |
| 17807 | 17807 |
| 17808 /// Checks if this type is supported on the current platform. | 17808 /// Checks if this type is supported on the current platform. |
| 17809 static bool get supported => JS('bool', '!!(window.performance)'); | 17809 static bool get supported => JS('bool', '!!(window.performance)'); |
| 17810 | 17810 |
| 17811 @DomName('Performance.memory') | 17811 @DomName('Performance.memory') |
| 17812 @DocsEditable | 17812 @DocsEditable() |
| 17813 @Experimental // nonstandard | 17813 @Experimental() // nonstandard |
| 17814 final MemoryInfo memory; | 17814 final MemoryInfo memory; |
| 17815 | 17815 |
| 17816 @DomName('Performance.navigation') | 17816 @DomName('Performance.navigation') |
| 17817 @DocsEditable | 17817 @DocsEditable() |
| 17818 final PerformanceNavigation navigation; | 17818 final PerformanceNavigation navigation; |
| 17819 | 17819 |
| 17820 @DomName('Performance.timing') | 17820 @DomName('Performance.timing') |
| 17821 @DocsEditable | 17821 @DocsEditable() |
| 17822 final PerformanceTiming timing; | 17822 final PerformanceTiming timing; |
| 17823 | 17823 |
| 17824 @DomName('Performance.clearMarks') | 17824 @DomName('Performance.clearMarks') |
| 17825 @DocsEditable | 17825 @DocsEditable() |
| 17826 // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/UserTiming/Overview.html#
extensions-performance-interface | 17826 // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/UserTiming/Overview.html#
extensions-performance-interface |
| 17827 @Experimental | 17827 @Experimental() |
| 17828 void clearMarks(String markName) native; | 17828 void clearMarks(String markName) native; |
| 17829 | 17829 |
| 17830 @DomName('Performance.clearMeasures') | 17830 @DomName('Performance.clearMeasures') |
| 17831 @DocsEditable | 17831 @DocsEditable() |
| 17832 // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/UserTiming/Overview.html#
extensions-performance-interface | 17832 // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/UserTiming/Overview.html#
extensions-performance-interface |
| 17833 @Experimental | 17833 @Experimental() |
| 17834 void clearMeasures(String measureName) native; | 17834 void clearMeasures(String measureName) native; |
| 17835 | 17835 |
| 17836 @DomName('Performance.getEntries') | 17836 @DomName('Performance.getEntries') |
| 17837 @DocsEditable | 17837 @DocsEditable() |
| 17838 // http://www.w3.org/TR/performance-timeline/#sec-window.performance-attribute | 17838 // http://www.w3.org/TR/performance-timeline/#sec-window.performance-attribute |
| 17839 @Experimental | 17839 @Experimental() |
| 17840 List<PerformanceEntry> getEntries() native; | 17840 List<PerformanceEntry> getEntries() native; |
| 17841 | 17841 |
| 17842 @DomName('Performance.getEntriesByName') | 17842 @DomName('Performance.getEntriesByName') |
| 17843 @DocsEditable | 17843 @DocsEditable() |
| 17844 // http://www.w3.org/TR/performance-timeline/#sec-window.performance-attribute | 17844 // http://www.w3.org/TR/performance-timeline/#sec-window.performance-attribute |
| 17845 @Experimental | 17845 @Experimental() |
| 17846 List<PerformanceEntry> getEntriesByName(String name, String entryType) native; | 17846 List<PerformanceEntry> getEntriesByName(String name, String entryType) native; |
| 17847 | 17847 |
| 17848 @DomName('Performance.getEntriesByType') | 17848 @DomName('Performance.getEntriesByType') |
| 17849 @DocsEditable | 17849 @DocsEditable() |
| 17850 // http://www.w3.org/TR/performance-timeline/#sec-window.performance-attribute | 17850 // http://www.w3.org/TR/performance-timeline/#sec-window.performance-attribute |
| 17851 @Experimental | 17851 @Experimental() |
| 17852 List<PerformanceEntry> getEntriesByType(String entryType) native; | 17852 List<PerformanceEntry> getEntriesByType(String entryType) native; |
| 17853 | 17853 |
| 17854 @DomName('Performance.mark') | 17854 @DomName('Performance.mark') |
| 17855 @DocsEditable | 17855 @DocsEditable() |
| 17856 // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/UserTiming/Overview.html#
extensions-performance-interface | 17856 // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/UserTiming/Overview.html#
extensions-performance-interface |
| 17857 @Experimental | 17857 @Experimental() |
| 17858 void mark(String markName) native; | 17858 void mark(String markName) native; |
| 17859 | 17859 |
| 17860 @DomName('Performance.measure') | 17860 @DomName('Performance.measure') |
| 17861 @DocsEditable | 17861 @DocsEditable() |
| 17862 // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/UserTiming/Overview.html#
extensions-performance-interface | 17862 // https://dvcs.w3.org/hg/webperf/raw-file/tip/specs/UserTiming/Overview.html#
extensions-performance-interface |
| 17863 @Experimental | 17863 @Experimental() |
| 17864 void measure(String measureName, String startMark, String endMark) native; | 17864 void measure(String measureName, String startMark, String endMark) native; |
| 17865 | 17865 |
| 17866 @DomName('Performance.now') | 17866 @DomName('Performance.now') |
| 17867 @DocsEditable | 17867 @DocsEditable() |
| 17868 num now() native; | 17868 num now() native; |
| 17869 | 17869 |
| 17870 @JSName('webkitClearResourceTimings') | 17870 @JSName('webkitClearResourceTimings') |
| 17871 @DomName('Performance.webkitClearResourceTimings') | 17871 @DomName('Performance.webkitClearResourceTimings') |
| 17872 @DocsEditable | 17872 @DocsEditable() |
| 17873 @SupportedBrowser(SupportedBrowser.CHROME) | 17873 @SupportedBrowser(SupportedBrowser.CHROME) |
| 17874 @SupportedBrowser(SupportedBrowser.SAFARI) | 17874 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 17875 @Experimental | 17875 @Experimental() |
| 17876 // http://www.w3c-test.org/webperf/specs/ResourceTiming/#extensions-performanc
e-interface | 17876 // http://www.w3c-test.org/webperf/specs/ResourceTiming/#extensions-performanc
e-interface |
| 17877 void clearResourceTimings() native; | 17877 void clearResourceTimings() native; |
| 17878 | 17878 |
| 17879 @JSName('webkitSetResourceTimingBufferSize') | 17879 @JSName('webkitSetResourceTimingBufferSize') |
| 17880 @DomName('Performance.webkitSetResourceTimingBufferSize') | 17880 @DomName('Performance.webkitSetResourceTimingBufferSize') |
| 17881 @DocsEditable | 17881 @DocsEditable() |
| 17882 @SupportedBrowser(SupportedBrowser.CHROME) | 17882 @SupportedBrowser(SupportedBrowser.CHROME) |
| 17883 @SupportedBrowser(SupportedBrowser.SAFARI) | 17883 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 17884 @Experimental | 17884 @Experimental() |
| 17885 // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourceti
ming-methods | 17885 // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourceti
ming-methods |
| 17886 void setResourceTimingBufferSize(int maxSize) native; | 17886 void setResourceTimingBufferSize(int maxSize) native; |
| 17887 | 17887 |
| 17888 @DomName('Performance.onwebkitresourcetimingbufferfull') | 17888 @DomName('Performance.onwebkitresourcetimingbufferfull') |
| 17889 @DocsEditable | 17889 @DocsEditable() |
| 17890 // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourceti
ming-methods | 17890 // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourceti
ming-methods |
| 17891 @Experimental | 17891 @Experimental() |
| 17892 Stream<Event> get onResourceTimingBufferFull => resourceTimingBufferFullEvent.
forTarget(this); | 17892 Stream<Event> get onResourceTimingBufferFull => resourceTimingBufferFullEvent.
forTarget(this); |
| 17893 } | 17893 } |
| 17894 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17894 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17895 // for details. All rights reserved. Use of this source code is governed by a | 17895 // for details. All rights reserved. Use of this source code is governed by a |
| 17896 // BSD-style license that can be found in the LICENSE file. | 17896 // BSD-style license that can be found in the LICENSE file. |
| 17897 | 17897 |
| 17898 | 17898 |
| 17899 @DocsEditable | 17899 @DocsEditable() |
| 17900 @DomName('PerformanceEntry') | 17900 @DomName('PerformanceEntry') |
| 17901 // http://www.w3.org/TR/performance-timeline/#sec-PerformanceEntry-interface | 17901 // http://www.w3.org/TR/performance-timeline/#sec-PerformanceEntry-interface |
| 17902 @Experimental | 17902 @Experimental() |
| 17903 class PerformanceEntry extends Interceptor native "PerformanceEntry" { | 17903 class PerformanceEntry extends Interceptor native "PerformanceEntry" { |
| 17904 | 17904 |
| 17905 @DomName('PerformanceEntry.duration') | 17905 @DomName('PerformanceEntry.duration') |
| 17906 @DocsEditable | 17906 @DocsEditable() |
| 17907 final num duration; | 17907 final num duration; |
| 17908 | 17908 |
| 17909 @DomName('PerformanceEntry.entryType') | 17909 @DomName('PerformanceEntry.entryType') |
| 17910 @DocsEditable | 17910 @DocsEditable() |
| 17911 final String entryType; | 17911 final String entryType; |
| 17912 | 17912 |
| 17913 @DomName('PerformanceEntry.name') | 17913 @DomName('PerformanceEntry.name') |
| 17914 @DocsEditable | 17914 @DocsEditable() |
| 17915 final String name; | 17915 final String name; |
| 17916 | 17916 |
| 17917 @DomName('PerformanceEntry.startTime') | 17917 @DomName('PerformanceEntry.startTime') |
| 17918 @DocsEditable | 17918 @DocsEditable() |
| 17919 final num startTime; | 17919 final num startTime; |
| 17920 } | 17920 } |
| 17921 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17921 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17922 // for details. All rights reserved. Use of this source code is governed by a | 17922 // for details. All rights reserved. Use of this source code is governed by a |
| 17923 // BSD-style license that can be found in the LICENSE file. | 17923 // BSD-style license that can be found in the LICENSE file. |
| 17924 | 17924 |
| 17925 | 17925 |
| 17926 @DocsEditable | 17926 @DocsEditable() |
| 17927 @DomName('PerformanceMark') | 17927 @DomName('PerformanceMark') |
| 17928 // http://www.w3.org/TR/user-timing/#performancemark | 17928 // http://www.w3.org/TR/user-timing/#performancemark |
| 17929 @Experimental | 17929 @Experimental() |
| 17930 class PerformanceMark extends PerformanceEntry native "PerformanceMark" { | 17930 class PerformanceMark extends PerformanceEntry native "PerformanceMark" { |
| 17931 // To suppress missing implicit constructor warnings. | 17931 // To suppress missing implicit constructor warnings. |
| 17932 factory PerformanceMark._() { throw new UnsupportedError("Not supported"); } | 17932 factory PerformanceMark._() { throw new UnsupportedError("Not supported"); } |
| 17933 } | 17933 } |
| 17934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17934 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17935 // for details. All rights reserved. Use of this source code is governed by a | 17935 // for details. All rights reserved. Use of this source code is governed by a |
| 17936 // BSD-style license that can be found in the LICENSE file. | 17936 // BSD-style license that can be found in the LICENSE file. |
| 17937 | 17937 |
| 17938 | 17938 |
| 17939 @DocsEditable | 17939 @DocsEditable() |
| 17940 @DomName('PerformanceMeasure') | 17940 @DomName('PerformanceMeasure') |
| 17941 // http://www.w3.org/TR/user-timing/#performancemeasure | 17941 // http://www.w3.org/TR/user-timing/#performancemeasure |
| 17942 @Experimental | 17942 @Experimental() |
| 17943 class PerformanceMeasure extends PerformanceEntry native "PerformanceMeasure" { | 17943 class PerformanceMeasure extends PerformanceEntry native "PerformanceMeasure" { |
| 17944 // To suppress missing implicit constructor warnings. | 17944 // To suppress missing implicit constructor warnings. |
| 17945 factory PerformanceMeasure._() { throw new UnsupportedError("Not supported");
} | 17945 factory PerformanceMeasure._() { throw new UnsupportedError("Not supported");
} |
| 17946 } | 17946 } |
| 17947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17947 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17948 // for details. All rights reserved. Use of this source code is governed by a | 17948 // for details. All rights reserved. Use of this source code is governed by a |
| 17949 // BSD-style license that can be found in the LICENSE file. | 17949 // BSD-style license that can be found in the LICENSE file. |
| 17950 | 17950 |
| 17951 | 17951 |
| 17952 @DocsEditable | 17952 @DocsEditable() |
| 17953 @DomName('PerformanceNavigation') | 17953 @DomName('PerformanceNavigation') |
| 17954 @Unstable | 17954 @Unstable() |
| 17955 class PerformanceNavigation extends Interceptor native "PerformanceNavigation" { | 17955 class PerformanceNavigation extends Interceptor native "PerformanceNavigation" { |
| 17956 | 17956 |
| 17957 @DomName('PerformanceNavigation.TYPE_BACK_FORWARD') | 17957 @DomName('PerformanceNavigation.TYPE_BACK_FORWARD') |
| 17958 @DocsEditable | 17958 @DocsEditable() |
| 17959 static const int TYPE_BACK_FORWARD = 2; | 17959 static const int TYPE_BACK_FORWARD = 2; |
| 17960 | 17960 |
| 17961 @DomName('PerformanceNavigation.TYPE_NAVIGATE') | 17961 @DomName('PerformanceNavigation.TYPE_NAVIGATE') |
| 17962 @DocsEditable | 17962 @DocsEditable() |
| 17963 static const int TYPE_NAVIGATE = 0; | 17963 static const int TYPE_NAVIGATE = 0; |
| 17964 | 17964 |
| 17965 @DomName('PerformanceNavigation.TYPE_RELOAD') | 17965 @DomName('PerformanceNavigation.TYPE_RELOAD') |
| 17966 @DocsEditable | 17966 @DocsEditable() |
| 17967 static const int TYPE_RELOAD = 1; | 17967 static const int TYPE_RELOAD = 1; |
| 17968 | 17968 |
| 17969 @DomName('PerformanceNavigation.TYPE_RESERVED') | 17969 @DomName('PerformanceNavigation.TYPE_RESERVED') |
| 17970 @DocsEditable | 17970 @DocsEditable() |
| 17971 static const int TYPE_RESERVED = 255; | 17971 static const int TYPE_RESERVED = 255; |
| 17972 | 17972 |
| 17973 @DomName('PerformanceNavigation.redirectCount') | 17973 @DomName('PerformanceNavigation.redirectCount') |
| 17974 @DocsEditable | 17974 @DocsEditable() |
| 17975 final int redirectCount; | 17975 final int redirectCount; |
| 17976 | 17976 |
| 17977 @DomName('PerformanceNavigation.type') | 17977 @DomName('PerformanceNavigation.type') |
| 17978 @DocsEditable | 17978 @DocsEditable() |
| 17979 final int type; | 17979 final int type; |
| 17980 } | 17980 } |
| 17981 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 17981 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 17982 // for details. All rights reserved. Use of this source code is governed by a | 17982 // for details. All rights reserved. Use of this source code is governed by a |
| 17983 // BSD-style license that can be found in the LICENSE file. | 17983 // BSD-style license that can be found in the LICENSE file. |
| 17984 | 17984 |
| 17985 | 17985 |
| 17986 @DocsEditable | 17986 @DocsEditable() |
| 17987 @DomName('PerformanceResourceTiming') | 17987 @DomName('PerformanceResourceTiming') |
| 17988 // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourcetimi
ng | 17988 // http://www.w3c-test.org/webperf/specs/ResourceTiming/#performanceresourcetimi
ng |
| 17989 @Experimental | 17989 @Experimental() |
| 17990 class PerformanceResourceTiming extends PerformanceEntry native "PerformanceReso
urceTiming" { | 17990 class PerformanceResourceTiming extends PerformanceEntry native "PerformanceReso
urceTiming" { |
| 17991 // To suppress missing implicit constructor warnings. | 17991 // To suppress missing implicit constructor warnings. |
| 17992 factory PerformanceResourceTiming._() { throw new UnsupportedError("Not suppor
ted"); } | 17992 factory PerformanceResourceTiming._() { throw new UnsupportedError("Not suppor
ted"); } |
| 17993 | 17993 |
| 17994 @DomName('PerformanceResourceTiming.connectEnd') | 17994 @DomName('PerformanceResourceTiming.connectEnd') |
| 17995 @DocsEditable | 17995 @DocsEditable() |
| 17996 final num connectEnd; | 17996 final num connectEnd; |
| 17997 | 17997 |
| 17998 @DomName('PerformanceResourceTiming.connectStart') | 17998 @DomName('PerformanceResourceTiming.connectStart') |
| 17999 @DocsEditable | 17999 @DocsEditable() |
| 18000 final num connectStart; | 18000 final num connectStart; |
| 18001 | 18001 |
| 18002 @DomName('PerformanceResourceTiming.domainLookupEnd') | 18002 @DomName('PerformanceResourceTiming.domainLookupEnd') |
| 18003 @DocsEditable | 18003 @DocsEditable() |
| 18004 final num domainLookupEnd; | 18004 final num domainLookupEnd; |
| 18005 | 18005 |
| 18006 @DomName('PerformanceResourceTiming.domainLookupStart') | 18006 @DomName('PerformanceResourceTiming.domainLookupStart') |
| 18007 @DocsEditable | 18007 @DocsEditable() |
| 18008 final num domainLookupStart; | 18008 final num domainLookupStart; |
| 18009 | 18009 |
| 18010 @DomName('PerformanceResourceTiming.fetchStart') | 18010 @DomName('PerformanceResourceTiming.fetchStart') |
| 18011 @DocsEditable | 18011 @DocsEditable() |
| 18012 final num fetchStart; | 18012 final num fetchStart; |
| 18013 | 18013 |
| 18014 @DomName('PerformanceResourceTiming.initiatorType') | 18014 @DomName('PerformanceResourceTiming.initiatorType') |
| 18015 @DocsEditable | 18015 @DocsEditable() |
| 18016 final String initiatorType; | 18016 final String initiatorType; |
| 18017 | 18017 |
| 18018 @DomName('PerformanceResourceTiming.redirectEnd') | 18018 @DomName('PerformanceResourceTiming.redirectEnd') |
| 18019 @DocsEditable | 18019 @DocsEditable() |
| 18020 final num redirectEnd; | 18020 final num redirectEnd; |
| 18021 | 18021 |
| 18022 @DomName('PerformanceResourceTiming.redirectStart') | 18022 @DomName('PerformanceResourceTiming.redirectStart') |
| 18023 @DocsEditable | 18023 @DocsEditable() |
| 18024 final num redirectStart; | 18024 final num redirectStart; |
| 18025 | 18025 |
| 18026 @DomName('PerformanceResourceTiming.requestStart') | 18026 @DomName('PerformanceResourceTiming.requestStart') |
| 18027 @DocsEditable | 18027 @DocsEditable() |
| 18028 @Experimental // nonstandard | 18028 @Experimental() // nonstandard |
| 18029 final num requestStart; | 18029 final num requestStart; |
| 18030 | 18030 |
| 18031 @DomName('PerformanceResourceTiming.responseEnd') | 18031 @DomName('PerformanceResourceTiming.responseEnd') |
| 18032 @DocsEditable | 18032 @DocsEditable() |
| 18033 @Experimental // nonstandard | 18033 @Experimental() // nonstandard |
| 18034 final num responseEnd; | 18034 final num responseEnd; |
| 18035 | 18035 |
| 18036 @DomName('PerformanceResourceTiming.responseStart') | 18036 @DomName('PerformanceResourceTiming.responseStart') |
| 18037 @DocsEditable | 18037 @DocsEditable() |
| 18038 @Experimental // nonstandard | 18038 @Experimental() // nonstandard |
| 18039 final num responseStart; | 18039 final num responseStart; |
| 18040 | 18040 |
| 18041 @DomName('PerformanceResourceTiming.secureConnectionStart') | 18041 @DomName('PerformanceResourceTiming.secureConnectionStart') |
| 18042 @DocsEditable | 18042 @DocsEditable() |
| 18043 final num secureConnectionStart; | 18043 final num secureConnectionStart; |
| 18044 } | 18044 } |
| 18045 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18045 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18046 // for details. All rights reserved. Use of this source code is governed by a | 18046 // for details. All rights reserved. Use of this source code is governed by a |
| 18047 // BSD-style license that can be found in the LICENSE file. | 18047 // BSD-style license that can be found in the LICENSE file. |
| 18048 | 18048 |
| 18049 | 18049 |
| 18050 @DocsEditable | 18050 @DocsEditable() |
| 18051 @DomName('PerformanceTiming') | 18051 @DomName('PerformanceTiming') |
| 18052 @Unstable | 18052 @Unstable() |
| 18053 class PerformanceTiming extends Interceptor native "PerformanceTiming" { | 18053 class PerformanceTiming extends Interceptor native "PerformanceTiming" { |
| 18054 | 18054 |
| 18055 @DomName('PerformanceTiming.connectEnd') | 18055 @DomName('PerformanceTiming.connectEnd') |
| 18056 @DocsEditable | 18056 @DocsEditable() |
| 18057 final int connectEnd; | 18057 final int connectEnd; |
| 18058 | 18058 |
| 18059 @DomName('PerformanceTiming.connectStart') | 18059 @DomName('PerformanceTiming.connectStart') |
| 18060 @DocsEditable | 18060 @DocsEditable() |
| 18061 final int connectStart; | 18061 final int connectStart; |
| 18062 | 18062 |
| 18063 @DomName('PerformanceTiming.domComplete') | 18063 @DomName('PerformanceTiming.domComplete') |
| 18064 @DocsEditable | 18064 @DocsEditable() |
| 18065 final int domComplete; | 18065 final int domComplete; |
| 18066 | 18066 |
| 18067 @DomName('PerformanceTiming.domContentLoadedEventEnd') | 18067 @DomName('PerformanceTiming.domContentLoadedEventEnd') |
| 18068 @DocsEditable | 18068 @DocsEditable() |
| 18069 final int domContentLoadedEventEnd; | 18069 final int domContentLoadedEventEnd; |
| 18070 | 18070 |
| 18071 @DomName('PerformanceTiming.domContentLoadedEventStart') | 18071 @DomName('PerformanceTiming.domContentLoadedEventStart') |
| 18072 @DocsEditable | 18072 @DocsEditable() |
| 18073 final int domContentLoadedEventStart; | 18073 final int domContentLoadedEventStart; |
| 18074 | 18074 |
| 18075 @DomName('PerformanceTiming.domInteractive') | 18075 @DomName('PerformanceTiming.domInteractive') |
| 18076 @DocsEditable | 18076 @DocsEditable() |
| 18077 final int domInteractive; | 18077 final int domInteractive; |
| 18078 | 18078 |
| 18079 @DomName('PerformanceTiming.domLoading') | 18079 @DomName('PerformanceTiming.domLoading') |
| 18080 @DocsEditable | 18080 @DocsEditable() |
| 18081 final int domLoading; | 18081 final int domLoading; |
| 18082 | 18082 |
| 18083 @DomName('PerformanceTiming.domainLookupEnd') | 18083 @DomName('PerformanceTiming.domainLookupEnd') |
| 18084 @DocsEditable | 18084 @DocsEditable() |
| 18085 final int domainLookupEnd; | 18085 final int domainLookupEnd; |
| 18086 | 18086 |
| 18087 @DomName('PerformanceTiming.domainLookupStart') | 18087 @DomName('PerformanceTiming.domainLookupStart') |
| 18088 @DocsEditable | 18088 @DocsEditable() |
| 18089 final int domainLookupStart; | 18089 final int domainLookupStart; |
| 18090 | 18090 |
| 18091 @DomName('PerformanceTiming.fetchStart') | 18091 @DomName('PerformanceTiming.fetchStart') |
| 18092 @DocsEditable | 18092 @DocsEditable() |
| 18093 final int fetchStart; | 18093 final int fetchStart; |
| 18094 | 18094 |
| 18095 @DomName('PerformanceTiming.loadEventEnd') | 18095 @DomName('PerformanceTiming.loadEventEnd') |
| 18096 @DocsEditable | 18096 @DocsEditable() |
| 18097 final int loadEventEnd; | 18097 final int loadEventEnd; |
| 18098 | 18098 |
| 18099 @DomName('PerformanceTiming.loadEventStart') | 18099 @DomName('PerformanceTiming.loadEventStart') |
| 18100 @DocsEditable | 18100 @DocsEditable() |
| 18101 final int loadEventStart; | 18101 final int loadEventStart; |
| 18102 | 18102 |
| 18103 @DomName('PerformanceTiming.navigationStart') | 18103 @DomName('PerformanceTiming.navigationStart') |
| 18104 @DocsEditable | 18104 @DocsEditable() |
| 18105 final int navigationStart; | 18105 final int navigationStart; |
| 18106 | 18106 |
| 18107 @DomName('PerformanceTiming.redirectEnd') | 18107 @DomName('PerformanceTiming.redirectEnd') |
| 18108 @DocsEditable | 18108 @DocsEditable() |
| 18109 final int redirectEnd; | 18109 final int redirectEnd; |
| 18110 | 18110 |
| 18111 @DomName('PerformanceTiming.redirectStart') | 18111 @DomName('PerformanceTiming.redirectStart') |
| 18112 @DocsEditable | 18112 @DocsEditable() |
| 18113 final int redirectStart; | 18113 final int redirectStart; |
| 18114 | 18114 |
| 18115 @DomName('PerformanceTiming.requestStart') | 18115 @DomName('PerformanceTiming.requestStart') |
| 18116 @DocsEditable | 18116 @DocsEditable() |
| 18117 final int requestStart; | 18117 final int requestStart; |
| 18118 | 18118 |
| 18119 @DomName('PerformanceTiming.responseEnd') | 18119 @DomName('PerformanceTiming.responseEnd') |
| 18120 @DocsEditable | 18120 @DocsEditable() |
| 18121 final int responseEnd; | 18121 final int responseEnd; |
| 18122 | 18122 |
| 18123 @DomName('PerformanceTiming.responseStart') | 18123 @DomName('PerformanceTiming.responseStart') |
| 18124 @DocsEditable | 18124 @DocsEditable() |
| 18125 final int responseStart; | 18125 final int responseStart; |
| 18126 | 18126 |
| 18127 @DomName('PerformanceTiming.secureConnectionStart') | 18127 @DomName('PerformanceTiming.secureConnectionStart') |
| 18128 @DocsEditable | 18128 @DocsEditable() |
| 18129 final int secureConnectionStart; | 18129 final int secureConnectionStart; |
| 18130 | 18130 |
| 18131 @DomName('PerformanceTiming.unloadEventEnd') | 18131 @DomName('PerformanceTiming.unloadEventEnd') |
| 18132 @DocsEditable | 18132 @DocsEditable() |
| 18133 final int unloadEventEnd; | 18133 final int unloadEventEnd; |
| 18134 | 18134 |
| 18135 @DomName('PerformanceTiming.unloadEventStart') | 18135 @DomName('PerformanceTiming.unloadEventStart') |
| 18136 @DocsEditable | 18136 @DocsEditable() |
| 18137 final int unloadEventStart; | 18137 final int unloadEventStart; |
| 18138 } | 18138 } |
| 18139 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18139 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18140 // for details. All rights reserved. Use of this source code is governed by a | 18140 // for details. All rights reserved. Use of this source code is governed by a |
| 18141 // BSD-style license that can be found in the LICENSE file. | 18141 // BSD-style license that can be found in the LICENSE file. |
| 18142 | 18142 |
| 18143 | 18143 |
| 18144 @DocsEditable | 18144 @DocsEditable() |
| 18145 @DomName('Plugin') | 18145 @DomName('Plugin') |
| 18146 @Experimental // non-standard | 18146 @Experimental() // non-standard |
| 18147 class Plugin extends Interceptor native "Plugin" { | 18147 class Plugin extends Interceptor native "Plugin" { |
| 18148 | 18148 |
| 18149 @DomName('Plugin.description') | 18149 @DomName('Plugin.description') |
| 18150 @DocsEditable | 18150 @DocsEditable() |
| 18151 final String description; | 18151 final String description; |
| 18152 | 18152 |
| 18153 @DomName('Plugin.filename') | 18153 @DomName('Plugin.filename') |
| 18154 @DocsEditable | 18154 @DocsEditable() |
| 18155 final String filename; | 18155 final String filename; |
| 18156 | 18156 |
| 18157 @DomName('Plugin.length') | 18157 @DomName('Plugin.length') |
| 18158 @DocsEditable | 18158 @DocsEditable() |
| 18159 final int length; | 18159 final int length; |
| 18160 | 18160 |
| 18161 @DomName('Plugin.name') | 18161 @DomName('Plugin.name') |
| 18162 @DocsEditable | 18162 @DocsEditable() |
| 18163 final String name; | 18163 final String name; |
| 18164 | 18164 |
| 18165 @DomName('Plugin.__getter__') | 18165 @DomName('Plugin.__getter__') |
| 18166 @DocsEditable | 18166 @DocsEditable() |
| 18167 MimeType __getter__(String name) native; | 18167 MimeType __getter__(String name) native; |
| 18168 | 18168 |
| 18169 @DomName('Plugin.item') | 18169 @DomName('Plugin.item') |
| 18170 @DocsEditable | 18170 @DocsEditable() |
| 18171 MimeType item(int index) native; | 18171 MimeType item(int index) native; |
| 18172 | 18172 |
| 18173 @DomName('Plugin.namedItem') | 18173 @DomName('Plugin.namedItem') |
| 18174 @DocsEditable | 18174 @DocsEditable() |
| 18175 MimeType namedItem(String name) native; | 18175 MimeType namedItem(String name) native; |
| 18176 } | 18176 } |
| 18177 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18177 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18178 // for details. All rights reserved. Use of this source code is governed by a | 18178 // for details. All rights reserved. Use of this source code is governed by a |
| 18179 // BSD-style license that can be found in the LICENSE file. | 18179 // BSD-style license that can be found in the LICENSE file. |
| 18180 | 18180 |
| 18181 | 18181 |
| 18182 @DocsEditable | 18182 @DocsEditable() |
| 18183 @DomName('PluginArray') | 18183 @DomName('PluginArray') |
| 18184 @Experimental // non-standard | 18184 @Experimental() // non-standard |
| 18185 class PluginArray extends Interceptor with ListMixin<Plugin>, ImmutableListMixin
<Plugin> implements JavaScriptIndexingBehavior, List<Plugin> native "PluginArray
" { | 18185 class PluginArray extends Interceptor with ListMixin<Plugin>, ImmutableListMixin
<Plugin> implements JavaScriptIndexingBehavior, List<Plugin> native "PluginArray
" { |
| 18186 | 18186 |
| 18187 @DomName('PluginArray.length') | 18187 @DomName('PluginArray.length') |
| 18188 @DocsEditable | 18188 @DocsEditable() |
| 18189 int get length => JS("int", "#.length", this); | 18189 int get length => JS("int", "#.length", this); |
| 18190 | 18190 |
| 18191 Plugin operator[](int index) { | 18191 Plugin operator[](int index) { |
| 18192 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 18192 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 18193 index, index, length)) | 18193 index, index, length)) |
| 18194 throw new RangeError.range(index, 0, length); | 18194 throw new RangeError.range(index, 0, length); |
| 18195 return JS("Plugin", "#[#]", this, index); | 18195 return JS("Plugin", "#[#]", this, index); |
| 18196 } | 18196 } |
| 18197 void operator[]=(int index, Plugin value) { | 18197 void operator[]=(int index, Plugin value) { |
| 18198 throw new UnsupportedError("Cannot assign element of immutable List."); | 18198 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 18226 return JS('Plugin', '#[0]', this); | 18226 return JS('Plugin', '#[0]', this); |
| 18227 } | 18227 } |
| 18228 if (len == 0) throw new StateError("No elements"); | 18228 if (len == 0) throw new StateError("No elements"); |
| 18229 throw new StateError("More than one element"); | 18229 throw new StateError("More than one element"); |
| 18230 } | 18230 } |
| 18231 | 18231 |
| 18232 Plugin elementAt(int index) => this[index]; | 18232 Plugin elementAt(int index) => this[index]; |
| 18233 // -- end List<Plugin> mixins. | 18233 // -- end List<Plugin> mixins. |
| 18234 | 18234 |
| 18235 @DomName('PluginArray.__getter__') | 18235 @DomName('PluginArray.__getter__') |
| 18236 @DocsEditable | 18236 @DocsEditable() |
| 18237 Plugin __getter__(String name) native; | 18237 Plugin __getter__(String name) native; |
| 18238 | 18238 |
| 18239 @DomName('PluginArray.item') | 18239 @DomName('PluginArray.item') |
| 18240 @DocsEditable | 18240 @DocsEditable() |
| 18241 Plugin item(int index) native; | 18241 Plugin item(int index) native; |
| 18242 | 18242 |
| 18243 @DomName('PluginArray.namedItem') | 18243 @DomName('PluginArray.namedItem') |
| 18244 @DocsEditable | 18244 @DocsEditable() |
| 18245 Plugin namedItem(String name) native; | 18245 Plugin namedItem(String name) native; |
| 18246 | 18246 |
| 18247 @DomName('PluginArray.refresh') | 18247 @DomName('PluginArray.refresh') |
| 18248 @DocsEditable | 18248 @DocsEditable() |
| 18249 void refresh(bool reload) native; | 18249 void refresh(bool reload) native; |
| 18250 } | 18250 } |
| 18251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18251 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18252 // for details. All rights reserved. Use of this source code is governed by a | 18252 // for details. All rights reserved. Use of this source code is governed by a |
| 18253 // BSD-style license that can be found in the LICENSE file. | 18253 // BSD-style license that can be found in the LICENSE file. |
| 18254 | 18254 |
| 18255 | 18255 |
| 18256 @DocsEditable | 18256 @DocsEditable() |
| 18257 @DomName('PopStateEvent') | 18257 @DomName('PopStateEvent') |
| 18258 @SupportedBrowser(SupportedBrowser.CHROME) | 18258 @SupportedBrowser(SupportedBrowser.CHROME) |
| 18259 @SupportedBrowser(SupportedBrowser.FIREFOX) | 18259 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 18260 @SupportedBrowser(SupportedBrowser.IE, '10') | 18260 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 18261 @SupportedBrowser(SupportedBrowser.SAFARI) | 18261 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 18262 class PopStateEvent extends Event native "PopStateEvent" { | 18262 class PopStateEvent extends Event native "PopStateEvent" { |
| 18263 // To suppress missing implicit constructor warnings. | 18263 // To suppress missing implicit constructor warnings. |
| 18264 factory PopStateEvent._() { throw new UnsupportedError("Not supported"); } | 18264 factory PopStateEvent._() { throw new UnsupportedError("Not supported"); } |
| 18265 | 18265 |
| 18266 dynamic get state => convertNativeToDart_SerializedScriptValue(this._get_state
); | 18266 dynamic get state => convertNativeToDart_SerializedScriptValue(this._get_state
); |
| 18267 @JSName('state') | 18267 @JSName('state') |
| 18268 @DomName('PopStateEvent.state') | 18268 @DomName('PopStateEvent.state') |
| 18269 @DocsEditable | 18269 @DocsEditable() |
| 18270 @annotation_Creates_SerializedScriptValue | 18270 @annotation_Creates_SerializedScriptValue |
| 18271 @annotation_Returns_SerializedScriptValue | 18271 @annotation_Returns_SerializedScriptValue |
| 18272 final dynamic _get_state; | 18272 final dynamic _get_state; |
| 18273 } | 18273 } |
| 18274 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18274 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18275 // for details. All rights reserved. Use of this source code is governed by a | 18275 // for details. All rights reserved. Use of this source code is governed by a |
| 18276 // BSD-style license that can be found in the LICENSE file. | 18276 // BSD-style license that can be found in the LICENSE file. |
| 18277 | 18277 |
| 18278 // WARNING: Do not edit - generated code. | 18278 // WARNING: Do not edit - generated code. |
| 18279 | 18279 |
| 18280 | 18280 |
| 18281 @DomName('PositionCallback') | 18281 @DomName('PositionCallback') |
| 18282 @Unstable | 18282 @Unstable() |
| 18283 typedef void _PositionCallback(Geoposition position); | 18283 typedef void _PositionCallback(Geoposition position); |
| 18284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18284 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18285 // for details. All rights reserved. Use of this source code is governed by a | 18285 // for details. All rights reserved. Use of this source code is governed by a |
| 18286 // BSD-style license that can be found in the LICENSE file. | 18286 // BSD-style license that can be found in the LICENSE file. |
| 18287 | 18287 |
| 18288 | 18288 |
| 18289 @DocsEditable | 18289 @DocsEditable() |
| 18290 @DomName('PositionError') | 18290 @DomName('PositionError') |
| 18291 @Unstable | 18291 @Unstable() |
| 18292 class PositionError extends Interceptor native "PositionError" { | 18292 class PositionError extends Interceptor native "PositionError" { |
| 18293 | 18293 |
| 18294 @DomName('PositionError.PERMISSION_DENIED') | 18294 @DomName('PositionError.PERMISSION_DENIED') |
| 18295 @DocsEditable | 18295 @DocsEditable() |
| 18296 static const int PERMISSION_DENIED = 1; | 18296 static const int PERMISSION_DENIED = 1; |
| 18297 | 18297 |
| 18298 @DomName('PositionError.POSITION_UNAVAILABLE') | 18298 @DomName('PositionError.POSITION_UNAVAILABLE') |
| 18299 @DocsEditable | 18299 @DocsEditable() |
| 18300 static const int POSITION_UNAVAILABLE = 2; | 18300 static const int POSITION_UNAVAILABLE = 2; |
| 18301 | 18301 |
| 18302 @DomName('PositionError.TIMEOUT') | 18302 @DomName('PositionError.TIMEOUT') |
| 18303 @DocsEditable | 18303 @DocsEditable() |
| 18304 static const int TIMEOUT = 3; | 18304 static const int TIMEOUT = 3; |
| 18305 | 18305 |
| 18306 @DomName('PositionError.code') | 18306 @DomName('PositionError.code') |
| 18307 @DocsEditable | 18307 @DocsEditable() |
| 18308 final int code; | 18308 final int code; |
| 18309 | 18309 |
| 18310 @DomName('PositionError.message') | 18310 @DomName('PositionError.message') |
| 18311 @DocsEditable | 18311 @DocsEditable() |
| 18312 final String message; | 18312 final String message; |
| 18313 } | 18313 } |
| 18314 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18314 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18315 // for details. All rights reserved. Use of this source code is governed by a | 18315 // for details. All rights reserved. Use of this source code is governed by a |
| 18316 // BSD-style license that can be found in the LICENSE file. | 18316 // BSD-style license that can be found in the LICENSE file. |
| 18317 | 18317 |
| 18318 // WARNING: Do not edit - generated code. | 18318 // WARNING: Do not edit - generated code. |
| 18319 | 18319 |
| 18320 | 18320 |
| 18321 @DomName('PositionErrorCallback') | 18321 @DomName('PositionErrorCallback') |
| 18322 @Unstable | 18322 @Unstable() |
| 18323 typedef void _PositionErrorCallback(PositionError error); | 18323 typedef void _PositionErrorCallback(PositionError error); |
| 18324 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18324 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18325 // for details. All rights reserved. Use of this source code is governed by a | 18325 // for details. All rights reserved. Use of this source code is governed by a |
| 18326 // BSD-style license that can be found in the LICENSE file. | 18326 // BSD-style license that can be found in the LICENSE file. |
| 18327 | 18327 |
| 18328 | 18328 |
| 18329 @DocsEditable | 18329 @DocsEditable() |
| 18330 @DomName('HTMLPreElement') | 18330 @DomName('HTMLPreElement') |
| 18331 class PreElement extends _HTMLElement native "HTMLPreElement" { | 18331 class PreElement extends _HTMLElement native "HTMLPreElement" { |
| 18332 // To suppress missing implicit constructor warnings. | 18332 // To suppress missing implicit constructor warnings. |
| 18333 factory PreElement._() { throw new UnsupportedError("Not supported"); } | 18333 factory PreElement._() { throw new UnsupportedError("Not supported"); } |
| 18334 | 18334 |
| 18335 @DomName('HTMLPreElement.HTMLPreElement') | 18335 @DomName('HTMLPreElement.HTMLPreElement') |
| 18336 @DocsEditable | 18336 @DocsEditable() |
| 18337 factory PreElement() => document.$dom_createElement("pre"); | 18337 factory PreElement() => document.$dom_createElement("pre"); |
| 18338 | 18338 |
| 18339 @DomName('HTMLPreElement.wrap') | 18339 @DomName('HTMLPreElement.wrap') |
| 18340 @DocsEditable | 18340 @DocsEditable() |
| 18341 @deprecated // deprecated | 18341 @deprecated // deprecated |
| 18342 bool wrap; | 18342 bool wrap; |
| 18343 } | 18343 } |
| 18344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18344 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18345 // for details. All rights reserved. Use of this source code is governed by a | 18345 // for details. All rights reserved. Use of this source code is governed by a |
| 18346 // BSD-style license that can be found in the LICENSE file. | 18346 // BSD-style license that can be found in the LICENSE file. |
| 18347 | 18347 |
| 18348 | 18348 |
| 18349 @DocsEditable | 18349 @DocsEditable() |
| 18350 @DomName('ProcessingInstruction') | 18350 @DomName('ProcessingInstruction') |
| 18351 @Unstable | 18351 @Unstable() |
| 18352 class ProcessingInstruction extends Node native "ProcessingInstruction" { | 18352 class ProcessingInstruction extends Node native "ProcessingInstruction" { |
| 18353 // To suppress missing implicit constructor warnings. | 18353 // To suppress missing implicit constructor warnings. |
| 18354 factory ProcessingInstruction._() { throw new UnsupportedError("Not supported"
); } | 18354 factory ProcessingInstruction._() { throw new UnsupportedError("Not supported"
); } |
| 18355 | 18355 |
| 18356 @DomName('ProcessingInstruction.data') | 18356 @DomName('ProcessingInstruction.data') |
| 18357 @DocsEditable | 18357 @DocsEditable() |
| 18358 @Experimental // non-standard | 18358 @Experimental() // non-standard |
| 18359 String data; | 18359 String data; |
| 18360 | 18360 |
| 18361 @DomName('ProcessingInstruction.sheet') | 18361 @DomName('ProcessingInstruction.sheet') |
| 18362 @DocsEditable | 18362 @DocsEditable() |
| 18363 @Experimental // non-standard | 18363 @Experimental() // non-standard |
| 18364 final StyleSheet sheet; | 18364 final StyleSheet sheet; |
| 18365 | 18365 |
| 18366 @DomName('ProcessingInstruction.target') | 18366 @DomName('ProcessingInstruction.target') |
| 18367 @DocsEditable | 18367 @DocsEditable() |
| 18368 final String target; | 18368 final String target; |
| 18369 } | 18369 } |
| 18370 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18370 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18371 // for details. All rights reserved. Use of this source code is governed by a | 18371 // for details. All rights reserved. Use of this source code is governed by a |
| 18372 // BSD-style license that can be found in the LICENSE file. | 18372 // BSD-style license that can be found in the LICENSE file. |
| 18373 | 18373 |
| 18374 | 18374 |
| 18375 @DocsEditable | 18375 @DocsEditable() |
| 18376 @DomName('HTMLProgressElement') | 18376 @DomName('HTMLProgressElement') |
| 18377 @SupportedBrowser(SupportedBrowser.CHROME) | 18377 @SupportedBrowser(SupportedBrowser.CHROME) |
| 18378 @SupportedBrowser(SupportedBrowser.FIREFOX) | 18378 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 18379 @SupportedBrowser(SupportedBrowser.IE, '10') | 18379 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 18380 @SupportedBrowser(SupportedBrowser.SAFARI) | 18380 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 18381 class ProgressElement extends _HTMLElement native "HTMLProgressElement" { | 18381 class ProgressElement extends _HTMLElement native "HTMLProgressElement" { |
| 18382 // To suppress missing implicit constructor warnings. | 18382 // To suppress missing implicit constructor warnings. |
| 18383 factory ProgressElement._() { throw new UnsupportedError("Not supported"); } | 18383 factory ProgressElement._() { throw new UnsupportedError("Not supported"); } |
| 18384 | 18384 |
| 18385 @DomName('HTMLProgressElement.HTMLProgressElement') | 18385 @DomName('HTMLProgressElement.HTMLProgressElement') |
| 18386 @DocsEditable | 18386 @DocsEditable() |
| 18387 factory ProgressElement() => document.$dom_createElement("progress"); | 18387 factory ProgressElement() => document.$dom_createElement("progress"); |
| 18388 | 18388 |
| 18389 /// Checks if this type is supported on the current platform. | 18389 /// Checks if this type is supported on the current platform. |
| 18390 static bool get supported => Element.isTagSupported('progress'); | 18390 static bool get supported => Element.isTagSupported('progress'); |
| 18391 | 18391 |
| 18392 @DomName('HTMLProgressElement.labels') | 18392 @DomName('HTMLProgressElement.labels') |
| 18393 @DocsEditable | 18393 @DocsEditable() |
| 18394 @Unstable | 18394 @Unstable() |
| 18395 @Returns('NodeList') | 18395 @Returns('NodeList') |
| 18396 @Creates('NodeList') | 18396 @Creates('NodeList') |
| 18397 final List<Node> labels; | 18397 final List<Node> labels; |
| 18398 | 18398 |
| 18399 @DomName('HTMLProgressElement.max') | 18399 @DomName('HTMLProgressElement.max') |
| 18400 @DocsEditable | 18400 @DocsEditable() |
| 18401 num max; | 18401 num max; |
| 18402 | 18402 |
| 18403 @DomName('HTMLProgressElement.position') | 18403 @DomName('HTMLProgressElement.position') |
| 18404 @DocsEditable | 18404 @DocsEditable() |
| 18405 final num position; | 18405 final num position; |
| 18406 | 18406 |
| 18407 @DomName('HTMLProgressElement.value') | 18407 @DomName('HTMLProgressElement.value') |
| 18408 @DocsEditable | 18408 @DocsEditable() |
| 18409 num value; | 18409 num value; |
| 18410 } | 18410 } |
| 18411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18411 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18412 // for details. All rights reserved. Use of this source code is governed by a | 18412 // for details. All rights reserved. Use of this source code is governed by a |
| 18413 // BSD-style license that can be found in the LICENSE file. | 18413 // BSD-style license that can be found in the LICENSE file. |
| 18414 | 18414 |
| 18415 | 18415 |
| 18416 @DocsEditable | 18416 @DocsEditable() |
| 18417 @DomName('ProgressEvent') | 18417 @DomName('ProgressEvent') |
| 18418 class ProgressEvent extends Event native "ProgressEvent" { | 18418 class ProgressEvent extends Event native "ProgressEvent" { |
| 18419 // To suppress missing implicit constructor warnings. | 18419 // To suppress missing implicit constructor warnings. |
| 18420 factory ProgressEvent._() { throw new UnsupportedError("Not supported"); } | 18420 factory ProgressEvent._() { throw new UnsupportedError("Not supported"); } |
| 18421 | 18421 |
| 18422 @DomName('ProgressEvent.lengthComputable') | 18422 @DomName('ProgressEvent.lengthComputable') |
| 18423 @DocsEditable | 18423 @DocsEditable() |
| 18424 final bool lengthComputable; | 18424 final bool lengthComputable; |
| 18425 | 18425 |
| 18426 @DomName('ProgressEvent.loaded') | 18426 @DomName('ProgressEvent.loaded') |
| 18427 @DocsEditable | 18427 @DocsEditable() |
| 18428 final int loaded; | 18428 final int loaded; |
| 18429 | 18429 |
| 18430 @DomName('ProgressEvent.total') | 18430 @DomName('ProgressEvent.total') |
| 18431 @DocsEditable | 18431 @DocsEditable() |
| 18432 final int total; | 18432 final int total; |
| 18433 } | 18433 } |
| 18434 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18434 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18435 // for details. All rights reserved. Use of this source code is governed by a | 18435 // for details. All rights reserved. Use of this source code is governed by a |
| 18436 // BSD-style license that can be found in the LICENSE file. | 18436 // BSD-style license that can be found in the LICENSE file. |
| 18437 | 18437 |
| 18438 | 18438 |
| 18439 @DocsEditable | 18439 @DocsEditable() |
| 18440 @DomName('HTMLQuoteElement') | 18440 @DomName('HTMLQuoteElement') |
| 18441 class QuoteElement extends _HTMLElement native "HTMLQuoteElement" { | 18441 class QuoteElement extends _HTMLElement native "HTMLQuoteElement" { |
| 18442 // To suppress missing implicit constructor warnings. | 18442 // To suppress missing implicit constructor warnings. |
| 18443 factory QuoteElement._() { throw new UnsupportedError("Not supported"); } | 18443 factory QuoteElement._() { throw new UnsupportedError("Not supported"); } |
| 18444 | 18444 |
| 18445 @DomName('HTMLQuoteElement.HTMLQuoteElement') | 18445 @DomName('HTMLQuoteElement.HTMLQuoteElement') |
| 18446 @DocsEditable | 18446 @DocsEditable() |
| 18447 factory QuoteElement() => document.$dom_createElement("q"); | 18447 factory QuoteElement() => document.$dom_createElement("q"); |
| 18448 | 18448 |
| 18449 @DomName('HTMLQuoteElement.cite') | 18449 @DomName('HTMLQuoteElement.cite') |
| 18450 @DocsEditable | 18450 @DocsEditable() |
| 18451 String cite; | 18451 String cite; |
| 18452 } | 18452 } |
| 18453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18453 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18454 // for details. All rights reserved. Use of this source code is governed by a | 18454 // for details. All rights reserved. Use of this source code is governed by a |
| 18455 // BSD-style license that can be found in the LICENSE file. | 18455 // BSD-style license that can be found in the LICENSE file. |
| 18456 | 18456 |
| 18457 // WARNING: Do not edit - generated code. | 18457 // WARNING: Do not edit - generated code. |
| 18458 | 18458 |
| 18459 | 18459 |
| 18460 @DomName('RTCErrorCallback') | 18460 @DomName('RTCErrorCallback') |
| 18461 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#rtcerror | 18461 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#rtcerror |
| 18462 @Experimental | 18462 @Experimental() |
| 18463 typedef void _RtcErrorCallback(String errorInformation); | 18463 typedef void _RtcErrorCallback(String errorInformation); |
| 18464 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18464 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18465 // for details. All rights reserved. Use of this source code is governed by a | 18465 // for details. All rights reserved. Use of this source code is governed by a |
| 18466 // BSD-style license that can be found in the LICENSE file. | 18466 // BSD-style license that can be found in the LICENSE file. |
| 18467 | 18467 |
| 18468 // WARNING: Do not edit - generated code. | 18468 // WARNING: Do not edit - generated code. |
| 18469 | 18469 |
| 18470 | 18470 |
| 18471 @DomName('RTCSessionDescriptionCallback') | 18471 @DomName('RTCSessionDescriptionCallback') |
| 18472 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCSessionDescriptio
n | 18472 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCSessionDescriptio
n |
| 18473 @Experimental | 18473 @Experimental() |
| 18474 typedef void _RtcSessionDescriptionCallback(RtcSessionDescription sdp); | 18474 typedef void _RtcSessionDescriptionCallback(RtcSessionDescription sdp); |
| 18475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18475 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18476 // for details. All rights reserved. Use of this source code is governed by a | 18476 // for details. All rights reserved. Use of this source code is governed by a |
| 18477 // BSD-style license that can be found in the LICENSE file. | 18477 // BSD-style license that can be found in the LICENSE file. |
| 18478 | 18478 |
| 18479 // WARNING: Do not edit - generated code. | 18479 // WARNING: Do not edit - generated code. |
| 18480 | 18480 |
| 18481 | 18481 |
| 18482 @DomName('RTCStatsCallback') | 18482 @DomName('RTCStatsCallback') |
| 18483 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCStatsCallback | 18483 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCStatsCallback |
| 18484 @Experimental | 18484 @Experimental() |
| 18485 typedef void RtcStatsCallback(RtcStatsResponse response); | 18485 typedef void RtcStatsCallback(RtcStatsResponse response); |
| 18486 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18486 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18487 // for details. All rights reserved. Use of this source code is governed by a | 18487 // for details. All rights reserved. Use of this source code is governed by a |
| 18488 // BSD-style license that can be found in the LICENSE file. | 18488 // BSD-style license that can be found in the LICENSE file. |
| 18489 | 18489 |
| 18490 // WARNING: Do not edit - generated code. | 18490 // WARNING: Do not edit - generated code. |
| 18491 | 18491 |
| 18492 | 18492 |
| 18493 @DomName('Range') | 18493 @DomName('Range') |
| 18494 @Unstable | 18494 @Unstable() |
| 18495 class Range extends Interceptor native "Range" { | 18495 class Range extends Interceptor native "Range" { |
| 18496 factory Range() => document.$dom_createRange(); | 18496 factory Range() => document.$dom_createRange(); |
| 18497 | 18497 |
| 18498 factory Range.fromPoint(Point point) => | 18498 factory Range.fromPoint(Point point) => |
| 18499 document.$dom_caretRangeFromPoint(point.x, point.y); | 18499 document.$dom_caretRangeFromPoint(point.x, point.y); |
| 18500 | 18500 |
| 18501 @DomName('Range.END_TO_END') | 18501 @DomName('Range.END_TO_END') |
| 18502 @DocsEditable | 18502 @DocsEditable() |
| 18503 static const int END_TO_END = 2; | 18503 static const int END_TO_END = 2; |
| 18504 | 18504 |
| 18505 @DomName('Range.END_TO_START') | 18505 @DomName('Range.END_TO_START') |
| 18506 @DocsEditable | 18506 @DocsEditable() |
| 18507 static const int END_TO_START = 3; | 18507 static const int END_TO_START = 3; |
| 18508 | 18508 |
| 18509 @DomName('Range.NODE_AFTER') | 18509 @DomName('Range.NODE_AFTER') |
| 18510 @DocsEditable | 18510 @DocsEditable() |
| 18511 @Experimental // nonstandard | 18511 @Experimental() // nonstandard |
| 18512 static const int NODE_AFTER = 1; | 18512 static const int NODE_AFTER = 1; |
| 18513 | 18513 |
| 18514 @DomName('Range.NODE_BEFORE') | 18514 @DomName('Range.NODE_BEFORE') |
| 18515 @DocsEditable | 18515 @DocsEditable() |
| 18516 @Experimental // nonstandard | 18516 @Experimental() // nonstandard |
| 18517 static const int NODE_BEFORE = 0; | 18517 static const int NODE_BEFORE = 0; |
| 18518 | 18518 |
| 18519 @DomName('Range.NODE_BEFORE_AND_AFTER') | 18519 @DomName('Range.NODE_BEFORE_AND_AFTER') |
| 18520 @DocsEditable | 18520 @DocsEditable() |
| 18521 @Experimental // nonstandard | 18521 @Experimental() // nonstandard |
| 18522 static const int NODE_BEFORE_AND_AFTER = 2; | 18522 static const int NODE_BEFORE_AND_AFTER = 2; |
| 18523 | 18523 |
| 18524 @DomName('Range.NODE_INSIDE') | 18524 @DomName('Range.NODE_INSIDE') |
| 18525 @DocsEditable | 18525 @DocsEditable() |
| 18526 @Experimental // nonstandard | 18526 @Experimental() // nonstandard |
| 18527 static const int NODE_INSIDE = 3; | 18527 static const int NODE_INSIDE = 3; |
| 18528 | 18528 |
| 18529 @DomName('Range.START_TO_END') | 18529 @DomName('Range.START_TO_END') |
| 18530 @DocsEditable | 18530 @DocsEditable() |
| 18531 static const int START_TO_END = 1; | 18531 static const int START_TO_END = 1; |
| 18532 | 18532 |
| 18533 @DomName('Range.START_TO_START') | 18533 @DomName('Range.START_TO_START') |
| 18534 @DocsEditable | 18534 @DocsEditable() |
| 18535 static const int START_TO_START = 0; | 18535 static const int START_TO_START = 0; |
| 18536 | 18536 |
| 18537 @DomName('Range.collapsed') | 18537 @DomName('Range.collapsed') |
| 18538 @DocsEditable | 18538 @DocsEditable() |
| 18539 final bool collapsed; | 18539 final bool collapsed; |
| 18540 | 18540 |
| 18541 @DomName('Range.commonAncestorContainer') | 18541 @DomName('Range.commonAncestorContainer') |
| 18542 @DocsEditable | 18542 @DocsEditable() |
| 18543 final Node commonAncestorContainer; | 18543 final Node commonAncestorContainer; |
| 18544 | 18544 |
| 18545 @DomName('Range.endContainer') | 18545 @DomName('Range.endContainer') |
| 18546 @DocsEditable | 18546 @DocsEditable() |
| 18547 final Node endContainer; | 18547 final Node endContainer; |
| 18548 | 18548 |
| 18549 @DomName('Range.endOffset') | 18549 @DomName('Range.endOffset') |
| 18550 @DocsEditable | 18550 @DocsEditable() |
| 18551 final int endOffset; | 18551 final int endOffset; |
| 18552 | 18552 |
| 18553 @DomName('Range.startContainer') | 18553 @DomName('Range.startContainer') |
| 18554 @DocsEditable | 18554 @DocsEditable() |
| 18555 final Node startContainer; | 18555 final Node startContainer; |
| 18556 | 18556 |
| 18557 @DomName('Range.startOffset') | 18557 @DomName('Range.startOffset') |
| 18558 @DocsEditable | 18558 @DocsEditable() |
| 18559 final int startOffset; | 18559 final int startOffset; |
| 18560 | 18560 |
| 18561 @DomName('Range.cloneContents') | 18561 @DomName('Range.cloneContents') |
| 18562 @DocsEditable | 18562 @DocsEditable() |
| 18563 DocumentFragment cloneContents() native; | 18563 DocumentFragment cloneContents() native; |
| 18564 | 18564 |
| 18565 @DomName('Range.cloneRange') | 18565 @DomName('Range.cloneRange') |
| 18566 @DocsEditable | 18566 @DocsEditable() |
| 18567 Range cloneRange() native; | 18567 Range cloneRange() native; |
| 18568 | 18568 |
| 18569 @DomName('Range.collapse') | 18569 @DomName('Range.collapse') |
| 18570 @DocsEditable | 18570 @DocsEditable() |
| 18571 void collapse(bool toStart) native; | 18571 void collapse(bool toStart) native; |
| 18572 | 18572 |
| 18573 @DomName('Range.compareNode') | 18573 @DomName('Range.compareNode') |
| 18574 @DocsEditable | 18574 @DocsEditable() |
| 18575 @deprecated // deprecated | 18575 @deprecated // deprecated |
| 18576 int compareNode(Node refNode) native; | 18576 int compareNode(Node refNode) native; |
| 18577 | 18577 |
| 18578 @DomName('Range.comparePoint') | 18578 @DomName('Range.comparePoint') |
| 18579 @DocsEditable | 18579 @DocsEditable() |
| 18580 int comparePoint(Node refNode, int offset) native; | 18580 int comparePoint(Node refNode, int offset) native; |
| 18581 | 18581 |
| 18582 @DomName('Range.createContextualFragment') | 18582 @DomName('Range.createContextualFragment') |
| 18583 @DocsEditable | 18583 @DocsEditable() |
| 18584 DocumentFragment createContextualFragment(String html) native; | 18584 DocumentFragment createContextualFragment(String html) native; |
| 18585 | 18585 |
| 18586 @DomName('Range.deleteContents') | 18586 @DomName('Range.deleteContents') |
| 18587 @DocsEditable | 18587 @DocsEditable() |
| 18588 void deleteContents() native; | 18588 void deleteContents() native; |
| 18589 | 18589 |
| 18590 @DomName('Range.detach') | 18590 @DomName('Range.detach') |
| 18591 @DocsEditable | 18591 @DocsEditable() |
| 18592 void detach() native; | 18592 void detach() native; |
| 18593 | 18593 |
| 18594 @DomName('Range.expand') | 18594 @DomName('Range.expand') |
| 18595 @DocsEditable | 18595 @DocsEditable() |
| 18596 @Experimental // non-standard | 18596 @Experimental() // non-standard |
| 18597 void expand(String unit) native; | 18597 void expand(String unit) native; |
| 18598 | 18598 |
| 18599 @DomName('Range.extractContents') | 18599 @DomName('Range.extractContents') |
| 18600 @DocsEditable | 18600 @DocsEditable() |
| 18601 DocumentFragment extractContents() native; | 18601 DocumentFragment extractContents() native; |
| 18602 | 18602 |
| 18603 @DomName('Range.getBoundingClientRect') | 18603 @DomName('Range.getBoundingClientRect') |
| 18604 @DocsEditable | 18604 @DocsEditable() |
| 18605 Rect getBoundingClientRect() native; | 18605 Rect getBoundingClientRect() native; |
| 18606 | 18606 |
| 18607 @DomName('Range.getClientRects') | 18607 @DomName('Range.getClientRects') |
| 18608 @DocsEditable | 18608 @DocsEditable() |
| 18609 @Returns('_ClientRectList') | 18609 @Returns('_ClientRectList') |
| 18610 @Creates('_ClientRectList') | 18610 @Creates('_ClientRectList') |
| 18611 List<Rect> getClientRects() native; | 18611 List<Rect> getClientRects() native; |
| 18612 | 18612 |
| 18613 @DomName('Range.insertNode') | 18613 @DomName('Range.insertNode') |
| 18614 @DocsEditable | 18614 @DocsEditable() |
| 18615 void insertNode(Node newNode) native; | 18615 void insertNode(Node newNode) native; |
| 18616 | 18616 |
| 18617 @DomName('Range.intersectsNode') | 18617 @DomName('Range.intersectsNode') |
| 18618 @DocsEditable | 18618 @DocsEditable() |
| 18619 @deprecated // deprecated | 18619 @deprecated // deprecated |
| 18620 bool intersectsNode(Node refNode) native; | 18620 bool intersectsNode(Node refNode) native; |
| 18621 | 18621 |
| 18622 @DomName('Range.isPointInRange') | 18622 @DomName('Range.isPointInRange') |
| 18623 @DocsEditable | 18623 @DocsEditable() |
| 18624 bool isPointInRange(Node refNode, int offset) native; | 18624 bool isPointInRange(Node refNode, int offset) native; |
| 18625 | 18625 |
| 18626 @DomName('Range.selectNode') | 18626 @DomName('Range.selectNode') |
| 18627 @DocsEditable | 18627 @DocsEditable() |
| 18628 void selectNode(Node refNode) native; | 18628 void selectNode(Node refNode) native; |
| 18629 | 18629 |
| 18630 @DomName('Range.selectNodeContents') | 18630 @DomName('Range.selectNodeContents') |
| 18631 @DocsEditable | 18631 @DocsEditable() |
| 18632 void selectNodeContents(Node refNode) native; | 18632 void selectNodeContents(Node refNode) native; |
| 18633 | 18633 |
| 18634 @DomName('Range.setEnd') | 18634 @DomName('Range.setEnd') |
| 18635 @DocsEditable | 18635 @DocsEditable() |
| 18636 void setEnd(Node refNode, int offset) native; | 18636 void setEnd(Node refNode, int offset) native; |
| 18637 | 18637 |
| 18638 @DomName('Range.setEndAfter') | 18638 @DomName('Range.setEndAfter') |
| 18639 @DocsEditable | 18639 @DocsEditable() |
| 18640 void setEndAfter(Node refNode) native; | 18640 void setEndAfter(Node refNode) native; |
| 18641 | 18641 |
| 18642 @DomName('Range.setEndBefore') | 18642 @DomName('Range.setEndBefore') |
| 18643 @DocsEditable | 18643 @DocsEditable() |
| 18644 void setEndBefore(Node refNode) native; | 18644 void setEndBefore(Node refNode) native; |
| 18645 | 18645 |
| 18646 @DomName('Range.setStart') | 18646 @DomName('Range.setStart') |
| 18647 @DocsEditable | 18647 @DocsEditable() |
| 18648 void setStart(Node refNode, int offset) native; | 18648 void setStart(Node refNode, int offset) native; |
| 18649 | 18649 |
| 18650 @DomName('Range.setStartAfter') | 18650 @DomName('Range.setStartAfter') |
| 18651 @DocsEditable | 18651 @DocsEditable() |
| 18652 void setStartAfter(Node refNode) native; | 18652 void setStartAfter(Node refNode) native; |
| 18653 | 18653 |
| 18654 @DomName('Range.setStartBefore') | 18654 @DomName('Range.setStartBefore') |
| 18655 @DocsEditable | 18655 @DocsEditable() |
| 18656 void setStartBefore(Node refNode) native; | 18656 void setStartBefore(Node refNode) native; |
| 18657 | 18657 |
| 18658 @DomName('Range.surroundContents') | 18658 @DomName('Range.surroundContents') |
| 18659 @DocsEditable | 18659 @DocsEditable() |
| 18660 void surroundContents(Node newParent) native; | 18660 void surroundContents(Node newParent) native; |
| 18661 | 18661 |
| 18662 @DomName('Range.toString') | 18662 @DomName('Range.toString') |
| 18663 @DocsEditable | 18663 @DocsEditable() |
| 18664 String toString() native; | 18664 String toString() native; |
| 18665 | 18665 |
| 18666 | 18666 |
| 18667 /** | 18667 /** |
| 18668 * Checks if createContextualFragment is supported. | 18668 * Checks if createContextualFragment is supported. |
| 18669 * | 18669 * |
| 18670 * See also: | 18670 * See also: |
| 18671 * | 18671 * |
| 18672 * * [createContextualFragment] | 18672 * * [createContextualFragment] |
| 18673 */ | 18673 */ |
| 18674 static bool get supportsCreateContextualFragment => | 18674 static bool get supportsCreateContextualFragment => |
| 18675 JS('bool', '("createContextualFragment" in window.Range.prototype)'); | 18675 JS('bool', '("createContextualFragment" in window.Range.prototype)'); |
| 18676 } | 18676 } |
| 18677 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18677 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18678 // for details. All rights reserved. Use of this source code is governed by a | 18678 // for details. All rights reserved. Use of this source code is governed by a |
| 18679 // BSD-style license that can be found in the LICENSE file. | 18679 // BSD-style license that can be found in the LICENSE file. |
| 18680 | 18680 |
| 18681 // WARNING: Do not edit - generated code. | 18681 // WARNING: Do not edit - generated code. |
| 18682 | 18682 |
| 18683 | 18683 |
| 18684 @DomName('RequestAnimationFrameCallback') | 18684 @DomName('RequestAnimationFrameCallback') |
| 18685 typedef void RequestAnimationFrameCallback(num highResTime); | 18685 typedef void RequestAnimationFrameCallback(num highResTime); |
| 18686 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18686 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18687 // for details. All rights reserved. Use of this source code is governed by a | 18687 // for details. All rights reserved. Use of this source code is governed by a |
| 18688 // BSD-style license that can be found in the LICENSE file. | 18688 // BSD-style license that can be found in the LICENSE file. |
| 18689 | 18689 |
| 18690 | 18690 |
| 18691 @DocsEditable | 18691 @DocsEditable() |
| 18692 @DomName('ResourceProgressEvent') | 18692 @DomName('ResourceProgressEvent') |
| 18693 // https://chromiumcodereview.appspot.com/14773025/ | 18693 // https://chromiumcodereview.appspot.com/14773025/ |
| 18694 @deprecated // experimental | 18694 @deprecated // experimental |
| 18695 class ResourceProgressEvent extends ProgressEvent native "ResourceProgressEvent"
{ | 18695 class ResourceProgressEvent extends ProgressEvent native "ResourceProgressEvent"
{ |
| 18696 // To suppress missing implicit constructor warnings. | 18696 // To suppress missing implicit constructor warnings. |
| 18697 factory ResourceProgressEvent._() { throw new UnsupportedError("Not supported"
); } | 18697 factory ResourceProgressEvent._() { throw new UnsupportedError("Not supported"
); } |
| 18698 | 18698 |
| 18699 @DomName('ResourceProgressEvent.url') | 18699 @DomName('ResourceProgressEvent.url') |
| 18700 @DocsEditable | 18700 @DocsEditable() |
| 18701 final String url; | 18701 final String url; |
| 18702 } | 18702 } |
| 18703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18703 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18704 // for details. All rights reserved. Use of this source code is governed by a | 18704 // for details. All rights reserved. Use of this source code is governed by a |
| 18705 // BSD-style license that can be found in the LICENSE file. | 18705 // BSD-style license that can be found in the LICENSE file. |
| 18706 | 18706 |
| 18707 | 18707 |
| 18708 @DocsEditable | 18708 @DocsEditable() |
| 18709 @DomName('RTCDataChannel') | 18709 @DomName('RTCDataChannel') |
| 18710 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDataChannel | 18710 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDataChannel |
| 18711 @Experimental | 18711 @Experimental() |
| 18712 class RtcDataChannel extends EventTarget native "RTCDataChannel,DataChannel" { | 18712 class RtcDataChannel extends EventTarget native "RTCDataChannel,DataChannel" { |
| 18713 // To suppress missing implicit constructor warnings. | 18713 // To suppress missing implicit constructor warnings. |
| 18714 factory RtcDataChannel._() { throw new UnsupportedError("Not supported"); } | 18714 factory RtcDataChannel._() { throw new UnsupportedError("Not supported"); } |
| 18715 | 18715 |
| 18716 @DomName('RTCDataChannel.closeEvent') | 18716 @DomName('RTCDataChannel.closeEvent') |
| 18717 @DocsEditable | 18717 @DocsEditable() |
| 18718 static const EventStreamProvider<Event> closeEvent = const EventStreamProvider
<Event>('close'); | 18718 static const EventStreamProvider<Event> closeEvent = const EventStreamProvider
<Event>('close'); |
| 18719 | 18719 |
| 18720 @DomName('RTCDataChannel.errorEvent') | 18720 @DomName('RTCDataChannel.errorEvent') |
| 18721 @DocsEditable | 18721 @DocsEditable() |
| 18722 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 18722 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 18723 | 18723 |
| 18724 @DomName('RTCDataChannel.messageEvent') | 18724 @DomName('RTCDataChannel.messageEvent') |
| 18725 @DocsEditable | 18725 @DocsEditable() |
| 18726 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea
mProvider<MessageEvent>('message'); | 18726 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea
mProvider<MessageEvent>('message'); |
| 18727 | 18727 |
| 18728 @DomName('RTCDataChannel.openEvent') | 18728 @DomName('RTCDataChannel.openEvent') |
| 18729 @DocsEditable | 18729 @DocsEditable() |
| 18730 static const EventStreamProvider<Event> openEvent = const EventStreamProvider<
Event>('open'); | 18730 static const EventStreamProvider<Event> openEvent = const EventStreamProvider<
Event>('open'); |
| 18731 | 18731 |
| 18732 @DomName('RTCDataChannel.binaryType') | 18732 @DomName('RTCDataChannel.binaryType') |
| 18733 @DocsEditable | 18733 @DocsEditable() |
| 18734 String binaryType; | 18734 String binaryType; |
| 18735 | 18735 |
| 18736 @DomName('RTCDataChannel.bufferedAmount') | 18736 @DomName('RTCDataChannel.bufferedAmount') |
| 18737 @DocsEditable | 18737 @DocsEditable() |
| 18738 final int bufferedAmount; | 18738 final int bufferedAmount; |
| 18739 | 18739 |
| 18740 @DomName('RTCDataChannel.label') | 18740 @DomName('RTCDataChannel.label') |
| 18741 @DocsEditable | 18741 @DocsEditable() |
| 18742 final String label; | 18742 final String label; |
| 18743 | 18743 |
| 18744 @DomName('RTCDataChannel.readyState') | 18744 @DomName('RTCDataChannel.readyState') |
| 18745 @DocsEditable | 18745 @DocsEditable() |
| 18746 final String readyState; | 18746 final String readyState; |
| 18747 | 18747 |
| 18748 @DomName('RTCDataChannel.reliable') | 18748 @DomName('RTCDataChannel.reliable') |
| 18749 @DocsEditable | 18749 @DocsEditable() |
| 18750 final bool reliable; | 18750 final bool reliable; |
| 18751 | 18751 |
| 18752 @JSName('addEventListener') | 18752 @JSName('addEventListener') |
| 18753 @DomName('RTCDataChannel.addEventListener') | 18753 @DomName('RTCDataChannel.addEventListener') |
| 18754 @DocsEditable | 18754 @DocsEditable() |
| 18755 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 18755 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 18756 | 18756 |
| 18757 @DomName('RTCDataChannel.close') | 18757 @DomName('RTCDataChannel.close') |
| 18758 @DocsEditable | 18758 @DocsEditable() |
| 18759 void close() native; | 18759 void close() native; |
| 18760 | 18760 |
| 18761 @DomName('RTCDataChannel.dispatchEvent') | 18761 @DomName('RTCDataChannel.dispatchEvent') |
| 18762 @DocsEditable | 18762 @DocsEditable() |
| 18763 bool dispatchEvent(Event event) native; | 18763 bool dispatchEvent(Event event) native; |
| 18764 | 18764 |
| 18765 @JSName('removeEventListener') | 18765 @JSName('removeEventListener') |
| 18766 @DomName('RTCDataChannel.removeEventListener') | 18766 @DomName('RTCDataChannel.removeEventListener') |
| 18767 @DocsEditable | 18767 @DocsEditable() |
| 18768 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 18768 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 18769 | 18769 |
| 18770 @DomName('RTCDataChannel.send') | 18770 @DomName('RTCDataChannel.send') |
| 18771 @DocsEditable | 18771 @DocsEditable() |
| 18772 void send(data) native; | 18772 void send(data) native; |
| 18773 | 18773 |
| 18774 @DomName('RTCDataChannel.onclose') | 18774 @DomName('RTCDataChannel.onclose') |
| 18775 @DocsEditable | 18775 @DocsEditable() |
| 18776 Stream<Event> get onClose => closeEvent.forTarget(this); | 18776 Stream<Event> get onClose => closeEvent.forTarget(this); |
| 18777 | 18777 |
| 18778 @DomName('RTCDataChannel.onerror') | 18778 @DomName('RTCDataChannel.onerror') |
| 18779 @DocsEditable | 18779 @DocsEditable() |
| 18780 Stream<Event> get onError => errorEvent.forTarget(this); | 18780 Stream<Event> get onError => errorEvent.forTarget(this); |
| 18781 | 18781 |
| 18782 @DomName('RTCDataChannel.onmessage') | 18782 @DomName('RTCDataChannel.onmessage') |
| 18783 @DocsEditable | 18783 @DocsEditable() |
| 18784 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); | 18784 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); |
| 18785 | 18785 |
| 18786 @DomName('RTCDataChannel.onopen') | 18786 @DomName('RTCDataChannel.onopen') |
| 18787 @DocsEditable | 18787 @DocsEditable() |
| 18788 Stream<Event> get onOpen => openEvent.forTarget(this); | 18788 Stream<Event> get onOpen => openEvent.forTarget(this); |
| 18789 } | 18789 } |
| 18790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18791 // for details. All rights reserved. Use of this source code is governed by a | 18791 // for details. All rights reserved. Use of this source code is governed by a |
| 18792 // BSD-style license that can be found in the LICENSE file. | 18792 // BSD-style license that can be found in the LICENSE file. |
| 18793 | 18793 |
| 18794 | 18794 |
| 18795 @DocsEditable | 18795 @DocsEditable() |
| 18796 @DomName('RTCDataChannelEvent') | 18796 @DomName('RTCDataChannelEvent') |
| 18797 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#rtcdatachannelevent | 18797 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#rtcdatachannelevent |
| 18798 @Experimental | 18798 @Experimental() |
| 18799 class RtcDataChannelEvent extends Event native "RTCDataChannelEvent" { | 18799 class RtcDataChannelEvent extends Event native "RTCDataChannelEvent" { |
| 18800 // To suppress missing implicit constructor warnings. | 18800 // To suppress missing implicit constructor warnings. |
| 18801 factory RtcDataChannelEvent._() { throw new UnsupportedError("Not supported");
} | 18801 factory RtcDataChannelEvent._() { throw new UnsupportedError("Not supported");
} |
| 18802 | 18802 |
| 18803 @DomName('RTCDataChannelEvent.channel') | 18803 @DomName('RTCDataChannelEvent.channel') |
| 18804 @DocsEditable | 18804 @DocsEditable() |
| 18805 final RtcDataChannel channel; | 18805 final RtcDataChannel channel; |
| 18806 } | 18806 } |
| 18807 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18807 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18808 // for details. All rights reserved. Use of this source code is governed by a | 18808 // for details. All rights reserved. Use of this source code is governed by a |
| 18809 // BSD-style license that can be found in the LICENSE file. | 18809 // BSD-style license that can be found in the LICENSE file. |
| 18810 | 18810 |
| 18811 | 18811 |
| 18812 @DocsEditable | 18812 @DocsEditable() |
| 18813 @DomName('RTCDTMFSender') | 18813 @DomName('RTCDTMFSender') |
| 18814 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDTMFSender | 18814 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDTMFSender |
| 18815 @Experimental | 18815 @Experimental() |
| 18816 class RtcDtmfSender extends EventTarget native "RTCDTMFSender" { | 18816 class RtcDtmfSender extends EventTarget native "RTCDTMFSender" { |
| 18817 // To suppress missing implicit constructor warnings. | 18817 // To suppress missing implicit constructor warnings. |
| 18818 factory RtcDtmfSender._() { throw new UnsupportedError("Not supported"); } | 18818 factory RtcDtmfSender._() { throw new UnsupportedError("Not supported"); } |
| 18819 | 18819 |
| 18820 @DomName('RTCDTMFSender.tonechangeEvent') | 18820 @DomName('RTCDTMFSender.tonechangeEvent') |
| 18821 @DocsEditable | 18821 @DocsEditable() |
| 18822 static const EventStreamProvider<RtcDtmfToneChangeEvent> toneChangeEvent = con
st EventStreamProvider<RtcDtmfToneChangeEvent>('tonechange'); | 18822 static const EventStreamProvider<RtcDtmfToneChangeEvent> toneChangeEvent = con
st EventStreamProvider<RtcDtmfToneChangeEvent>('tonechange'); |
| 18823 | 18823 |
| 18824 @JSName('canInsertDTMF') | 18824 @JSName('canInsertDTMF') |
| 18825 @DomName('RTCDTMFSender.canInsertDTMF') | 18825 @DomName('RTCDTMFSender.canInsertDTMF') |
| 18826 @DocsEditable | 18826 @DocsEditable() |
| 18827 final bool canInsertDtmf; | 18827 final bool canInsertDtmf; |
| 18828 | 18828 |
| 18829 @DomName('RTCDTMFSender.duration') | 18829 @DomName('RTCDTMFSender.duration') |
| 18830 @DocsEditable | 18830 @DocsEditable() |
| 18831 final int duration; | 18831 final int duration; |
| 18832 | 18832 |
| 18833 @DomName('RTCDTMFSender.interToneGap') | 18833 @DomName('RTCDTMFSender.interToneGap') |
| 18834 @DocsEditable | 18834 @DocsEditable() |
| 18835 final int interToneGap; | 18835 final int interToneGap; |
| 18836 | 18836 |
| 18837 @DomName('RTCDTMFSender.toneBuffer') | 18837 @DomName('RTCDTMFSender.toneBuffer') |
| 18838 @DocsEditable | 18838 @DocsEditable() |
| 18839 final String toneBuffer; | 18839 final String toneBuffer; |
| 18840 | 18840 |
| 18841 @DomName('RTCDTMFSender.track') | 18841 @DomName('RTCDTMFSender.track') |
| 18842 @DocsEditable | 18842 @DocsEditable() |
| 18843 final MediaStreamTrack track; | 18843 final MediaStreamTrack track; |
| 18844 | 18844 |
| 18845 @JSName('addEventListener') | 18845 @JSName('addEventListener') |
| 18846 @DomName('RTCDTMFSender.addEventListener') | 18846 @DomName('RTCDTMFSender.addEventListener') |
| 18847 @DocsEditable | 18847 @DocsEditable() |
| 18848 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 18848 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 18849 | 18849 |
| 18850 @DomName('RTCDTMFSender.dispatchEvent') | 18850 @DomName('RTCDTMFSender.dispatchEvent') |
| 18851 @DocsEditable | 18851 @DocsEditable() |
| 18852 bool dispatchEvent(Event event) native; | 18852 bool dispatchEvent(Event event) native; |
| 18853 | 18853 |
| 18854 @JSName('insertDTMF') | 18854 @JSName('insertDTMF') |
| 18855 @DomName('RTCDTMFSender.insertDTMF') | 18855 @DomName('RTCDTMFSender.insertDTMF') |
| 18856 @DocsEditable | 18856 @DocsEditable() |
| 18857 void insertDtmf(String tones, [int duration, int interToneGap]) native; | 18857 void insertDtmf(String tones, [int duration, int interToneGap]) native; |
| 18858 | 18858 |
| 18859 @JSName('removeEventListener') | 18859 @JSName('removeEventListener') |
| 18860 @DomName('RTCDTMFSender.removeEventListener') | 18860 @DomName('RTCDTMFSender.removeEventListener') |
| 18861 @DocsEditable | 18861 @DocsEditable() |
| 18862 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 18862 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 18863 | 18863 |
| 18864 @DomName('RTCDTMFSender.ontonechange') | 18864 @DomName('RTCDTMFSender.ontonechange') |
| 18865 @DocsEditable | 18865 @DocsEditable() |
| 18866 Stream<RtcDtmfToneChangeEvent> get onToneChange => toneChangeEvent.forTarget(t
his); | 18866 Stream<RtcDtmfToneChangeEvent> get onToneChange => toneChangeEvent.forTarget(t
his); |
| 18867 } | 18867 } |
| 18868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18868 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18869 // for details. All rights reserved. Use of this source code is governed by a | 18869 // for details. All rights reserved. Use of this source code is governed by a |
| 18870 // BSD-style license that can be found in the LICENSE file. | 18870 // BSD-style license that can be found in the LICENSE file. |
| 18871 | 18871 |
| 18872 | 18872 |
| 18873 @DocsEditable | 18873 @DocsEditable() |
| 18874 @DomName('RTCDTMFToneChangeEvent') | 18874 @DomName('RTCDTMFToneChangeEvent') |
| 18875 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDTMFToneChangeEve
nt | 18875 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCDTMFToneChangeEve
nt |
| 18876 @Experimental | 18876 @Experimental() |
| 18877 class RtcDtmfToneChangeEvent extends Event native "RTCDTMFToneChangeEvent" { | 18877 class RtcDtmfToneChangeEvent extends Event native "RTCDTMFToneChangeEvent" { |
| 18878 // To suppress missing implicit constructor warnings. | 18878 // To suppress missing implicit constructor warnings. |
| 18879 factory RtcDtmfToneChangeEvent._() { throw new UnsupportedError("Not supported
"); } | 18879 factory RtcDtmfToneChangeEvent._() { throw new UnsupportedError("Not supported
"); } |
| 18880 | 18880 |
| 18881 @DomName('RTCDTMFToneChangeEvent.tone') | 18881 @DomName('RTCDTMFToneChangeEvent.tone') |
| 18882 @DocsEditable | 18882 @DocsEditable() |
| 18883 final String tone; | 18883 final String tone; |
| 18884 } | 18884 } |
| 18885 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 18885 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 18886 // for details. All rights reserved. Use of this source code is governed by a | 18886 // for details. All rights reserved. Use of this source code is governed by a |
| 18887 // BSD-style license that can be found in the LICENSE file. | 18887 // BSD-style license that can be found in the LICENSE file. |
| 18888 | 18888 |
| 18889 | 18889 |
| 18890 @DomName('RTCIceCandidate') | 18890 @DomName('RTCIceCandidate') |
| 18891 @SupportedBrowser(SupportedBrowser.CHROME) | 18891 @SupportedBrowser(SupportedBrowser.CHROME) |
| 18892 @Experimental | 18892 @Experimental() |
| 18893 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCIceCandidate | 18893 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCIceCandidate |
| 18894 class RtcIceCandidate extends Interceptor native "RTCIceCandidate,mozRTCIceCandi
date" { | 18894 class RtcIceCandidate extends Interceptor native "RTCIceCandidate,mozRTCIceCandi
date" { |
| 18895 factory RtcIceCandidate(Map dictionary) { | 18895 factory RtcIceCandidate(Map dictionary) { |
| 18896 // TODO(efortuna): Remove this check if when you can actually construct with | 18896 // TODO(efortuna): Remove this check if when you can actually construct with |
| 18897 // the unprefixed RTCIceCandidate in Firefox (currently both are defined, | 18897 // the unprefixed RTCIceCandidate in Firefox (currently both are defined, |
| 18898 // but one can't be used as a constructor). | 18898 // but one can't be used as a constructor). |
| 18899 var constructorName = JS('', 'window[#]', | 18899 var constructorName = JS('', 'window[#]', |
| 18900 Device.isFirefox ? '${Device.propertyPrefix}RTCIceCandidate' : | 18900 Device.isFirefox ? '${Device.propertyPrefix}RTCIceCandidate' : |
| 18901 'RTCIceCandidate'); | 18901 'RTCIceCandidate'); |
| 18902 return JS('RtcIceCandidate', 'new #(#)', constructorName, | 18902 return JS('RtcIceCandidate', 'new #(#)', constructorName, |
| 18903 convertDartToNative_SerializedScriptValue(dictionary)); | 18903 convertDartToNative_SerializedScriptValue(dictionary)); |
| 18904 } | 18904 } |
| 18905 | 18905 |
| 18906 @DomName('RTCIceCandidate.candidate') | 18906 @DomName('RTCIceCandidate.candidate') |
| 18907 @DocsEditable | 18907 @DocsEditable() |
| 18908 final String candidate; | 18908 final String candidate; |
| 18909 | 18909 |
| 18910 @DomName('RTCIceCandidate.sdpMLineIndex') | 18910 @DomName('RTCIceCandidate.sdpMLineIndex') |
| 18911 @DocsEditable | 18911 @DocsEditable() |
| 18912 final int sdpMLineIndex; | 18912 final int sdpMLineIndex; |
| 18913 | 18913 |
| 18914 @DomName('RTCIceCandidate.sdpMid') | 18914 @DomName('RTCIceCandidate.sdpMid') |
| 18915 @DocsEditable | 18915 @DocsEditable() |
| 18916 final String sdpMid; | 18916 final String sdpMid; |
| 18917 | 18917 |
| 18918 } | 18918 } |
| 18919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 18919 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 18920 // for details. All rights reserved. Use of this source code is governed by a | 18920 // for details. All rights reserved. Use of this source code is governed by a |
| 18921 // BSD-style license that can be found in the LICENSE file. | 18921 // BSD-style license that can be found in the LICENSE file. |
| 18922 | 18922 |
| 18923 | 18923 |
| 18924 @DocsEditable | 18924 @DocsEditable() |
| 18925 @DomName('RTCIceCandidateEvent') | 18925 @DomName('RTCIceCandidateEvent') |
| 18926 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#rtcicecandidate-type | 18926 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#rtcicecandidate-type |
| 18927 @Experimental | 18927 @Experimental() |
| 18928 class RtcIceCandidateEvent extends Event native "RTCIceCandidateEvent" { | 18928 class RtcIceCandidateEvent extends Event native "RTCIceCandidateEvent" { |
| 18929 // To suppress missing implicit constructor warnings. | 18929 // To suppress missing implicit constructor warnings. |
| 18930 factory RtcIceCandidateEvent._() { throw new UnsupportedError("Not supported")
; } | 18930 factory RtcIceCandidateEvent._() { throw new UnsupportedError("Not supported")
; } |
| 18931 | 18931 |
| 18932 @DomName('RTCIceCandidateEvent.candidate') | 18932 @DomName('RTCIceCandidateEvent.candidate') |
| 18933 @DocsEditable | 18933 @DocsEditable() |
| 18934 final RtcIceCandidate candidate; | 18934 final RtcIceCandidate candidate; |
| 18935 } | 18935 } |
| 18936 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 18936 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 18937 // for details. All rights reserved. Use of this source code is governed by a | 18937 // for details. All rights reserved. Use of this source code is governed by a |
| 18938 // BSD-style license that can be found in the LICENSE file. | 18938 // BSD-style license that can be found in the LICENSE file. |
| 18939 | 18939 |
| 18940 | 18940 |
| 18941 @DomName('RTCPeerConnection') | 18941 @DomName('RTCPeerConnection') |
| 18942 @SupportedBrowser(SupportedBrowser.CHROME) | 18942 @SupportedBrowser(SupportedBrowser.CHROME) |
| 18943 @Experimental | 18943 @Experimental() |
| 18944 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCPeerConnection | 18944 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCPeerConnection |
| 18945 class RtcPeerConnection extends EventTarget native "RTCPeerConnection,mozRTCPeer
Connection" { | 18945 class RtcPeerConnection extends EventTarget native "RTCPeerConnection,mozRTCPeer
Connection" { |
| 18946 factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { | 18946 factory RtcPeerConnection(Map rtcIceServers, [Map mediaConstraints]) { |
| 18947 var constructorName = JS('RtcPeerConnection', 'window[#]', | 18947 var constructorName = JS('RtcPeerConnection', 'window[#]', |
| 18948 '${Device.propertyPrefix}RTCPeerConnection'); | 18948 '${Device.propertyPrefix}RTCPeerConnection'); |
| 18949 if (mediaConstraints != null) { | 18949 if (mediaConstraints != null) { |
| 18950 return JS('RtcPeerConnection', 'new #(#,#)', constructorName, | 18950 return JS('RtcPeerConnection', 'new #(#,#)', constructorName, |
| 18951 convertDartToNative_SerializedScriptValue(rtcIceServers), | 18951 convertDartToNative_SerializedScriptValue(rtcIceServers), |
| 18952 convertDartToNative_SerializedScriptValue(mediaConstraints)); | 18952 convertDartToNative_SerializedScriptValue(mediaConstraints)); |
| 18953 } else { | 18953 } else { |
| (...skipping 30 matching lines...) Expand all Loading... |
| 18984 var completer = new Completer<RtcSessionDescription>(); | 18984 var completer = new Completer<RtcSessionDescription>(); |
| 18985 _createAnswer( | 18985 _createAnswer( |
| 18986 (value) { completer.complete(value); }, | 18986 (value) { completer.complete(value); }, |
| 18987 (error) { completer.completeError(error); }, mediaConstraints); | 18987 (error) { completer.completeError(error); }, mediaConstraints); |
| 18988 return completer.future; | 18988 return completer.future; |
| 18989 } | 18989 } |
| 18990 // To suppress missing implicit constructor warnings. | 18990 // To suppress missing implicit constructor warnings. |
| 18991 factory RtcPeerConnection._() { throw new UnsupportedError("Not supported"); } | 18991 factory RtcPeerConnection._() { throw new UnsupportedError("Not supported"); } |
| 18992 | 18992 |
| 18993 @DomName('RTCPeerConnection.addstreamEvent') | 18993 @DomName('RTCPeerConnection.addstreamEvent') |
| 18994 @DocsEditable | 18994 @DocsEditable() |
| 18995 static const EventStreamProvider<MediaStreamEvent> addStreamEvent = const Even
tStreamProvider<MediaStreamEvent>('addstream'); | 18995 static const EventStreamProvider<MediaStreamEvent> addStreamEvent = const Even
tStreamProvider<MediaStreamEvent>('addstream'); |
| 18996 | 18996 |
| 18997 @DomName('RTCPeerConnection.datachannelEvent') | 18997 @DomName('RTCPeerConnection.datachannelEvent') |
| 18998 @DocsEditable | 18998 @DocsEditable() |
| 18999 static const EventStreamProvider<RtcDataChannelEvent> dataChannelEvent = const
EventStreamProvider<RtcDataChannelEvent>('datachannel'); | 18999 static const EventStreamProvider<RtcDataChannelEvent> dataChannelEvent = const
EventStreamProvider<RtcDataChannelEvent>('datachannel'); |
| 19000 | 19000 |
| 19001 @DomName('RTCPeerConnection.icecandidateEvent') | 19001 @DomName('RTCPeerConnection.icecandidateEvent') |
| 19002 @DocsEditable | 19002 @DocsEditable() |
| 19003 static const EventStreamProvider<RtcIceCandidateEvent> iceCandidateEvent = con
st EventStreamProvider<RtcIceCandidateEvent>('icecandidate'); | 19003 static const EventStreamProvider<RtcIceCandidateEvent> iceCandidateEvent = con
st EventStreamProvider<RtcIceCandidateEvent>('icecandidate'); |
| 19004 | 19004 |
| 19005 @DomName('RTCPeerConnection.iceconnectionstatechangeEvent') | 19005 @DomName('RTCPeerConnection.iceconnectionstatechangeEvent') |
| 19006 @DocsEditable | 19006 @DocsEditable() |
| 19007 static const EventStreamProvider<Event> iceConnectionStateChangeEvent = const
EventStreamProvider<Event>('iceconnectionstatechange'); | 19007 static const EventStreamProvider<Event> iceConnectionStateChangeEvent = const
EventStreamProvider<Event>('iceconnectionstatechange'); |
| 19008 | 19008 |
| 19009 @DomName('RTCPeerConnection.negotiationneededEvent') | 19009 @DomName('RTCPeerConnection.negotiationneededEvent') |
| 19010 @DocsEditable | 19010 @DocsEditable() |
| 19011 static const EventStreamProvider<Event> negotiationNeededEvent = const EventSt
reamProvider<Event>('negotiationneeded'); | 19011 static const EventStreamProvider<Event> negotiationNeededEvent = const EventSt
reamProvider<Event>('negotiationneeded'); |
| 19012 | 19012 |
| 19013 @DomName('RTCPeerConnection.removestreamEvent') | 19013 @DomName('RTCPeerConnection.removestreamEvent') |
| 19014 @DocsEditable | 19014 @DocsEditable() |
| 19015 static const EventStreamProvider<MediaStreamEvent> removeStreamEvent = const E
ventStreamProvider<MediaStreamEvent>('removestream'); | 19015 static const EventStreamProvider<MediaStreamEvent> removeStreamEvent = const E
ventStreamProvider<MediaStreamEvent>('removestream'); |
| 19016 | 19016 |
| 19017 @DomName('RTCPeerConnection.signalingstatechangeEvent') | 19017 @DomName('RTCPeerConnection.signalingstatechangeEvent') |
| 19018 @DocsEditable | 19018 @DocsEditable() |
| 19019 static const EventStreamProvider<Event> signalingStateChangeEvent = const Even
tStreamProvider<Event>('signalingstatechange'); | 19019 static const EventStreamProvider<Event> signalingStateChangeEvent = const Even
tStreamProvider<Event>('signalingstatechange'); |
| 19020 | 19020 |
| 19021 @DomName('RTCPeerConnection.iceConnectionState') | 19021 @DomName('RTCPeerConnection.iceConnectionState') |
| 19022 @DocsEditable | 19022 @DocsEditable() |
| 19023 final String iceConnectionState; | 19023 final String iceConnectionState; |
| 19024 | 19024 |
| 19025 @DomName('RTCPeerConnection.iceGatheringState') | 19025 @DomName('RTCPeerConnection.iceGatheringState') |
| 19026 @DocsEditable | 19026 @DocsEditable() |
| 19027 final String iceGatheringState; | 19027 final String iceGatheringState; |
| 19028 | 19028 |
| 19029 @DomName('RTCPeerConnection.localDescription') | 19029 @DomName('RTCPeerConnection.localDescription') |
| 19030 @DocsEditable | 19030 @DocsEditable() |
| 19031 final RtcSessionDescription localDescription; | 19031 final RtcSessionDescription localDescription; |
| 19032 | 19032 |
| 19033 @DomName('RTCPeerConnection.remoteDescription') | 19033 @DomName('RTCPeerConnection.remoteDescription') |
| 19034 @DocsEditable | 19034 @DocsEditable() |
| 19035 final RtcSessionDescription remoteDescription; | 19035 final RtcSessionDescription remoteDescription; |
| 19036 | 19036 |
| 19037 @DomName('RTCPeerConnection.signalingState') | 19037 @DomName('RTCPeerConnection.signalingState') |
| 19038 @DocsEditable | 19038 @DocsEditable() |
| 19039 final String signalingState; | 19039 final String signalingState; |
| 19040 | 19040 |
| 19041 @JSName('addEventListener') | 19041 @JSName('addEventListener') |
| 19042 @DomName('RTCPeerConnection.addEventListener') | 19042 @DomName('RTCPeerConnection.addEventListener') |
| 19043 @DocsEditable | 19043 @DocsEditable() |
| 19044 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 19044 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 19045 | 19045 |
| 19046 @DomName('RTCPeerConnection.addIceCandidate') | 19046 @DomName('RTCPeerConnection.addIceCandidate') |
| 19047 @DocsEditable | 19047 @DocsEditable() |
| 19048 void addIceCandidate(RtcIceCandidate candidate) native; | 19048 void addIceCandidate(RtcIceCandidate candidate) native; |
| 19049 | 19049 |
| 19050 @DomName('RTCPeerConnection.addStream') | 19050 @DomName('RTCPeerConnection.addStream') |
| 19051 @DocsEditable | 19051 @DocsEditable() |
| 19052 void addStream(MediaStream stream, [Map mediaConstraints]) { | 19052 void addStream(MediaStream stream, [Map mediaConstraints]) { |
| 19053 if (mediaConstraints != null) { | 19053 if (mediaConstraints != null) { |
| 19054 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 19054 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| 19055 _addStream_1(stream, mediaConstraints_1); | 19055 _addStream_1(stream, mediaConstraints_1); |
| 19056 return; | 19056 return; |
| 19057 } | 19057 } |
| 19058 _addStream_2(stream); | 19058 _addStream_2(stream); |
| 19059 return; | 19059 return; |
| 19060 } | 19060 } |
| 19061 @JSName('addStream') | 19061 @JSName('addStream') |
| 19062 @DomName('RTCPeerConnection.addStream') | 19062 @DomName('RTCPeerConnection.addStream') |
| 19063 @DocsEditable | 19063 @DocsEditable() |
| 19064 void _addStream_1(MediaStream stream, mediaConstraints) native; | 19064 void _addStream_1(MediaStream stream, mediaConstraints) native; |
| 19065 @JSName('addStream') | 19065 @JSName('addStream') |
| 19066 @DomName('RTCPeerConnection.addStream') | 19066 @DomName('RTCPeerConnection.addStream') |
| 19067 @DocsEditable | 19067 @DocsEditable() |
| 19068 void _addStream_2(MediaStream stream) native; | 19068 void _addStream_2(MediaStream stream) native; |
| 19069 | 19069 |
| 19070 @DomName('RTCPeerConnection.close') | 19070 @DomName('RTCPeerConnection.close') |
| 19071 @DocsEditable | 19071 @DocsEditable() |
| 19072 void close() native; | 19072 void close() native; |
| 19073 | 19073 |
| 19074 @DomName('RTCPeerConnection.createAnswer') | 19074 @DomName('RTCPeerConnection.createAnswer') |
| 19075 @DocsEditable | 19075 @DocsEditable() |
| 19076 void _createAnswer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorC
allback failureCallback, Map mediaConstraints]) { | 19076 void _createAnswer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorC
allback failureCallback, Map mediaConstraints]) { |
| 19077 if (mediaConstraints != null) { | 19077 if (mediaConstraints != null) { |
| 19078 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 19078 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| 19079 __createAnswer_1(successCallback, failureCallback, mediaConstraints_1); | 19079 __createAnswer_1(successCallback, failureCallback, mediaConstraints_1); |
| 19080 return; | 19080 return; |
| 19081 } | 19081 } |
| 19082 __createAnswer_2(successCallback, failureCallback); | 19082 __createAnswer_2(successCallback, failureCallback); |
| 19083 return; | 19083 return; |
| 19084 } | 19084 } |
| 19085 @JSName('createAnswer') | 19085 @JSName('createAnswer') |
| 19086 @DomName('RTCPeerConnection.createAnswer') | 19086 @DomName('RTCPeerConnection.createAnswer') |
| 19087 @DocsEditable | 19087 @DocsEditable() |
| 19088 void __createAnswer_1(_RtcSessionDescriptionCallback successCallback, _RtcErro
rCallback failureCallback, mediaConstraints) native; | 19088 void __createAnswer_1(_RtcSessionDescriptionCallback successCallback, _RtcErro
rCallback failureCallback, mediaConstraints) native; |
| 19089 @JSName('createAnswer') | 19089 @JSName('createAnswer') |
| 19090 @DomName('RTCPeerConnection.createAnswer') | 19090 @DomName('RTCPeerConnection.createAnswer') |
| 19091 @DocsEditable | 19091 @DocsEditable() |
| 19092 void __createAnswer_2(_RtcSessionDescriptionCallback successCallback, _RtcErro
rCallback failureCallback) native; | 19092 void __createAnswer_2(_RtcSessionDescriptionCallback successCallback, _RtcErro
rCallback failureCallback) native; |
| 19093 | 19093 |
| 19094 @JSName('createDTMFSender') | 19094 @JSName('createDTMFSender') |
| 19095 @DomName('RTCPeerConnection.createDTMFSender') | 19095 @DomName('RTCPeerConnection.createDTMFSender') |
| 19096 @DocsEditable | 19096 @DocsEditable() |
| 19097 RtcDtmfSender createDtmfSender(MediaStreamTrack track) native; | 19097 RtcDtmfSender createDtmfSender(MediaStreamTrack track) native; |
| 19098 | 19098 |
| 19099 @DomName('RTCPeerConnection.createDataChannel') | 19099 @DomName('RTCPeerConnection.createDataChannel') |
| 19100 @DocsEditable | 19100 @DocsEditable() |
| 19101 RtcDataChannel createDataChannel(String label, [Map options]) { | 19101 RtcDataChannel createDataChannel(String label, [Map options]) { |
| 19102 if (options != null) { | 19102 if (options != null) { |
| 19103 var options_1 = convertDartToNative_Dictionary(options); | 19103 var options_1 = convertDartToNative_Dictionary(options); |
| 19104 return _createDataChannel_1(label, options_1); | 19104 return _createDataChannel_1(label, options_1); |
| 19105 } | 19105 } |
| 19106 return _createDataChannel_2(label); | 19106 return _createDataChannel_2(label); |
| 19107 } | 19107 } |
| 19108 @JSName('createDataChannel') | 19108 @JSName('createDataChannel') |
| 19109 @DomName('RTCPeerConnection.createDataChannel') | 19109 @DomName('RTCPeerConnection.createDataChannel') |
| 19110 @DocsEditable | 19110 @DocsEditable() |
| 19111 RtcDataChannel _createDataChannel_1(label, options) native; | 19111 RtcDataChannel _createDataChannel_1(label, options) native; |
| 19112 @JSName('createDataChannel') | 19112 @JSName('createDataChannel') |
| 19113 @DomName('RTCPeerConnection.createDataChannel') | 19113 @DomName('RTCPeerConnection.createDataChannel') |
| 19114 @DocsEditable | 19114 @DocsEditable() |
| 19115 RtcDataChannel _createDataChannel_2(label) native; | 19115 RtcDataChannel _createDataChannel_2(label) native; |
| 19116 | 19116 |
| 19117 @DomName('RTCPeerConnection.createOffer') | 19117 @DomName('RTCPeerConnection.createOffer') |
| 19118 @DocsEditable | 19118 @DocsEditable() |
| 19119 void _createOffer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorCa
llback failureCallback, Map mediaConstraints]) { | 19119 void _createOffer(_RtcSessionDescriptionCallback successCallback, [_RtcErrorCa
llback failureCallback, Map mediaConstraints]) { |
| 19120 if (mediaConstraints != null) { | 19120 if (mediaConstraints != null) { |
| 19121 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); | 19121 var mediaConstraints_1 = convertDartToNative_Dictionary(mediaConstraints); |
| 19122 __createOffer_1(successCallback, failureCallback, mediaConstraints_1); | 19122 __createOffer_1(successCallback, failureCallback, mediaConstraints_1); |
| 19123 return; | 19123 return; |
| 19124 } | 19124 } |
| 19125 __createOffer_2(successCallback, failureCallback); | 19125 __createOffer_2(successCallback, failureCallback); |
| 19126 return; | 19126 return; |
| 19127 } | 19127 } |
| 19128 @JSName('createOffer') | 19128 @JSName('createOffer') |
| 19129 @DomName('RTCPeerConnection.createOffer') | 19129 @DomName('RTCPeerConnection.createOffer') |
| 19130 @DocsEditable | 19130 @DocsEditable() |
| 19131 void __createOffer_1(_RtcSessionDescriptionCallback successCallback, _RtcError
Callback failureCallback, mediaConstraints) native; | 19131 void __createOffer_1(_RtcSessionDescriptionCallback successCallback, _RtcError
Callback failureCallback, mediaConstraints) native; |
| 19132 @JSName('createOffer') | 19132 @JSName('createOffer') |
| 19133 @DomName('RTCPeerConnection.createOffer') | 19133 @DomName('RTCPeerConnection.createOffer') |
| 19134 @DocsEditable | 19134 @DocsEditable() |
| 19135 void __createOffer_2(_RtcSessionDescriptionCallback successCallback, _RtcError
Callback failureCallback) native; | 19135 void __createOffer_2(_RtcSessionDescriptionCallback successCallback, _RtcError
Callback failureCallback) native; |
| 19136 | 19136 |
| 19137 @DomName('RTCPeerConnection.dispatchEvent') | 19137 @DomName('RTCPeerConnection.dispatchEvent') |
| 19138 @DocsEditable | 19138 @DocsEditable() |
| 19139 bool dispatchEvent(Event event) native; | 19139 bool dispatchEvent(Event event) native; |
| 19140 | 19140 |
| 19141 @DomName('RTCPeerConnection.getLocalStreams') | 19141 @DomName('RTCPeerConnection.getLocalStreams') |
| 19142 @DocsEditable | 19142 @DocsEditable() |
| 19143 List<MediaStream> getLocalStreams() native; | 19143 List<MediaStream> getLocalStreams() native; |
| 19144 | 19144 |
| 19145 @DomName('RTCPeerConnection.getRemoteStreams') | 19145 @DomName('RTCPeerConnection.getRemoteStreams') |
| 19146 @DocsEditable | 19146 @DocsEditable() |
| 19147 List<MediaStream> getRemoteStreams() native; | 19147 List<MediaStream> getRemoteStreams() native; |
| 19148 | 19148 |
| 19149 @DomName('RTCPeerConnection.getStats') | 19149 @DomName('RTCPeerConnection.getStats') |
| 19150 @DocsEditable | 19150 @DocsEditable() |
| 19151 void getStats(RtcStatsCallback successCallback, MediaStreamTrack selector) nat
ive; | 19151 void getStats(RtcStatsCallback successCallback, MediaStreamTrack selector) nat
ive; |
| 19152 | 19152 |
| 19153 @DomName('RTCPeerConnection.getStreamById') | 19153 @DomName('RTCPeerConnection.getStreamById') |
| 19154 @DocsEditable | 19154 @DocsEditable() |
| 19155 MediaStream getStreamById(String streamId) native; | 19155 MediaStream getStreamById(String streamId) native; |
| 19156 | 19156 |
| 19157 @JSName('removeEventListener') | 19157 @JSName('removeEventListener') |
| 19158 @DomName('RTCPeerConnection.removeEventListener') | 19158 @DomName('RTCPeerConnection.removeEventListener') |
| 19159 @DocsEditable | 19159 @DocsEditable() |
| 19160 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 19160 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 19161 | 19161 |
| 19162 @DomName('RTCPeerConnection.removeStream') | 19162 @DomName('RTCPeerConnection.removeStream') |
| 19163 @DocsEditable | 19163 @DocsEditable() |
| 19164 void removeStream(MediaStream stream) native; | 19164 void removeStream(MediaStream stream) native; |
| 19165 | 19165 |
| 19166 @JSName('setLocalDescription') | 19166 @JSName('setLocalDescription') |
| 19167 @DomName('RTCPeerConnection.setLocalDescription') | 19167 @DomName('RTCPeerConnection.setLocalDescription') |
| 19168 @DocsEditable | 19168 @DocsEditable() |
| 19169 void _setLocalDescription(RtcSessionDescription description, [VoidCallback suc
cessCallback, _RtcErrorCallback failureCallback]) native; | 19169 void _setLocalDescription(RtcSessionDescription description, [VoidCallback suc
cessCallback, _RtcErrorCallback failureCallback]) native; |
| 19170 | 19170 |
| 19171 @JSName('setLocalDescription') | 19171 @JSName('setLocalDescription') |
| 19172 @DomName('RTCPeerConnection.setLocalDescription') | 19172 @DomName('RTCPeerConnection.setLocalDescription') |
| 19173 @DocsEditable | 19173 @DocsEditable() |
| 19174 Future setLocalDescription(RtcSessionDescription description) { | 19174 Future setLocalDescription(RtcSessionDescription description) { |
| 19175 var completer = new Completer(); | 19175 var completer = new Completer(); |
| 19176 _setLocalDescription(description, | 19176 _setLocalDescription(description, |
| 19177 () { completer.complete(); }, | 19177 () { completer.complete(); }, |
| 19178 (error) { completer.completeError(error); }); | 19178 (error) { completer.completeError(error); }); |
| 19179 return completer.future; | 19179 return completer.future; |
| 19180 } | 19180 } |
| 19181 | 19181 |
| 19182 @JSName('setRemoteDescription') | 19182 @JSName('setRemoteDescription') |
| 19183 @DomName('RTCPeerConnection.setRemoteDescription') | 19183 @DomName('RTCPeerConnection.setRemoteDescription') |
| 19184 @DocsEditable | 19184 @DocsEditable() |
| 19185 void _setRemoteDescription(RtcSessionDescription description, [VoidCallback su
ccessCallback, _RtcErrorCallback failureCallback]) native; | 19185 void _setRemoteDescription(RtcSessionDescription description, [VoidCallback su
ccessCallback, _RtcErrorCallback failureCallback]) native; |
| 19186 | 19186 |
| 19187 @JSName('setRemoteDescription') | 19187 @JSName('setRemoteDescription') |
| 19188 @DomName('RTCPeerConnection.setRemoteDescription') | 19188 @DomName('RTCPeerConnection.setRemoteDescription') |
| 19189 @DocsEditable | 19189 @DocsEditable() |
| 19190 Future setRemoteDescription(RtcSessionDescription description) { | 19190 Future setRemoteDescription(RtcSessionDescription description) { |
| 19191 var completer = new Completer(); | 19191 var completer = new Completer(); |
| 19192 _setRemoteDescription(description, | 19192 _setRemoteDescription(description, |
| 19193 () { completer.complete(); }, | 19193 () { completer.complete(); }, |
| 19194 (error) { completer.completeError(error); }); | 19194 (error) { completer.completeError(error); }); |
| 19195 return completer.future; | 19195 return completer.future; |
| 19196 } | 19196 } |
| 19197 | 19197 |
| 19198 @DomName('RTCPeerConnection.updateIce') | 19198 @DomName('RTCPeerConnection.updateIce') |
| 19199 @DocsEditable | 19199 @DocsEditable() |
| 19200 void updateIce([Map configuration, Map mediaConstraints]) { | 19200 void updateIce([Map configuration, Map mediaConstraints]) { |
| 19201 if (mediaConstraints != null) { | 19201 if (mediaConstraints != null) { |
| 19202 var configuration_1 = convertDartToNative_Dictionary(configuration); | 19202 var configuration_1 = convertDartToNative_Dictionary(configuration); |
| 19203 var mediaConstraints_2 = convertDartToNative_Dictionary(mediaConstraints); | 19203 var mediaConstraints_2 = convertDartToNative_Dictionary(mediaConstraints); |
| 19204 _updateIce_1(configuration_1, mediaConstraints_2); | 19204 _updateIce_1(configuration_1, mediaConstraints_2); |
| 19205 return; | 19205 return; |
| 19206 } | 19206 } |
| 19207 if (configuration != null) { | 19207 if (configuration != null) { |
| 19208 var configuration_3 = convertDartToNative_Dictionary(configuration); | 19208 var configuration_3 = convertDartToNative_Dictionary(configuration); |
| 19209 _updateIce_2(configuration_3); | 19209 _updateIce_2(configuration_3); |
| 19210 return; | 19210 return; |
| 19211 } | 19211 } |
| 19212 _updateIce_3(); | 19212 _updateIce_3(); |
| 19213 return; | 19213 return; |
| 19214 } | 19214 } |
| 19215 @JSName('updateIce') | 19215 @JSName('updateIce') |
| 19216 @DomName('RTCPeerConnection.updateIce') | 19216 @DomName('RTCPeerConnection.updateIce') |
| 19217 @DocsEditable | 19217 @DocsEditable() |
| 19218 void _updateIce_1(configuration, mediaConstraints) native; | 19218 void _updateIce_1(configuration, mediaConstraints) native; |
| 19219 @JSName('updateIce') | 19219 @JSName('updateIce') |
| 19220 @DomName('RTCPeerConnection.updateIce') | 19220 @DomName('RTCPeerConnection.updateIce') |
| 19221 @DocsEditable | 19221 @DocsEditable() |
| 19222 void _updateIce_2(configuration) native; | 19222 void _updateIce_2(configuration) native; |
| 19223 @JSName('updateIce') | 19223 @JSName('updateIce') |
| 19224 @DomName('RTCPeerConnection.updateIce') | 19224 @DomName('RTCPeerConnection.updateIce') |
| 19225 @DocsEditable | 19225 @DocsEditable() |
| 19226 void _updateIce_3() native; | 19226 void _updateIce_3() native; |
| 19227 | 19227 |
| 19228 @DomName('RTCPeerConnection.onaddstream') | 19228 @DomName('RTCPeerConnection.onaddstream') |
| 19229 @DocsEditable | 19229 @DocsEditable() |
| 19230 Stream<MediaStreamEvent> get onAddStream => addStreamEvent.forTarget(this); | 19230 Stream<MediaStreamEvent> get onAddStream => addStreamEvent.forTarget(this); |
| 19231 | 19231 |
| 19232 @DomName('RTCPeerConnection.ondatachannel') | 19232 @DomName('RTCPeerConnection.ondatachannel') |
| 19233 @DocsEditable | 19233 @DocsEditable() |
| 19234 Stream<RtcDataChannelEvent> get onDataChannel => dataChannelEvent.forTarget(th
is); | 19234 Stream<RtcDataChannelEvent> get onDataChannel => dataChannelEvent.forTarget(th
is); |
| 19235 | 19235 |
| 19236 @DomName('RTCPeerConnection.onicecandidate') | 19236 @DomName('RTCPeerConnection.onicecandidate') |
| 19237 @DocsEditable | 19237 @DocsEditable() |
| 19238 Stream<RtcIceCandidateEvent> get onIceCandidate => iceCandidateEvent.forTarget
(this); | 19238 Stream<RtcIceCandidateEvent> get onIceCandidate => iceCandidateEvent.forTarget
(this); |
| 19239 | 19239 |
| 19240 @DomName('RTCPeerConnection.oniceconnectionstatechange') | 19240 @DomName('RTCPeerConnection.oniceconnectionstatechange') |
| 19241 @DocsEditable | 19241 @DocsEditable() |
| 19242 Stream<Event> get onIceConnectionStateChange => iceConnectionStateChangeEvent.
forTarget(this); | 19242 Stream<Event> get onIceConnectionStateChange => iceConnectionStateChangeEvent.
forTarget(this); |
| 19243 | 19243 |
| 19244 @DomName('RTCPeerConnection.onnegotiationneeded') | 19244 @DomName('RTCPeerConnection.onnegotiationneeded') |
| 19245 @DocsEditable | 19245 @DocsEditable() |
| 19246 Stream<Event> get onNegotiationNeeded => negotiationNeededEvent.forTarget(this
); | 19246 Stream<Event> get onNegotiationNeeded => negotiationNeededEvent.forTarget(this
); |
| 19247 | 19247 |
| 19248 @DomName('RTCPeerConnection.onremovestream') | 19248 @DomName('RTCPeerConnection.onremovestream') |
| 19249 @DocsEditable | 19249 @DocsEditable() |
| 19250 Stream<MediaStreamEvent> get onRemoveStream => removeStreamEvent.forTarget(thi
s); | 19250 Stream<MediaStreamEvent> get onRemoveStream => removeStreamEvent.forTarget(thi
s); |
| 19251 | 19251 |
| 19252 @DomName('RTCPeerConnection.onsignalingstatechange') | 19252 @DomName('RTCPeerConnection.onsignalingstatechange') |
| 19253 @DocsEditable | 19253 @DocsEditable() |
| 19254 Stream<Event> get onSignalingStateChange => signalingStateChangeEvent.forTarge
t(this); | 19254 Stream<Event> get onSignalingStateChange => signalingStateChangeEvent.forTarge
t(this); |
| 19255 | 19255 |
| 19256 } | 19256 } |
| 19257 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 19257 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 19258 // for details. All rights reserved. Use of this source code is governed by a | 19258 // for details. All rights reserved. Use of this source code is governed by a |
| 19259 // BSD-style license that can be found in the LICENSE file. | 19259 // BSD-style license that can be found in the LICENSE file. |
| 19260 | 19260 |
| 19261 | 19261 |
| 19262 @DomName('RTCSessionDescription') | 19262 @DomName('RTCSessionDescription') |
| 19263 @SupportedBrowser(SupportedBrowser.CHROME) | 19263 @SupportedBrowser(SupportedBrowser.CHROME) |
| 19264 @Experimental | 19264 @Experimental() |
| 19265 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCSessionDescriptio
n | 19265 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCSessionDescriptio
n |
| 19266 class RtcSessionDescription extends Interceptor native "RTCSessionDescription,mo
zRTCSessionDescription" { | 19266 class RtcSessionDescription extends Interceptor native "RTCSessionDescription,mo
zRTCSessionDescription" { |
| 19267 factory RtcSessionDescription(Map dictionary) { | 19267 factory RtcSessionDescription(Map dictionary) { |
| 19268 // TODO(efortuna): Remove this check if when you can actually construct with | 19268 // TODO(efortuna): Remove this check if when you can actually construct with |
| 19269 // the unprefixed RTCIceCandidate in Firefox (currently both are defined, | 19269 // the unprefixed RTCIceCandidate in Firefox (currently both are defined, |
| 19270 // but one can't be used as a constructor). | 19270 // but one can't be used as a constructor). |
| 19271 var constructorName = JS('', 'window[#]', | 19271 var constructorName = JS('', 'window[#]', |
| 19272 Device.isFirefox ? '${Device.propertyPrefix}RTCSessionDescription' : | 19272 Device.isFirefox ? '${Device.propertyPrefix}RTCSessionDescription' : |
| 19273 'RTCSessionDescription'); | 19273 'RTCSessionDescription'); |
| 19274 return JS('RtcSessionDescription', | 19274 return JS('RtcSessionDescription', |
| 19275 'new #(#)', constructorName, | 19275 'new #(#)', constructorName, |
| 19276 convertDartToNative_SerializedScriptValue(dictionary)); | 19276 convertDartToNative_SerializedScriptValue(dictionary)); |
| 19277 } | 19277 } |
| 19278 | 19278 |
| 19279 @DomName('RTCSessionDescription.sdp') | 19279 @DomName('RTCSessionDescription.sdp') |
| 19280 @DocsEditable | 19280 @DocsEditable() |
| 19281 String sdp; | 19281 String sdp; |
| 19282 | 19282 |
| 19283 @DomName('RTCSessionDescription.type') | 19283 @DomName('RTCSessionDescription.type') |
| 19284 @DocsEditable | 19284 @DocsEditable() |
| 19285 String type; | 19285 String type; |
| 19286 | 19286 |
| 19287 } | 19287 } |
| 19288 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19288 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 19289 // for details. All rights reserved. Use of this source code is governed by a | 19289 // for details. All rights reserved. Use of this source code is governed by a |
| 19290 // BSD-style license that can be found in the LICENSE file. | 19290 // BSD-style license that can be found in the LICENSE file. |
| 19291 | 19291 |
| 19292 | 19292 |
| 19293 @DocsEditable | 19293 @DocsEditable() |
| 19294 @DomName('RTCStatsReport') | 19294 @DomName('RTCStatsReport') |
| 19295 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCStatsReport | 19295 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#idl-def-RTCStatsReport |
| 19296 @Experimental | 19296 @Experimental() |
| 19297 class RtcStatsReport extends Interceptor native "RTCStatsReport" { | 19297 class RtcStatsReport extends Interceptor native "RTCStatsReport" { |
| 19298 | 19298 |
| 19299 @DomName('RTCStatsReport.id') | 19299 @DomName('RTCStatsReport.id') |
| 19300 @DocsEditable | 19300 @DocsEditable() |
| 19301 final String id; | 19301 final String id; |
| 19302 | 19302 |
| 19303 @DomName('RTCStatsReport.local') | 19303 @DomName('RTCStatsReport.local') |
| 19304 @DocsEditable | 19304 @DocsEditable() |
| 19305 final RtcStatsReport local; | 19305 final RtcStatsReport local; |
| 19306 | 19306 |
| 19307 @DomName('RTCStatsReport.remote') | 19307 @DomName('RTCStatsReport.remote') |
| 19308 @DocsEditable | 19308 @DocsEditable() |
| 19309 final RtcStatsReport remote; | 19309 final RtcStatsReport remote; |
| 19310 | 19310 |
| 19311 DateTime get timestamp => convertNativeToDart_DateTime(this._get_timestamp); | 19311 DateTime get timestamp => convertNativeToDart_DateTime(this._get_timestamp); |
| 19312 @JSName('timestamp') | 19312 @JSName('timestamp') |
| 19313 @DomName('RTCStatsReport.timestamp') | 19313 @DomName('RTCStatsReport.timestamp') |
| 19314 @DocsEditable | 19314 @DocsEditable() |
| 19315 @Creates('Null') | 19315 @Creates('Null') |
| 19316 final dynamic _get_timestamp; | 19316 final dynamic _get_timestamp; |
| 19317 | 19317 |
| 19318 @DomName('RTCStatsReport.type') | 19318 @DomName('RTCStatsReport.type') |
| 19319 @DocsEditable | 19319 @DocsEditable() |
| 19320 final String type; | 19320 final String type; |
| 19321 | 19321 |
| 19322 @DomName('RTCStatsReport.names') | 19322 @DomName('RTCStatsReport.names') |
| 19323 @DocsEditable | 19323 @DocsEditable() |
| 19324 List<String> names() native; | 19324 List<String> names() native; |
| 19325 | 19325 |
| 19326 @DomName('RTCStatsReport.stat') | 19326 @DomName('RTCStatsReport.stat') |
| 19327 @DocsEditable | 19327 @DocsEditable() |
| 19328 String stat(String name) native; | 19328 String stat(String name) native; |
| 19329 } | 19329 } |
| 19330 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19330 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 19331 // for details. All rights reserved. Use of this source code is governed by a | 19331 // for details. All rights reserved. Use of this source code is governed by a |
| 19332 // BSD-style license that can be found in the LICENSE file. | 19332 // BSD-style license that can be found in the LICENSE file. |
| 19333 | 19333 |
| 19334 | 19334 |
| 19335 @DocsEditable | 19335 @DocsEditable() |
| 19336 @DomName('RTCStatsResponse') | 19336 @DomName('RTCStatsResponse') |
| 19337 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#widl-RTCStatsReport-RTCStats
-getter-DOMString-id | 19337 // http://dev.w3.org/2011/webrtc/editor/webrtc.html#widl-RTCStatsReport-RTCStats
-getter-DOMString-id |
| 19338 @Experimental | 19338 @Experimental() |
| 19339 class RtcStatsResponse extends Interceptor native "RTCStatsResponse" { | 19339 class RtcStatsResponse extends Interceptor native "RTCStatsResponse" { |
| 19340 | 19340 |
| 19341 @DomName('RTCStatsResponse.__getter__') | 19341 @DomName('RTCStatsResponse.__getter__') |
| 19342 @DocsEditable | 19342 @DocsEditable() |
| 19343 RtcStatsReport __getter__(String name) native; | 19343 RtcStatsReport __getter__(String name) native; |
| 19344 | 19344 |
| 19345 @DomName('RTCStatsResponse.namedItem') | 19345 @DomName('RTCStatsResponse.namedItem') |
| 19346 @DocsEditable | 19346 @DocsEditable() |
| 19347 RtcStatsReport namedItem(String name) native; | 19347 RtcStatsReport namedItem(String name) native; |
| 19348 | 19348 |
| 19349 @DomName('RTCStatsResponse.result') | 19349 @DomName('RTCStatsResponse.result') |
| 19350 @DocsEditable | 19350 @DocsEditable() |
| 19351 List<RtcStatsReport> result() native; | 19351 List<RtcStatsReport> result() native; |
| 19352 } | 19352 } |
| 19353 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 19353 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 19354 // for details. All rights reserved. Use of this source code is governed by a | 19354 // for details. All rights reserved. Use of this source code is governed by a |
| 19355 // BSD-style license that can be found in the LICENSE file. | 19355 // BSD-style license that can be found in the LICENSE file. |
| 19356 | 19356 |
| 19357 | 19357 |
| 19358 @DocsEditable | 19358 @DocsEditable() |
| 19359 @DomName('Screen') | 19359 @DomName('Screen') |
| 19360 class Screen extends Interceptor native "Screen" { | 19360 class Screen extends Interceptor native "Screen" { |
| 19361 | 19361 |
| 19362 @DomName('Screen.availHeight') | 19362 @DomName('Screen.availHeight') |
| 19363 @DomName('Screen.availLeft') | 19363 @DomName('Screen.availLeft') |
| 19364 @DomName('Screen.availTop') | 19364 @DomName('Screen.availTop') |
| 19365 @DomName('Screen.availWidth') | 19365 @DomName('Screen.availWidth') |
| 19366 Rect get available => new Rect($dom_availLeft, $dom_availTop, $dom_availWidth, | 19366 Rect get available => new Rect($dom_availLeft, $dom_availTop, $dom_availWidth, |
| 19367 $dom_availHeight); | 19367 $dom_availHeight); |
| 19368 | 19368 |
| 19369 @JSName('availHeight') | 19369 @JSName('availHeight') |
| 19370 @DomName('Screen.availHeight') | 19370 @DomName('Screen.availHeight') |
| 19371 @DocsEditable | 19371 @DocsEditable() |
| 19372 final int $dom_availHeight; | 19372 final int $dom_availHeight; |
| 19373 | 19373 |
| 19374 @JSName('availLeft') | 19374 @JSName('availLeft') |
| 19375 @DomName('Screen.availLeft') | 19375 @DomName('Screen.availLeft') |
| 19376 @DocsEditable | 19376 @DocsEditable() |
| 19377 @Experimental // nonstandard | 19377 @Experimental() // nonstandard |
| 19378 final int $dom_availLeft; | 19378 final int $dom_availLeft; |
| 19379 | 19379 |
| 19380 @JSName('availTop') | 19380 @JSName('availTop') |
| 19381 @DomName('Screen.availTop') | 19381 @DomName('Screen.availTop') |
| 19382 @DocsEditable | 19382 @DocsEditable() |
| 19383 @Experimental // nonstandard | 19383 @Experimental() // nonstandard |
| 19384 final int $dom_availTop; | 19384 final int $dom_availTop; |
| 19385 | 19385 |
| 19386 @JSName('availWidth') | 19386 @JSName('availWidth') |
| 19387 @DomName('Screen.availWidth') | 19387 @DomName('Screen.availWidth') |
| 19388 @DocsEditable | 19388 @DocsEditable() |
| 19389 final int $dom_availWidth; | 19389 final int $dom_availWidth; |
| 19390 | 19390 |
| 19391 @DomName('Screen.colorDepth') | 19391 @DomName('Screen.colorDepth') |
| 19392 @DocsEditable | 19392 @DocsEditable() |
| 19393 final int colorDepth; | 19393 final int colorDepth; |
| 19394 | 19394 |
| 19395 @DomName('Screen.height') | 19395 @DomName('Screen.height') |
| 19396 @DocsEditable | 19396 @DocsEditable() |
| 19397 final int height; | 19397 final int height; |
| 19398 | 19398 |
| 19399 @DomName('Screen.pixelDepth') | 19399 @DomName('Screen.pixelDepth') |
| 19400 @DocsEditable | 19400 @DocsEditable() |
| 19401 final int pixelDepth; | 19401 final int pixelDepth; |
| 19402 | 19402 |
| 19403 @DomName('Screen.width') | 19403 @DomName('Screen.width') |
| 19404 @DocsEditable | 19404 @DocsEditable() |
| 19405 final int width; | 19405 final int width; |
| 19406 } | 19406 } |
| 19407 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19407 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 19408 // for details. All rights reserved. Use of this source code is governed by a | 19408 // for details. All rights reserved. Use of this source code is governed by a |
| 19409 // BSD-style license that can be found in the LICENSE file. | 19409 // BSD-style license that can be found in the LICENSE file. |
| 19410 | 19410 |
| 19411 | 19411 |
| 19412 @DocsEditable | 19412 @DocsEditable() |
| 19413 @DomName('HTMLScriptElement') | 19413 @DomName('HTMLScriptElement') |
| 19414 class ScriptElement extends _HTMLElement native "HTMLScriptElement" { | 19414 class ScriptElement extends _HTMLElement native "HTMLScriptElement" { |
| 19415 // To suppress missing implicit constructor warnings. | 19415 // To suppress missing implicit constructor warnings. |
| 19416 factory ScriptElement._() { throw new UnsupportedError("Not supported"); } | 19416 factory ScriptElement._() { throw new UnsupportedError("Not supported"); } |
| 19417 | 19417 |
| 19418 @DomName('HTMLScriptElement.HTMLScriptElement') | 19418 @DomName('HTMLScriptElement.HTMLScriptElement') |
| 19419 @DocsEditable | 19419 @DocsEditable() |
| 19420 factory ScriptElement() => document.$dom_createElement("script"); | 19420 factory ScriptElement() => document.$dom_createElement("script"); |
| 19421 | 19421 |
| 19422 @DomName('HTMLScriptElement.async') | 19422 @DomName('HTMLScriptElement.async') |
| 19423 @DocsEditable | 19423 @DocsEditable() |
| 19424 bool async; | 19424 bool async; |
| 19425 | 19425 |
| 19426 @DomName('HTMLScriptElement.charset') | 19426 @DomName('HTMLScriptElement.charset') |
| 19427 @DocsEditable | 19427 @DocsEditable() |
| 19428 String charset; | 19428 String charset; |
| 19429 | 19429 |
| 19430 @DomName('HTMLScriptElement.crossOrigin') | 19430 @DomName('HTMLScriptElement.crossOrigin') |
| 19431 @DocsEditable | 19431 @DocsEditable() |
| 19432 // http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.htm
l#attr-script-crossorigin | 19432 // http://www.whatwg.org/specs/web-apps/current-work/multipage/scripting-1.htm
l#attr-script-crossorigin |
| 19433 @Experimental | 19433 @Experimental() |
| 19434 String crossOrigin; | 19434 String crossOrigin; |
| 19435 | 19435 |
| 19436 @DomName('HTMLScriptElement.defer') | 19436 @DomName('HTMLScriptElement.defer') |
| 19437 @DocsEditable | 19437 @DocsEditable() |
| 19438 bool defer; | 19438 bool defer; |
| 19439 | 19439 |
| 19440 @DomName('HTMLScriptElement.event') | 19440 @DomName('HTMLScriptElement.event') |
| 19441 @DocsEditable | 19441 @DocsEditable() |
| 19442 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLScriptElement-partial | 19442 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLScriptElement-partial |
| 19443 @deprecated // deprecated | 19443 @deprecated // deprecated |
| 19444 String event; | 19444 String event; |
| 19445 | 19445 |
| 19446 @DomName('HTMLScriptElement.htmlFor') | 19446 @DomName('HTMLScriptElement.htmlFor') |
| 19447 @DocsEditable | 19447 @DocsEditable() |
| 19448 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLScriptElement-partial | 19448 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLScriptElement-partial |
| 19449 @deprecated // deprecated | 19449 @deprecated // deprecated |
| 19450 String htmlFor; | 19450 String htmlFor; |
| 19451 | 19451 |
| 19452 @DomName('HTMLScriptElement.nonce') | 19452 @DomName('HTMLScriptElement.nonce') |
| 19453 @DocsEditable | 19453 @DocsEditable() |
| 19454 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specificati
on.dev.html#interaction-with-the-script-src-directive | 19454 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specificati
on.dev.html#interaction-with-the-script-src-directive |
| 19455 @Experimental | 19455 @Experimental() |
| 19456 String nonce; | 19456 String nonce; |
| 19457 | 19457 |
| 19458 @DomName('HTMLScriptElement.src') | 19458 @DomName('HTMLScriptElement.src') |
| 19459 @DocsEditable | 19459 @DocsEditable() |
| 19460 String src; | 19460 String src; |
| 19461 | 19461 |
| 19462 @DomName('HTMLScriptElement.type') | 19462 @DomName('HTMLScriptElement.type') |
| 19463 @DocsEditable | 19463 @DocsEditable() |
| 19464 String type; | 19464 String type; |
| 19465 } | 19465 } |
| 19466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19466 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 19467 // for details. All rights reserved. Use of this source code is governed by a | 19467 // for details. All rights reserved. Use of this source code is governed by a |
| 19468 // BSD-style license that can be found in the LICENSE file. | 19468 // BSD-style license that can be found in the LICENSE file. |
| 19469 | 19469 |
| 19470 | 19470 |
| 19471 @DocsEditable | 19471 @DocsEditable() |
| 19472 @DomName('SecurityPolicy') | 19472 @DomName('SecurityPolicy') |
| 19473 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification
.dev.html#securitypolicy | 19473 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification
.dev.html#securitypolicy |
| 19474 @Experimental | 19474 @Experimental() |
| 19475 class SecurityPolicy extends Interceptor native "SecurityPolicy" { | 19475 class SecurityPolicy extends Interceptor native "SecurityPolicy" { |
| 19476 | 19476 |
| 19477 @DomName('SecurityPolicy.allowsEval') | 19477 @DomName('SecurityPolicy.allowsEval') |
| 19478 @DocsEditable | 19478 @DocsEditable() |
| 19479 final bool allowsEval; | 19479 final bool allowsEval; |
| 19480 | 19480 |
| 19481 @DomName('SecurityPolicy.allowsInlineScript') | 19481 @DomName('SecurityPolicy.allowsInlineScript') |
| 19482 @DocsEditable | 19482 @DocsEditable() |
| 19483 final bool allowsInlineScript; | 19483 final bool allowsInlineScript; |
| 19484 | 19484 |
| 19485 @DomName('SecurityPolicy.allowsInlineStyle') | 19485 @DomName('SecurityPolicy.allowsInlineStyle') |
| 19486 @DocsEditable | 19486 @DocsEditable() |
| 19487 final bool allowsInlineStyle; | 19487 final bool allowsInlineStyle; |
| 19488 | 19488 |
| 19489 @DomName('SecurityPolicy.isActive') | 19489 @DomName('SecurityPolicy.isActive') |
| 19490 @DocsEditable | 19490 @DocsEditable() |
| 19491 final bool isActive; | 19491 final bool isActive; |
| 19492 | 19492 |
| 19493 @DomName('SecurityPolicy.reportURIs') | 19493 @DomName('SecurityPolicy.reportURIs') |
| 19494 @DocsEditable | 19494 @DocsEditable() |
| 19495 @Returns('DomStringList') | 19495 @Returns('DomStringList') |
| 19496 @Creates('DomStringList') | 19496 @Creates('DomStringList') |
| 19497 final List<String> reportURIs; | 19497 final List<String> reportURIs; |
| 19498 | 19498 |
| 19499 @DomName('SecurityPolicy.allowsConnectionTo') | 19499 @DomName('SecurityPolicy.allowsConnectionTo') |
| 19500 @DocsEditable | 19500 @DocsEditable() |
| 19501 bool allowsConnectionTo(String url) native; | 19501 bool allowsConnectionTo(String url) native; |
| 19502 | 19502 |
| 19503 @DomName('SecurityPolicy.allowsFontFrom') | 19503 @DomName('SecurityPolicy.allowsFontFrom') |
| 19504 @DocsEditable | 19504 @DocsEditable() |
| 19505 bool allowsFontFrom(String url) native; | 19505 bool allowsFontFrom(String url) native; |
| 19506 | 19506 |
| 19507 @DomName('SecurityPolicy.allowsFormAction') | 19507 @DomName('SecurityPolicy.allowsFormAction') |
| 19508 @DocsEditable | 19508 @DocsEditable() |
| 19509 bool allowsFormAction(String url) native; | 19509 bool allowsFormAction(String url) native; |
| 19510 | 19510 |
| 19511 @DomName('SecurityPolicy.allowsFrameFrom') | 19511 @DomName('SecurityPolicy.allowsFrameFrom') |
| 19512 @DocsEditable | 19512 @DocsEditable() |
| 19513 bool allowsFrameFrom(String url) native; | 19513 bool allowsFrameFrom(String url) native; |
| 19514 | 19514 |
| 19515 @DomName('SecurityPolicy.allowsImageFrom') | 19515 @DomName('SecurityPolicy.allowsImageFrom') |
| 19516 @DocsEditable | 19516 @DocsEditable() |
| 19517 bool allowsImageFrom(String url) native; | 19517 bool allowsImageFrom(String url) native; |
| 19518 | 19518 |
| 19519 @DomName('SecurityPolicy.allowsMediaFrom') | 19519 @DomName('SecurityPolicy.allowsMediaFrom') |
| 19520 @DocsEditable | 19520 @DocsEditable() |
| 19521 bool allowsMediaFrom(String url) native; | 19521 bool allowsMediaFrom(String url) native; |
| 19522 | 19522 |
| 19523 @DomName('SecurityPolicy.allowsObjectFrom') | 19523 @DomName('SecurityPolicy.allowsObjectFrom') |
| 19524 @DocsEditable | 19524 @DocsEditable() |
| 19525 bool allowsObjectFrom(String url) native; | 19525 bool allowsObjectFrom(String url) native; |
| 19526 | 19526 |
| 19527 @DomName('SecurityPolicy.allowsPluginType') | 19527 @DomName('SecurityPolicy.allowsPluginType') |
| 19528 @DocsEditable | 19528 @DocsEditable() |
| 19529 bool allowsPluginType(String type) native; | 19529 bool allowsPluginType(String type) native; |
| 19530 | 19530 |
| 19531 @DomName('SecurityPolicy.allowsScriptFrom') | 19531 @DomName('SecurityPolicy.allowsScriptFrom') |
| 19532 @DocsEditable | 19532 @DocsEditable() |
| 19533 bool allowsScriptFrom(String url) native; | 19533 bool allowsScriptFrom(String url) native; |
| 19534 | 19534 |
| 19535 @DomName('SecurityPolicy.allowsStyleFrom') | 19535 @DomName('SecurityPolicy.allowsStyleFrom') |
| 19536 @DocsEditable | 19536 @DocsEditable() |
| 19537 bool allowsStyleFrom(String url) native; | 19537 bool allowsStyleFrom(String url) native; |
| 19538 } | 19538 } |
| 19539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19539 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 19540 // for details. All rights reserved. Use of this source code is governed by a | 19540 // for details. All rights reserved. Use of this source code is governed by a |
| 19541 // BSD-style license that can be found in the LICENSE file. | 19541 // BSD-style license that can be found in the LICENSE file. |
| 19542 | 19542 |
| 19543 | 19543 |
| 19544 @DocsEditable | 19544 @DocsEditable() |
| 19545 @DomName('SecurityPolicyViolationEvent') | 19545 @DomName('SecurityPolicyViolationEvent') |
| 19546 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification
.dev.html#securitypolicyviolationevent-events | 19546 // https://dvcs.w3.org/hg/content-security-policy/raw-file/tip/csp-specification
.dev.html#securitypolicyviolationevent-events |
| 19547 @Experimental | 19547 @Experimental() |
| 19548 class SecurityPolicyViolationEvent extends Event native "SecurityPolicyViolation
Event" { | 19548 class SecurityPolicyViolationEvent extends Event native "SecurityPolicyViolation
Event" { |
| 19549 // To suppress missing implicit constructor warnings. | 19549 // To suppress missing implicit constructor warnings. |
| 19550 factory SecurityPolicyViolationEvent._() { throw new UnsupportedError("Not sup
ported"); } | 19550 factory SecurityPolicyViolationEvent._() { throw new UnsupportedError("Not sup
ported"); } |
| 19551 | 19551 |
| 19552 @JSName('blockedURI') | 19552 @JSName('blockedURI') |
| 19553 @DomName('SecurityPolicyViolationEvent.blockedURI') | 19553 @DomName('SecurityPolicyViolationEvent.blockedURI') |
| 19554 @DocsEditable | 19554 @DocsEditable() |
| 19555 final String blockedUri; | 19555 final String blockedUri; |
| 19556 | 19556 |
| 19557 @DomName('SecurityPolicyViolationEvent.columnNumber') | 19557 @DomName('SecurityPolicyViolationEvent.columnNumber') |
| 19558 @DocsEditable | 19558 @DocsEditable() |
| 19559 final int columnNumber; | 19559 final int columnNumber; |
| 19560 | 19560 |
| 19561 @JSName('documentURI') | 19561 @JSName('documentURI') |
| 19562 @DomName('SecurityPolicyViolationEvent.documentURI') | 19562 @DomName('SecurityPolicyViolationEvent.documentURI') |
| 19563 @DocsEditable | 19563 @DocsEditable() |
| 19564 final String documentUri; | 19564 final String documentUri; |
| 19565 | 19565 |
| 19566 @DomName('SecurityPolicyViolationEvent.effectiveDirective') | 19566 @DomName('SecurityPolicyViolationEvent.effectiveDirective') |
| 19567 @DocsEditable | 19567 @DocsEditable() |
| 19568 final String effectiveDirective; | 19568 final String effectiveDirective; |
| 19569 | 19569 |
| 19570 @DomName('SecurityPolicyViolationEvent.lineNumber') | 19570 @DomName('SecurityPolicyViolationEvent.lineNumber') |
| 19571 @DocsEditable | 19571 @DocsEditable() |
| 19572 final int lineNumber; | 19572 final int lineNumber; |
| 19573 | 19573 |
| 19574 @DomName('SecurityPolicyViolationEvent.originalPolicy') | 19574 @DomName('SecurityPolicyViolationEvent.originalPolicy') |
| 19575 @DocsEditable | 19575 @DocsEditable() |
| 19576 final String originalPolicy; | 19576 final String originalPolicy; |
| 19577 | 19577 |
| 19578 @DomName('SecurityPolicyViolationEvent.referrer') | 19578 @DomName('SecurityPolicyViolationEvent.referrer') |
| 19579 @DocsEditable | 19579 @DocsEditable() |
| 19580 final String referrer; | 19580 final String referrer; |
| 19581 | 19581 |
| 19582 @DomName('SecurityPolicyViolationEvent.sourceFile') | 19582 @DomName('SecurityPolicyViolationEvent.sourceFile') |
| 19583 @DocsEditable | 19583 @DocsEditable() |
| 19584 final String sourceFile; | 19584 final String sourceFile; |
| 19585 | 19585 |
| 19586 @DomName('SecurityPolicyViolationEvent.violatedDirective') | 19586 @DomName('SecurityPolicyViolationEvent.violatedDirective') |
| 19587 @DocsEditable | 19587 @DocsEditable() |
| 19588 final String violatedDirective; | 19588 final String violatedDirective; |
| 19589 } | 19589 } |
| 19590 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19590 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 19591 // for details. All rights reserved. Use of this source code is governed by a | 19591 // for details. All rights reserved. Use of this source code is governed by a |
| 19592 // BSD-style license that can be found in the LICENSE file. | 19592 // BSD-style license that can be found in the LICENSE file. |
| 19593 | 19593 |
| 19594 | 19594 |
| 19595 @DomName('HTMLSelectElement') | 19595 @DomName('HTMLSelectElement') |
| 19596 class SelectElement extends _HTMLElement native "HTMLSelectElement" { | 19596 class SelectElement extends _HTMLElement native "HTMLSelectElement" { |
| 19597 // To suppress missing implicit constructor warnings. | 19597 // To suppress missing implicit constructor warnings. |
| 19598 factory SelectElement._() { throw new UnsupportedError("Not supported"); } | 19598 factory SelectElement._() { throw new UnsupportedError("Not supported"); } |
| 19599 | 19599 |
| 19600 @DomName('HTMLSelectElement.HTMLSelectElement') | 19600 @DomName('HTMLSelectElement.HTMLSelectElement') |
| 19601 @DocsEditable | 19601 @DocsEditable() |
| 19602 factory SelectElement() => document.$dom_createElement("select"); | 19602 factory SelectElement() => document.$dom_createElement("select"); |
| 19603 | 19603 |
| 19604 @DomName('HTMLSelectElement.autofocus') | 19604 @DomName('HTMLSelectElement.autofocus') |
| 19605 @DocsEditable | 19605 @DocsEditable() |
| 19606 bool autofocus; | 19606 bool autofocus; |
| 19607 | 19607 |
| 19608 @DomName('HTMLSelectElement.disabled') | 19608 @DomName('HTMLSelectElement.disabled') |
| 19609 @DocsEditable | 19609 @DocsEditable() |
| 19610 bool disabled; | 19610 bool disabled; |
| 19611 | 19611 |
| 19612 @DomName('HTMLSelectElement.form') | 19612 @DomName('HTMLSelectElement.form') |
| 19613 @DocsEditable | 19613 @DocsEditable() |
| 19614 final FormElement form; | 19614 final FormElement form; |
| 19615 | 19615 |
| 19616 @DomName('HTMLSelectElement.labels') | 19616 @DomName('HTMLSelectElement.labels') |
| 19617 @DocsEditable | 19617 @DocsEditable() |
| 19618 @Unstable | 19618 @Unstable() |
| 19619 @Returns('NodeList') | 19619 @Returns('NodeList') |
| 19620 @Creates('NodeList') | 19620 @Creates('NodeList') |
| 19621 final List<Node> labels; | 19621 final List<Node> labels; |
| 19622 | 19622 |
| 19623 @DomName('HTMLSelectElement.length') | 19623 @DomName('HTMLSelectElement.length') |
| 19624 @DocsEditable | 19624 @DocsEditable() |
| 19625 int length; | 19625 int length; |
| 19626 | 19626 |
| 19627 @DomName('HTMLSelectElement.multiple') | 19627 @DomName('HTMLSelectElement.multiple') |
| 19628 @DocsEditable | 19628 @DocsEditable() |
| 19629 bool multiple; | 19629 bool multiple; |
| 19630 | 19630 |
| 19631 @DomName('HTMLSelectElement.name') | 19631 @DomName('HTMLSelectElement.name') |
| 19632 @DocsEditable | 19632 @DocsEditable() |
| 19633 String name; | 19633 String name; |
| 19634 | 19634 |
| 19635 @DomName('HTMLSelectElement.required') | 19635 @DomName('HTMLSelectElement.required') |
| 19636 @DocsEditable | 19636 @DocsEditable() |
| 19637 bool required; | 19637 bool required; |
| 19638 | 19638 |
| 19639 @DomName('HTMLSelectElement.selectedIndex') | 19639 @DomName('HTMLSelectElement.selectedIndex') |
| 19640 @DocsEditable | 19640 @DocsEditable() |
| 19641 int selectedIndex; | 19641 int selectedIndex; |
| 19642 | 19642 |
| 19643 @DomName('HTMLSelectElement.size') | 19643 @DomName('HTMLSelectElement.size') |
| 19644 @DocsEditable | 19644 @DocsEditable() |
| 19645 int size; | 19645 int size; |
| 19646 | 19646 |
| 19647 @DomName('HTMLSelectElement.type') | 19647 @DomName('HTMLSelectElement.type') |
| 19648 @DocsEditable | 19648 @DocsEditable() |
| 19649 final String type; | 19649 final String type; |
| 19650 | 19650 |
| 19651 @DomName('HTMLSelectElement.validationMessage') | 19651 @DomName('HTMLSelectElement.validationMessage') |
| 19652 @DocsEditable | 19652 @DocsEditable() |
| 19653 final String validationMessage; | 19653 final String validationMessage; |
| 19654 | 19654 |
| 19655 @DomName('HTMLSelectElement.validity') | 19655 @DomName('HTMLSelectElement.validity') |
| 19656 @DocsEditable | 19656 @DocsEditable() |
| 19657 final ValidityState validity; | 19657 final ValidityState validity; |
| 19658 | 19658 |
| 19659 @DomName('HTMLSelectElement.value') | 19659 @DomName('HTMLSelectElement.value') |
| 19660 @DocsEditable | 19660 @DocsEditable() |
| 19661 String value; | 19661 String value; |
| 19662 | 19662 |
| 19663 @DomName('HTMLSelectElement.willValidate') | 19663 @DomName('HTMLSelectElement.willValidate') |
| 19664 @DocsEditable | 19664 @DocsEditable() |
| 19665 final bool willValidate; | 19665 final bool willValidate; |
| 19666 | 19666 |
| 19667 @DomName('HTMLSelectElement.__setter__') | 19667 @DomName('HTMLSelectElement.__setter__') |
| 19668 @DocsEditable | 19668 @DocsEditable() |
| 19669 void __setter__(int index, OptionElement value) native; | 19669 void __setter__(int index, OptionElement value) native; |
| 19670 | 19670 |
| 19671 @DomName('HTMLSelectElement.checkValidity') | 19671 @DomName('HTMLSelectElement.checkValidity') |
| 19672 @DocsEditable | 19672 @DocsEditable() |
| 19673 bool checkValidity() native; | 19673 bool checkValidity() native; |
| 19674 | 19674 |
| 19675 @DomName('HTMLSelectElement.item') | 19675 @DomName('HTMLSelectElement.item') |
| 19676 @DocsEditable | 19676 @DocsEditable() |
| 19677 Node item(int index) native; | 19677 Node item(int index) native; |
| 19678 | 19678 |
| 19679 @DomName('HTMLSelectElement.namedItem') | 19679 @DomName('HTMLSelectElement.namedItem') |
| 19680 @DocsEditable | 19680 @DocsEditable() |
| 19681 Node namedItem(String name) native; | 19681 Node namedItem(String name) native; |
| 19682 | 19682 |
| 19683 @DomName('HTMLSelectElement.setCustomValidity') | 19683 @DomName('HTMLSelectElement.setCustomValidity') |
| 19684 @DocsEditable | 19684 @DocsEditable() |
| 19685 void setCustomValidity(String error) native; | 19685 void setCustomValidity(String error) native; |
| 19686 | 19686 |
| 19687 | 19687 |
| 19688 // Override default options, since IE returns SelectElement itself and it | 19688 // Override default options, since IE returns SelectElement itself and it |
| 19689 // does not operate as a List. | 19689 // does not operate as a List. |
| 19690 List<OptionElement> get options { | 19690 List<OptionElement> get options { |
| 19691 var options = | 19691 var options = |
| 19692 this.queryAll('option').where((e) => e is OptionElement).toList(); | 19692 this.queryAll('option').where((e) => e is OptionElement).toList(); |
| 19693 return new UnmodifiableListView(options); | 19693 return new UnmodifiableListView(options); |
| 19694 } | 19694 } |
| 19695 | 19695 |
| 19696 List<OptionElement> get selectedOptions { | 19696 List<OptionElement> get selectedOptions { |
| 19697 // IE does not change the selected flag for single-selection items. | 19697 // IE does not change the selected flag for single-selection items. |
| 19698 if (this.multiple) { | 19698 if (this.multiple) { |
| 19699 var options = this.options.where((o) => o.selected).toList(); | 19699 var options = this.options.where((o) => o.selected).toList(); |
| 19700 return new UnmodifiableListView(options); | 19700 return new UnmodifiableListView(options); |
| 19701 } else { | 19701 } else { |
| 19702 return [this.options[this.selectedIndex]]; | 19702 return [this.options[this.selectedIndex]]; |
| 19703 } | 19703 } |
| 19704 } | 19704 } |
| 19705 } | 19705 } |
| 19706 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19706 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 19707 // for details. All rights reserved. Use of this source code is governed by a | 19707 // for details. All rights reserved. Use of this source code is governed by a |
| 19708 // BSD-style license that can be found in the LICENSE file. | 19708 // BSD-style license that can be found in the LICENSE file. |
| 19709 | 19709 |
| 19710 | 19710 |
| 19711 @DocsEditable | 19711 @DocsEditable() |
| 19712 @DomName('Selection') | 19712 @DomName('Selection') |
| 19713 class Selection extends Interceptor native "Selection" { | 19713 class Selection extends Interceptor native "Selection" { |
| 19714 | 19714 |
| 19715 @DomName('Selection.anchorNode') | 19715 @DomName('Selection.anchorNode') |
| 19716 @DocsEditable | 19716 @DocsEditable() |
| 19717 final Node anchorNode; | 19717 final Node anchorNode; |
| 19718 | 19718 |
| 19719 @DomName('Selection.anchorOffset') | 19719 @DomName('Selection.anchorOffset') |
| 19720 @DocsEditable | 19720 @DocsEditable() |
| 19721 final int anchorOffset; | 19721 final int anchorOffset; |
| 19722 | 19722 |
| 19723 @DomName('Selection.baseNode') | 19723 @DomName('Selection.baseNode') |
| 19724 @DocsEditable | 19724 @DocsEditable() |
| 19725 @Experimental // non-standard | 19725 @Experimental() // non-standard |
| 19726 final Node baseNode; | 19726 final Node baseNode; |
| 19727 | 19727 |
| 19728 @DomName('Selection.baseOffset') | 19728 @DomName('Selection.baseOffset') |
| 19729 @DocsEditable | 19729 @DocsEditable() |
| 19730 @Experimental // non-standard | 19730 @Experimental() // non-standard |
| 19731 final int baseOffset; | 19731 final int baseOffset; |
| 19732 | 19732 |
| 19733 @DomName('Selection.extentNode') | 19733 @DomName('Selection.extentNode') |
| 19734 @DocsEditable | 19734 @DocsEditable() |
| 19735 @Experimental // non-standard | 19735 @Experimental() // non-standard |
| 19736 final Node extentNode; | 19736 final Node extentNode; |
| 19737 | 19737 |
| 19738 @DomName('Selection.extentOffset') | 19738 @DomName('Selection.extentOffset') |
| 19739 @DocsEditable | 19739 @DocsEditable() |
| 19740 @Experimental // non-standard | 19740 @Experimental() // non-standard |
| 19741 final int extentOffset; | 19741 final int extentOffset; |
| 19742 | 19742 |
| 19743 @DomName('Selection.focusNode') | 19743 @DomName('Selection.focusNode') |
| 19744 @DocsEditable | 19744 @DocsEditable() |
| 19745 final Node focusNode; | 19745 final Node focusNode; |
| 19746 | 19746 |
| 19747 @DomName('Selection.focusOffset') | 19747 @DomName('Selection.focusOffset') |
| 19748 @DocsEditable | 19748 @DocsEditable() |
| 19749 final int focusOffset; | 19749 final int focusOffset; |
| 19750 | 19750 |
| 19751 @DomName('Selection.isCollapsed') | 19751 @DomName('Selection.isCollapsed') |
| 19752 @DocsEditable | 19752 @DocsEditable() |
| 19753 final bool isCollapsed; | 19753 final bool isCollapsed; |
| 19754 | 19754 |
| 19755 @DomName('Selection.rangeCount') | 19755 @DomName('Selection.rangeCount') |
| 19756 @DocsEditable | 19756 @DocsEditable() |
| 19757 final int rangeCount; | 19757 final int rangeCount; |
| 19758 | 19758 |
| 19759 @DomName('Selection.type') | 19759 @DomName('Selection.type') |
| 19760 @DocsEditable | 19760 @DocsEditable() |
| 19761 @Experimental // non-standard | 19761 @Experimental() // non-standard |
| 19762 final String type; | 19762 final String type; |
| 19763 | 19763 |
| 19764 @DomName('Selection.addRange') | 19764 @DomName('Selection.addRange') |
| 19765 @DocsEditable | 19765 @DocsEditable() |
| 19766 void addRange(Range range) native; | 19766 void addRange(Range range) native; |
| 19767 | 19767 |
| 19768 @DomName('Selection.collapse') | 19768 @DomName('Selection.collapse') |
| 19769 @DocsEditable | 19769 @DocsEditable() |
| 19770 void collapse(Node node, int index) native; | 19770 void collapse(Node node, int index) native; |
| 19771 | 19771 |
| 19772 @DomName('Selection.collapseToEnd') | 19772 @DomName('Selection.collapseToEnd') |
| 19773 @DocsEditable | 19773 @DocsEditable() |
| 19774 void collapseToEnd() native; | 19774 void collapseToEnd() native; |
| 19775 | 19775 |
| 19776 @DomName('Selection.collapseToStart') | 19776 @DomName('Selection.collapseToStart') |
| 19777 @DocsEditable | 19777 @DocsEditable() |
| 19778 void collapseToStart() native; | 19778 void collapseToStart() native; |
| 19779 | 19779 |
| 19780 @DomName('Selection.containsNode') | 19780 @DomName('Selection.containsNode') |
| 19781 @DocsEditable | 19781 @DocsEditable() |
| 19782 @Experimental // non-standard | 19782 @Experimental() // non-standard |
| 19783 bool containsNode(Node node, bool allowPartial) native; | 19783 bool containsNode(Node node, bool allowPartial) native; |
| 19784 | 19784 |
| 19785 @DomName('Selection.deleteFromDocument') | 19785 @DomName('Selection.deleteFromDocument') |
| 19786 @DocsEditable | 19786 @DocsEditable() |
| 19787 void deleteFromDocument() native; | 19787 void deleteFromDocument() native; |
| 19788 | 19788 |
| 19789 @DomName('Selection.empty') | 19789 @DomName('Selection.empty') |
| 19790 @DocsEditable | 19790 @DocsEditable() |
| 19791 @Experimental // non-standard | 19791 @Experimental() // non-standard |
| 19792 void empty() native; | 19792 void empty() native; |
| 19793 | 19793 |
| 19794 @DomName('Selection.extend') | 19794 @DomName('Selection.extend') |
| 19795 @DocsEditable | 19795 @DocsEditable() |
| 19796 void extend(Node node, int offset) native; | 19796 void extend(Node node, int offset) native; |
| 19797 | 19797 |
| 19798 @DomName('Selection.getRangeAt') | 19798 @DomName('Selection.getRangeAt') |
| 19799 @DocsEditable | 19799 @DocsEditable() |
| 19800 Range getRangeAt(int index) native; | 19800 Range getRangeAt(int index) native; |
| 19801 | 19801 |
| 19802 @DomName('Selection.modify') | 19802 @DomName('Selection.modify') |
| 19803 @DocsEditable | 19803 @DocsEditable() |
| 19804 @Experimental // non-standard | 19804 @Experimental() // non-standard |
| 19805 void modify(String alter, String direction, String granularity) native; | 19805 void modify(String alter, String direction, String granularity) native; |
| 19806 | 19806 |
| 19807 @DomName('Selection.removeAllRanges') | 19807 @DomName('Selection.removeAllRanges') |
| 19808 @DocsEditable | 19808 @DocsEditable() |
| 19809 void removeAllRanges() native; | 19809 void removeAllRanges() native; |
| 19810 | 19810 |
| 19811 @DomName('Selection.selectAllChildren') | 19811 @DomName('Selection.selectAllChildren') |
| 19812 @DocsEditable | 19812 @DocsEditable() |
| 19813 void selectAllChildren(Node node) native; | 19813 void selectAllChildren(Node node) native; |
| 19814 | 19814 |
| 19815 @DomName('Selection.setBaseAndExtent') | 19815 @DomName('Selection.setBaseAndExtent') |
| 19816 @DocsEditable | 19816 @DocsEditable() |
| 19817 @Experimental // non-standard | 19817 @Experimental() // non-standard |
| 19818 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte
ntOffset) native; | 19818 void setBaseAndExtent(Node baseNode, int baseOffset, Node extentNode, int exte
ntOffset) native; |
| 19819 | 19819 |
| 19820 @DomName('Selection.setPosition') | 19820 @DomName('Selection.setPosition') |
| 19821 @DocsEditable | 19821 @DocsEditable() |
| 19822 @Experimental // non-standard | 19822 @Experimental() // non-standard |
| 19823 void setPosition(Node node, int offset) native; | 19823 void setPosition(Node node, int offset) native; |
| 19824 | 19824 |
| 19825 @DomName('Selection.toString') | 19825 @DomName('Selection.toString') |
| 19826 @DocsEditable | 19826 @DocsEditable() |
| 19827 String toString() native; | 19827 String toString() native; |
| 19828 } | 19828 } |
| 19829 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19829 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 19830 // for details. All rights reserved. Use of this source code is governed by a | 19830 // for details. All rights reserved. Use of this source code is governed by a |
| 19831 // BSD-style license that can be found in the LICENSE file. | 19831 // BSD-style license that can be found in the LICENSE file. |
| 19832 | 19832 |
| 19833 | 19833 |
| 19834 @DocsEditable | 19834 @DocsEditable() |
| 19835 @DomName('HTMLShadowElement') | 19835 @DomName('HTMLShadowElement') |
| 19836 @SupportedBrowser(SupportedBrowser.CHROME, '26') | 19836 @SupportedBrowser(SupportedBrowser.CHROME, '26') |
| 19837 @Experimental | 19837 @Experimental() |
| 19838 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#shad
ow-element | 19838 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#shad
ow-element |
| 19839 class ShadowElement extends _HTMLElement native "HTMLShadowElement" { | 19839 class ShadowElement extends _HTMLElement native "HTMLShadowElement" { |
| 19840 // To suppress missing implicit constructor warnings. | 19840 // To suppress missing implicit constructor warnings. |
| 19841 factory ShadowElement._() { throw new UnsupportedError("Not supported"); } | 19841 factory ShadowElement._() { throw new UnsupportedError("Not supported"); } |
| 19842 | 19842 |
| 19843 @DomName('HTMLShadowElement.HTMLShadowElement') | 19843 @DomName('HTMLShadowElement.HTMLShadowElement') |
| 19844 @DocsEditable | 19844 @DocsEditable() |
| 19845 factory ShadowElement() => document.$dom_createElement("shadow"); | 19845 factory ShadowElement() => document.$dom_createElement("shadow"); |
| 19846 | 19846 |
| 19847 /// Checks if this type is supported on the current platform. | 19847 /// Checks if this type is supported on the current platform. |
| 19848 static bool get supported => Element.isTagSupported('shadow'); | 19848 static bool get supported => Element.isTagSupported('shadow'); |
| 19849 | 19849 |
| 19850 @DomName('HTMLShadowElement.olderShadowRoot') | 19850 @DomName('HTMLShadowElement.olderShadowRoot') |
| 19851 @DocsEditable | 19851 @DocsEditable() |
| 19852 final ShadowRoot olderShadowRoot; | 19852 final ShadowRoot olderShadowRoot; |
| 19853 | 19853 |
| 19854 @DomName('HTMLShadowElement.resetStyleInheritance') | 19854 @DomName('HTMLShadowElement.resetStyleInheritance') |
| 19855 @DocsEditable | 19855 @DocsEditable() |
| 19856 bool resetStyleInheritance; | 19856 bool resetStyleInheritance; |
| 19857 } | 19857 } |
| 19858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19858 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 19859 // for details. All rights reserved. Use of this source code is governed by a | 19859 // for details. All rights reserved. Use of this source code is governed by a |
| 19860 // BSD-style license that can be found in the LICENSE file. | 19860 // BSD-style license that can be found in the LICENSE file. |
| 19861 | 19861 |
| 19862 // WARNING: Do not edit - generated code. | 19862 // WARNING: Do not edit - generated code. |
| 19863 | 19863 |
| 19864 | 19864 |
| 19865 @DomName('ShadowRoot') | 19865 @DomName('ShadowRoot') |
| 19866 @SupportedBrowser(SupportedBrowser.CHROME, '26') | 19866 @SupportedBrowser(SupportedBrowser.CHROME, '26') |
| 19867 @Experimental | 19867 @Experimental() |
| 19868 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#api-
shadow-root | 19868 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#api-
shadow-root |
| 19869 class ShadowRoot extends DocumentFragment native "ShadowRoot" { | 19869 class ShadowRoot extends DocumentFragment native "ShadowRoot" { |
| 19870 // To suppress missing implicit constructor warnings. | 19870 // To suppress missing implicit constructor warnings. |
| 19871 factory ShadowRoot._() { throw new UnsupportedError("Not supported"); } | 19871 factory ShadowRoot._() { throw new UnsupportedError("Not supported"); } |
| 19872 | 19872 |
| 19873 @DomName('ShadowRoot.activeElement') | 19873 @DomName('ShadowRoot.activeElement') |
| 19874 @DocsEditable | 19874 @DocsEditable() |
| 19875 final Element activeElement; | 19875 final Element activeElement; |
| 19876 | 19876 |
| 19877 @DomName('ShadowRoot.applyAuthorStyles') | 19877 @DomName('ShadowRoot.applyAuthorStyles') |
| 19878 @DocsEditable | 19878 @DocsEditable() |
| 19879 bool applyAuthorStyles; | 19879 bool applyAuthorStyles; |
| 19880 | 19880 |
| 19881 @JSName('innerHTML') | 19881 @JSName('innerHTML') |
| 19882 @DomName('ShadowRoot.innerHTML') | 19882 @DomName('ShadowRoot.innerHTML') |
| 19883 @DocsEditable | 19883 @DocsEditable() |
| 19884 String innerHtml; | 19884 String innerHtml; |
| 19885 | 19885 |
| 19886 @DomName('ShadowRoot.resetStyleInheritance') | 19886 @DomName('ShadowRoot.resetStyleInheritance') |
| 19887 @DocsEditable | 19887 @DocsEditable() |
| 19888 bool resetStyleInheritance; | 19888 bool resetStyleInheritance; |
| 19889 | 19889 |
| 19890 @JSName('cloneNode') | 19890 @JSName('cloneNode') |
| 19891 @DomName('ShadowRoot.cloneNode') | 19891 @DomName('ShadowRoot.cloneNode') |
| 19892 @DocsEditable | 19892 @DocsEditable() |
| 19893 Node clone(bool deep) native; | 19893 Node clone(bool deep) native; |
| 19894 | 19894 |
| 19895 @DomName('ShadowRoot.elementFromPoint') | 19895 @DomName('ShadowRoot.elementFromPoint') |
| 19896 @DocsEditable | 19896 @DocsEditable() |
| 19897 Element elementFromPoint(int x, int y) native; | 19897 Element elementFromPoint(int x, int y) native; |
| 19898 | 19898 |
| 19899 @DomName('ShadowRoot.getElementById') | 19899 @DomName('ShadowRoot.getElementById') |
| 19900 @DocsEditable | 19900 @DocsEditable() |
| 19901 Element getElementById(String elementId) native; | 19901 Element getElementById(String elementId) native; |
| 19902 | 19902 |
| 19903 @DomName('ShadowRoot.getElementsByClassName') | 19903 @DomName('ShadowRoot.getElementsByClassName') |
| 19904 @DocsEditable | 19904 @DocsEditable() |
| 19905 @Returns('NodeList') | 19905 @Returns('NodeList') |
| 19906 @Creates('NodeList') | 19906 @Creates('NodeList') |
| 19907 List<Node> getElementsByClassName(String className) native; | 19907 List<Node> getElementsByClassName(String className) native; |
| 19908 | 19908 |
| 19909 @DomName('ShadowRoot.getElementsByTagName') | 19909 @DomName('ShadowRoot.getElementsByTagName') |
| 19910 @DocsEditable | 19910 @DocsEditable() |
| 19911 @Returns('NodeList') | 19911 @Returns('NodeList') |
| 19912 @Creates('NodeList') | 19912 @Creates('NodeList') |
| 19913 List<Node> getElementsByTagName(String tagName) native; | 19913 List<Node> getElementsByTagName(String tagName) native; |
| 19914 | 19914 |
| 19915 @DomName('ShadowRoot.getSelection') | 19915 @DomName('ShadowRoot.getSelection') |
| 19916 @DocsEditable | 19916 @DocsEditable() |
| 19917 Selection getSelection() native; | 19917 Selection getSelection() native; |
| 19918 | 19918 |
| 19919 static bool get supported => | 19919 static bool get supported => |
| 19920 JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)'); | 19920 JS('bool', '!!(Element.prototype.webkitCreateShadowRoot)'); |
| 19921 } | 19921 } |
| 19922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19922 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 19923 // for details. All rights reserved. Use of this source code is governed by a | 19923 // for details. All rights reserved. Use of this source code is governed by a |
| 19924 // BSD-style license that can be found in the LICENSE file. | 19924 // BSD-style license that can be found in the LICENSE file. |
| 19925 | 19925 |
| 19926 | 19926 |
| 19927 @DocsEditable | 19927 @DocsEditable() |
| 19928 @DomName('WebKitSourceBuffer') | 19928 @DomName('WebKitSourceBuffer') |
| 19929 @SupportedBrowser(SupportedBrowser.CHROME) | 19929 @SupportedBrowser(SupportedBrowser.CHROME) |
| 19930 @SupportedBrowser(SupportedBrowser.SAFARI) | 19930 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 19931 @Experimental | 19931 @Experimental() |
| 19932 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html
#sourcebuffer | 19932 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html
#sourcebuffer |
| 19933 class SourceBuffer extends Interceptor native "WebKitSourceBuffer" { | 19933 class SourceBuffer extends Interceptor native "WebKitSourceBuffer" { |
| 19934 | 19934 |
| 19935 @DomName('WebKitSourceBuffer.buffered') | 19935 @DomName('WebKitSourceBuffer.buffered') |
| 19936 @DocsEditable | 19936 @DocsEditable() |
| 19937 final TimeRanges buffered; | 19937 final TimeRanges buffered; |
| 19938 | 19938 |
| 19939 @DomName('WebKitSourceBuffer.timestampOffset') | 19939 @DomName('WebKitSourceBuffer.timestampOffset') |
| 19940 @DocsEditable | 19940 @DocsEditable() |
| 19941 num timestampOffset; | 19941 num timestampOffset; |
| 19942 | 19942 |
| 19943 @DomName('WebKitSourceBuffer.abort') | 19943 @DomName('WebKitSourceBuffer.abort') |
| 19944 @DocsEditable | 19944 @DocsEditable() |
| 19945 void abort() native; | 19945 void abort() native; |
| 19946 | 19946 |
| 19947 @DomName('WebKitSourceBuffer.append') | 19947 @DomName('WebKitSourceBuffer.append') |
| 19948 @DocsEditable | 19948 @DocsEditable() |
| 19949 @Experimental // non-standard | 19949 @Experimental() // non-standard |
| 19950 void append(Uint8List data) native; | 19950 void append(Uint8List data) native; |
| 19951 } | 19951 } |
| 19952 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 19952 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 19953 // for details. All rights reserved. Use of this source code is governed by a | 19953 // for details. All rights reserved. Use of this source code is governed by a |
| 19954 // BSD-style license that can be found in the LICENSE file. | 19954 // BSD-style license that can be found in the LICENSE file. |
| 19955 | 19955 |
| 19956 | 19956 |
| 19957 @DocsEditable | 19957 @DocsEditable() |
| 19958 @DomName('WebKitSourceBufferList') | 19958 @DomName('WebKitSourceBufferList') |
| 19959 @SupportedBrowser(SupportedBrowser.CHROME) | 19959 @SupportedBrowser(SupportedBrowser.CHROME) |
| 19960 @SupportedBrowser(SupportedBrowser.SAFARI) | 19960 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 19961 @Experimental | 19961 @Experimental() |
| 19962 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html
#sourcebufferlist | 19962 // https://dvcs.w3.org/hg/html-media/raw-file/tip/media-source/media-source.html
#sourcebufferlist |
| 19963 class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, Immutab
leListMixin<SourceBuffer> implements JavaScriptIndexingBehavior, List<SourceBuff
er> native "WebKitSourceBufferList" { | 19963 class SourceBufferList extends EventTarget with ListMixin<SourceBuffer>, Immutab
leListMixin<SourceBuffer> implements JavaScriptIndexingBehavior, List<SourceBuff
er> native "WebKitSourceBufferList" { |
| 19964 // To suppress missing implicit constructor warnings. | 19964 // To suppress missing implicit constructor warnings. |
| 19965 factory SourceBufferList._() { throw new UnsupportedError("Not supported"); } | 19965 factory SourceBufferList._() { throw new UnsupportedError("Not supported"); } |
| 19966 | 19966 |
| 19967 @DomName('WebKitSourceBufferList.length') | 19967 @DomName('WebKitSourceBufferList.length') |
| 19968 @DocsEditable | 19968 @DocsEditable() |
| 19969 int get length => JS("int", "#.length", this); | 19969 int get length => JS("int", "#.length", this); |
| 19970 | 19970 |
| 19971 SourceBuffer operator[](int index) { | 19971 SourceBuffer operator[](int index) { |
| 19972 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 19972 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 19973 index, index, length)) | 19973 index, index, length)) |
| 19974 throw new RangeError.range(index, 0, length); | 19974 throw new RangeError.range(index, 0, length); |
| 19975 return JS("SourceBuffer", "#[#]", this, index); | 19975 return JS("SourceBuffer", "#[#]", this, index); |
| 19976 } | 19976 } |
| 19977 void operator[]=(int index, SourceBuffer value) { | 19977 void operator[]=(int index, SourceBuffer value) { |
| 19978 throw new UnsupportedError("Cannot assign element of immutable List."); | 19978 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 20007 } | 20007 } |
| 20008 if (len == 0) throw new StateError("No elements"); | 20008 if (len == 0) throw new StateError("No elements"); |
| 20009 throw new StateError("More than one element"); | 20009 throw new StateError("More than one element"); |
| 20010 } | 20010 } |
| 20011 | 20011 |
| 20012 SourceBuffer elementAt(int index) => this[index]; | 20012 SourceBuffer elementAt(int index) => this[index]; |
| 20013 // -- end List<SourceBuffer> mixins. | 20013 // -- end List<SourceBuffer> mixins. |
| 20014 | 20014 |
| 20015 @JSName('addEventListener') | 20015 @JSName('addEventListener') |
| 20016 @DomName('WebKitSourceBufferList.addEventListener') | 20016 @DomName('WebKitSourceBufferList.addEventListener') |
| 20017 @DocsEditable | 20017 @DocsEditable() |
| 20018 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 20018 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 20019 | 20019 |
| 20020 @DomName('WebKitSourceBufferList.dispatchEvent') | 20020 @DomName('WebKitSourceBufferList.dispatchEvent') |
| 20021 @DocsEditable | 20021 @DocsEditable() |
| 20022 bool dispatchEvent(Event event) native; | 20022 bool dispatchEvent(Event event) native; |
| 20023 | 20023 |
| 20024 @DomName('WebKitSourceBufferList.item') | 20024 @DomName('WebKitSourceBufferList.item') |
| 20025 @DocsEditable | 20025 @DocsEditable() |
| 20026 SourceBuffer item(int index) native; | 20026 SourceBuffer item(int index) native; |
| 20027 | 20027 |
| 20028 @JSName('removeEventListener') | 20028 @JSName('removeEventListener') |
| 20029 @DomName('WebKitSourceBufferList.removeEventListener') | 20029 @DomName('WebKitSourceBufferList.removeEventListener') |
| 20030 @DocsEditable | 20030 @DocsEditable() |
| 20031 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 20031 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 20032 } | 20032 } |
| 20033 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20033 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20034 // for details. All rights reserved. Use of this source code is governed by a | 20034 // for details. All rights reserved. Use of this source code is governed by a |
| 20035 // BSD-style license that can be found in the LICENSE file. | 20035 // BSD-style license that can be found in the LICENSE file. |
| 20036 | 20036 |
| 20037 | 20037 |
| 20038 @DocsEditable | 20038 @DocsEditable() |
| 20039 @DomName('HTMLSourceElement') | 20039 @DomName('HTMLSourceElement') |
| 20040 class SourceElement extends _HTMLElement native "HTMLSourceElement" { | 20040 class SourceElement extends _HTMLElement native "HTMLSourceElement" { |
| 20041 // To suppress missing implicit constructor warnings. | 20041 // To suppress missing implicit constructor warnings. |
| 20042 factory SourceElement._() { throw new UnsupportedError("Not supported"); } | 20042 factory SourceElement._() { throw new UnsupportedError("Not supported"); } |
| 20043 | 20043 |
| 20044 @DomName('HTMLSourceElement.HTMLSourceElement') | 20044 @DomName('HTMLSourceElement.HTMLSourceElement') |
| 20045 @DocsEditable | 20045 @DocsEditable() |
| 20046 factory SourceElement() => document.$dom_createElement("source"); | 20046 factory SourceElement() => document.$dom_createElement("source"); |
| 20047 | 20047 |
| 20048 @DomName('HTMLSourceElement.media') | 20048 @DomName('HTMLSourceElement.media') |
| 20049 @DocsEditable | 20049 @DocsEditable() |
| 20050 String media; | 20050 String media; |
| 20051 | 20051 |
| 20052 @DomName('HTMLSourceElement.src') | 20052 @DomName('HTMLSourceElement.src') |
| 20053 @DocsEditable | 20053 @DocsEditable() |
| 20054 String src; | 20054 String src; |
| 20055 | 20055 |
| 20056 @DomName('HTMLSourceElement.type') | 20056 @DomName('HTMLSourceElement.type') |
| 20057 @DocsEditable | 20057 @DocsEditable() |
| 20058 String type; | 20058 String type; |
| 20059 } | 20059 } |
| 20060 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20060 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20061 // for details. All rights reserved. Use of this source code is governed by a | 20061 // for details. All rights reserved. Use of this source code is governed by a |
| 20062 // BSD-style license that can be found in the LICENSE file. | 20062 // BSD-style license that can be found in the LICENSE file. |
| 20063 | 20063 |
| 20064 | 20064 |
| 20065 @DocsEditable | 20065 @DocsEditable() |
| 20066 @DomName('HTMLSpanElement') | 20066 @DomName('HTMLSpanElement') |
| 20067 class SpanElement extends _HTMLElement native "HTMLSpanElement" { | 20067 class SpanElement extends _HTMLElement native "HTMLSpanElement" { |
| 20068 // To suppress missing implicit constructor warnings. | 20068 // To suppress missing implicit constructor warnings. |
| 20069 factory SpanElement._() { throw new UnsupportedError("Not supported"); } | 20069 factory SpanElement._() { throw new UnsupportedError("Not supported"); } |
| 20070 | 20070 |
| 20071 @DomName('HTMLSpanElement.HTMLSpanElement') | 20071 @DomName('HTMLSpanElement.HTMLSpanElement') |
| 20072 @DocsEditable | 20072 @DocsEditable() |
| 20073 factory SpanElement() => document.$dom_createElement("span"); | 20073 factory SpanElement() => document.$dom_createElement("span"); |
| 20074 } | 20074 } |
| 20075 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20075 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20076 // for details. All rights reserved. Use of this source code is governed by a | 20076 // for details. All rights reserved. Use of this source code is governed by a |
| 20077 // BSD-style license that can be found in the LICENSE file. | 20077 // BSD-style license that can be found in the LICENSE file. |
| 20078 | 20078 |
| 20079 | 20079 |
| 20080 @DocsEditable | 20080 @DocsEditable() |
| 20081 @DomName('SpeechGrammar') | 20081 @DomName('SpeechGrammar') |
| 20082 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#dfn-speechgramm
ar | 20082 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#dfn-speechgramm
ar |
| 20083 @Experimental | 20083 @Experimental() |
| 20084 class SpeechGrammar extends Interceptor native "SpeechGrammar" { | 20084 class SpeechGrammar extends Interceptor native "SpeechGrammar" { |
| 20085 | 20085 |
| 20086 @DomName('SpeechGrammar.SpeechGrammar') | 20086 @DomName('SpeechGrammar.SpeechGrammar') |
| 20087 @DocsEditable | 20087 @DocsEditable() |
| 20088 factory SpeechGrammar() { | 20088 factory SpeechGrammar() { |
| 20089 return SpeechGrammar._create_1(); | 20089 return SpeechGrammar._create_1(); |
| 20090 } | 20090 } |
| 20091 static SpeechGrammar _create_1() => JS('SpeechGrammar', 'new SpeechGrammar()')
; | 20091 static SpeechGrammar _create_1() => JS('SpeechGrammar', 'new SpeechGrammar()')
; |
| 20092 | 20092 |
| 20093 @DomName('SpeechGrammar.src') | 20093 @DomName('SpeechGrammar.src') |
| 20094 @DocsEditable | 20094 @DocsEditable() |
| 20095 String src; | 20095 String src; |
| 20096 | 20096 |
| 20097 @DomName('SpeechGrammar.weight') | 20097 @DomName('SpeechGrammar.weight') |
| 20098 @DocsEditable | 20098 @DocsEditable() |
| 20099 num weight; | 20099 num weight; |
| 20100 } | 20100 } |
| 20101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20101 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20102 // for details. All rights reserved. Use of this source code is governed by a | 20102 // for details. All rights reserved. Use of this source code is governed by a |
| 20103 // BSD-style license that can be found in the LICENSE file. | 20103 // BSD-style license that can be found in the LICENSE file. |
| 20104 | 20104 |
| 20105 | 20105 |
| 20106 @DocsEditable | 20106 @DocsEditable() |
| 20107 @DomName('SpeechGrammarList') | 20107 @DomName('SpeechGrammarList') |
| 20108 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#dfn-speechgramm
arlist | 20108 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#dfn-speechgramm
arlist |
| 20109 @Experimental | 20109 @Experimental() |
| 20110 class SpeechGrammarList extends Interceptor with ListMixin<SpeechGrammar>, Immut
ableListMixin<SpeechGrammar> implements JavaScriptIndexingBehavior, List<SpeechG
rammar> native "SpeechGrammarList" { | 20110 class SpeechGrammarList extends Interceptor with ListMixin<SpeechGrammar>, Immut
ableListMixin<SpeechGrammar> implements JavaScriptIndexingBehavior, List<SpeechG
rammar> native "SpeechGrammarList" { |
| 20111 | 20111 |
| 20112 @DomName('SpeechGrammarList.SpeechGrammarList') | 20112 @DomName('SpeechGrammarList.SpeechGrammarList') |
| 20113 @DocsEditable | 20113 @DocsEditable() |
| 20114 factory SpeechGrammarList() { | 20114 factory SpeechGrammarList() { |
| 20115 return SpeechGrammarList._create_1(); | 20115 return SpeechGrammarList._create_1(); |
| 20116 } | 20116 } |
| 20117 static SpeechGrammarList _create_1() => JS('SpeechGrammarList', 'new SpeechGra
mmarList()'); | 20117 static SpeechGrammarList _create_1() => JS('SpeechGrammarList', 'new SpeechGra
mmarList()'); |
| 20118 | 20118 |
| 20119 @DomName('SpeechGrammarList.length') | 20119 @DomName('SpeechGrammarList.length') |
| 20120 @DocsEditable | 20120 @DocsEditable() |
| 20121 int get length => JS("int", "#.length", this); | 20121 int get length => JS("int", "#.length", this); |
| 20122 | 20122 |
| 20123 SpeechGrammar operator[](int index) { | 20123 SpeechGrammar operator[](int index) { |
| 20124 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 20124 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 20125 index, index, length)) | 20125 index, index, length)) |
| 20126 throw new RangeError.range(index, 0, length); | 20126 throw new RangeError.range(index, 0, length); |
| 20127 return JS("SpeechGrammar", "#[#]", this, index); | 20127 return JS("SpeechGrammar", "#[#]", this, index); |
| 20128 } | 20128 } |
| 20129 void operator[]=(int index, SpeechGrammar value) { | 20129 void operator[]=(int index, SpeechGrammar value) { |
| 20130 throw new UnsupportedError("Cannot assign element of immutable List."); | 20130 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 20158 return JS('SpeechGrammar', '#[0]', this); | 20158 return JS('SpeechGrammar', '#[0]', this); |
| 20159 } | 20159 } |
| 20160 if (len == 0) throw new StateError("No elements"); | 20160 if (len == 0) throw new StateError("No elements"); |
| 20161 throw new StateError("More than one element"); | 20161 throw new StateError("More than one element"); |
| 20162 } | 20162 } |
| 20163 | 20163 |
| 20164 SpeechGrammar elementAt(int index) => this[index]; | 20164 SpeechGrammar elementAt(int index) => this[index]; |
| 20165 // -- end List<SpeechGrammar> mixins. | 20165 // -- end List<SpeechGrammar> mixins. |
| 20166 | 20166 |
| 20167 @DomName('SpeechGrammarList.addFromString') | 20167 @DomName('SpeechGrammarList.addFromString') |
| 20168 @DocsEditable | 20168 @DocsEditable() |
| 20169 void addFromString(String string, [num weight]) native; | 20169 void addFromString(String string, [num weight]) native; |
| 20170 | 20170 |
| 20171 @DomName('SpeechGrammarList.addFromUri') | 20171 @DomName('SpeechGrammarList.addFromUri') |
| 20172 @DocsEditable | 20172 @DocsEditable() |
| 20173 void addFromUri(String src, [num weight]) native; | 20173 void addFromUri(String src, [num weight]) native; |
| 20174 | 20174 |
| 20175 @DomName('SpeechGrammarList.item') | 20175 @DomName('SpeechGrammarList.item') |
| 20176 @DocsEditable | 20176 @DocsEditable() |
| 20177 SpeechGrammar item(int index) native; | 20177 SpeechGrammar item(int index) native; |
| 20178 } | 20178 } |
| 20179 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20179 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20180 // for details. All rights reserved. Use of this source code is governed by a | 20180 // for details. All rights reserved. Use of this source code is governed by a |
| 20181 // BSD-style license that can be found in the LICENSE file. | 20181 // BSD-style license that can be found in the LICENSE file. |
| 20182 | 20182 |
| 20183 | 20183 |
| 20184 @DocsEditable | 20184 @DocsEditable() |
| 20185 @DomName('SpeechInputEvent') | 20185 @DomName('SpeechInputEvent') |
| 20186 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api
-draft.html#speech_input_event_interface | 20186 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api
-draft.html#speech_input_event_interface |
| 20187 @Experimental | 20187 @Experimental() |
| 20188 class SpeechInputEvent extends Event native "SpeechInputEvent" { | 20188 class SpeechInputEvent extends Event native "SpeechInputEvent" { |
| 20189 // To suppress missing implicit constructor warnings. | 20189 // To suppress missing implicit constructor warnings. |
| 20190 factory SpeechInputEvent._() { throw new UnsupportedError("Not supported"); } | 20190 factory SpeechInputEvent._() { throw new UnsupportedError("Not supported"); } |
| 20191 | 20191 |
| 20192 @DomName('SpeechInputEvent.results') | 20192 @DomName('SpeechInputEvent.results') |
| 20193 @DocsEditable | 20193 @DocsEditable() |
| 20194 @Returns('_SpeechInputResultList') | 20194 @Returns('_SpeechInputResultList') |
| 20195 @Creates('_SpeechInputResultList') | 20195 @Creates('_SpeechInputResultList') |
| 20196 final List<SpeechInputResult> results; | 20196 final List<SpeechInputResult> results; |
| 20197 } | 20197 } |
| 20198 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20198 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20199 // for details. All rights reserved. Use of this source code is governed by a | 20199 // for details. All rights reserved. Use of this source code is governed by a |
| 20200 // BSD-style license that can be found in the LICENSE file. | 20200 // BSD-style license that can be found in the LICENSE file. |
| 20201 | 20201 |
| 20202 | 20202 |
| 20203 @DocsEditable | 20203 @DocsEditable() |
| 20204 @DomName('SpeechInputResult') | 20204 @DomName('SpeechInputResult') |
| 20205 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api
-draft.html#speech_input_result_interface | 20205 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api
-draft.html#speech_input_result_interface |
| 20206 @Experimental | 20206 @Experimental() |
| 20207 class SpeechInputResult extends Interceptor native "SpeechInputResult" { | 20207 class SpeechInputResult extends Interceptor native "SpeechInputResult" { |
| 20208 | 20208 |
| 20209 @DomName('SpeechInputResult.confidence') | 20209 @DomName('SpeechInputResult.confidence') |
| 20210 @DocsEditable | 20210 @DocsEditable() |
| 20211 final num confidence; | 20211 final num confidence; |
| 20212 | 20212 |
| 20213 @DomName('SpeechInputResult.utterance') | 20213 @DomName('SpeechInputResult.utterance') |
| 20214 @DocsEditable | 20214 @DocsEditable() |
| 20215 final String utterance; | 20215 final String utterance; |
| 20216 } | 20216 } |
| 20217 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 20217 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 20218 // for details. All rights reserved. Use of this source code is governed by a | 20218 // for details. All rights reserved. Use of this source code is governed by a |
| 20219 // BSD-style license that can be found in the LICENSE file. | 20219 // BSD-style license that can be found in the LICENSE file. |
| 20220 | 20220 |
| 20221 | 20221 |
| 20222 @DomName('SpeechRecognition') | 20222 @DomName('SpeechRecognition') |
| 20223 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 20223 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
| 20224 @Experimental | 20224 @Experimental() |
| 20225 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-sect
ion | 20225 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-sect
ion |
| 20226 class SpeechRecognition extends EventTarget native "SpeechRecognition" { | 20226 class SpeechRecognition extends EventTarget native "SpeechRecognition" { |
| 20227 // To suppress missing implicit constructor warnings. | 20227 // To suppress missing implicit constructor warnings. |
| 20228 factory SpeechRecognition._() { throw new UnsupportedError("Not supported"); } | 20228 factory SpeechRecognition._() { throw new UnsupportedError("Not supported"); } |
| 20229 | 20229 |
| 20230 @DomName('SpeechRecognition.audioendEvent') | 20230 @DomName('SpeechRecognition.audioendEvent') |
| 20231 @DocsEditable | 20231 @DocsEditable() |
| 20232 static const EventStreamProvider<Event> audioEndEvent = const EventStreamProvi
der<Event>('audioend'); | 20232 static const EventStreamProvider<Event> audioEndEvent = const EventStreamProvi
der<Event>('audioend'); |
| 20233 | 20233 |
| 20234 @DomName('SpeechRecognition.audiostartEvent') | 20234 @DomName('SpeechRecognition.audiostartEvent') |
| 20235 @DocsEditable | 20235 @DocsEditable() |
| 20236 static const EventStreamProvider<Event> audioStartEvent = const EventStreamPro
vider<Event>('audiostart'); | 20236 static const EventStreamProvider<Event> audioStartEvent = const EventStreamPro
vider<Event>('audiostart'); |
| 20237 | 20237 |
| 20238 @DomName('SpeechRecognition.endEvent') | 20238 @DomName('SpeechRecognition.endEvent') |
| 20239 @DocsEditable | 20239 @DocsEditable() |
| 20240 static const EventStreamProvider<Event> endEvent = const EventStreamProvider<E
vent>('end'); | 20240 static const EventStreamProvider<Event> endEvent = const EventStreamProvider<E
vent>('end'); |
| 20241 | 20241 |
| 20242 @DomName('SpeechRecognition.errorEvent') | 20242 @DomName('SpeechRecognition.errorEvent') |
| 20243 @DocsEditable | 20243 @DocsEditable() |
| 20244 static const EventStreamProvider<SpeechRecognitionError> errorEvent = const Ev
entStreamProvider<SpeechRecognitionError>('error'); | 20244 static const EventStreamProvider<SpeechRecognitionError> errorEvent = const Ev
entStreamProvider<SpeechRecognitionError>('error'); |
| 20245 | 20245 |
| 20246 @DomName('SpeechRecognition.nomatchEvent') | 20246 @DomName('SpeechRecognition.nomatchEvent') |
| 20247 @DocsEditable | 20247 @DocsEditable() |
| 20248 static const EventStreamProvider<SpeechRecognitionEvent> noMatchEvent = const
EventStreamProvider<SpeechRecognitionEvent>('nomatch'); | 20248 static const EventStreamProvider<SpeechRecognitionEvent> noMatchEvent = const
EventStreamProvider<SpeechRecognitionEvent>('nomatch'); |
| 20249 | 20249 |
| 20250 @DomName('SpeechRecognition.resultEvent') | 20250 @DomName('SpeechRecognition.resultEvent') |
| 20251 @DocsEditable | 20251 @DocsEditable() |
| 20252 static const EventStreamProvider<SpeechRecognitionEvent> resultEvent = const E
ventStreamProvider<SpeechRecognitionEvent>('result'); | 20252 static const EventStreamProvider<SpeechRecognitionEvent> resultEvent = const E
ventStreamProvider<SpeechRecognitionEvent>('result'); |
| 20253 | 20253 |
| 20254 @DomName('SpeechRecognition.soundendEvent') | 20254 @DomName('SpeechRecognition.soundendEvent') |
| 20255 @DocsEditable | 20255 @DocsEditable() |
| 20256 static const EventStreamProvider<Event> soundEndEvent = const EventStreamProvi
der<Event>('soundend'); | 20256 static const EventStreamProvider<Event> soundEndEvent = const EventStreamProvi
der<Event>('soundend'); |
| 20257 | 20257 |
| 20258 @DomName('SpeechRecognition.soundstartEvent') | 20258 @DomName('SpeechRecognition.soundstartEvent') |
| 20259 @DocsEditable | 20259 @DocsEditable() |
| 20260 static const EventStreamProvider<Event> soundStartEvent = const EventStreamPro
vider<Event>('soundstart'); | 20260 static const EventStreamProvider<Event> soundStartEvent = const EventStreamPro
vider<Event>('soundstart'); |
| 20261 | 20261 |
| 20262 @DomName('SpeechRecognition.speechendEvent') | 20262 @DomName('SpeechRecognition.speechendEvent') |
| 20263 @DocsEditable | 20263 @DocsEditable() |
| 20264 static const EventStreamProvider<Event> speechEndEvent = const EventStreamProv
ider<Event>('speechend'); | 20264 static const EventStreamProvider<Event> speechEndEvent = const EventStreamProv
ider<Event>('speechend'); |
| 20265 | 20265 |
| 20266 @DomName('SpeechRecognition.speechstartEvent') | 20266 @DomName('SpeechRecognition.speechstartEvent') |
| 20267 @DocsEditable | 20267 @DocsEditable() |
| 20268 static const EventStreamProvider<Event> speechStartEvent = const EventStreamPr
ovider<Event>('speechstart'); | 20268 static const EventStreamProvider<Event> speechStartEvent = const EventStreamPr
ovider<Event>('speechstart'); |
| 20269 | 20269 |
| 20270 @DomName('SpeechRecognition.startEvent') | 20270 @DomName('SpeechRecognition.startEvent') |
| 20271 @DocsEditable | 20271 @DocsEditable() |
| 20272 static const EventStreamProvider<Event> startEvent = const EventStreamProvider
<Event>('start'); | 20272 static const EventStreamProvider<Event> startEvent = const EventStreamProvider
<Event>('start'); |
| 20273 | 20273 |
| 20274 /// Checks if this type is supported on the current platform. | 20274 /// Checks if this type is supported on the current platform. |
| 20275 static bool get supported => JS('bool', '!!(window.SpeechRecognition || window
.webkitSpeechRecognition)'); | 20275 static bool get supported => JS('bool', '!!(window.SpeechRecognition || window
.webkitSpeechRecognition)'); |
| 20276 | 20276 |
| 20277 @DomName('SpeechRecognition.continuous') | 20277 @DomName('SpeechRecognition.continuous') |
| 20278 @DocsEditable | 20278 @DocsEditable() |
| 20279 bool continuous; | 20279 bool continuous; |
| 20280 | 20280 |
| 20281 @DomName('SpeechRecognition.grammars') | 20281 @DomName('SpeechRecognition.grammars') |
| 20282 @DocsEditable | 20282 @DocsEditable() |
| 20283 SpeechGrammarList grammars; | 20283 SpeechGrammarList grammars; |
| 20284 | 20284 |
| 20285 @DomName('SpeechRecognition.interimResults') | 20285 @DomName('SpeechRecognition.interimResults') |
| 20286 @DocsEditable | 20286 @DocsEditable() |
| 20287 bool interimResults; | 20287 bool interimResults; |
| 20288 | 20288 |
| 20289 @DomName('SpeechRecognition.lang') | 20289 @DomName('SpeechRecognition.lang') |
| 20290 @DocsEditable | 20290 @DocsEditable() |
| 20291 String lang; | 20291 String lang; |
| 20292 | 20292 |
| 20293 @DomName('SpeechRecognition.maxAlternatives') | 20293 @DomName('SpeechRecognition.maxAlternatives') |
| 20294 @DocsEditable | 20294 @DocsEditable() |
| 20295 int maxAlternatives; | 20295 int maxAlternatives; |
| 20296 | 20296 |
| 20297 @DomName('SpeechRecognition.abort') | 20297 @DomName('SpeechRecognition.abort') |
| 20298 @DocsEditable | 20298 @DocsEditable() |
| 20299 void abort() native; | 20299 void abort() native; |
| 20300 | 20300 |
| 20301 @JSName('addEventListener') | 20301 @JSName('addEventListener') |
| 20302 @DomName('SpeechRecognition.addEventListener') | 20302 @DomName('SpeechRecognition.addEventListener') |
| 20303 @DocsEditable | 20303 @DocsEditable() |
| 20304 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 20304 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 20305 | 20305 |
| 20306 @DomName('SpeechRecognition.dispatchEvent') | 20306 @DomName('SpeechRecognition.dispatchEvent') |
| 20307 @DocsEditable | 20307 @DocsEditable() |
| 20308 bool dispatchEvent(Event evt) native; | 20308 bool dispatchEvent(Event evt) native; |
| 20309 | 20309 |
| 20310 @JSName('removeEventListener') | 20310 @JSName('removeEventListener') |
| 20311 @DomName('SpeechRecognition.removeEventListener') | 20311 @DomName('SpeechRecognition.removeEventListener') |
| 20312 @DocsEditable | 20312 @DocsEditable() |
| 20313 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 20313 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 20314 | 20314 |
| 20315 @DomName('SpeechRecognition.start') | 20315 @DomName('SpeechRecognition.start') |
| 20316 @DocsEditable | 20316 @DocsEditable() |
| 20317 void start() native; | 20317 void start() native; |
| 20318 | 20318 |
| 20319 @DomName('SpeechRecognition.stop') | 20319 @DomName('SpeechRecognition.stop') |
| 20320 @DocsEditable | 20320 @DocsEditable() |
| 20321 void stop() native; | 20321 void stop() native; |
| 20322 | 20322 |
| 20323 @DomName('SpeechRecognition.onaudioend') | 20323 @DomName('SpeechRecognition.onaudioend') |
| 20324 @DocsEditable | 20324 @DocsEditable() |
| 20325 Stream<Event> get onAudioEnd => audioEndEvent.forTarget(this); | 20325 Stream<Event> get onAudioEnd => audioEndEvent.forTarget(this); |
| 20326 | 20326 |
| 20327 @DomName('SpeechRecognition.onaudiostart') | 20327 @DomName('SpeechRecognition.onaudiostart') |
| 20328 @DocsEditable | 20328 @DocsEditable() |
| 20329 Stream<Event> get onAudioStart => audioStartEvent.forTarget(this); | 20329 Stream<Event> get onAudioStart => audioStartEvent.forTarget(this); |
| 20330 | 20330 |
| 20331 @DomName('SpeechRecognition.onend') | 20331 @DomName('SpeechRecognition.onend') |
| 20332 @DocsEditable | 20332 @DocsEditable() |
| 20333 Stream<Event> get onEnd => endEvent.forTarget(this); | 20333 Stream<Event> get onEnd => endEvent.forTarget(this); |
| 20334 | 20334 |
| 20335 @DomName('SpeechRecognition.onerror') | 20335 @DomName('SpeechRecognition.onerror') |
| 20336 @DocsEditable | 20336 @DocsEditable() |
| 20337 Stream<SpeechRecognitionError> get onError => errorEvent.forTarget(this); | 20337 Stream<SpeechRecognitionError> get onError => errorEvent.forTarget(this); |
| 20338 | 20338 |
| 20339 @DomName('SpeechRecognition.onnomatch') | 20339 @DomName('SpeechRecognition.onnomatch') |
| 20340 @DocsEditable | 20340 @DocsEditable() |
| 20341 Stream<SpeechRecognitionEvent> get onNoMatch => noMatchEvent.forTarget(this); | 20341 Stream<SpeechRecognitionEvent> get onNoMatch => noMatchEvent.forTarget(this); |
| 20342 | 20342 |
| 20343 @DomName('SpeechRecognition.onresult') | 20343 @DomName('SpeechRecognition.onresult') |
| 20344 @DocsEditable | 20344 @DocsEditable() |
| 20345 Stream<SpeechRecognitionEvent> get onResult => resultEvent.forTarget(this); | 20345 Stream<SpeechRecognitionEvent> get onResult => resultEvent.forTarget(this); |
| 20346 | 20346 |
| 20347 @DomName('SpeechRecognition.onsoundend') | 20347 @DomName('SpeechRecognition.onsoundend') |
| 20348 @DocsEditable | 20348 @DocsEditable() |
| 20349 Stream<Event> get onSoundEnd => soundEndEvent.forTarget(this); | 20349 Stream<Event> get onSoundEnd => soundEndEvent.forTarget(this); |
| 20350 | 20350 |
| 20351 @DomName('SpeechRecognition.onsoundstart') | 20351 @DomName('SpeechRecognition.onsoundstart') |
| 20352 @DocsEditable | 20352 @DocsEditable() |
| 20353 Stream<Event> get onSoundStart => soundStartEvent.forTarget(this); | 20353 Stream<Event> get onSoundStart => soundStartEvent.forTarget(this); |
| 20354 | 20354 |
| 20355 @DomName('SpeechRecognition.onspeechend') | 20355 @DomName('SpeechRecognition.onspeechend') |
| 20356 @DocsEditable | 20356 @DocsEditable() |
| 20357 Stream<Event> get onSpeechEnd => speechEndEvent.forTarget(this); | 20357 Stream<Event> get onSpeechEnd => speechEndEvent.forTarget(this); |
| 20358 | 20358 |
| 20359 @DomName('SpeechRecognition.onspeechstart') | 20359 @DomName('SpeechRecognition.onspeechstart') |
| 20360 @DocsEditable | 20360 @DocsEditable() |
| 20361 Stream<Event> get onSpeechStart => speechStartEvent.forTarget(this); | 20361 Stream<Event> get onSpeechStart => speechStartEvent.forTarget(this); |
| 20362 | 20362 |
| 20363 @DomName('SpeechRecognition.onstart') | 20363 @DomName('SpeechRecognition.onstart') |
| 20364 @DocsEditable | 20364 @DocsEditable() |
| 20365 Stream<Event> get onStart => startEvent.forTarget(this); | 20365 Stream<Event> get onStart => startEvent.forTarget(this); |
| 20366 | 20366 |
| 20367 factory SpeechRecognition() { | 20367 factory SpeechRecognition() { |
| 20368 return JS('SpeechRecognition', | 20368 return JS('SpeechRecognition', |
| 20369 'new (window.SpeechRecognition || window.webkitSpeechRecognition)()'); | 20369 'new (window.SpeechRecognition || window.webkitSpeechRecognition)()'); |
| 20370 } | 20370 } |
| 20371 } | 20371 } |
| 20372 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20372 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20373 // for details. All rights reserved. Use of this source code is governed by a | 20373 // for details. All rights reserved. Use of this source code is governed by a |
| 20374 // BSD-style license that can be found in the LICENSE file. | 20374 // BSD-style license that can be found in the LICENSE file. |
| 20375 | 20375 |
| 20376 | 20376 |
| 20377 @DocsEditable | 20377 @DocsEditable() |
| 20378 @DomName('SpeechRecognitionAlternative') | 20378 @DomName('SpeechRecognitionAlternative') |
| 20379 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 20379 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
| 20380 @Experimental | 20380 @Experimental() |
| 20381 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechrecogniti
onalternative | 20381 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechrecogniti
onalternative |
| 20382 class SpeechRecognitionAlternative extends Interceptor native "SpeechRecognition
Alternative" { | 20382 class SpeechRecognitionAlternative extends Interceptor native "SpeechRecognition
Alternative" { |
| 20383 | 20383 |
| 20384 @DomName('SpeechRecognitionAlternative.confidence') | 20384 @DomName('SpeechRecognitionAlternative.confidence') |
| 20385 @DocsEditable | 20385 @DocsEditable() |
| 20386 final num confidence; | 20386 final num confidence; |
| 20387 | 20387 |
| 20388 @DomName('SpeechRecognitionAlternative.transcript') | 20388 @DomName('SpeechRecognitionAlternative.transcript') |
| 20389 @DocsEditable | 20389 @DocsEditable() |
| 20390 final String transcript; | 20390 final String transcript; |
| 20391 } | 20391 } |
| 20392 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20392 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20393 // for details. All rights reserved. Use of this source code is governed by a | 20393 // for details. All rights reserved. Use of this source code is governed by a |
| 20394 // BSD-style license that can be found in the LICENSE file. | 20394 // BSD-style license that can be found in the LICENSE file. |
| 20395 | 20395 |
| 20396 | 20396 |
| 20397 @DocsEditable | 20397 @DocsEditable() |
| 20398 @DomName('SpeechRecognitionError') | 20398 @DomName('SpeechRecognitionError') |
| 20399 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 20399 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
| 20400 @Experimental | 20400 @Experimental() |
| 20401 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-erro
r | 20401 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-erro
r |
| 20402 class SpeechRecognitionError extends Event native "SpeechRecognitionError" { | 20402 class SpeechRecognitionError extends Event native "SpeechRecognitionError" { |
| 20403 // To suppress missing implicit constructor warnings. | 20403 // To suppress missing implicit constructor warnings. |
| 20404 factory SpeechRecognitionError._() { throw new UnsupportedError("Not supported
"); } | 20404 factory SpeechRecognitionError._() { throw new UnsupportedError("Not supported
"); } |
| 20405 | 20405 |
| 20406 @DomName('SpeechRecognitionError.error') | 20406 @DomName('SpeechRecognitionError.error') |
| 20407 @DocsEditable | 20407 @DocsEditable() |
| 20408 final String error; | 20408 final String error; |
| 20409 | 20409 |
| 20410 @DomName('SpeechRecognitionError.message') | 20410 @DomName('SpeechRecognitionError.message') |
| 20411 @DocsEditable | 20411 @DocsEditable() |
| 20412 final String message; | 20412 final String message; |
| 20413 } | 20413 } |
| 20414 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20414 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20415 // for details. All rights reserved. Use of this source code is governed by a | 20415 // for details. All rights reserved. Use of this source code is governed by a |
| 20416 // BSD-style license that can be found in the LICENSE file. | 20416 // BSD-style license that can be found in the LICENSE file. |
| 20417 | 20417 |
| 20418 | 20418 |
| 20419 @DocsEditable | 20419 @DocsEditable() |
| 20420 @DomName('SpeechRecognitionEvent') | 20420 @DomName('SpeechRecognitionEvent') |
| 20421 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 20421 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
| 20422 @Experimental | 20422 @Experimental() |
| 20423 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-even
t | 20423 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechreco-even
t |
| 20424 class SpeechRecognitionEvent extends Event native "SpeechRecognitionEvent" { | 20424 class SpeechRecognitionEvent extends Event native "SpeechRecognitionEvent" { |
| 20425 // To suppress missing implicit constructor warnings. | 20425 // To suppress missing implicit constructor warnings. |
| 20426 factory SpeechRecognitionEvent._() { throw new UnsupportedError("Not supported
"); } | 20426 factory SpeechRecognitionEvent._() { throw new UnsupportedError("Not supported
"); } |
| 20427 | 20427 |
| 20428 @DomName('SpeechRecognitionEvent.emma') | 20428 @DomName('SpeechRecognitionEvent.emma') |
| 20429 @DocsEditable | 20429 @DocsEditable() |
| 20430 final Document emma; | 20430 final Document emma; |
| 20431 | 20431 |
| 20432 @DomName('SpeechRecognitionEvent.interpretation') | 20432 @DomName('SpeechRecognitionEvent.interpretation') |
| 20433 @DocsEditable | 20433 @DocsEditable() |
| 20434 final Document interpretation; | 20434 final Document interpretation; |
| 20435 | 20435 |
| 20436 @DomName('SpeechRecognitionEvent.resultIndex') | 20436 @DomName('SpeechRecognitionEvent.resultIndex') |
| 20437 @DocsEditable | 20437 @DocsEditable() |
| 20438 final int resultIndex; | 20438 final int resultIndex; |
| 20439 | 20439 |
| 20440 @DomName('SpeechRecognitionEvent.results') | 20440 @DomName('SpeechRecognitionEvent.results') |
| 20441 @DocsEditable | 20441 @DocsEditable() |
| 20442 @Returns('_SpeechRecognitionResultList') | 20442 @Returns('_SpeechRecognitionResultList') |
| 20443 @Creates('_SpeechRecognitionResultList') | 20443 @Creates('_SpeechRecognitionResultList') |
| 20444 final List<SpeechRecognitionResult> results; | 20444 final List<SpeechRecognitionResult> results; |
| 20445 } | 20445 } |
| 20446 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20446 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20447 // for details. All rights reserved. Use of this source code is governed by a | 20447 // for details. All rights reserved. Use of this source code is governed by a |
| 20448 // BSD-style license that can be found in the LICENSE file. | 20448 // BSD-style license that can be found in the LICENSE file. |
| 20449 | 20449 |
| 20450 | 20450 |
| 20451 @DocsEditable | 20451 @DocsEditable() |
| 20452 @DomName('SpeechRecognitionResult') | 20452 @DomName('SpeechRecognitionResult') |
| 20453 @SupportedBrowser(SupportedBrowser.CHROME, '25') | 20453 @SupportedBrowser(SupportedBrowser.CHROME, '25') |
| 20454 @Experimental | 20454 @Experimental() |
| 20455 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechrecogniti
onresult | 20455 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechrecogniti
onresult |
| 20456 class SpeechRecognitionResult extends Interceptor native "SpeechRecognitionResul
t" { | 20456 class SpeechRecognitionResult extends Interceptor native "SpeechRecognitionResul
t" { |
| 20457 | 20457 |
| 20458 @DomName('SpeechRecognitionResult.isFinal') | 20458 @DomName('SpeechRecognitionResult.isFinal') |
| 20459 @DocsEditable | 20459 @DocsEditable() |
| 20460 final bool isFinal; | 20460 final bool isFinal; |
| 20461 | 20461 |
| 20462 @DomName('SpeechRecognitionResult.length') | 20462 @DomName('SpeechRecognitionResult.length') |
| 20463 @DocsEditable | 20463 @DocsEditable() |
| 20464 final int length; | 20464 final int length; |
| 20465 | 20465 |
| 20466 @DomName('SpeechRecognitionResult.item') | 20466 @DomName('SpeechRecognitionResult.item') |
| 20467 @DocsEditable | 20467 @DocsEditable() |
| 20468 SpeechRecognitionAlternative item(int index) native; | 20468 SpeechRecognitionAlternative item(int index) native; |
| 20469 } | 20469 } |
| 20470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20470 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20471 // for details. All rights reserved. Use of this source code is governed by a | 20471 // for details. All rights reserved. Use of this source code is governed by a |
| 20472 // BSD-style license that can be found in the LICENSE file. | 20472 // BSD-style license that can be found in the LICENSE file. |
| 20473 | 20473 |
| 20474 | 20474 |
| 20475 @DocsEditable | 20475 @DocsEditable() |
| 20476 @DomName('SpeechSynthesis') | 20476 @DomName('SpeechSynthesis') |
| 20477 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section | 20477 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section |
| 20478 @Experimental | 20478 @Experimental() |
| 20479 class SpeechSynthesis extends Interceptor native "SpeechSynthesis" { | 20479 class SpeechSynthesis extends Interceptor native "SpeechSynthesis" { |
| 20480 | 20480 |
| 20481 @DomName('SpeechSynthesis.paused') | 20481 @DomName('SpeechSynthesis.paused') |
| 20482 @DocsEditable | 20482 @DocsEditable() |
| 20483 final bool paused; | 20483 final bool paused; |
| 20484 | 20484 |
| 20485 @DomName('SpeechSynthesis.pending') | 20485 @DomName('SpeechSynthesis.pending') |
| 20486 @DocsEditable | 20486 @DocsEditable() |
| 20487 final bool pending; | 20487 final bool pending; |
| 20488 | 20488 |
| 20489 @DomName('SpeechSynthesis.speaking') | 20489 @DomName('SpeechSynthesis.speaking') |
| 20490 @DocsEditable | 20490 @DocsEditable() |
| 20491 final bool speaking; | 20491 final bool speaking; |
| 20492 | 20492 |
| 20493 @DomName('SpeechSynthesis.cancel') | 20493 @DomName('SpeechSynthesis.cancel') |
| 20494 @DocsEditable | 20494 @DocsEditable() |
| 20495 void cancel() native; | 20495 void cancel() native; |
| 20496 | 20496 |
| 20497 @DomName('SpeechSynthesis.getVoices') | 20497 @DomName('SpeechSynthesis.getVoices') |
| 20498 @DocsEditable | 20498 @DocsEditable() |
| 20499 List<SpeechSynthesisVoice> getVoices() native; | 20499 List<SpeechSynthesisVoice> getVoices() native; |
| 20500 | 20500 |
| 20501 @DomName('SpeechSynthesis.pause') | 20501 @DomName('SpeechSynthesis.pause') |
| 20502 @DocsEditable | 20502 @DocsEditable() |
| 20503 void pause() native; | 20503 void pause() native; |
| 20504 | 20504 |
| 20505 @DomName('SpeechSynthesis.resume') | 20505 @DomName('SpeechSynthesis.resume') |
| 20506 @DocsEditable | 20506 @DocsEditable() |
| 20507 void resume() native; | 20507 void resume() native; |
| 20508 | 20508 |
| 20509 @DomName('SpeechSynthesis.speak') | 20509 @DomName('SpeechSynthesis.speak') |
| 20510 @DocsEditable | 20510 @DocsEditable() |
| 20511 void speak(SpeechSynthesisUtterance utterance) native; | 20511 void speak(SpeechSynthesisUtterance utterance) native; |
| 20512 } | 20512 } |
| 20513 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20513 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20514 // for details. All rights reserved. Use of this source code is governed by a | 20514 // for details. All rights reserved. Use of this source code is governed by a |
| 20515 // BSD-style license that can be found in the LICENSE file. | 20515 // BSD-style license that can be found in the LICENSE file. |
| 20516 | 20516 |
| 20517 | 20517 |
| 20518 @DocsEditable | 20518 @DocsEditable() |
| 20519 @DomName('SpeechSynthesisEvent') | 20519 @DomName('SpeechSynthesisEvent') |
| 20520 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section | 20520 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section |
| 20521 @Experimental | 20521 @Experimental() |
| 20522 class SpeechSynthesisEvent extends Event native "SpeechSynthesisEvent" { | 20522 class SpeechSynthesisEvent extends Event native "SpeechSynthesisEvent" { |
| 20523 // To suppress missing implicit constructor warnings. | 20523 // To suppress missing implicit constructor warnings. |
| 20524 factory SpeechSynthesisEvent._() { throw new UnsupportedError("Not supported")
; } | 20524 factory SpeechSynthesisEvent._() { throw new UnsupportedError("Not supported")
; } |
| 20525 | 20525 |
| 20526 @DomName('SpeechSynthesisEvent.charIndex') | 20526 @DomName('SpeechSynthesisEvent.charIndex') |
| 20527 @DocsEditable | 20527 @DocsEditable() |
| 20528 final int charIndex; | 20528 final int charIndex; |
| 20529 | 20529 |
| 20530 @DomName('SpeechSynthesisEvent.elapsedTime') | 20530 @DomName('SpeechSynthesisEvent.elapsedTime') |
| 20531 @DocsEditable | 20531 @DocsEditable() |
| 20532 final num elapsedTime; | 20532 final num elapsedTime; |
| 20533 | 20533 |
| 20534 @DomName('SpeechSynthesisEvent.name') | 20534 @DomName('SpeechSynthesisEvent.name') |
| 20535 @DocsEditable | 20535 @DocsEditable() |
| 20536 final String name; | 20536 final String name; |
| 20537 } | 20537 } |
| 20538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20538 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20539 // for details. All rights reserved. Use of this source code is governed by a | 20539 // for details. All rights reserved. Use of this source code is governed by a |
| 20540 // BSD-style license that can be found in the LICENSE file. | 20540 // BSD-style license that can be found in the LICENSE file. |
| 20541 | 20541 |
| 20542 | 20542 |
| 20543 @DocsEditable | 20543 @DocsEditable() |
| 20544 @DomName('SpeechSynthesisUtterance') | 20544 @DomName('SpeechSynthesisUtterance') |
| 20545 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section | 20545 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section |
| 20546 @Experimental | 20546 @Experimental() |
| 20547 class SpeechSynthesisUtterance extends EventTarget native "SpeechSynthesisUttera
nce" { | 20547 class SpeechSynthesisUtterance extends EventTarget native "SpeechSynthesisUttera
nce" { |
| 20548 // To suppress missing implicit constructor warnings. | 20548 // To suppress missing implicit constructor warnings. |
| 20549 factory SpeechSynthesisUtterance._() { throw new UnsupportedError("Not support
ed"); } | 20549 factory SpeechSynthesisUtterance._() { throw new UnsupportedError("Not support
ed"); } |
| 20550 | 20550 |
| 20551 @DomName('SpeechSynthesisUtterance.boundaryEvent') | 20551 @DomName('SpeechSynthesisUtterance.boundaryEvent') |
| 20552 @DocsEditable | 20552 @DocsEditable() |
| 20553 static const EventStreamProvider<SpeechSynthesisEvent> boundaryEvent = const E
ventStreamProvider<SpeechSynthesisEvent>('boundary'); | 20553 static const EventStreamProvider<SpeechSynthesisEvent> boundaryEvent = const E
ventStreamProvider<SpeechSynthesisEvent>('boundary'); |
| 20554 | 20554 |
| 20555 @DomName('SpeechSynthesisUtterance.endEvent') | 20555 @DomName('SpeechSynthesisUtterance.endEvent') |
| 20556 @DocsEditable | 20556 @DocsEditable() |
| 20557 static const EventStreamProvider<SpeechSynthesisEvent> endEvent = const EventS
treamProvider<SpeechSynthesisEvent>('end'); | 20557 static const EventStreamProvider<SpeechSynthesisEvent> endEvent = const EventS
treamProvider<SpeechSynthesisEvent>('end'); |
| 20558 | 20558 |
| 20559 @DomName('SpeechSynthesisUtterance.errorEvent') | 20559 @DomName('SpeechSynthesisUtterance.errorEvent') |
| 20560 @DocsEditable | 20560 @DocsEditable() |
| 20561 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 20561 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 20562 | 20562 |
| 20563 @DomName('SpeechSynthesisUtterance.markEvent') | 20563 @DomName('SpeechSynthesisUtterance.markEvent') |
| 20564 @DocsEditable | 20564 @DocsEditable() |
| 20565 static const EventStreamProvider<SpeechSynthesisEvent> markEvent = const Event
StreamProvider<SpeechSynthesisEvent>('mark'); | 20565 static const EventStreamProvider<SpeechSynthesisEvent> markEvent = const Event
StreamProvider<SpeechSynthesisEvent>('mark'); |
| 20566 | 20566 |
| 20567 @DomName('SpeechSynthesisUtterance.pauseEvent') | 20567 @DomName('SpeechSynthesisUtterance.pauseEvent') |
| 20568 @DocsEditable | 20568 @DocsEditable() |
| 20569 static const EventStreamProvider<Event> pauseEvent = const EventStreamProvider
<Event>('pause'); | 20569 static const EventStreamProvider<Event> pauseEvent = const EventStreamProvider
<Event>('pause'); |
| 20570 | 20570 |
| 20571 @DomName('SpeechSynthesisUtterance.resumeEvent') | 20571 @DomName('SpeechSynthesisUtterance.resumeEvent') |
| 20572 @DocsEditable | 20572 @DocsEditable() |
| 20573 static const EventStreamProvider<SpeechSynthesisEvent> resumeEvent = const Eve
ntStreamProvider<SpeechSynthesisEvent>('resume'); | 20573 static const EventStreamProvider<SpeechSynthesisEvent> resumeEvent = const Eve
ntStreamProvider<SpeechSynthesisEvent>('resume'); |
| 20574 | 20574 |
| 20575 @DomName('SpeechSynthesisUtterance.startEvent') | 20575 @DomName('SpeechSynthesisUtterance.startEvent') |
| 20576 @DocsEditable | 20576 @DocsEditable() |
| 20577 static const EventStreamProvider<SpeechSynthesisEvent> startEvent = const Even
tStreamProvider<SpeechSynthesisEvent>('start'); | 20577 static const EventStreamProvider<SpeechSynthesisEvent> startEvent = const Even
tStreamProvider<SpeechSynthesisEvent>('start'); |
| 20578 | 20578 |
| 20579 @DomName('SpeechSynthesisUtterance.SpeechSynthesisUtterance') | 20579 @DomName('SpeechSynthesisUtterance.SpeechSynthesisUtterance') |
| 20580 @DocsEditable | 20580 @DocsEditable() |
| 20581 factory SpeechSynthesisUtterance([String text]) { | 20581 factory SpeechSynthesisUtterance([String text]) { |
| 20582 if (text != null) { | 20582 if (text != null) { |
| 20583 return SpeechSynthesisUtterance._create_1(text); | 20583 return SpeechSynthesisUtterance._create_1(text); |
| 20584 } | 20584 } |
| 20585 return SpeechSynthesisUtterance._create_2(); | 20585 return SpeechSynthesisUtterance._create_2(); |
| 20586 } | 20586 } |
| 20587 static SpeechSynthesisUtterance _create_1(text) => JS('SpeechSynthesisUtteranc
e', 'new SpeechSynthesisUtterance(#)', text); | 20587 static SpeechSynthesisUtterance _create_1(text) => JS('SpeechSynthesisUtteranc
e', 'new SpeechSynthesisUtterance(#)', text); |
| 20588 static SpeechSynthesisUtterance _create_2() => JS('SpeechSynthesisUtterance',
'new SpeechSynthesisUtterance()'); | 20588 static SpeechSynthesisUtterance _create_2() => JS('SpeechSynthesisUtterance',
'new SpeechSynthesisUtterance()'); |
| 20589 | 20589 |
| 20590 @DomName('SpeechSynthesisUtterance.lang') | 20590 @DomName('SpeechSynthesisUtterance.lang') |
| 20591 @DocsEditable | 20591 @DocsEditable() |
| 20592 String lang; | 20592 String lang; |
| 20593 | 20593 |
| 20594 @DomName('SpeechSynthesisUtterance.pitch') | 20594 @DomName('SpeechSynthesisUtterance.pitch') |
| 20595 @DocsEditable | 20595 @DocsEditable() |
| 20596 num pitch; | 20596 num pitch; |
| 20597 | 20597 |
| 20598 @DomName('SpeechSynthesisUtterance.rate') | 20598 @DomName('SpeechSynthesisUtterance.rate') |
| 20599 @DocsEditable | 20599 @DocsEditable() |
| 20600 num rate; | 20600 num rate; |
| 20601 | 20601 |
| 20602 @DomName('SpeechSynthesisUtterance.text') | 20602 @DomName('SpeechSynthesisUtterance.text') |
| 20603 @DocsEditable | 20603 @DocsEditable() |
| 20604 String text; | 20604 String text; |
| 20605 | 20605 |
| 20606 @DomName('SpeechSynthesisUtterance.voice') | 20606 @DomName('SpeechSynthesisUtterance.voice') |
| 20607 @DocsEditable | 20607 @DocsEditable() |
| 20608 SpeechSynthesisVoice voice; | 20608 SpeechSynthesisVoice voice; |
| 20609 | 20609 |
| 20610 @DomName('SpeechSynthesisUtterance.volume') | 20610 @DomName('SpeechSynthesisUtterance.volume') |
| 20611 @DocsEditable | 20611 @DocsEditable() |
| 20612 num volume; | 20612 num volume; |
| 20613 | 20613 |
| 20614 @DomName('SpeechSynthesisUtterance.onboundary') | 20614 @DomName('SpeechSynthesisUtterance.onboundary') |
| 20615 @DocsEditable | 20615 @DocsEditable() |
| 20616 Stream<SpeechSynthesisEvent> get onBoundary => boundaryEvent.forTarget(this); | 20616 Stream<SpeechSynthesisEvent> get onBoundary => boundaryEvent.forTarget(this); |
| 20617 | 20617 |
| 20618 @DomName('SpeechSynthesisUtterance.onend') | 20618 @DomName('SpeechSynthesisUtterance.onend') |
| 20619 @DocsEditable | 20619 @DocsEditable() |
| 20620 Stream<SpeechSynthesisEvent> get onEnd => endEvent.forTarget(this); | 20620 Stream<SpeechSynthesisEvent> get onEnd => endEvent.forTarget(this); |
| 20621 | 20621 |
| 20622 @DomName('SpeechSynthesisUtterance.onerror') | 20622 @DomName('SpeechSynthesisUtterance.onerror') |
| 20623 @DocsEditable | 20623 @DocsEditable() |
| 20624 Stream<Event> get onError => errorEvent.forTarget(this); | 20624 Stream<Event> get onError => errorEvent.forTarget(this); |
| 20625 | 20625 |
| 20626 @DomName('SpeechSynthesisUtterance.onmark') | 20626 @DomName('SpeechSynthesisUtterance.onmark') |
| 20627 @DocsEditable | 20627 @DocsEditable() |
| 20628 Stream<SpeechSynthesisEvent> get onMark => markEvent.forTarget(this); | 20628 Stream<SpeechSynthesisEvent> get onMark => markEvent.forTarget(this); |
| 20629 | 20629 |
| 20630 @DomName('SpeechSynthesisUtterance.onpause') | 20630 @DomName('SpeechSynthesisUtterance.onpause') |
| 20631 @DocsEditable | 20631 @DocsEditable() |
| 20632 Stream<Event> get onPause => pauseEvent.forTarget(this); | 20632 Stream<Event> get onPause => pauseEvent.forTarget(this); |
| 20633 | 20633 |
| 20634 @DomName('SpeechSynthesisUtterance.onresume') | 20634 @DomName('SpeechSynthesisUtterance.onresume') |
| 20635 @DocsEditable | 20635 @DocsEditable() |
| 20636 Stream<SpeechSynthesisEvent> get onResume => resumeEvent.forTarget(this); | 20636 Stream<SpeechSynthesisEvent> get onResume => resumeEvent.forTarget(this); |
| 20637 | 20637 |
| 20638 @DomName('SpeechSynthesisUtterance.onstart') | 20638 @DomName('SpeechSynthesisUtterance.onstart') |
| 20639 @DocsEditable | 20639 @DocsEditable() |
| 20640 Stream<SpeechSynthesisEvent> get onStart => startEvent.forTarget(this); | 20640 Stream<SpeechSynthesisEvent> get onStart => startEvent.forTarget(this); |
| 20641 } | 20641 } |
| 20642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20642 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20643 // for details. All rights reserved. Use of this source code is governed by a | 20643 // for details. All rights reserved. Use of this source code is governed by a |
| 20644 // BSD-style license that can be found in the LICENSE file. | 20644 // BSD-style license that can be found in the LICENSE file. |
| 20645 | 20645 |
| 20646 | 20646 |
| 20647 @DocsEditable | 20647 @DocsEditable() |
| 20648 @DomName('SpeechSynthesisVoice') | 20648 @DomName('SpeechSynthesisVoice') |
| 20649 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section | 20649 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section |
| 20650 @Experimental | 20650 @Experimental() |
| 20651 class SpeechSynthesisVoice extends Interceptor native "SpeechSynthesisVoice" { | 20651 class SpeechSynthesisVoice extends Interceptor native "SpeechSynthesisVoice" { |
| 20652 | 20652 |
| 20653 @JSName('default') | 20653 @JSName('default') |
| 20654 @DomName('SpeechSynthesisVoice.default') | 20654 @DomName('SpeechSynthesisVoice.default') |
| 20655 @DocsEditable | 20655 @DocsEditable() |
| 20656 final bool defaultValue; | 20656 final bool defaultValue; |
| 20657 | 20657 |
| 20658 @DomName('SpeechSynthesisVoice.lang') | 20658 @DomName('SpeechSynthesisVoice.lang') |
| 20659 @DocsEditable | 20659 @DocsEditable() |
| 20660 final String lang; | 20660 final String lang; |
| 20661 | 20661 |
| 20662 @DomName('SpeechSynthesisVoice.localService') | 20662 @DomName('SpeechSynthesisVoice.localService') |
| 20663 @DocsEditable | 20663 @DocsEditable() |
| 20664 final bool localService; | 20664 final bool localService; |
| 20665 | 20665 |
| 20666 @DomName('SpeechSynthesisVoice.name') | 20666 @DomName('SpeechSynthesisVoice.name') |
| 20667 @DocsEditable | 20667 @DocsEditable() |
| 20668 final String name; | 20668 final String name; |
| 20669 | 20669 |
| 20670 @JSName('voiceURI') | 20670 @JSName('voiceURI') |
| 20671 @DomName('SpeechSynthesisVoice.voiceURI') | 20671 @DomName('SpeechSynthesisVoice.voiceURI') |
| 20672 @DocsEditable | 20672 @DocsEditable() |
| 20673 final String voiceUri; | 20673 final String voiceUri; |
| 20674 } | 20674 } |
| 20675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20675 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20676 // for details. All rights reserved. Use of this source code is governed by a | 20676 // for details. All rights reserved. Use of this source code is governed by a |
| 20677 // BSD-style license that can be found in the LICENSE file. | 20677 // BSD-style license that can be found in the LICENSE file. |
| 20678 | 20678 |
| 20679 | 20679 |
| 20680 /** | 20680 /** |
| 20681 * The type used by the | 20681 * The type used by the |
| 20682 * [Window.localStorage] and [Window.sessionStorage] properties. | 20682 * [Window.localStorage] and [Window.sessionStorage] properties. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 20696 * window.localStorage.clear(); | 20696 * window.localStorage.clear(); |
| 20697 * assert(window.localStorage.length == 0); | 20697 * assert(window.localStorage.length == 0); |
| 20698 * | 20698 * |
| 20699 * For more examples of using this API, see | 20699 * For more examples of using this API, see |
| 20700 * [localstorage_test.dart](http://code.google.com/p/dart/source/browse/branches
/bleeding_edge/dart/tests/html/localstorage_test.dart). | 20700 * [localstorage_test.dart](http://code.google.com/p/dart/source/browse/branches
/bleeding_edge/dart/tests/html/localstorage_test.dart). |
| 20701 * For details on using the Map API, see the | 20701 * For details on using the Map API, see the |
| 20702 * [Maps](http://www.dartlang.org/docs/library-tour/#maps-aka-dictionaries-or-ha
shes) | 20702 * [Maps](http://www.dartlang.org/docs/library-tour/#maps-aka-dictionaries-or-ha
shes) |
| 20703 * section of the library tour. | 20703 * section of the library tour. |
| 20704 */ | 20704 */ |
| 20705 @DomName('Storage') | 20705 @DomName('Storage') |
| 20706 @Unstable | 20706 @Unstable() |
| 20707 class Storage extends Interceptor | 20707 class Storage extends Interceptor |
| 20708 implements Map<String, String> native "Storage" { | 20708 implements Map<String, String> native "Storage" { |
| 20709 | 20709 |
| 20710 // TODO(nweiz): update this when maps support lazy iteration | 20710 // TODO(nweiz): update this when maps support lazy iteration |
| 20711 bool containsValue(String value) => values.any((e) => e == value); | 20711 bool containsValue(String value) => values.any((e) => e == value); |
| 20712 | 20712 |
| 20713 bool containsKey(String key) => $dom_getItem(key) != null; | 20713 bool containsKey(String key) => $dom_getItem(key) != null; |
| 20714 | 20714 |
| 20715 String operator [](String key) => $dom_getItem(key); | 20715 String operator [](String key) => $dom_getItem(key); |
| 20716 | 20716 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 20751 } | 20751 } |
| 20752 | 20752 |
| 20753 int get length => $dom_length; | 20753 int get length => $dom_length; |
| 20754 | 20754 |
| 20755 bool get isEmpty => $dom_key(0) == null; | 20755 bool get isEmpty => $dom_key(0) == null; |
| 20756 | 20756 |
| 20757 bool get isNotEmpty => !isEmpty; | 20757 bool get isNotEmpty => !isEmpty; |
| 20758 | 20758 |
| 20759 @JSName('length') | 20759 @JSName('length') |
| 20760 @DomName('Storage.length') | 20760 @DomName('Storage.length') |
| 20761 @DocsEditable | 20761 @DocsEditable() |
| 20762 final int $dom_length; | 20762 final int $dom_length; |
| 20763 | 20763 |
| 20764 @DomName('Storage.__delete__') | 20764 @DomName('Storage.__delete__') |
| 20765 @DocsEditable | 20765 @DocsEditable() |
| 20766 bool __delete__(index_OR_name) native; | 20766 bool __delete__(index_OR_name) native; |
| 20767 | 20767 |
| 20768 @DomName('Storage.__getter__') | 20768 @DomName('Storage.__getter__') |
| 20769 @DocsEditable | 20769 @DocsEditable() |
| 20770 String __getter__(index_OR_name) native; | 20770 String __getter__(index_OR_name) native; |
| 20771 | 20771 |
| 20772 @DomName('Storage.__setter__') | 20772 @DomName('Storage.__setter__') |
| 20773 @DocsEditable | 20773 @DocsEditable() |
| 20774 void __setter__(index_OR_name, String value) native; | 20774 void __setter__(index_OR_name, String value) native; |
| 20775 | 20775 |
| 20776 @JSName('clear') | 20776 @JSName('clear') |
| 20777 @DomName('Storage.clear') | 20777 @DomName('Storage.clear') |
| 20778 @DocsEditable | 20778 @DocsEditable() |
| 20779 void $dom_clear() native; | 20779 void $dom_clear() native; |
| 20780 | 20780 |
| 20781 @JSName('getItem') | 20781 @JSName('getItem') |
| 20782 @DomName('Storage.getItem') | 20782 @DomName('Storage.getItem') |
| 20783 @DocsEditable | 20783 @DocsEditable() |
| 20784 String $dom_getItem(String key) native; | 20784 String $dom_getItem(String key) native; |
| 20785 | 20785 |
| 20786 @JSName('key') | 20786 @JSName('key') |
| 20787 @DomName('Storage.key') | 20787 @DomName('Storage.key') |
| 20788 @DocsEditable | 20788 @DocsEditable() |
| 20789 String $dom_key(int index) native; | 20789 String $dom_key(int index) native; |
| 20790 | 20790 |
| 20791 @JSName('removeItem') | 20791 @JSName('removeItem') |
| 20792 @DomName('Storage.removeItem') | 20792 @DomName('Storage.removeItem') |
| 20793 @DocsEditable | 20793 @DocsEditable() |
| 20794 void $dom_removeItem(String key) native; | 20794 void $dom_removeItem(String key) native; |
| 20795 | 20795 |
| 20796 @JSName('setItem') | 20796 @JSName('setItem') |
| 20797 @DomName('Storage.setItem') | 20797 @DomName('Storage.setItem') |
| 20798 @DocsEditable | 20798 @DocsEditable() |
| 20799 void $dom_setItem(String key, String data) native; | 20799 void $dom_setItem(String key, String data) native; |
| 20800 | 20800 |
| 20801 } | 20801 } |
| 20802 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20802 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20803 // for details. All rights reserved. Use of this source code is governed by a | 20803 // for details. All rights reserved. Use of this source code is governed by a |
| 20804 // BSD-style license that can be found in the LICENSE file. | 20804 // BSD-style license that can be found in the LICENSE file. |
| 20805 | 20805 |
| 20806 // WARNING: Do not edit - generated code. | 20806 // WARNING: Do not edit - generated code. |
| 20807 | 20807 |
| 20808 | 20808 |
| 20809 @DomName('StorageErrorCallback') | 20809 @DomName('StorageErrorCallback') |
| 20810 // http://www.w3.org/TR/quota-api/#storageerrorcallback-callback | 20810 // http://www.w3.org/TR/quota-api/#storageerrorcallback-callback |
| 20811 @Experimental | 20811 @Experimental() |
| 20812 typedef void StorageErrorCallback(DomException error); | 20812 typedef void StorageErrorCallback(DomException error); |
| 20813 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 20813 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 20814 // for details. All rights reserved. Use of this source code is governed by a | 20814 // for details. All rights reserved. Use of this source code is governed by a |
| 20815 // BSD-style license that can be found in the LICENSE file. | 20815 // BSD-style license that can be found in the LICENSE file. |
| 20816 | 20816 |
| 20817 // WARNING: Do not edit - generated code. | 20817 // WARNING: Do not edit - generated code. |
| 20818 | 20818 |
| 20819 | 20819 |
| 20820 @DomName('StorageEvent') | 20820 @DomName('StorageEvent') |
| 20821 @Unstable | 20821 @Unstable() |
| 20822 class StorageEvent extends Event native "StorageEvent" { | 20822 class StorageEvent extends Event native "StorageEvent" { |
| 20823 factory StorageEvent(String type, | 20823 factory StorageEvent(String type, |
| 20824 {bool canBubble: false, bool cancelable: false, String key, String oldValue, | 20824 {bool canBubble: false, bool cancelable: false, String key, String oldValue, |
| 20825 String newValue, String url, Storage storageArea}) { | 20825 String newValue, String url, Storage storageArea}) { |
| 20826 | 20826 |
| 20827 var e = document.$dom_createEvent("StorageEvent"); | 20827 var e = document.$dom_createEvent("StorageEvent"); |
| 20828 e.$dom_initStorageEvent(type, canBubble, cancelable, key, oldValue, | 20828 e.$dom_initStorageEvent(type, canBubble, cancelable, key, oldValue, |
| 20829 newValue, url, storageArea); | 20829 newValue, url, storageArea); |
| 20830 return e; | 20830 return e; |
| 20831 } | 20831 } |
| 20832 // To suppress missing implicit constructor warnings. | 20832 // To suppress missing implicit constructor warnings. |
| 20833 factory StorageEvent._() { throw new UnsupportedError("Not supported"); } | 20833 factory StorageEvent._() { throw new UnsupportedError("Not supported"); } |
| 20834 | 20834 |
| 20835 @DomName('StorageEvent.key') | 20835 @DomName('StorageEvent.key') |
| 20836 @DocsEditable | 20836 @DocsEditable() |
| 20837 final String key; | 20837 final String key; |
| 20838 | 20838 |
| 20839 @DomName('StorageEvent.newValue') | 20839 @DomName('StorageEvent.newValue') |
| 20840 @DocsEditable | 20840 @DocsEditable() |
| 20841 final String newValue; | 20841 final String newValue; |
| 20842 | 20842 |
| 20843 @DomName('StorageEvent.oldValue') | 20843 @DomName('StorageEvent.oldValue') |
| 20844 @DocsEditable | 20844 @DocsEditable() |
| 20845 final String oldValue; | 20845 final String oldValue; |
| 20846 | 20846 |
| 20847 @DomName('StorageEvent.storageArea') | 20847 @DomName('StorageEvent.storageArea') |
| 20848 @DocsEditable | 20848 @DocsEditable() |
| 20849 final Storage storageArea; | 20849 final Storage storageArea; |
| 20850 | 20850 |
| 20851 @DomName('StorageEvent.url') | 20851 @DomName('StorageEvent.url') |
| 20852 @DocsEditable | 20852 @DocsEditable() |
| 20853 final String url; | 20853 final String url; |
| 20854 | 20854 |
| 20855 @JSName('initStorageEvent') | 20855 @JSName('initStorageEvent') |
| 20856 @DomName('StorageEvent.initStorageEvent') | 20856 @DomName('StorageEvent.initStorageEvent') |
| 20857 @DocsEditable | 20857 @DocsEditable() |
| 20858 void $dom_initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableA
rg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storag
e storageAreaArg) native; | 20858 void $dom_initStorageEvent(String typeArg, bool canBubbleArg, bool cancelableA
rg, String keyArg, String oldValueArg, String newValueArg, String urlArg, Storag
e storageAreaArg) native; |
| 20859 | 20859 |
| 20860 } | 20860 } |
| 20861 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 20861 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 20862 // for details. All rights reserved. Use of this source code is governed by a | 20862 // for details. All rights reserved. Use of this source code is governed by a |
| 20863 // BSD-style license that can be found in the LICENSE file. | 20863 // BSD-style license that can be found in the LICENSE file. |
| 20864 | 20864 |
| 20865 | 20865 |
| 20866 @DomName('StorageInfo') | 20866 @DomName('StorageInfo') |
| 20867 // http://www.w3.org/TR/file-system-api/ | 20867 // http://www.w3.org/TR/file-system-api/ |
| 20868 @Experimental | 20868 @Experimental() |
| 20869 class StorageInfo extends Interceptor native "StorageInfo" { | 20869 class StorageInfo extends Interceptor native "StorageInfo" { |
| 20870 | 20870 |
| 20871 @DomName('StorageInfo.PERSISTENT') | 20871 @DomName('StorageInfo.PERSISTENT') |
| 20872 @DocsEditable | 20872 @DocsEditable() |
| 20873 static const int PERSISTENT = 1; | 20873 static const int PERSISTENT = 1; |
| 20874 | 20874 |
| 20875 @DomName('StorageInfo.TEMPORARY') | 20875 @DomName('StorageInfo.TEMPORARY') |
| 20876 @DocsEditable | 20876 @DocsEditable() |
| 20877 static const int TEMPORARY = 0; | 20877 static const int TEMPORARY = 0; |
| 20878 | 20878 |
| 20879 @JSName('queryUsageAndQuota') | 20879 @JSName('queryUsageAndQuota') |
| 20880 @DomName('StorageInfo.queryUsageAndQuota') | 20880 @DomName('StorageInfo.queryUsageAndQuota') |
| 20881 @DocsEditable | 20881 @DocsEditable() |
| 20882 void _queryUsageAndQuota(int storageType, [StorageUsageCallback usageCallback,
StorageErrorCallback errorCallback]) native; | 20882 void _queryUsageAndQuota(int storageType, [StorageUsageCallback usageCallback,
StorageErrorCallback errorCallback]) native; |
| 20883 | 20883 |
| 20884 @JSName('requestQuota') | 20884 @JSName('requestQuota') |
| 20885 @DomName('StorageInfo.requestQuota') | 20885 @DomName('StorageInfo.requestQuota') |
| 20886 @DocsEditable | 20886 @DocsEditable() |
| 20887 void _requestQuota(int storageType, int newQuotaInBytes, [StorageQuotaCallback
quotaCallback, StorageErrorCallback errorCallback]) native; | 20887 void _requestQuota(int storageType, int newQuotaInBytes, [StorageQuotaCallback
quotaCallback, StorageErrorCallback errorCallback]) native; |
| 20888 | 20888 |
| 20889 @JSName('requestQuota') | 20889 @JSName('requestQuota') |
| 20890 @DomName('StorageInfo.requestQuota') | 20890 @DomName('StorageInfo.requestQuota') |
| 20891 @DocsEditable | 20891 @DocsEditable() |
| 20892 Future<int> requestQuota(int storageType, int newQuotaInBytes) { | 20892 Future<int> requestQuota(int storageType, int newQuotaInBytes) { |
| 20893 var completer = new Completer<int>(); | 20893 var completer = new Completer<int>(); |
| 20894 _requestQuota(storageType, newQuotaInBytes, | 20894 _requestQuota(storageType, newQuotaInBytes, |
| 20895 (value) { completer.complete(value); }, | 20895 (value) { completer.complete(value); }, |
| 20896 (error) { completer.completeError(error); }); | 20896 (error) { completer.completeError(error); }); |
| 20897 return completer.future; | 20897 return completer.future; |
| 20898 } | 20898 } |
| 20899 | 20899 |
| 20900 Future<StorageInfoUsage> queryUsageAndQuota(int storageType) { | 20900 Future<StorageInfoUsage> queryUsageAndQuota(int storageType) { |
| 20901 var completer = new Completer<StorageInfoUsage>(); | 20901 var completer = new Completer<StorageInfoUsage>(); |
| (...skipping 14 matching lines...) Expand all Loading... |
| 20916 class StorageInfoUsage { | 20916 class StorageInfoUsage { |
| 20917 final int currentUsageInBytes; | 20917 final int currentUsageInBytes; |
| 20918 final int currentQuotaInBytes; | 20918 final int currentQuotaInBytes; |
| 20919 const StorageInfoUsage(this.currentUsageInBytes, this.currentQuotaInBytes); | 20919 const StorageInfoUsage(this.currentUsageInBytes, this.currentQuotaInBytes); |
| 20920 } | 20920 } |
| 20921 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20921 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20922 // for details. All rights reserved. Use of this source code is governed by a | 20922 // for details. All rights reserved. Use of this source code is governed by a |
| 20923 // BSD-style license that can be found in the LICENSE file. | 20923 // BSD-style license that can be found in the LICENSE file. |
| 20924 | 20924 |
| 20925 | 20925 |
| 20926 @DocsEditable | 20926 @DocsEditable() |
| 20927 @DomName('StorageQuota') | 20927 @DomName('StorageQuota') |
| 20928 // http://www.w3.org/TR/quota-api/#idl-def-StorageQuota | 20928 // http://www.w3.org/TR/quota-api/#idl-def-StorageQuota |
| 20929 @Experimental | 20929 @Experimental() |
| 20930 class StorageQuota extends Interceptor native "StorageQuota" { | 20930 class StorageQuota extends Interceptor native "StorageQuota" { |
| 20931 | 20931 |
| 20932 @DomName('StorageQuota.queryUsageAndQuota') | 20932 @DomName('StorageQuota.queryUsageAndQuota') |
| 20933 @DocsEditable | 20933 @DocsEditable() |
| 20934 void queryUsageAndQuota(StorageUsageCallback usageCallback, [StorageErrorCallb
ack errorCallback]) native; | 20934 void queryUsageAndQuota(StorageUsageCallback usageCallback, [StorageErrorCallb
ack errorCallback]) native; |
| 20935 | 20935 |
| 20936 @DomName('StorageQuota.requestQuota') | 20936 @DomName('StorageQuota.requestQuota') |
| 20937 @DocsEditable | 20937 @DocsEditable() |
| 20938 void requestQuota(int newQuotaInBytes, [StorageQuotaCallback quotaCallback, St
orageErrorCallback errorCallback]) native; | 20938 void requestQuota(int newQuotaInBytes, [StorageQuotaCallback quotaCallback, St
orageErrorCallback errorCallback]) native; |
| 20939 } | 20939 } |
| 20940 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20940 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20941 // for details. All rights reserved. Use of this source code is governed by a | 20941 // for details. All rights reserved. Use of this source code is governed by a |
| 20942 // BSD-style license that can be found in the LICENSE file. | 20942 // BSD-style license that can be found in the LICENSE file. |
| 20943 | 20943 |
| 20944 // WARNING: Do not edit - generated code. | 20944 // WARNING: Do not edit - generated code. |
| 20945 | 20945 |
| 20946 | 20946 |
| 20947 @DomName('StorageQuotaCallback') | 20947 @DomName('StorageQuotaCallback') |
| 20948 // http://www.w3.org/TR/quota-api/#idl-def-StorageQuotaCallback | 20948 // http://www.w3.org/TR/quota-api/#idl-def-StorageQuotaCallback |
| 20949 @Experimental | 20949 @Experimental() |
| 20950 typedef void StorageQuotaCallback(int grantedQuotaInBytes); | 20950 typedef void StorageQuotaCallback(int grantedQuotaInBytes); |
| 20951 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20951 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20952 // for details. All rights reserved. Use of this source code is governed by a | 20952 // for details. All rights reserved. Use of this source code is governed by a |
| 20953 // BSD-style license that can be found in the LICENSE file. | 20953 // BSD-style license that can be found in the LICENSE file. |
| 20954 | 20954 |
| 20955 // WARNING: Do not edit - generated code. | 20955 // WARNING: Do not edit - generated code. |
| 20956 | 20956 |
| 20957 | 20957 |
| 20958 @DomName('StorageUsageCallback') | 20958 @DomName('StorageUsageCallback') |
| 20959 // http://www.w3.org/TR/quota-api/#idl-def-StorageUsageCallback | 20959 // http://www.w3.org/TR/quota-api/#idl-def-StorageUsageCallback |
| 20960 @Experimental | 20960 @Experimental() |
| 20961 typedef void StorageUsageCallback(int currentUsageInBytes, int currentQuotaInByt
es); | 20961 typedef void StorageUsageCallback(int currentUsageInBytes, int currentQuotaInByt
es); |
| 20962 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20962 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20963 // for details. All rights reserved. Use of this source code is governed by a | 20963 // for details. All rights reserved. Use of this source code is governed by a |
| 20964 // BSD-style license that can be found in the LICENSE file. | 20964 // BSD-style license that can be found in the LICENSE file. |
| 20965 | 20965 |
| 20966 // WARNING: Do not edit - generated code. | 20966 // WARNING: Do not edit - generated code. |
| 20967 | 20967 |
| 20968 | 20968 |
| 20969 @DomName('StringCallback') | 20969 @DomName('StringCallback') |
| 20970 // http://www.w3.org/TR/2011/WD-html5-20110113/dnd.html#the-datatransferitem-int
erface | 20970 // http://www.w3.org/TR/2011/WD-html5-20110113/dnd.html#the-datatransferitem-int
erface |
| 20971 @Experimental | 20971 @Experimental() |
| 20972 typedef void _StringCallback(String data); | 20972 typedef void _StringCallback(String data); |
| 20973 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 20973 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 20974 // for details. All rights reserved. Use of this source code is governed by a | 20974 // for details. All rights reserved. Use of this source code is governed by a |
| 20975 // BSD-style license that can be found in the LICENSE file. | 20975 // BSD-style license that can be found in the LICENSE file. |
| 20976 | 20976 |
| 20977 | 20977 |
| 20978 @DocsEditable | 20978 @DocsEditable() |
| 20979 @DomName('HTMLStyleElement') | 20979 @DomName('HTMLStyleElement') |
| 20980 class StyleElement extends _HTMLElement native "HTMLStyleElement" { | 20980 class StyleElement extends _HTMLElement native "HTMLStyleElement" { |
| 20981 // To suppress missing implicit constructor warnings. | 20981 // To suppress missing implicit constructor warnings. |
| 20982 factory StyleElement._() { throw new UnsupportedError("Not supported"); } | 20982 factory StyleElement._() { throw new UnsupportedError("Not supported"); } |
| 20983 | 20983 |
| 20984 @DomName('HTMLStyleElement.HTMLStyleElement') | 20984 @DomName('HTMLStyleElement.HTMLStyleElement') |
| 20985 @DocsEditable | 20985 @DocsEditable() |
| 20986 factory StyleElement() => document.$dom_createElement("style"); | 20986 factory StyleElement() => document.$dom_createElement("style"); |
| 20987 | 20987 |
| 20988 @DomName('HTMLStyleElement.disabled') | 20988 @DomName('HTMLStyleElement.disabled') |
| 20989 @DocsEditable | 20989 @DocsEditable() |
| 20990 bool disabled; | 20990 bool disabled; |
| 20991 | 20991 |
| 20992 @DomName('HTMLStyleElement.media') | 20992 @DomName('HTMLStyleElement.media') |
| 20993 @DocsEditable | 20993 @DocsEditable() |
| 20994 String media; | 20994 String media; |
| 20995 | 20995 |
| 20996 @DomName('HTMLStyleElement.scoped') | 20996 @DomName('HTMLStyleElement.scoped') |
| 20997 @DocsEditable | 20997 @DocsEditable() |
| 20998 bool scoped; | 20998 bool scoped; |
| 20999 | 20999 |
| 21000 @DomName('HTMLStyleElement.sheet') | 21000 @DomName('HTMLStyleElement.sheet') |
| 21001 @DocsEditable | 21001 @DocsEditable() |
| 21002 final StyleSheet sheet; | 21002 final StyleSheet sheet; |
| 21003 | 21003 |
| 21004 @DomName('HTMLStyleElement.type') | 21004 @DomName('HTMLStyleElement.type') |
| 21005 @DocsEditable | 21005 @DocsEditable() |
| 21006 String type; | 21006 String type; |
| 21007 } | 21007 } |
| 21008 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21008 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21009 // for details. All rights reserved. Use of this source code is governed by a | 21009 // for details. All rights reserved. Use of this source code is governed by a |
| 21010 // BSD-style license that can be found in the LICENSE file. | 21010 // BSD-style license that can be found in the LICENSE file. |
| 21011 | 21011 |
| 21012 | 21012 |
| 21013 @DocsEditable | 21013 @DocsEditable() |
| 21014 @DomName('StyleMedia') | 21014 @DomName('StyleMedia') |
| 21015 // http://developer.apple.com/library/safari/#documentation/SafariDOMAdditions/R
eference/StyleMedia/StyleMedia/StyleMedia.html | 21015 // http://developer.apple.com/library/safari/#documentation/SafariDOMAdditions/R
eference/StyleMedia/StyleMedia/StyleMedia.html |
| 21016 @Experimental // nonstandard | 21016 @Experimental() // nonstandard |
| 21017 class StyleMedia extends Interceptor native "StyleMedia" { | 21017 class StyleMedia extends Interceptor native "StyleMedia" { |
| 21018 | 21018 |
| 21019 @DomName('StyleMedia.type') | 21019 @DomName('StyleMedia.type') |
| 21020 @DocsEditable | 21020 @DocsEditable() |
| 21021 final String type; | 21021 final String type; |
| 21022 | 21022 |
| 21023 @DomName('StyleMedia.matchMedium') | 21023 @DomName('StyleMedia.matchMedium') |
| 21024 @DocsEditable | 21024 @DocsEditable() |
| 21025 bool matchMedium(String mediaquery) native; | 21025 bool matchMedium(String mediaquery) native; |
| 21026 } | 21026 } |
| 21027 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21027 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21028 // for details. All rights reserved. Use of this source code is governed by a | 21028 // for details. All rights reserved. Use of this source code is governed by a |
| 21029 // BSD-style license that can be found in the LICENSE file. | 21029 // BSD-style license that can be found in the LICENSE file. |
| 21030 | 21030 |
| 21031 | 21031 |
| 21032 @DocsEditable | 21032 @DocsEditable() |
| 21033 @DomName('StyleSheet') | 21033 @DomName('StyleSheet') |
| 21034 class StyleSheet extends Interceptor native "StyleSheet" { | 21034 class StyleSheet extends Interceptor native "StyleSheet" { |
| 21035 | 21035 |
| 21036 @DomName('StyleSheet.disabled') | 21036 @DomName('StyleSheet.disabled') |
| 21037 @DocsEditable | 21037 @DocsEditable() |
| 21038 bool disabled; | 21038 bool disabled; |
| 21039 | 21039 |
| 21040 @DomName('StyleSheet.href') | 21040 @DomName('StyleSheet.href') |
| 21041 @DocsEditable | 21041 @DocsEditable() |
| 21042 final String href; | 21042 final String href; |
| 21043 | 21043 |
| 21044 @DomName('StyleSheet.media') | 21044 @DomName('StyleSheet.media') |
| 21045 @DocsEditable | 21045 @DocsEditable() |
| 21046 final MediaList media; | 21046 final MediaList media; |
| 21047 | 21047 |
| 21048 @DomName('StyleSheet.ownerNode') | 21048 @DomName('StyleSheet.ownerNode') |
| 21049 @DocsEditable | 21049 @DocsEditable() |
| 21050 final Node ownerNode; | 21050 final Node ownerNode; |
| 21051 | 21051 |
| 21052 @DomName('StyleSheet.parentStyleSheet') | 21052 @DomName('StyleSheet.parentStyleSheet') |
| 21053 @DocsEditable | 21053 @DocsEditable() |
| 21054 final StyleSheet parentStyleSheet; | 21054 final StyleSheet parentStyleSheet; |
| 21055 | 21055 |
| 21056 @DomName('StyleSheet.title') | 21056 @DomName('StyleSheet.title') |
| 21057 @DocsEditable | 21057 @DocsEditable() |
| 21058 final String title; | 21058 final String title; |
| 21059 | 21059 |
| 21060 @DomName('StyleSheet.type') | 21060 @DomName('StyleSheet.type') |
| 21061 @DocsEditable | 21061 @DocsEditable() |
| 21062 final String type; | 21062 final String type; |
| 21063 } | 21063 } |
| 21064 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21064 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21065 // for details. All rights reserved. Use of this source code is governed by a | 21065 // for details. All rights reserved. Use of this source code is governed by a |
| 21066 // BSD-style license that can be found in the LICENSE file. | 21066 // BSD-style license that can be found in the LICENSE file. |
| 21067 | 21067 |
| 21068 | 21068 |
| 21069 @DocsEditable | 21069 @DocsEditable() |
| 21070 @DomName('HTMLTableCaptionElement') | 21070 @DomName('HTMLTableCaptionElement') |
| 21071 class TableCaptionElement extends _HTMLElement native "HTMLTableCaptionElement"
{ | 21071 class TableCaptionElement extends _HTMLElement native "HTMLTableCaptionElement"
{ |
| 21072 // To suppress missing implicit constructor warnings. | 21072 // To suppress missing implicit constructor warnings. |
| 21073 factory TableCaptionElement._() { throw new UnsupportedError("Not supported");
} | 21073 factory TableCaptionElement._() { throw new UnsupportedError("Not supported");
} |
| 21074 | 21074 |
| 21075 @DomName('HTMLTableCaptionElement.HTMLTableCaptionElement') | 21075 @DomName('HTMLTableCaptionElement.HTMLTableCaptionElement') |
| 21076 @DocsEditable | 21076 @DocsEditable() |
| 21077 factory TableCaptionElement() => document.$dom_createElement("caption"); | 21077 factory TableCaptionElement() => document.$dom_createElement("caption"); |
| 21078 } | 21078 } |
| 21079 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21079 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21080 // for details. All rights reserved. Use of this source code is governed by a | 21080 // for details. All rights reserved. Use of this source code is governed by a |
| 21081 // BSD-style license that can be found in the LICENSE file. | 21081 // BSD-style license that can be found in the LICENSE file. |
| 21082 | 21082 |
| 21083 | 21083 |
| 21084 @DocsEditable | 21084 @DocsEditable() |
| 21085 @DomName('HTMLTableCellElement') | 21085 @DomName('HTMLTableCellElement') |
| 21086 class TableCellElement extends _HTMLElement native "HTMLTableCellElement,HTMLTab
leDataCellElement,HTMLTableHeaderCellElement" { | 21086 class TableCellElement extends _HTMLElement native "HTMLTableCellElement,HTMLTab
leDataCellElement,HTMLTableHeaderCellElement" { |
| 21087 // To suppress missing implicit constructor warnings. | 21087 // To suppress missing implicit constructor warnings. |
| 21088 factory TableCellElement._() { throw new UnsupportedError("Not supported"); } | 21088 factory TableCellElement._() { throw new UnsupportedError("Not supported"); } |
| 21089 | 21089 |
| 21090 @DomName('HTMLTableCellElement.HTMLTableCellElement') | 21090 @DomName('HTMLTableCellElement.HTMLTableCellElement') |
| 21091 @DocsEditable | 21091 @DocsEditable() |
| 21092 factory TableCellElement() => document.$dom_createElement("td"); | 21092 factory TableCellElement() => document.$dom_createElement("td"); |
| 21093 | 21093 |
| 21094 @DomName('HTMLTableCellElement.cellIndex') | 21094 @DomName('HTMLTableCellElement.cellIndex') |
| 21095 @DocsEditable | 21095 @DocsEditable() |
| 21096 final int cellIndex; | 21096 final int cellIndex; |
| 21097 | 21097 |
| 21098 @DomName('HTMLTableCellElement.colSpan') | 21098 @DomName('HTMLTableCellElement.colSpan') |
| 21099 @DocsEditable | 21099 @DocsEditable() |
| 21100 int colSpan; | 21100 int colSpan; |
| 21101 | 21101 |
| 21102 @DomName('HTMLTableCellElement.headers') | 21102 @DomName('HTMLTableCellElement.headers') |
| 21103 @DocsEditable | 21103 @DocsEditable() |
| 21104 String headers; | 21104 String headers; |
| 21105 | 21105 |
| 21106 @DomName('HTMLTableCellElement.rowSpan') | 21106 @DomName('HTMLTableCellElement.rowSpan') |
| 21107 @DocsEditable | 21107 @DocsEditable() |
| 21108 int rowSpan; | 21108 int rowSpan; |
| 21109 } | 21109 } |
| 21110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21110 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21111 // for details. All rights reserved. Use of this source code is governed by a | 21111 // for details. All rights reserved. Use of this source code is governed by a |
| 21112 // BSD-style license that can be found in the LICENSE file. | 21112 // BSD-style license that can be found in the LICENSE file. |
| 21113 | 21113 |
| 21114 | 21114 |
| 21115 @DocsEditable | 21115 @DocsEditable() |
| 21116 @DomName('HTMLTableColElement') | 21116 @DomName('HTMLTableColElement') |
| 21117 class TableColElement extends _HTMLElement native "HTMLTableColElement" { | 21117 class TableColElement extends _HTMLElement native "HTMLTableColElement" { |
| 21118 // To suppress missing implicit constructor warnings. | 21118 // To suppress missing implicit constructor warnings. |
| 21119 factory TableColElement._() { throw new UnsupportedError("Not supported"); } | 21119 factory TableColElement._() { throw new UnsupportedError("Not supported"); } |
| 21120 | 21120 |
| 21121 @DomName('HTMLTableColElement.HTMLTableColElement') | 21121 @DomName('HTMLTableColElement.HTMLTableColElement') |
| 21122 @DocsEditable | 21122 @DocsEditable() |
| 21123 factory TableColElement() => document.$dom_createElement("col"); | 21123 factory TableColElement() => document.$dom_createElement("col"); |
| 21124 | 21124 |
| 21125 @DomName('HTMLTableColElement.span') | 21125 @DomName('HTMLTableColElement.span') |
| 21126 @DocsEditable | 21126 @DocsEditable() |
| 21127 int span; | 21127 int span; |
| 21128 } | 21128 } |
| 21129 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 21129 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 21130 // for details. All rights reserved. Use of this source code is governed by a | 21130 // for details. All rights reserved. Use of this source code is governed by a |
| 21131 // BSD-style license that can be found in the LICENSE file. | 21131 // BSD-style license that can be found in the LICENSE file. |
| 21132 | 21132 |
| 21133 | 21133 |
| 21134 @DocsEditable | 21134 @DocsEditable() |
| 21135 @DomName('HTMLTableElement') | 21135 @DomName('HTMLTableElement') |
| 21136 class TableElement extends _HTMLElement native "HTMLTableElement" { | 21136 class TableElement extends _HTMLElement native "HTMLTableElement" { |
| 21137 | 21137 |
| 21138 @DomName('HTMLTableElement.tBodies') | 21138 @DomName('HTMLTableElement.tBodies') |
| 21139 List<TableSectionElement> get tBodies => | 21139 List<TableSectionElement> get tBodies => |
| 21140 new _WrappedList<TableSectionElement>($dom_tBodies); | 21140 new _WrappedList<TableSectionElement>($dom_tBodies); |
| 21141 | 21141 |
| 21142 @DomName('HTMLTableElement.rows') | 21142 @DomName('HTMLTableElement.rows') |
| 21143 List<TableRowElement> get rows => | 21143 List<TableRowElement> get rows => |
| 21144 new _WrappedList<TableRowElement>($dom_rows); | 21144 new _WrappedList<TableRowElement>($dom_rows); |
| (...skipping 17 matching lines...) Expand all Loading... |
| 21162 return tbody; | 21162 return tbody; |
| 21163 } | 21163 } |
| 21164 | 21164 |
| 21165 @JSName('createTBody') | 21165 @JSName('createTBody') |
| 21166 TableSectionElement _createTBody() native; | 21166 TableSectionElement _createTBody() native; |
| 21167 | 21167 |
| 21168 // To suppress missing implicit constructor warnings. | 21168 // To suppress missing implicit constructor warnings. |
| 21169 factory TableElement._() { throw new UnsupportedError("Not supported"); } | 21169 factory TableElement._() { throw new UnsupportedError("Not supported"); } |
| 21170 | 21170 |
| 21171 @DomName('HTMLTableElement.HTMLTableElement') | 21171 @DomName('HTMLTableElement.HTMLTableElement') |
| 21172 @DocsEditable | 21172 @DocsEditable() |
| 21173 factory TableElement() => document.$dom_createElement("table"); | 21173 factory TableElement() => document.$dom_createElement("table"); |
| 21174 | 21174 |
| 21175 @DomName('HTMLTableElement.border') | 21175 @DomName('HTMLTableElement.border') |
| 21176 @DocsEditable | 21176 @DocsEditable() |
| 21177 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLTableElement-partial | 21177 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#H
TMLTableElement-partial |
| 21178 @deprecated // deprecated | 21178 @deprecated // deprecated |
| 21179 String border; | 21179 String border; |
| 21180 | 21180 |
| 21181 @DomName('HTMLTableElement.caption') | 21181 @DomName('HTMLTableElement.caption') |
| 21182 @DocsEditable | 21182 @DocsEditable() |
| 21183 TableCaptionElement caption; | 21183 TableCaptionElement caption; |
| 21184 | 21184 |
| 21185 @JSName('rows') | 21185 @JSName('rows') |
| 21186 @DomName('HTMLTableElement.rows') | 21186 @DomName('HTMLTableElement.rows') |
| 21187 @DocsEditable | 21187 @DocsEditable() |
| 21188 final HtmlCollection $dom_rows; | 21188 final HtmlCollection $dom_rows; |
| 21189 | 21189 |
| 21190 @JSName('tBodies') | 21190 @JSName('tBodies') |
| 21191 @DomName('HTMLTableElement.tBodies') | 21191 @DomName('HTMLTableElement.tBodies') |
| 21192 @DocsEditable | 21192 @DocsEditable() |
| 21193 final HtmlCollection $dom_tBodies; | 21193 final HtmlCollection $dom_tBodies; |
| 21194 | 21194 |
| 21195 @DomName('HTMLTableElement.tFoot') | 21195 @DomName('HTMLTableElement.tFoot') |
| 21196 @DocsEditable | 21196 @DocsEditable() |
| 21197 TableSectionElement tFoot; | 21197 TableSectionElement tFoot; |
| 21198 | 21198 |
| 21199 @DomName('HTMLTableElement.tHead') | 21199 @DomName('HTMLTableElement.tHead') |
| 21200 @DocsEditable | 21200 @DocsEditable() |
| 21201 TableSectionElement tHead; | 21201 TableSectionElement tHead; |
| 21202 | 21202 |
| 21203 @JSName('createCaption') | 21203 @JSName('createCaption') |
| 21204 @DomName('HTMLTableElement.createCaption') | 21204 @DomName('HTMLTableElement.createCaption') |
| 21205 @DocsEditable | 21205 @DocsEditable() |
| 21206 Element $dom_createCaption() native; | 21206 Element $dom_createCaption() native; |
| 21207 | 21207 |
| 21208 @JSName('createTFoot') | 21208 @JSName('createTFoot') |
| 21209 @DomName('HTMLTableElement.createTFoot') | 21209 @DomName('HTMLTableElement.createTFoot') |
| 21210 @DocsEditable | 21210 @DocsEditable() |
| 21211 Element $dom_createTFoot() native; | 21211 Element $dom_createTFoot() native; |
| 21212 | 21212 |
| 21213 @JSName('createTHead') | 21213 @JSName('createTHead') |
| 21214 @DomName('HTMLTableElement.createTHead') | 21214 @DomName('HTMLTableElement.createTHead') |
| 21215 @DocsEditable | 21215 @DocsEditable() |
| 21216 Element $dom_createTHead() native; | 21216 Element $dom_createTHead() native; |
| 21217 | 21217 |
| 21218 @DomName('HTMLTableElement.deleteCaption') | 21218 @DomName('HTMLTableElement.deleteCaption') |
| 21219 @DocsEditable | 21219 @DocsEditable() |
| 21220 void deleteCaption() native; | 21220 void deleteCaption() native; |
| 21221 | 21221 |
| 21222 @DomName('HTMLTableElement.deleteRow') | 21222 @DomName('HTMLTableElement.deleteRow') |
| 21223 @DocsEditable | 21223 @DocsEditable() |
| 21224 void deleteRow(int index) native; | 21224 void deleteRow(int index) native; |
| 21225 | 21225 |
| 21226 @DomName('HTMLTableElement.deleteTFoot') | 21226 @DomName('HTMLTableElement.deleteTFoot') |
| 21227 @DocsEditable | 21227 @DocsEditable() |
| 21228 void deleteTFoot() native; | 21228 void deleteTFoot() native; |
| 21229 | 21229 |
| 21230 @DomName('HTMLTableElement.deleteTHead') | 21230 @DomName('HTMLTableElement.deleteTHead') |
| 21231 @DocsEditable | 21231 @DocsEditable() |
| 21232 void deleteTHead() native; | 21232 void deleteTHead() native; |
| 21233 | 21233 |
| 21234 @JSName('insertRow') | 21234 @JSName('insertRow') |
| 21235 @DomName('HTMLTableElement.insertRow') | 21235 @DomName('HTMLTableElement.insertRow') |
| 21236 @DocsEditable | 21236 @DocsEditable() |
| 21237 Element $dom_insertRow(int index) native; | 21237 Element $dom_insertRow(int index) native; |
| 21238 } | 21238 } |
| 21239 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 21239 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 21240 // for details. All rights reserved. Use of this source code is governed by a | 21240 // for details. All rights reserved. Use of this source code is governed by a |
| 21241 // BSD-style license that can be found in the LICENSE file. | 21241 // BSD-style license that can be found in the LICENSE file. |
| 21242 | 21242 |
| 21243 | 21243 |
| 21244 @DocsEditable | 21244 @DocsEditable() |
| 21245 @DomName('HTMLTableRowElement') | 21245 @DomName('HTMLTableRowElement') |
| 21246 class TableRowElement extends _HTMLElement native "HTMLTableRowElement" { | 21246 class TableRowElement extends _HTMLElement native "HTMLTableRowElement" { |
| 21247 | 21247 |
| 21248 @DomName('HTMLTableRowElement.cells') | 21248 @DomName('HTMLTableRowElement.cells') |
| 21249 List<TableCellElement> get cells => | 21249 List<TableCellElement> get cells => |
| 21250 new _WrappedList<TableCellElement>($dom_cells); | 21250 new _WrappedList<TableCellElement>($dom_cells); |
| 21251 | 21251 |
| 21252 TableCellElement addCell() { | 21252 TableCellElement addCell() { |
| 21253 return insertCell(-1); | 21253 return insertCell(-1); |
| 21254 } | 21254 } |
| 21255 | 21255 |
| 21256 TableCellElement insertCell(int index) => $dom_insertCell(index); | 21256 TableCellElement insertCell(int index) => $dom_insertCell(index); |
| 21257 | 21257 |
| 21258 // To suppress missing implicit constructor warnings. | 21258 // To suppress missing implicit constructor warnings. |
| 21259 factory TableRowElement._() { throw new UnsupportedError("Not supported"); } | 21259 factory TableRowElement._() { throw new UnsupportedError("Not supported"); } |
| 21260 | 21260 |
| 21261 @DomName('HTMLTableRowElement.HTMLTableRowElement') | 21261 @DomName('HTMLTableRowElement.HTMLTableRowElement') |
| 21262 @DocsEditable | 21262 @DocsEditable() |
| 21263 factory TableRowElement() => document.$dom_createElement("tr"); | 21263 factory TableRowElement() => document.$dom_createElement("tr"); |
| 21264 | 21264 |
| 21265 @JSName('cells') | 21265 @JSName('cells') |
| 21266 @DomName('HTMLTableRowElement.cells') | 21266 @DomName('HTMLTableRowElement.cells') |
| 21267 @DocsEditable | 21267 @DocsEditable() |
| 21268 final HtmlCollection $dom_cells; | 21268 final HtmlCollection $dom_cells; |
| 21269 | 21269 |
| 21270 @DomName('HTMLTableRowElement.rowIndex') | 21270 @DomName('HTMLTableRowElement.rowIndex') |
| 21271 @DocsEditable | 21271 @DocsEditable() |
| 21272 final int rowIndex; | 21272 final int rowIndex; |
| 21273 | 21273 |
| 21274 @DomName('HTMLTableRowElement.sectionRowIndex') | 21274 @DomName('HTMLTableRowElement.sectionRowIndex') |
| 21275 @DocsEditable | 21275 @DocsEditable() |
| 21276 final int sectionRowIndex; | 21276 final int sectionRowIndex; |
| 21277 | 21277 |
| 21278 @DomName('HTMLTableRowElement.deleteCell') | 21278 @DomName('HTMLTableRowElement.deleteCell') |
| 21279 @DocsEditable | 21279 @DocsEditable() |
| 21280 void deleteCell(int index) native; | 21280 void deleteCell(int index) native; |
| 21281 | 21281 |
| 21282 @JSName('insertCell') | 21282 @JSName('insertCell') |
| 21283 @DomName('HTMLTableRowElement.insertCell') | 21283 @DomName('HTMLTableRowElement.insertCell') |
| 21284 @DocsEditable | 21284 @DocsEditable() |
| 21285 Element $dom_insertCell(int index) native; | 21285 Element $dom_insertCell(int index) native; |
| 21286 } | 21286 } |
| 21287 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 21287 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 21288 // for details. All rights reserved. Use of this source code is governed by a | 21288 // for details. All rights reserved. Use of this source code is governed by a |
| 21289 // BSD-style license that can be found in the LICENSE file. | 21289 // BSD-style license that can be found in the LICENSE file. |
| 21290 | 21290 |
| 21291 | 21291 |
| 21292 @DocsEditable | 21292 @DocsEditable() |
| 21293 @DomName('HTMLTableSectionElement') | 21293 @DomName('HTMLTableSectionElement') |
| 21294 class TableSectionElement extends _HTMLElement native "HTMLTableSectionElement"
{ | 21294 class TableSectionElement extends _HTMLElement native "HTMLTableSectionElement"
{ |
| 21295 | 21295 |
| 21296 @DomName('HTMLTableSectionElement.rows') | 21296 @DomName('HTMLTableSectionElement.rows') |
| 21297 List<TableRowElement> get rows => | 21297 List<TableRowElement> get rows => |
| 21298 new _WrappedList<TableRowElement>($dom_rows); | 21298 new _WrappedList<TableRowElement>($dom_rows); |
| 21299 | 21299 |
| 21300 TableRowElement addRow() { | 21300 TableRowElement addRow() { |
| 21301 return insertRow(-1); | 21301 return insertRow(-1); |
| 21302 } | 21302 } |
| 21303 | 21303 |
| 21304 TableRowElement insertRow(int index) => $dom_insertRow(index); | 21304 TableRowElement insertRow(int index) => $dom_insertRow(index); |
| 21305 | 21305 |
| 21306 // To suppress missing implicit constructor warnings. | 21306 // To suppress missing implicit constructor warnings. |
| 21307 factory TableSectionElement._() { throw new UnsupportedError("Not supported");
} | 21307 factory TableSectionElement._() { throw new UnsupportedError("Not supported");
} |
| 21308 | 21308 |
| 21309 @JSName('rows') | 21309 @JSName('rows') |
| 21310 @DomName('HTMLTableSectionElement.rows') | 21310 @DomName('HTMLTableSectionElement.rows') |
| 21311 @DocsEditable | 21311 @DocsEditable() |
| 21312 final HtmlCollection $dom_rows; | 21312 final HtmlCollection $dom_rows; |
| 21313 | 21313 |
| 21314 @DomName('HTMLTableSectionElement.deleteRow') | 21314 @DomName('HTMLTableSectionElement.deleteRow') |
| 21315 @DocsEditable | 21315 @DocsEditable() |
| 21316 void deleteRow(int index) native; | 21316 void deleteRow(int index) native; |
| 21317 | 21317 |
| 21318 @JSName('insertRow') | 21318 @JSName('insertRow') |
| 21319 @DomName('HTMLTableSectionElement.insertRow') | 21319 @DomName('HTMLTableSectionElement.insertRow') |
| 21320 @DocsEditable | 21320 @DocsEditable() |
| 21321 Element $dom_insertRow(int index) native; | 21321 Element $dom_insertRow(int index) native; |
| 21322 } | 21322 } |
| 21323 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21323 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21324 // for details. All rights reserved. Use of this source code is governed by a | 21324 // for details. All rights reserved. Use of this source code is governed by a |
| 21325 // BSD-style license that can be found in the LICENSE file. | 21325 // BSD-style license that can be found in the LICENSE file. |
| 21326 | 21326 |
| 21327 // WARNING: Do not edit - generated code. | 21327 // WARNING: Do not edit - generated code. |
| 21328 | 21328 |
| 21329 | 21329 |
| 21330 | 21330 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 21353 * | 21353 * |
| 21354 * ... | 21354 * ... |
| 21355 * | 21355 * |
| 21356 * TemplateElement.syntax['MySyntax'] = new MySyntax(); | 21356 * TemplateElement.syntax['MySyntax'] = new MySyntax(); |
| 21357 * | 21357 * |
| 21358 * See <https://github.com/polymer-project/mdv/blob/master/docs/syntax.md> for | 21358 * See <https://github.com/polymer-project/mdv/blob/master/docs/syntax.md> for |
| 21359 * more information about Custom Syntax. | 21359 * more information about Custom Syntax. |
| 21360 */ | 21360 */ |
| 21361 // TODO(jmesserly): if this is just one method, a function type would make it | 21361 // TODO(jmesserly): if this is just one method, a function type would make it |
| 21362 // more Dart-friendly. | 21362 // more Dart-friendly. |
| 21363 @Experimental | 21363 @Experimental() |
| 21364 abstract class CustomBindingSyntax { | 21364 abstract class CustomBindingSyntax { |
| 21365 /** | 21365 /** |
| 21366 * This syntax method allows for a custom interpretation of the contents of | 21366 * This syntax method allows for a custom interpretation of the contents of |
| 21367 * mustaches (`{{` ... `}}`). | 21367 * mustaches (`{{` ... `}}`). |
| 21368 * | 21368 * |
| 21369 * When a template is inserting an instance, it will invoke this method for | 21369 * When a template is inserting an instance, it will invoke this method for |
| 21370 * each mustache which is encountered. The function is invoked with four | 21370 * each mustache which is encountered. The function is invoked with four |
| 21371 * arguments: | 21371 * arguments: |
| 21372 * | 21372 * |
| 21373 * - [model]: The data context for which this instance is being created. | 21373 * - [model]: The data context for which this instance is being created. |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21413 * This syntax method allows a syntax to provide an alterate expansion of | 21413 * This syntax method allows a syntax to provide an alterate expansion of |
| 21414 * the [template] contents. When the template wants to create an instance, | 21414 * the [template] contents. When the template wants to create an instance, |
| 21415 * it will call this method with the template element. | 21415 * it will call this method with the template element. |
| 21416 * | 21416 * |
| 21417 * By default this will call `template.createInstance()`. | 21417 * By default this will call `template.createInstance()`. |
| 21418 */ | 21418 */ |
| 21419 getInstanceFragment(Element template) => template.createInstance(); | 21419 getInstanceFragment(Element template) => template.createInstance(); |
| 21420 } | 21420 } |
| 21421 | 21421 |
| 21422 | 21422 |
| 21423 @Experimental | 21423 @Experimental() |
| 21424 @DomName('HTMLTemplateElement') | 21424 @DomName('HTMLTemplateElement') |
| 21425 @SupportedBrowser(SupportedBrowser.CHROME) | 21425 @SupportedBrowser(SupportedBrowser.CHROME) |
| 21426 @Experimental | 21426 @Experimental() |
| 21427 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html#t
emplate-element | 21427 // https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/templates/index.html#t
emplate-element |
| 21428 class TemplateElement extends _HTMLElement native "HTMLTemplateElement" { | 21428 class TemplateElement extends _HTMLElement native "HTMLTemplateElement" { |
| 21429 // To suppress missing implicit constructor warnings. | 21429 // To suppress missing implicit constructor warnings. |
| 21430 factory TemplateElement._() { throw new UnsupportedError("Not supported"); } | 21430 factory TemplateElement._() { throw new UnsupportedError("Not supported"); } |
| 21431 | 21431 |
| 21432 @DomName('HTMLTemplateElement.HTMLTemplateElement') | 21432 @DomName('HTMLTemplateElement.HTMLTemplateElement') |
| 21433 @DocsEditable | 21433 @DocsEditable() |
| 21434 factory TemplateElement() => document.$dom_createElement("template"); | 21434 factory TemplateElement() => document.$dom_createElement("template"); |
| 21435 | 21435 |
| 21436 /// Checks if this type is supported on the current platform. | 21436 /// Checks if this type is supported on the current platform. |
| 21437 static bool get supported => Element.isTagSupported('template'); | 21437 static bool get supported => Element.isTagSupported('template'); |
| 21438 | 21438 |
| 21439 @JSName('content') | 21439 @JSName('content') |
| 21440 @DomName('HTMLTemplateElement.content') | 21440 @DomName('HTMLTemplateElement.content') |
| 21441 @DocsEditable | 21441 @DocsEditable() |
| 21442 final DocumentFragment $dom_content; | 21442 final DocumentFragment $dom_content; |
| 21443 | 21443 |
| 21444 | 21444 |
| 21445 // For real TemplateElement use the actual DOM .content field instead of | 21445 // For real TemplateElement use the actual DOM .content field instead of |
| 21446 // our polyfilled expando. | 21446 // our polyfilled expando. |
| 21447 @Experimental | 21447 @Experimental() |
| 21448 DocumentFragment get content => $dom_content; | 21448 DocumentFragment get content => $dom_content; |
| 21449 | 21449 |
| 21450 | 21450 |
| 21451 /** | 21451 /** |
| 21452 * The MDV package, if available. | 21452 * The MDV package, if available. |
| 21453 * | 21453 * |
| 21454 * This can be used to initialize MDV support via: | 21454 * This can be used to initialize MDV support via: |
| 21455 * | 21455 * |
| 21456 * import 'dart:html'; | 21456 * import 'dart:html'; |
| 21457 * import 'package:mdv/mdv.dart' as mdv; | 21457 * import 'package:mdv/mdv.dart' as mdv; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21468 /** | 21468 /** |
| 21469 * Ensures proper API and content model for template elements. | 21469 * Ensures proper API and content model for template elements. |
| 21470 * | 21470 * |
| 21471 * [instanceRef] can be used to set the [Element.ref] property of [template], | 21471 * [instanceRef] can be used to set the [Element.ref] property of [template], |
| 21472 * and use the ref's content will be used as source when createInstance() is | 21472 * and use the ref's content will be used as source when createInstance() is |
| 21473 * invoked. | 21473 * invoked. |
| 21474 * | 21474 * |
| 21475 * Returns true if this template was just decorated, or false if it was | 21475 * Returns true if this template was just decorated, or false if it was |
| 21476 * already decorated. | 21476 * already decorated. |
| 21477 */ | 21477 */ |
| 21478 @Experimental | 21478 @Experimental() |
| 21479 static bool decorate(Element template, [Element instanceRef]) { | 21479 static bool decorate(Element template, [Element instanceRef]) { |
| 21480 // == true check because it starts as a null field. | 21480 // == true check because it starts as a null field. |
| 21481 if (template._templateIsDecorated == true) return false; | 21481 if (template._templateIsDecorated == true) return false; |
| 21482 | 21482 |
| 21483 _injectStylesheet(); | 21483 _injectStylesheet(); |
| 21484 | 21484 |
| 21485 var templateElement = template; | 21485 var templateElement = template; |
| 21486 var isNative = templateElement is TemplateElement; | 21486 var isNative = templateElement is TemplateElement; |
| 21487 var bootstrapContents = isNative; | 21487 var bootstrapContents = isNative; |
| 21488 var liftContents = !isNative; | 21488 var liftContents = !isNative; |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 21586 } | 21586 } |
| 21587 | 21587 |
| 21588 /** | 21588 /** |
| 21589 * This used to decorate recursively all templates from a given node. | 21589 * This used to decorate recursively all templates from a given node. |
| 21590 * | 21590 * |
| 21591 * By default [decorate] will be called on templates lazily when certain | 21591 * By default [decorate] will be called on templates lazily when certain |
| 21592 * properties such as [model] are accessed, but it can be run eagerly to | 21592 * properties such as [model] are accessed, but it can be run eagerly to |
| 21593 * decorate an entire tree recursively. | 21593 * decorate an entire tree recursively. |
| 21594 */ | 21594 */ |
| 21595 // TODO(rafaelw): Review whether this is the right public API. | 21595 // TODO(rafaelw): Review whether this is the right public API. |
| 21596 @Experimental | 21596 @Experimental() |
| 21597 static void bootstrap(Node content) { | 21597 static void bootstrap(Node content) { |
| 21598 void _bootstrap(template) { | 21598 void _bootstrap(template) { |
| 21599 if (!TemplateElement.decorate(template)) { | 21599 if (!TemplateElement.decorate(template)) { |
| 21600 bootstrap(template.content); | 21600 bootstrap(template.content); |
| 21601 } | 21601 } |
| 21602 } | 21602 } |
| 21603 | 21603 |
| 21604 // Need to do this first as the contents may get lifted if |node| is | 21604 // Need to do this first as the contents may get lifted if |node| is |
| 21605 // template. | 21605 // template. |
| 21606 // TODO(jmesserly): content is DocumentFragment or Element | 21606 // TODO(jmesserly): content is DocumentFragment or Element |
| (...skipping 30 matching lines...) Expand all Loading... |
| 21637 option[template] { | 21637 option[template] { |
| 21638 display: none; | 21638 display: none; |
| 21639 }'''; | 21639 }'''; |
| 21640 document.head.append(style); | 21640 document.head.append(style); |
| 21641 } | 21641 } |
| 21642 | 21642 |
| 21643 /** | 21643 /** |
| 21644 * A mapping of names to Custom Syntax objects. See [CustomBindingSyntax] for | 21644 * A mapping of names to Custom Syntax objects. See [CustomBindingSyntax] for |
| 21645 * more information. | 21645 * more information. |
| 21646 */ | 21646 */ |
| 21647 @Experimental | 21647 @Experimental() |
| 21648 static Map<String, CustomBindingSyntax> syntax = {}; | 21648 static Map<String, CustomBindingSyntax> syntax = {}; |
| 21649 } | 21649 } |
| 21650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21651 // for details. All rights reserved. Use of this source code is governed by a | 21651 // for details. All rights reserved. Use of this source code is governed by a |
| 21652 // BSD-style license that can be found in the LICENSE file. | 21652 // BSD-style license that can be found in the LICENSE file. |
| 21653 | 21653 |
| 21654 // WARNING: Do not edit - generated code. | 21654 // WARNING: Do not edit - generated code. |
| 21655 | 21655 |
| 21656 | 21656 |
| 21657 @DomName('Text') | 21657 @DomName('Text') |
| 21658 class Text extends CharacterData native "Text" { | 21658 class Text extends CharacterData native "Text" { |
| 21659 factory Text(String data) => document.$dom_createTextNode(data); | 21659 factory Text(String data) => document.$dom_createTextNode(data); |
| 21660 // To suppress missing implicit constructor warnings. | 21660 // To suppress missing implicit constructor warnings. |
| 21661 factory Text._() { throw new UnsupportedError("Not supported"); } | 21661 factory Text._() { throw new UnsupportedError("Not supported"); } |
| 21662 | 21662 |
| 21663 @DomName('Text.wholeText') | 21663 @DomName('Text.wholeText') |
| 21664 @DocsEditable | 21664 @DocsEditable() |
| 21665 final String wholeText; | 21665 final String wholeText; |
| 21666 | 21666 |
| 21667 @DomName('Text.replaceWholeText') | 21667 @DomName('Text.replaceWholeText') |
| 21668 @DocsEditable | 21668 @DocsEditable() |
| 21669 // http://dom.spec.whatwg.org/#dom-text-replacewholetext | 21669 // http://dom.spec.whatwg.org/#dom-text-replacewholetext |
| 21670 @deprecated // deprecated | 21670 @deprecated // deprecated |
| 21671 Text replaceWholeText(String content) native; | 21671 Text replaceWholeText(String content) native; |
| 21672 | 21672 |
| 21673 @DomName('Text.splitText') | 21673 @DomName('Text.splitText') |
| 21674 @DocsEditable | 21674 @DocsEditable() |
| 21675 Text splitText(int offset) native; | 21675 Text splitText(int offset) native; |
| 21676 | 21676 |
| 21677 } | 21677 } |
| 21678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21678 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21679 // for details. All rights reserved. Use of this source code is governed by a | 21679 // for details. All rights reserved. Use of this source code is governed by a |
| 21680 // BSD-style license that can be found in the LICENSE file. | 21680 // BSD-style license that can be found in the LICENSE file. |
| 21681 | 21681 |
| 21682 | 21682 |
| 21683 @DocsEditable | 21683 @DocsEditable() |
| 21684 @DomName('HTMLTextAreaElement') | 21684 @DomName('HTMLTextAreaElement') |
| 21685 class TextAreaElement extends _HTMLElement native "HTMLTextAreaElement" { | 21685 class TextAreaElement extends _HTMLElement native "HTMLTextAreaElement" { |
| 21686 // To suppress missing implicit constructor warnings. | 21686 // To suppress missing implicit constructor warnings. |
| 21687 factory TextAreaElement._() { throw new UnsupportedError("Not supported"); } | 21687 factory TextAreaElement._() { throw new UnsupportedError("Not supported"); } |
| 21688 | 21688 |
| 21689 @DomName('HTMLTextAreaElement.HTMLTextAreaElement') | 21689 @DomName('HTMLTextAreaElement.HTMLTextAreaElement') |
| 21690 @DocsEditable | 21690 @DocsEditable() |
| 21691 factory TextAreaElement() => document.$dom_createElement("textarea"); | 21691 factory TextAreaElement() => document.$dom_createElement("textarea"); |
| 21692 | 21692 |
| 21693 @DomName('HTMLTextAreaElement.autofocus') | 21693 @DomName('HTMLTextAreaElement.autofocus') |
| 21694 @DocsEditable | 21694 @DocsEditable() |
| 21695 bool autofocus; | 21695 bool autofocus; |
| 21696 | 21696 |
| 21697 @DomName('HTMLTextAreaElement.cols') | 21697 @DomName('HTMLTextAreaElement.cols') |
| 21698 @DocsEditable | 21698 @DocsEditable() |
| 21699 int cols; | 21699 int cols; |
| 21700 | 21700 |
| 21701 @DomName('HTMLTextAreaElement.defaultValue') | 21701 @DomName('HTMLTextAreaElement.defaultValue') |
| 21702 @DocsEditable | 21702 @DocsEditable() |
| 21703 String defaultValue; | 21703 String defaultValue; |
| 21704 | 21704 |
| 21705 @DomName('HTMLTextAreaElement.dirName') | 21705 @DomName('HTMLTextAreaElement.dirName') |
| 21706 @DocsEditable | 21706 @DocsEditable() |
| 21707 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-elem
ent.html#dom-textarea-dirname | 21707 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-button-elem
ent.html#dom-textarea-dirname |
| 21708 @Experimental | 21708 @Experimental() |
| 21709 String dirName; | 21709 String dirName; |
| 21710 | 21710 |
| 21711 @DomName('HTMLTextAreaElement.disabled') | 21711 @DomName('HTMLTextAreaElement.disabled') |
| 21712 @DocsEditable | 21712 @DocsEditable() |
| 21713 bool disabled; | 21713 bool disabled; |
| 21714 | 21714 |
| 21715 @DomName('HTMLTextAreaElement.form') | 21715 @DomName('HTMLTextAreaElement.form') |
| 21716 @DocsEditable | 21716 @DocsEditable() |
| 21717 final FormElement form; | 21717 final FormElement form; |
| 21718 | 21718 |
| 21719 @DomName('HTMLTextAreaElement.labels') | 21719 @DomName('HTMLTextAreaElement.labels') |
| 21720 @DocsEditable | 21720 @DocsEditable() |
| 21721 @Unstable | 21721 @Unstable() |
| 21722 @Returns('NodeList') | 21722 @Returns('NodeList') |
| 21723 @Creates('NodeList') | 21723 @Creates('NodeList') |
| 21724 final List<Node> labels; | 21724 final List<Node> labels; |
| 21725 | 21725 |
| 21726 @DomName('HTMLTextAreaElement.maxLength') | 21726 @DomName('HTMLTextAreaElement.maxLength') |
| 21727 @DocsEditable | 21727 @DocsEditable() |
| 21728 int maxLength; | 21728 int maxLength; |
| 21729 | 21729 |
| 21730 @DomName('HTMLTextAreaElement.name') | 21730 @DomName('HTMLTextAreaElement.name') |
| 21731 @DocsEditable | 21731 @DocsEditable() |
| 21732 String name; | 21732 String name; |
| 21733 | 21733 |
| 21734 @DomName('HTMLTextAreaElement.placeholder') | 21734 @DomName('HTMLTextAreaElement.placeholder') |
| 21735 @DocsEditable | 21735 @DocsEditable() |
| 21736 String placeholder; | 21736 String placeholder; |
| 21737 | 21737 |
| 21738 @DomName('HTMLTextAreaElement.readOnly') | 21738 @DomName('HTMLTextAreaElement.readOnly') |
| 21739 @DocsEditable | 21739 @DocsEditable() |
| 21740 bool readOnly; | 21740 bool readOnly; |
| 21741 | 21741 |
| 21742 @DomName('HTMLTextAreaElement.required') | 21742 @DomName('HTMLTextAreaElement.required') |
| 21743 @DocsEditable | 21743 @DocsEditable() |
| 21744 bool required; | 21744 bool required; |
| 21745 | 21745 |
| 21746 @DomName('HTMLTextAreaElement.rows') | 21746 @DomName('HTMLTextAreaElement.rows') |
| 21747 @DocsEditable | 21747 @DocsEditable() |
| 21748 int rows; | 21748 int rows; |
| 21749 | 21749 |
| 21750 @DomName('HTMLTextAreaElement.selectionDirection') | 21750 @DomName('HTMLTextAreaElement.selectionDirection') |
| 21751 @DocsEditable | 21751 @DocsEditable() |
| 21752 String selectionDirection; | 21752 String selectionDirection; |
| 21753 | 21753 |
| 21754 @DomName('HTMLTextAreaElement.selectionEnd') | 21754 @DomName('HTMLTextAreaElement.selectionEnd') |
| 21755 @DocsEditable | 21755 @DocsEditable() |
| 21756 int selectionEnd; | 21756 int selectionEnd; |
| 21757 | 21757 |
| 21758 @DomName('HTMLTextAreaElement.selectionStart') | 21758 @DomName('HTMLTextAreaElement.selectionStart') |
| 21759 @DocsEditable | 21759 @DocsEditable() |
| 21760 int selectionStart; | 21760 int selectionStart; |
| 21761 | 21761 |
| 21762 @DomName('HTMLTextAreaElement.textLength') | 21762 @DomName('HTMLTextAreaElement.textLength') |
| 21763 @DocsEditable | 21763 @DocsEditable() |
| 21764 final int textLength; | 21764 final int textLength; |
| 21765 | 21765 |
| 21766 @DomName('HTMLTextAreaElement.type') | 21766 @DomName('HTMLTextAreaElement.type') |
| 21767 @DocsEditable | 21767 @DocsEditable() |
| 21768 final String type; | 21768 final String type; |
| 21769 | 21769 |
| 21770 @DomName('HTMLTextAreaElement.validationMessage') | 21770 @DomName('HTMLTextAreaElement.validationMessage') |
| 21771 @DocsEditable | 21771 @DocsEditable() |
| 21772 final String validationMessage; | 21772 final String validationMessage; |
| 21773 | 21773 |
| 21774 @DomName('HTMLTextAreaElement.validity') | 21774 @DomName('HTMLTextAreaElement.validity') |
| 21775 @DocsEditable | 21775 @DocsEditable() |
| 21776 final ValidityState validity; | 21776 final ValidityState validity; |
| 21777 | 21777 |
| 21778 @DomName('HTMLTextAreaElement.value') | 21778 @DomName('HTMLTextAreaElement.value') |
| 21779 @DocsEditable | 21779 @DocsEditable() |
| 21780 String value; | 21780 String value; |
| 21781 | 21781 |
| 21782 @DomName('HTMLTextAreaElement.willValidate') | 21782 @DomName('HTMLTextAreaElement.willValidate') |
| 21783 @DocsEditable | 21783 @DocsEditable() |
| 21784 final bool willValidate; | 21784 final bool willValidate; |
| 21785 | 21785 |
| 21786 @DomName('HTMLTextAreaElement.wrap') | 21786 @DomName('HTMLTextAreaElement.wrap') |
| 21787 @DocsEditable | 21787 @DocsEditable() |
| 21788 String wrap; | 21788 String wrap; |
| 21789 | 21789 |
| 21790 @DomName('HTMLTextAreaElement.checkValidity') | 21790 @DomName('HTMLTextAreaElement.checkValidity') |
| 21791 @DocsEditable | 21791 @DocsEditable() |
| 21792 bool checkValidity() native; | 21792 bool checkValidity() native; |
| 21793 | 21793 |
| 21794 @DomName('HTMLTextAreaElement.select') | 21794 @DomName('HTMLTextAreaElement.select') |
| 21795 @DocsEditable | 21795 @DocsEditable() |
| 21796 void select() native; | 21796 void select() native; |
| 21797 | 21797 |
| 21798 @DomName('HTMLTextAreaElement.setCustomValidity') | 21798 @DomName('HTMLTextAreaElement.setCustomValidity') |
| 21799 @DocsEditable | 21799 @DocsEditable() |
| 21800 void setCustomValidity(String error) native; | 21800 void setCustomValidity(String error) native; |
| 21801 | 21801 |
| 21802 @DomName('HTMLTextAreaElement.setRangeText') | 21802 @DomName('HTMLTextAreaElement.setRangeText') |
| 21803 @DocsEditable | 21803 @DocsEditable() |
| 21804 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#dom-textarea/input-setrangetext | 21804 // http://www.whatwg.org/specs/web-apps/current-work/multipage/association-of-
controls-and-forms.html#dom-textarea/input-setrangetext |
| 21805 @Experimental | 21805 @Experimental() |
| 21806 void setRangeText(String replacement, [int start, int end, String selectionMod
e]) native; | 21806 void setRangeText(String replacement, [int start, int end, String selectionMod
e]) native; |
| 21807 | 21807 |
| 21808 @DomName('HTMLTextAreaElement.setSelectionRange') | 21808 @DomName('HTMLTextAreaElement.setSelectionRange') |
| 21809 @DocsEditable | 21809 @DocsEditable() |
| 21810 void setSelectionRange(int start, int end, [String direction]) native; | 21810 void setSelectionRange(int start, int end, [String direction]) native; |
| 21811 } | 21811 } |
| 21812 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 21812 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 21813 // for details. All rights reserved. Use of this source code is governed by a | 21813 // for details. All rights reserved. Use of this source code is governed by a |
| 21814 // BSD-style license that can be found in the LICENSE file. | 21814 // BSD-style license that can be found in the LICENSE file. |
| 21815 | 21815 |
| 21816 // WARNING: Do not edit - generated code. | 21816 // WARNING: Do not edit - generated code. |
| 21817 | 21817 |
| 21818 | 21818 |
| 21819 @DomName('TextEvent') | 21819 @DomName('TextEvent') |
| 21820 @Unstable | 21820 @Unstable() |
| 21821 class TextEvent extends UIEvent native "TextEvent" { | 21821 class TextEvent extends UIEvent native "TextEvent" { |
| 21822 factory TextEvent(String type, | 21822 factory TextEvent(String type, |
| 21823 {bool canBubble: false, bool cancelable: false, Window view, String data}) { | 21823 {bool canBubble: false, bool cancelable: false, Window view, String data}) { |
| 21824 if (view == null) { | 21824 if (view == null) { |
| 21825 view = window; | 21825 view = window; |
| 21826 } | 21826 } |
| 21827 var e = document.$dom_createEvent("TextEvent"); | 21827 var e = document.$dom_createEvent("TextEvent"); |
| 21828 e.$dom_initTextEvent(type, canBubble, cancelable, view, data); | 21828 e.$dom_initTextEvent(type, canBubble, cancelable, view, data); |
| 21829 return e; | 21829 return e; |
| 21830 } | 21830 } |
| 21831 // To suppress missing implicit constructor warnings. | 21831 // To suppress missing implicit constructor warnings. |
| 21832 factory TextEvent._() { throw new UnsupportedError("Not supported"); } | 21832 factory TextEvent._() { throw new UnsupportedError("Not supported"); } |
| 21833 | 21833 |
| 21834 @DomName('TextEvent.data') | 21834 @DomName('TextEvent.data') |
| 21835 @DocsEditable | 21835 @DocsEditable() |
| 21836 final String data; | 21836 final String data; |
| 21837 | 21837 |
| 21838 @JSName('initTextEvent') | 21838 @JSName('initTextEvent') |
| 21839 @DomName('TextEvent.initTextEvent') | 21839 @DomName('TextEvent.initTextEvent') |
| 21840 @DocsEditable | 21840 @DocsEditable() |
| 21841 void $dom_initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg,
Window viewArg, String dataArg) native; | 21841 void $dom_initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg,
Window viewArg, String dataArg) native; |
| 21842 | 21842 |
| 21843 } | 21843 } |
| 21844 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21844 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21845 // for details. All rights reserved. Use of this source code is governed by a | 21845 // for details. All rights reserved. Use of this source code is governed by a |
| 21846 // BSD-style license that can be found in the LICENSE file. | 21846 // BSD-style license that can be found in the LICENSE file. |
| 21847 | 21847 |
| 21848 | 21848 |
| 21849 @DocsEditable | 21849 @DocsEditable() |
| 21850 @DomName('TextMetrics') | 21850 @DomName('TextMetrics') |
| 21851 class TextMetrics extends Interceptor native "TextMetrics" { | 21851 class TextMetrics extends Interceptor native "TextMetrics" { |
| 21852 | 21852 |
| 21853 @DomName('TextMetrics.width') | 21853 @DomName('TextMetrics.width') |
| 21854 @DocsEditable | 21854 @DocsEditable() |
| 21855 final num width; | 21855 final num width; |
| 21856 } | 21856 } |
| 21857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21857 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21858 // for details. All rights reserved. Use of this source code is governed by a | 21858 // for details. All rights reserved. Use of this source code is governed by a |
| 21859 // BSD-style license that can be found in the LICENSE file. | 21859 // BSD-style license that can be found in the LICENSE file. |
| 21860 | 21860 |
| 21861 | 21861 |
| 21862 @DocsEditable | 21862 @DocsEditable() |
| 21863 @DomName('TextTrack') | 21863 @DomName('TextTrack') |
| 21864 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element
.html#texttrack | 21864 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element
.html#texttrack |
| 21865 @Experimental | 21865 @Experimental() |
| 21866 class TextTrack extends EventTarget native "TextTrack" { | 21866 class TextTrack extends EventTarget native "TextTrack" { |
| 21867 // To suppress missing implicit constructor warnings. | 21867 // To suppress missing implicit constructor warnings. |
| 21868 factory TextTrack._() { throw new UnsupportedError("Not supported"); } | 21868 factory TextTrack._() { throw new UnsupportedError("Not supported"); } |
| 21869 | 21869 |
| 21870 @DomName('TextTrack.cuechangeEvent') | 21870 @DomName('TextTrack.cuechangeEvent') |
| 21871 @DocsEditable | 21871 @DocsEditable() |
| 21872 static const EventStreamProvider<Event> cueChangeEvent = const EventStreamProv
ider<Event>('cuechange'); | 21872 static const EventStreamProvider<Event> cueChangeEvent = const EventStreamProv
ider<Event>('cuechange'); |
| 21873 | 21873 |
| 21874 @DomName('TextTrack.activeCues') | 21874 @DomName('TextTrack.activeCues') |
| 21875 @DocsEditable | 21875 @DocsEditable() |
| 21876 final TextTrackCueList activeCues; | 21876 final TextTrackCueList activeCues; |
| 21877 | 21877 |
| 21878 @DomName('TextTrack.cues') | 21878 @DomName('TextTrack.cues') |
| 21879 @DocsEditable | 21879 @DocsEditable() |
| 21880 final TextTrackCueList cues; | 21880 final TextTrackCueList cues; |
| 21881 | 21881 |
| 21882 @DomName('TextTrack.kind') | 21882 @DomName('TextTrack.kind') |
| 21883 @DocsEditable | 21883 @DocsEditable() |
| 21884 final String kind; | 21884 final String kind; |
| 21885 | 21885 |
| 21886 @DomName('TextTrack.label') | 21886 @DomName('TextTrack.label') |
| 21887 @DocsEditable | 21887 @DocsEditable() |
| 21888 final String label; | 21888 final String label; |
| 21889 | 21889 |
| 21890 @DomName('TextTrack.language') | 21890 @DomName('TextTrack.language') |
| 21891 @DocsEditable | 21891 @DocsEditable() |
| 21892 final String language; | 21892 final String language; |
| 21893 | 21893 |
| 21894 @DomName('TextTrack.mode') | 21894 @DomName('TextTrack.mode') |
| 21895 @DocsEditable | 21895 @DocsEditable() |
| 21896 String mode; | 21896 String mode; |
| 21897 | 21897 |
| 21898 @DomName('TextTrack.addCue') | 21898 @DomName('TextTrack.addCue') |
| 21899 @DocsEditable | 21899 @DocsEditable() |
| 21900 void addCue(TextTrackCue cue) native; | 21900 void addCue(TextTrackCue cue) native; |
| 21901 | 21901 |
| 21902 @JSName('addEventListener') | 21902 @JSName('addEventListener') |
| 21903 @DomName('TextTrack.addEventListener') | 21903 @DomName('TextTrack.addEventListener') |
| 21904 @DocsEditable | 21904 @DocsEditable() |
| 21905 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 21905 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 21906 | 21906 |
| 21907 @DomName('TextTrack.dispatchEvent') | 21907 @DomName('TextTrack.dispatchEvent') |
| 21908 @DocsEditable | 21908 @DocsEditable() |
| 21909 bool dispatchEvent(Event evt) native; | 21909 bool dispatchEvent(Event evt) native; |
| 21910 | 21910 |
| 21911 @DomName('TextTrack.removeCue') | 21911 @DomName('TextTrack.removeCue') |
| 21912 @DocsEditable | 21912 @DocsEditable() |
| 21913 void removeCue(TextTrackCue cue) native; | 21913 void removeCue(TextTrackCue cue) native; |
| 21914 | 21914 |
| 21915 @JSName('removeEventListener') | 21915 @JSName('removeEventListener') |
| 21916 @DomName('TextTrack.removeEventListener') | 21916 @DomName('TextTrack.removeEventListener') |
| 21917 @DocsEditable | 21917 @DocsEditable() |
| 21918 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 21918 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 21919 | 21919 |
| 21920 @DomName('TextTrack.oncuechange') | 21920 @DomName('TextTrack.oncuechange') |
| 21921 @DocsEditable | 21921 @DocsEditable() |
| 21922 Stream<Event> get onCueChange => cueChangeEvent.forTarget(this); | 21922 Stream<Event> get onCueChange => cueChangeEvent.forTarget(this); |
| 21923 } | 21923 } |
| 21924 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 21924 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 21925 // for details. All rights reserved. Use of this source code is governed by a | 21925 // for details. All rights reserved. Use of this source code is governed by a |
| 21926 // BSD-style license that can be found in the LICENSE file. | 21926 // BSD-style license that can be found in the LICENSE file. |
| 21927 | 21927 |
| 21928 | 21928 |
| 21929 @DocsEditable | 21929 @DocsEditable() |
| 21930 @DomName('TextTrackCue') | 21930 @DomName('TextTrackCue') |
| 21931 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element
.html#texttrackcue | 21931 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element
.html#texttrackcue |
| 21932 @Experimental | 21932 @Experimental() |
| 21933 class TextTrackCue extends EventTarget native "TextTrackCue" { | 21933 class TextTrackCue extends EventTarget native "TextTrackCue" { |
| 21934 // To suppress missing implicit constructor warnings. | 21934 // To suppress missing implicit constructor warnings. |
| 21935 factory TextTrackCue._() { throw new UnsupportedError("Not supported"); } | 21935 factory TextTrackCue._() { throw new UnsupportedError("Not supported"); } |
| 21936 | 21936 |
| 21937 @DomName('TextTrackCue.enterEvent') | 21937 @DomName('TextTrackCue.enterEvent') |
| 21938 @DocsEditable | 21938 @DocsEditable() |
| 21939 static const EventStreamProvider<Event> enterEvent = const EventStreamProvider
<Event>('enter'); | 21939 static const EventStreamProvider<Event> enterEvent = const EventStreamProvider
<Event>('enter'); |
| 21940 | 21940 |
| 21941 @DomName('TextTrackCue.exitEvent') | 21941 @DomName('TextTrackCue.exitEvent') |
| 21942 @DocsEditable | 21942 @DocsEditable() |
| 21943 static const EventStreamProvider<Event> exitEvent = const EventStreamProvider<
Event>('exit'); | 21943 static const EventStreamProvider<Event> exitEvent = const EventStreamProvider<
Event>('exit'); |
| 21944 | 21944 |
| 21945 @DomName('TextTrackCue.TextTrackCue') | 21945 @DomName('TextTrackCue.TextTrackCue') |
| 21946 @DocsEditable | 21946 @DocsEditable() |
| 21947 factory TextTrackCue(num startTime, num endTime, String text) { | 21947 factory TextTrackCue(num startTime, num endTime, String text) { |
| 21948 return TextTrackCue._create_1(startTime, endTime, text); | 21948 return TextTrackCue._create_1(startTime, endTime, text); |
| 21949 } | 21949 } |
| 21950 static TextTrackCue _create_1(startTime, endTime, text) => JS('TextTrackCue',
'new TextTrackCue(#,#,#)', startTime, endTime, text); | 21950 static TextTrackCue _create_1(startTime, endTime, text) => JS('TextTrackCue',
'new TextTrackCue(#,#,#)', startTime, endTime, text); |
| 21951 | 21951 |
| 21952 @DomName('TextTrackCue.align') | 21952 @DomName('TextTrackCue.align') |
| 21953 @DocsEditable | 21953 @DocsEditable() |
| 21954 @Experimental // nonstandard | 21954 @Experimental() // nonstandard |
| 21955 String align; | 21955 String align; |
| 21956 | 21956 |
| 21957 @DomName('TextTrackCue.endTime') | 21957 @DomName('TextTrackCue.endTime') |
| 21958 @DocsEditable | 21958 @DocsEditable() |
| 21959 num endTime; | 21959 num endTime; |
| 21960 | 21960 |
| 21961 @DomName('TextTrackCue.id') | 21961 @DomName('TextTrackCue.id') |
| 21962 @DocsEditable | 21962 @DocsEditable() |
| 21963 String id; | 21963 String id; |
| 21964 | 21964 |
| 21965 @DomName('TextTrackCue.line') | 21965 @DomName('TextTrackCue.line') |
| 21966 @DocsEditable | 21966 @DocsEditable() |
| 21967 @Experimental // nonstandard | 21967 @Experimental() // nonstandard |
| 21968 int line; | 21968 int line; |
| 21969 | 21969 |
| 21970 @DomName('TextTrackCue.pauseOnExit') | 21970 @DomName('TextTrackCue.pauseOnExit') |
| 21971 @DocsEditable | 21971 @DocsEditable() |
| 21972 bool pauseOnExit; | 21972 bool pauseOnExit; |
| 21973 | 21973 |
| 21974 @DomName('TextTrackCue.position') | 21974 @DomName('TextTrackCue.position') |
| 21975 @DocsEditable | 21975 @DocsEditable() |
| 21976 @Experimental // nonstandard | 21976 @Experimental() // nonstandard |
| 21977 int position; | 21977 int position; |
| 21978 | 21978 |
| 21979 @DomName('TextTrackCue.size') | 21979 @DomName('TextTrackCue.size') |
| 21980 @DocsEditable | 21980 @DocsEditable() |
| 21981 @Experimental // nonstandard | 21981 @Experimental() // nonstandard |
| 21982 int size; | 21982 int size; |
| 21983 | 21983 |
| 21984 @DomName('TextTrackCue.snapToLines') | 21984 @DomName('TextTrackCue.snapToLines') |
| 21985 @DocsEditable | 21985 @DocsEditable() |
| 21986 @Experimental // nonstandard | 21986 @Experimental() // nonstandard |
| 21987 bool snapToLines; | 21987 bool snapToLines; |
| 21988 | 21988 |
| 21989 @DomName('TextTrackCue.startTime') | 21989 @DomName('TextTrackCue.startTime') |
| 21990 @DocsEditable | 21990 @DocsEditable() |
| 21991 num startTime; | 21991 num startTime; |
| 21992 | 21992 |
| 21993 @DomName('TextTrackCue.text') | 21993 @DomName('TextTrackCue.text') |
| 21994 @DocsEditable | 21994 @DocsEditable() |
| 21995 @Experimental // nonstandard | 21995 @Experimental() // nonstandard |
| 21996 String text; | 21996 String text; |
| 21997 | 21997 |
| 21998 @DomName('TextTrackCue.track') | 21998 @DomName('TextTrackCue.track') |
| 21999 @DocsEditable | 21999 @DocsEditable() |
| 22000 final TextTrack track; | 22000 final TextTrack track; |
| 22001 | 22001 |
| 22002 @DomName('TextTrackCue.vertical') | 22002 @DomName('TextTrackCue.vertical') |
| 22003 @DocsEditable | 22003 @DocsEditable() |
| 22004 @Experimental // nonstandard | 22004 @Experimental() // nonstandard |
| 22005 String vertical; | 22005 String vertical; |
| 22006 | 22006 |
| 22007 @JSName('addEventListener') | 22007 @JSName('addEventListener') |
| 22008 @DomName('TextTrackCue.addEventListener') | 22008 @DomName('TextTrackCue.addEventListener') |
| 22009 @DocsEditable | 22009 @DocsEditable() |
| 22010 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 22010 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 22011 | 22011 |
| 22012 @DomName('TextTrackCue.dispatchEvent') | 22012 @DomName('TextTrackCue.dispatchEvent') |
| 22013 @DocsEditable | 22013 @DocsEditable() |
| 22014 bool dispatchEvent(Event evt) native; | 22014 bool dispatchEvent(Event evt) native; |
| 22015 | 22015 |
| 22016 @JSName('getCueAsHTML') | 22016 @JSName('getCueAsHTML') |
| 22017 @DomName('TextTrackCue.getCueAsHTML') | 22017 @DomName('TextTrackCue.getCueAsHTML') |
| 22018 @DocsEditable | 22018 @DocsEditable() |
| 22019 @Experimental // nonstandard | 22019 @Experimental() // nonstandard |
| 22020 DocumentFragment getCueAsHtml() native; | 22020 DocumentFragment getCueAsHtml() native; |
| 22021 | 22021 |
| 22022 @JSName('removeEventListener') | 22022 @JSName('removeEventListener') |
| 22023 @DomName('TextTrackCue.removeEventListener') | 22023 @DomName('TextTrackCue.removeEventListener') |
| 22024 @DocsEditable | 22024 @DocsEditable() |
| 22025 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 22025 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 22026 | 22026 |
| 22027 @DomName('TextTrackCue.onenter') | 22027 @DomName('TextTrackCue.onenter') |
| 22028 @DocsEditable | 22028 @DocsEditable() |
| 22029 Stream<Event> get onEnter => enterEvent.forTarget(this); | 22029 Stream<Event> get onEnter => enterEvent.forTarget(this); |
| 22030 | 22030 |
| 22031 @DomName('TextTrackCue.onexit') | 22031 @DomName('TextTrackCue.onexit') |
| 22032 @DocsEditable | 22032 @DocsEditable() |
| 22033 Stream<Event> get onExit => exitEvent.forTarget(this); | 22033 Stream<Event> get onExit => exitEvent.forTarget(this); |
| 22034 } | 22034 } |
| 22035 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22035 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22036 // for details. All rights reserved. Use of this source code is governed by a | 22036 // for details. All rights reserved. Use of this source code is governed by a |
| 22037 // BSD-style license that can be found in the LICENSE file. | 22037 // BSD-style license that can be found in the LICENSE file. |
| 22038 | 22038 |
| 22039 | 22039 |
| 22040 @DocsEditable | 22040 @DocsEditable() |
| 22041 @DomName('TextTrackCueList') | 22041 @DomName('TextTrackCueList') |
| 22042 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element
.html#texttrackcuelist | 22042 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element
.html#texttrackcuelist |
| 22043 @Experimental | 22043 @Experimental() |
| 22044 class TextTrackCueList extends Interceptor with ListMixin<TextTrackCue>, Immutab
leListMixin<TextTrackCue> implements List<TextTrackCue>, JavaScriptIndexingBehav
ior native "TextTrackCueList" { | 22044 class TextTrackCueList extends Interceptor with ListMixin<TextTrackCue>, Immutab
leListMixin<TextTrackCue> implements List<TextTrackCue>, JavaScriptIndexingBehav
ior native "TextTrackCueList" { |
| 22045 | 22045 |
| 22046 @DomName('TextTrackCueList.length') | 22046 @DomName('TextTrackCueList.length') |
| 22047 @DocsEditable | 22047 @DocsEditable() |
| 22048 int get length => JS("int", "#.length", this); | 22048 int get length => JS("int", "#.length", this); |
| 22049 | 22049 |
| 22050 TextTrackCue operator[](int index) { | 22050 TextTrackCue operator[](int index) { |
| 22051 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 22051 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 22052 index, index, length)) | 22052 index, index, length)) |
| 22053 throw new RangeError.range(index, 0, length); | 22053 throw new RangeError.range(index, 0, length); |
| 22054 return JS("TextTrackCue", "#[#]", this, index); | 22054 return JS("TextTrackCue", "#[#]", this, index); |
| 22055 } | 22055 } |
| 22056 void operator[]=(int index, TextTrackCue value) { | 22056 void operator[]=(int index, TextTrackCue value) { |
| 22057 throw new UnsupportedError("Cannot assign element of immutable List."); | 22057 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 22085 return JS('TextTrackCue', '#[0]', this); | 22085 return JS('TextTrackCue', '#[0]', this); |
| 22086 } | 22086 } |
| 22087 if (len == 0) throw new StateError("No elements"); | 22087 if (len == 0) throw new StateError("No elements"); |
| 22088 throw new StateError("More than one element"); | 22088 throw new StateError("More than one element"); |
| 22089 } | 22089 } |
| 22090 | 22090 |
| 22091 TextTrackCue elementAt(int index) => this[index]; | 22091 TextTrackCue elementAt(int index) => this[index]; |
| 22092 // -- end List<TextTrackCue> mixins. | 22092 // -- end List<TextTrackCue> mixins. |
| 22093 | 22093 |
| 22094 @DomName('TextTrackCueList.getCueById') | 22094 @DomName('TextTrackCueList.getCueById') |
| 22095 @DocsEditable | 22095 @DocsEditable() |
| 22096 TextTrackCue getCueById(String id) native; | 22096 TextTrackCue getCueById(String id) native; |
| 22097 | 22097 |
| 22098 @DomName('TextTrackCueList.item') | 22098 @DomName('TextTrackCueList.item') |
| 22099 @DocsEditable | 22099 @DocsEditable() |
| 22100 TextTrackCue item(int index) native; | 22100 TextTrackCue item(int index) native; |
| 22101 } | 22101 } |
| 22102 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22102 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22103 // for details. All rights reserved. Use of this source code is governed by a | 22103 // for details. All rights reserved. Use of this source code is governed by a |
| 22104 // BSD-style license that can be found in the LICENSE file. | 22104 // BSD-style license that can be found in the LICENSE file. |
| 22105 | 22105 |
| 22106 | 22106 |
| 22107 @DocsEditable | 22107 @DocsEditable() |
| 22108 @DomName('TextTrackList') | 22108 @DomName('TextTrackList') |
| 22109 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element
.html#texttracklist | 22109 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element
.html#texttracklist |
| 22110 @Experimental | 22110 @Experimental() |
| 22111 class TextTrackList extends EventTarget with ListMixin<TextTrack>, ImmutableList
Mixin<TextTrack> implements JavaScriptIndexingBehavior, List<TextTrack> native "
TextTrackList" { | 22111 class TextTrackList extends EventTarget with ListMixin<TextTrack>, ImmutableList
Mixin<TextTrack> implements JavaScriptIndexingBehavior, List<TextTrack> native "
TextTrackList" { |
| 22112 // To suppress missing implicit constructor warnings. | 22112 // To suppress missing implicit constructor warnings. |
| 22113 factory TextTrackList._() { throw new UnsupportedError("Not supported"); } | 22113 factory TextTrackList._() { throw new UnsupportedError("Not supported"); } |
| 22114 | 22114 |
| 22115 @DomName('TextTrackList.addtrackEvent') | 22115 @DomName('TextTrackList.addtrackEvent') |
| 22116 @DocsEditable | 22116 @DocsEditable() |
| 22117 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream
Provider<TrackEvent>('addtrack'); | 22117 static const EventStreamProvider<TrackEvent> addTrackEvent = const EventStream
Provider<TrackEvent>('addtrack'); |
| 22118 | 22118 |
| 22119 @DomName('TextTrackList.length') | 22119 @DomName('TextTrackList.length') |
| 22120 @DocsEditable | 22120 @DocsEditable() |
| 22121 int get length => JS("int", "#.length", this); | 22121 int get length => JS("int", "#.length", this); |
| 22122 | 22122 |
| 22123 TextTrack operator[](int index) { | 22123 TextTrack operator[](int index) { |
| 22124 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 22124 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 22125 index, index, length)) | 22125 index, index, length)) |
| 22126 throw new RangeError.range(index, 0, length); | 22126 throw new RangeError.range(index, 0, length); |
| 22127 return JS("TextTrack", "#[#]", this, index); | 22127 return JS("TextTrack", "#[#]", this, index); |
| 22128 } | 22128 } |
| 22129 void operator[]=(int index, TextTrack value) { | 22129 void operator[]=(int index, TextTrack value) { |
| 22130 throw new UnsupportedError("Cannot assign element of immutable List."); | 22130 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 28 matching lines...) Expand all Loading... |
| 22159 } | 22159 } |
| 22160 if (len == 0) throw new StateError("No elements"); | 22160 if (len == 0) throw new StateError("No elements"); |
| 22161 throw new StateError("More than one element"); | 22161 throw new StateError("More than one element"); |
| 22162 } | 22162 } |
| 22163 | 22163 |
| 22164 TextTrack elementAt(int index) => this[index]; | 22164 TextTrack elementAt(int index) => this[index]; |
| 22165 // -- end List<TextTrack> mixins. | 22165 // -- end List<TextTrack> mixins. |
| 22166 | 22166 |
| 22167 @JSName('addEventListener') | 22167 @JSName('addEventListener') |
| 22168 @DomName('TextTrackList.addEventListener') | 22168 @DomName('TextTrackList.addEventListener') |
| 22169 @DocsEditable | 22169 @DocsEditable() |
| 22170 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 22170 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 22171 | 22171 |
| 22172 @DomName('TextTrackList.dispatchEvent') | 22172 @DomName('TextTrackList.dispatchEvent') |
| 22173 @DocsEditable | 22173 @DocsEditable() |
| 22174 bool dispatchEvent(Event evt) native; | 22174 bool dispatchEvent(Event evt) native; |
| 22175 | 22175 |
| 22176 @DomName('TextTrackList.item') | 22176 @DomName('TextTrackList.item') |
| 22177 @DocsEditable | 22177 @DocsEditable() |
| 22178 TextTrack item(int index) native; | 22178 TextTrack item(int index) native; |
| 22179 | 22179 |
| 22180 @JSName('removeEventListener') | 22180 @JSName('removeEventListener') |
| 22181 @DomName('TextTrackList.removeEventListener') | 22181 @DomName('TextTrackList.removeEventListener') |
| 22182 @DocsEditable | 22182 @DocsEditable() |
| 22183 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 22183 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 22184 | 22184 |
| 22185 @DomName('TextTrackList.onaddtrack') | 22185 @DomName('TextTrackList.onaddtrack') |
| 22186 @DocsEditable | 22186 @DocsEditable() |
| 22187 Stream<TrackEvent> get onAddTrack => addTrackEvent.forTarget(this); | 22187 Stream<TrackEvent> get onAddTrack => addTrackEvent.forTarget(this); |
| 22188 } | 22188 } |
| 22189 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22189 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22190 // for details. All rights reserved. Use of this source code is governed by a | 22190 // for details. All rights reserved. Use of this source code is governed by a |
| 22191 // BSD-style license that can be found in the LICENSE file. | 22191 // BSD-style license that can be found in the LICENSE file. |
| 22192 | 22192 |
| 22193 | 22193 |
| 22194 @DocsEditable | 22194 @DocsEditable() |
| 22195 @DomName('TimeRanges') | 22195 @DomName('TimeRanges') |
| 22196 @Unstable | 22196 @Unstable() |
| 22197 class TimeRanges extends Interceptor native "TimeRanges" { | 22197 class TimeRanges extends Interceptor native "TimeRanges" { |
| 22198 | 22198 |
| 22199 @DomName('TimeRanges.length') | 22199 @DomName('TimeRanges.length') |
| 22200 @DocsEditable | 22200 @DocsEditable() |
| 22201 final int length; | 22201 final int length; |
| 22202 | 22202 |
| 22203 @DomName('TimeRanges.end') | 22203 @DomName('TimeRanges.end') |
| 22204 @DocsEditable | 22204 @DocsEditable() |
| 22205 num end(int index) native; | 22205 num end(int index) native; |
| 22206 | 22206 |
| 22207 @DomName('TimeRanges.start') | 22207 @DomName('TimeRanges.start') |
| 22208 @DocsEditable | 22208 @DocsEditable() |
| 22209 num start(int index) native; | 22209 num start(int index) native; |
| 22210 } | 22210 } |
| 22211 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22211 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22212 // for details. All rights reserved. Use of this source code is governed by a | 22212 // for details. All rights reserved. Use of this source code is governed by a |
| 22213 // BSD-style license that can be found in the LICENSE file. | 22213 // BSD-style license that can be found in the LICENSE file. |
| 22214 | 22214 |
| 22215 // WARNING: Do not edit - generated code. | 22215 // WARNING: Do not edit - generated code. |
| 22216 | 22216 |
| 22217 | 22217 |
| 22218 @DomName('TimeoutHandler') | 22218 @DomName('TimeoutHandler') |
| 22219 typedef void TimeoutHandler(); | 22219 typedef void TimeoutHandler(); |
| 22220 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22220 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22221 // for details. All rights reserved. Use of this source code is governed by a | 22221 // for details. All rights reserved. Use of this source code is governed by a |
| 22222 // BSD-style license that can be found in the LICENSE file. | 22222 // BSD-style license that can be found in the LICENSE file. |
| 22223 | 22223 |
| 22224 | 22224 |
| 22225 @DocsEditable | 22225 @DocsEditable() |
| 22226 @DomName('HTMLTitleElement') | 22226 @DomName('HTMLTitleElement') |
| 22227 class TitleElement extends _HTMLElement native "HTMLTitleElement" { | 22227 class TitleElement extends _HTMLElement native "HTMLTitleElement" { |
| 22228 // To suppress missing implicit constructor warnings. | 22228 // To suppress missing implicit constructor warnings. |
| 22229 factory TitleElement._() { throw new UnsupportedError("Not supported"); } | 22229 factory TitleElement._() { throw new UnsupportedError("Not supported"); } |
| 22230 | 22230 |
| 22231 @DomName('HTMLTitleElement.HTMLTitleElement') | 22231 @DomName('HTMLTitleElement.HTMLTitleElement') |
| 22232 @DocsEditable | 22232 @DocsEditable() |
| 22233 factory TitleElement() => document.$dom_createElement("title"); | 22233 factory TitleElement() => document.$dom_createElement("title"); |
| 22234 } | 22234 } |
| 22235 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22235 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22236 // for details. All rights reserved. Use of this source code is governed by a | 22236 // for details. All rights reserved. Use of this source code is governed by a |
| 22237 // BSD-style license that can be found in the LICENSE file. | 22237 // BSD-style license that can be found in the LICENSE file. |
| 22238 | 22238 |
| 22239 | 22239 |
| 22240 @DocsEditable | 22240 @DocsEditable() |
| 22241 @DomName('Touch') | 22241 @DomName('Touch') |
| 22242 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 22242 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 22243 @Experimental | 22243 @Experimental() |
| 22244 class Touch extends Interceptor native "Touch" { | 22244 class Touch extends Interceptor native "Touch" { |
| 22245 | 22245 |
| 22246 @JSName('clientX') | 22246 @JSName('clientX') |
| 22247 @DomName('Touch.clientX') | 22247 @DomName('Touch.clientX') |
| 22248 @DocsEditable | 22248 @DocsEditable() |
| 22249 final int $dom_clientX; | 22249 final int $dom_clientX; |
| 22250 | 22250 |
| 22251 @JSName('clientY') | 22251 @JSName('clientY') |
| 22252 @DomName('Touch.clientY') | 22252 @DomName('Touch.clientY') |
| 22253 @DocsEditable | 22253 @DocsEditable() |
| 22254 final int $dom_clientY; | 22254 final int $dom_clientY; |
| 22255 | 22255 |
| 22256 @DomName('Touch.identifier') | 22256 @DomName('Touch.identifier') |
| 22257 @DocsEditable | 22257 @DocsEditable() |
| 22258 final int identifier; | 22258 final int identifier; |
| 22259 | 22259 |
| 22260 @JSName('pageX') | 22260 @JSName('pageX') |
| 22261 @DomName('Touch.pageX') | 22261 @DomName('Touch.pageX') |
| 22262 @DocsEditable | 22262 @DocsEditable() |
| 22263 final int $dom_pageX; | 22263 final int $dom_pageX; |
| 22264 | 22264 |
| 22265 @JSName('pageY') | 22265 @JSName('pageY') |
| 22266 @DomName('Touch.pageY') | 22266 @DomName('Touch.pageY') |
| 22267 @DocsEditable | 22267 @DocsEditable() |
| 22268 final int $dom_pageY; | 22268 final int $dom_pageY; |
| 22269 | 22269 |
| 22270 @JSName('screenX') | 22270 @JSName('screenX') |
| 22271 @DomName('Touch.screenX') | 22271 @DomName('Touch.screenX') |
| 22272 @DocsEditable | 22272 @DocsEditable() |
| 22273 final int $dom_screenX; | 22273 final int $dom_screenX; |
| 22274 | 22274 |
| 22275 @JSName('screenY') | 22275 @JSName('screenY') |
| 22276 @DomName('Touch.screenY') | 22276 @DomName('Touch.screenY') |
| 22277 @DocsEditable | 22277 @DocsEditable() |
| 22278 final int $dom_screenY; | 22278 final int $dom_screenY; |
| 22279 | 22279 |
| 22280 EventTarget get target => _convertNativeToDart_EventTarget(this._get_target); | 22280 EventTarget get target => _convertNativeToDart_EventTarget(this._get_target); |
| 22281 @JSName('target') | 22281 @JSName('target') |
| 22282 @DomName('Touch.target') | 22282 @DomName('Touch.target') |
| 22283 @DocsEditable | 22283 @DocsEditable() |
| 22284 @Creates('Element|Document') | 22284 @Creates('Element|Document') |
| 22285 @Returns('Element|Document') | 22285 @Returns('Element|Document') |
| 22286 final dynamic _get_target; | 22286 final dynamic _get_target; |
| 22287 | 22287 |
| 22288 @JSName('webkitForce') | 22288 @JSName('webkitForce') |
| 22289 @DomName('Touch.webkitForce') | 22289 @DomName('Touch.webkitForce') |
| 22290 @DocsEditable | 22290 @DocsEditable() |
| 22291 @SupportedBrowser(SupportedBrowser.CHROME) | 22291 @SupportedBrowser(SupportedBrowser.CHROME) |
| 22292 @SupportedBrowser(SupportedBrowser.SAFARI) | 22292 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 22293 @Experimental | 22293 @Experimental() |
| 22294 final num force; | 22294 final num force; |
| 22295 | 22295 |
| 22296 @JSName('webkitRadiusX') | 22296 @JSName('webkitRadiusX') |
| 22297 @DomName('Touch.webkitRadiusX') | 22297 @DomName('Touch.webkitRadiusX') |
| 22298 @DocsEditable | 22298 @DocsEditable() |
| 22299 @SupportedBrowser(SupportedBrowser.CHROME) | 22299 @SupportedBrowser(SupportedBrowser.CHROME) |
| 22300 @SupportedBrowser(SupportedBrowser.SAFARI) | 22300 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 22301 @Experimental | 22301 @Experimental() |
| 22302 final int radiusX; | 22302 final int radiusX; |
| 22303 | 22303 |
| 22304 @JSName('webkitRadiusY') | 22304 @JSName('webkitRadiusY') |
| 22305 @DomName('Touch.webkitRadiusY') | 22305 @DomName('Touch.webkitRadiusY') |
| 22306 @DocsEditable | 22306 @DocsEditable() |
| 22307 @SupportedBrowser(SupportedBrowser.CHROME) | 22307 @SupportedBrowser(SupportedBrowser.CHROME) |
| 22308 @SupportedBrowser(SupportedBrowser.SAFARI) | 22308 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 22309 @Experimental | 22309 @Experimental() |
| 22310 final int radiusY; | 22310 final int radiusY; |
| 22311 | 22311 |
| 22312 @JSName('webkitRotationAngle') | 22312 @JSName('webkitRotationAngle') |
| 22313 @DomName('Touch.webkitRotationAngle') | 22313 @DomName('Touch.webkitRotationAngle') |
| 22314 @DocsEditable | 22314 @DocsEditable() |
| 22315 @SupportedBrowser(SupportedBrowser.CHROME) | 22315 @SupportedBrowser(SupportedBrowser.CHROME) |
| 22316 @SupportedBrowser(SupportedBrowser.SAFARI) | 22316 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 22317 @Experimental | 22317 @Experimental() |
| 22318 final num rotationAngle; | 22318 final num rotationAngle; |
| 22319 | 22319 |
| 22320 | 22320 |
| 22321 @DomName('Touch.clientX') | 22321 @DomName('Touch.clientX') |
| 22322 @DomName('Touch.clientY') | 22322 @DomName('Touch.clientY') |
| 22323 Point get client => new Point($dom_clientX, $dom_clientY); | 22323 Point get client => new Point($dom_clientX, $dom_clientY); |
| 22324 | 22324 |
| 22325 @DomName('Touch.pageX') | 22325 @DomName('Touch.pageX') |
| 22326 @DomName('Touch.pageY') | 22326 @DomName('Touch.pageY') |
| 22327 Point get page => new Point($dom_pageX, $dom_pageY); | 22327 Point get page => new Point($dom_pageX, $dom_pageY); |
| 22328 | 22328 |
| 22329 @DomName('Touch.screenX') | 22329 @DomName('Touch.screenX') |
| 22330 @DomName('Touch.screenY') | 22330 @DomName('Touch.screenY') |
| 22331 Point get screen => new Point($dom_screenX, $dom_screenY); | 22331 Point get screen => new Point($dom_screenX, $dom_screenY); |
| 22332 } | 22332 } |
| 22333 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 22333 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 22334 // for details. All rights reserved. Use of this source code is governed by a | 22334 // for details. All rights reserved. Use of this source code is governed by a |
| 22335 // BSD-style license that can be found in the LICENSE file. | 22335 // BSD-style license that can be found in the LICENSE file. |
| 22336 | 22336 |
| 22337 // WARNING: Do not edit - generated code. | 22337 // WARNING: Do not edit - generated code. |
| 22338 | 22338 |
| 22339 | 22339 |
| 22340 @DomName('TouchEvent') | 22340 @DomName('TouchEvent') |
| 22341 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 22341 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 22342 @Experimental | 22342 @Experimental() |
| 22343 class TouchEvent extends UIEvent native "TouchEvent" { | 22343 class TouchEvent extends UIEvent native "TouchEvent" { |
| 22344 factory TouchEvent(TouchList touches, TouchList targetTouches, | 22344 factory TouchEvent(TouchList touches, TouchList targetTouches, |
| 22345 TouchList changedTouches, String type, | 22345 TouchList changedTouches, String type, |
| 22346 {Window view, int screenX: 0, int screenY: 0, int clientX: 0, | 22346 {Window view, int screenX: 0, int screenY: 0, int clientX: 0, |
| 22347 int clientY: 0, bool ctrlKey: false, bool altKey: false, | 22347 int clientY: 0, bool ctrlKey: false, bool altKey: false, |
| 22348 bool shiftKey: false, bool metaKey: false}) { | 22348 bool shiftKey: false, bool metaKey: false}) { |
| 22349 if (view == null) { | 22349 if (view == null) { |
| 22350 view = window; | 22350 view = window; |
| 22351 } | 22351 } |
| 22352 var e = document.$dom_createEvent("TouchEvent"); | 22352 var e = document.$dom_createEvent("TouchEvent"); |
| 22353 e.$dom_initTouchEvent(touches, targetTouches, changedTouches, type, view, | 22353 e.$dom_initTouchEvent(touches, targetTouches, changedTouches, type, view, |
| 22354 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey); | 22354 screenX, screenY, clientX, clientY, ctrlKey, altKey, shiftKey, metaKey); |
| 22355 return e; | 22355 return e; |
| 22356 } | 22356 } |
| 22357 // To suppress missing implicit constructor warnings. | 22357 // To suppress missing implicit constructor warnings. |
| 22358 factory TouchEvent._() { throw new UnsupportedError("Not supported"); } | 22358 factory TouchEvent._() { throw new UnsupportedError("Not supported"); } |
| 22359 | 22359 |
| 22360 @DomName('TouchEvent.altKey') | 22360 @DomName('TouchEvent.altKey') |
| 22361 @DocsEditable | 22361 @DocsEditable() |
| 22362 final bool altKey; | 22362 final bool altKey; |
| 22363 | 22363 |
| 22364 @DomName('TouchEvent.changedTouches') | 22364 @DomName('TouchEvent.changedTouches') |
| 22365 @DocsEditable | 22365 @DocsEditable() |
| 22366 final TouchList changedTouches; | 22366 final TouchList changedTouches; |
| 22367 | 22367 |
| 22368 @DomName('TouchEvent.ctrlKey') | 22368 @DomName('TouchEvent.ctrlKey') |
| 22369 @DocsEditable | 22369 @DocsEditable() |
| 22370 final bool ctrlKey; | 22370 final bool ctrlKey; |
| 22371 | 22371 |
| 22372 @DomName('TouchEvent.metaKey') | 22372 @DomName('TouchEvent.metaKey') |
| 22373 @DocsEditable | 22373 @DocsEditable() |
| 22374 final bool metaKey; | 22374 final bool metaKey; |
| 22375 | 22375 |
| 22376 @DomName('TouchEvent.shiftKey') | 22376 @DomName('TouchEvent.shiftKey') |
| 22377 @DocsEditable | 22377 @DocsEditable() |
| 22378 final bool shiftKey; | 22378 final bool shiftKey; |
| 22379 | 22379 |
| 22380 @DomName('TouchEvent.targetTouches') | 22380 @DomName('TouchEvent.targetTouches') |
| 22381 @DocsEditable | 22381 @DocsEditable() |
| 22382 final TouchList targetTouches; | 22382 final TouchList targetTouches; |
| 22383 | 22383 |
| 22384 @DomName('TouchEvent.touches') | 22384 @DomName('TouchEvent.touches') |
| 22385 @DocsEditable | 22385 @DocsEditable() |
| 22386 final TouchList touches; | 22386 final TouchList touches; |
| 22387 | 22387 |
| 22388 @JSName('initTouchEvent') | 22388 @JSName('initTouchEvent') |
| 22389 @DomName('TouchEvent.initTouchEvent') | 22389 @DomName('TouchEvent.initTouchEvent') |
| 22390 @DocsEditable | 22390 @DocsEditable() |
| 22391 void $dom_initTouchEvent(TouchList touches, TouchList targetTouches, TouchList
changedTouches, String type, Window view, int screenX, int screenY, int clientX
, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native; | 22391 void $dom_initTouchEvent(TouchList touches, TouchList targetTouches, TouchList
changedTouches, String type, Window view, int screenX, int screenY, int clientX
, int clientY, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey) native; |
| 22392 | 22392 |
| 22393 | 22393 |
| 22394 /** | 22394 /** |
| 22395 * Checks if touch events supported on the current platform. | 22395 * Checks if touch events supported on the current platform. |
| 22396 * | 22396 * |
| 22397 * Note that touch events are only supported if the user is using a touch | 22397 * Note that touch events are only supported if the user is using a touch |
| 22398 * device. | 22398 * device. |
| 22399 */ | 22399 */ |
| 22400 static bool get supported { | 22400 static bool get supported { |
| 22401 if (JS('bool', '"ontouchstart" in window')) { | 22401 if (JS('bool', '"ontouchstart" in window')) { |
| 22402 return Device.isEventTypeSupported('TouchEvent'); | 22402 return Device.isEventTypeSupported('TouchEvent'); |
| 22403 } | 22403 } |
| 22404 return false; | 22404 return false; |
| 22405 } | 22405 } |
| 22406 } | 22406 } |
| 22407 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 22407 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 22408 // for details. All rights reserved. Use of this source code is governed by a | 22408 // for details. All rights reserved. Use of this source code is governed by a |
| 22409 // BSD-style license that can be found in the LICENSE file. | 22409 // BSD-style license that can be found in the LICENSE file. |
| 22410 | 22410 |
| 22411 // WARNING: Do not edit - generated code. | 22411 // WARNING: Do not edit - generated code. |
| 22412 | 22412 |
| 22413 | 22413 |
| 22414 @DomName('TouchList') | 22414 @DomName('TouchList') |
| 22415 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 22415 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 22416 @Experimental | 22416 @Experimental() |
| 22417 class TouchList extends Interceptor with ListMixin<Touch>, ImmutableListMixin<To
uch> implements JavaScriptIndexingBehavior, List<Touch> native "TouchList" { | 22417 class TouchList extends Interceptor with ListMixin<Touch>, ImmutableListMixin<To
uch> implements JavaScriptIndexingBehavior, List<Touch> native "TouchList" { |
| 22418 /// NB: This constructor likely does not work as you might expect it to! This | 22418 /// NB: This constructor likely does not work as you might expect it to! This |
| 22419 /// constructor will simply fail (returning null) if you are not on a device | 22419 /// constructor will simply fail (returning null) if you are not on a device |
| 22420 /// with touch enabled. See dartbug.com/8314. | 22420 /// with touch enabled. See dartbug.com/8314. |
| 22421 factory TouchList() => document.$dom_createTouchList(); | 22421 factory TouchList() => document.$dom_createTouchList(); |
| 22422 | 22422 |
| 22423 /// Checks if this type is supported on the current platform. | 22423 /// Checks if this type is supported on the current platform. |
| 22424 static bool get supported => JS('bool', '!!document.createTouchList'); | 22424 static bool get supported => JS('bool', '!!document.createTouchList'); |
| 22425 | 22425 |
| 22426 @DomName('TouchList.length') | 22426 @DomName('TouchList.length') |
| 22427 @DocsEditable | 22427 @DocsEditable() |
| 22428 int get length => JS("int", "#.length", this); | 22428 int get length => JS("int", "#.length", this); |
| 22429 | 22429 |
| 22430 Touch operator[](int index) { | 22430 Touch operator[](int index) { |
| 22431 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 22431 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 22432 index, index, length)) | 22432 index, index, length)) |
| 22433 throw new RangeError.range(index, 0, length); | 22433 throw new RangeError.range(index, 0, length); |
| 22434 return JS("Touch", "#[#]", this, index); | 22434 return JS("Touch", "#[#]", this, index); |
| 22435 } | 22435 } |
| 22436 void operator[]=(int index, Touch value) { | 22436 void operator[]=(int index, Touch value) { |
| 22437 throw new UnsupportedError("Cannot assign element of immutable List."); | 22437 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 22465 return JS('Touch', '#[0]', this); | 22465 return JS('Touch', '#[0]', this); |
| 22466 } | 22466 } |
| 22467 if (len == 0) throw new StateError("No elements"); | 22467 if (len == 0) throw new StateError("No elements"); |
| 22468 throw new StateError("More than one element"); | 22468 throw new StateError("More than one element"); |
| 22469 } | 22469 } |
| 22470 | 22470 |
| 22471 Touch elementAt(int index) => this[index]; | 22471 Touch elementAt(int index) => this[index]; |
| 22472 // -- end List<Touch> mixins. | 22472 // -- end List<Touch> mixins. |
| 22473 | 22473 |
| 22474 @DomName('TouchList.item') | 22474 @DomName('TouchList.item') |
| 22475 @DocsEditable | 22475 @DocsEditable() |
| 22476 Touch item(int index) native; | 22476 Touch item(int index) native; |
| 22477 | 22477 |
| 22478 } | 22478 } |
| 22479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22479 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22480 // for details. All rights reserved. Use of this source code is governed by a | 22480 // for details. All rights reserved. Use of this source code is governed by a |
| 22481 // BSD-style license that can be found in the LICENSE file. | 22481 // BSD-style license that can be found in the LICENSE file. |
| 22482 | 22482 |
| 22483 | 22483 |
| 22484 @DocsEditable | 22484 @DocsEditable() |
| 22485 @DomName('HTMLTrackElement') | 22485 @DomName('HTMLTrackElement') |
| 22486 @SupportedBrowser(SupportedBrowser.CHROME) | 22486 @SupportedBrowser(SupportedBrowser.CHROME) |
| 22487 @SupportedBrowser(SupportedBrowser.IE, '10') | 22487 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 22488 @SupportedBrowser(SupportedBrowser.SAFARI) | 22488 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 22489 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element
.html#the-track-element | 22489 // http://www.whatwg.org/specs/web-apps/current-work/multipage/the-video-element
.html#the-track-element |
| 22490 @Experimental | 22490 @Experimental() |
| 22491 class TrackElement extends _HTMLElement native "HTMLTrackElement" { | 22491 class TrackElement extends _HTMLElement native "HTMLTrackElement" { |
| 22492 // To suppress missing implicit constructor warnings. | 22492 // To suppress missing implicit constructor warnings. |
| 22493 factory TrackElement._() { throw new UnsupportedError("Not supported"); } | 22493 factory TrackElement._() { throw new UnsupportedError("Not supported"); } |
| 22494 | 22494 |
| 22495 @DomName('HTMLTrackElement.HTMLTrackElement') | 22495 @DomName('HTMLTrackElement.HTMLTrackElement') |
| 22496 @DocsEditable | 22496 @DocsEditable() |
| 22497 factory TrackElement() => document.$dom_createElement("track"); | 22497 factory TrackElement() => document.$dom_createElement("track"); |
| 22498 | 22498 |
| 22499 /// Checks if this type is supported on the current platform. | 22499 /// Checks if this type is supported on the current platform. |
| 22500 static bool get supported => Element.isTagSupported('track'); | 22500 static bool get supported => Element.isTagSupported('track'); |
| 22501 | 22501 |
| 22502 @DomName('HTMLTrackElement.ERROR') | 22502 @DomName('HTMLTrackElement.ERROR') |
| 22503 @DocsEditable | 22503 @DocsEditable() |
| 22504 static const int ERROR = 3; | 22504 static const int ERROR = 3; |
| 22505 | 22505 |
| 22506 @DomName('HTMLTrackElement.LOADED') | 22506 @DomName('HTMLTrackElement.LOADED') |
| 22507 @DocsEditable | 22507 @DocsEditable() |
| 22508 static const int LOADED = 2; | 22508 static const int LOADED = 2; |
| 22509 | 22509 |
| 22510 @DomName('HTMLTrackElement.LOADING') | 22510 @DomName('HTMLTrackElement.LOADING') |
| 22511 @DocsEditable | 22511 @DocsEditable() |
| 22512 static const int LOADING = 1; | 22512 static const int LOADING = 1; |
| 22513 | 22513 |
| 22514 @DomName('HTMLTrackElement.NONE') | 22514 @DomName('HTMLTrackElement.NONE') |
| 22515 @DocsEditable | 22515 @DocsEditable() |
| 22516 static const int NONE = 0; | 22516 static const int NONE = 0; |
| 22517 | 22517 |
| 22518 @JSName('default') | 22518 @JSName('default') |
| 22519 @DomName('HTMLTrackElement.default') | 22519 @DomName('HTMLTrackElement.default') |
| 22520 @DocsEditable | 22520 @DocsEditable() |
| 22521 bool defaultValue; | 22521 bool defaultValue; |
| 22522 | 22522 |
| 22523 @DomName('HTMLTrackElement.kind') | 22523 @DomName('HTMLTrackElement.kind') |
| 22524 @DocsEditable | 22524 @DocsEditable() |
| 22525 String kind; | 22525 String kind; |
| 22526 | 22526 |
| 22527 @DomName('HTMLTrackElement.label') | 22527 @DomName('HTMLTrackElement.label') |
| 22528 @DocsEditable | 22528 @DocsEditable() |
| 22529 String label; | 22529 String label; |
| 22530 | 22530 |
| 22531 @DomName('HTMLTrackElement.readyState') | 22531 @DomName('HTMLTrackElement.readyState') |
| 22532 @DocsEditable | 22532 @DocsEditable() |
| 22533 final int readyState; | 22533 final int readyState; |
| 22534 | 22534 |
| 22535 @DomName('HTMLTrackElement.src') | 22535 @DomName('HTMLTrackElement.src') |
| 22536 @DocsEditable | 22536 @DocsEditable() |
| 22537 String src; | 22537 String src; |
| 22538 | 22538 |
| 22539 @DomName('HTMLTrackElement.srclang') | 22539 @DomName('HTMLTrackElement.srclang') |
| 22540 @DocsEditable | 22540 @DocsEditable() |
| 22541 String srclang; | 22541 String srclang; |
| 22542 | 22542 |
| 22543 @DomName('HTMLTrackElement.track') | 22543 @DomName('HTMLTrackElement.track') |
| 22544 @DocsEditable | 22544 @DocsEditable() |
| 22545 final TextTrack track; | 22545 final TextTrack track; |
| 22546 } | 22546 } |
| 22547 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22547 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22548 // for details. All rights reserved. Use of this source code is governed by a | 22548 // for details. All rights reserved. Use of this source code is governed by a |
| 22549 // BSD-style license that can be found in the LICENSE file. | 22549 // BSD-style license that can be found in the LICENSE file. |
| 22550 | 22550 |
| 22551 | 22551 |
| 22552 @DocsEditable | 22552 @DocsEditable() |
| 22553 @DomName('TrackEvent') | 22553 @DomName('TrackEvent') |
| 22554 @Unstable | 22554 @Unstable() |
| 22555 class TrackEvent extends Event native "TrackEvent" { | 22555 class TrackEvent extends Event native "TrackEvent" { |
| 22556 // To suppress missing implicit constructor warnings. | 22556 // To suppress missing implicit constructor warnings. |
| 22557 factory TrackEvent._() { throw new UnsupportedError("Not supported"); } | 22557 factory TrackEvent._() { throw new UnsupportedError("Not supported"); } |
| 22558 | 22558 |
| 22559 @DomName('TrackEvent.track') | 22559 @DomName('TrackEvent.track') |
| 22560 @DocsEditable | 22560 @DocsEditable() |
| 22561 @Creates('Null') | 22561 @Creates('Null') |
| 22562 final Object track; | 22562 final Object track; |
| 22563 } | 22563 } |
| 22564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22564 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22565 // for details. All rights reserved. Use of this source code is governed by a | 22565 // for details. All rights reserved. Use of this source code is governed by a |
| 22566 // BSD-style license that can be found in the LICENSE file. | 22566 // BSD-style license that can be found in the LICENSE file. |
| 22567 | 22567 |
| 22568 | 22568 |
| 22569 @DocsEditable | 22569 @DocsEditable() |
| 22570 @DomName('TransitionEvent') | 22570 @DomName('TransitionEvent') |
| 22571 class TransitionEvent extends Event native "TransitionEvent,WebKitTransitionEven
t" { | 22571 class TransitionEvent extends Event native "TransitionEvent,WebKitTransitionEven
t" { |
| 22572 // To suppress missing implicit constructor warnings. | 22572 // To suppress missing implicit constructor warnings. |
| 22573 factory TransitionEvent._() { throw new UnsupportedError("Not supported"); } | 22573 factory TransitionEvent._() { throw new UnsupportedError("Not supported"); } |
| 22574 | 22574 |
| 22575 @DomName('TransitionEvent.elapsedTime') | 22575 @DomName('TransitionEvent.elapsedTime') |
| 22576 @DocsEditable | 22576 @DocsEditable() |
| 22577 final num elapsedTime; | 22577 final num elapsedTime; |
| 22578 | 22578 |
| 22579 @DomName('TransitionEvent.propertyName') | 22579 @DomName('TransitionEvent.propertyName') |
| 22580 @DocsEditable | 22580 @DocsEditable() |
| 22581 final String propertyName; | 22581 final String propertyName; |
| 22582 | 22582 |
| 22583 @DomName('TransitionEvent.pseudoElement') | 22583 @DomName('TransitionEvent.pseudoElement') |
| 22584 @DocsEditable | 22584 @DocsEditable() |
| 22585 final String pseudoElement; | 22585 final String pseudoElement; |
| 22586 } | 22586 } |
| 22587 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 22587 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 22588 // for details. All rights reserved. Use of this source code is governed by a | 22588 // for details. All rights reserved. Use of this source code is governed by a |
| 22589 // BSD-style license that can be found in the LICENSE file. | 22589 // BSD-style license that can be found in the LICENSE file. |
| 22590 | 22590 |
| 22591 | 22591 |
| 22592 @DomName('TreeWalker') | 22592 @DomName('TreeWalker') |
| 22593 @Unstable | 22593 @Unstable() |
| 22594 class TreeWalker extends Interceptor native "TreeWalker" { | 22594 class TreeWalker extends Interceptor native "TreeWalker" { |
| 22595 factory TreeWalker(Node root, int whatToShow) { | 22595 factory TreeWalker(Node root, int whatToShow) { |
| 22596 return document.$dom_createTreeWalker(root, whatToShow, null, false); | 22596 return document.$dom_createTreeWalker(root, whatToShow, null, false); |
| 22597 } | 22597 } |
| 22598 | 22598 |
| 22599 @DomName('TreeWalker.currentNode') | 22599 @DomName('TreeWalker.currentNode') |
| 22600 @DocsEditable | 22600 @DocsEditable() |
| 22601 Node currentNode; | 22601 Node currentNode; |
| 22602 | 22602 |
| 22603 @DomName('TreeWalker.expandEntityReferences') | 22603 @DomName('TreeWalker.expandEntityReferences') |
| 22604 @DocsEditable | 22604 @DocsEditable() |
| 22605 // http://dom.spec.whatwg.org/#dom-traversal | 22605 // http://dom.spec.whatwg.org/#dom-traversal |
| 22606 @deprecated // deprecated | 22606 @deprecated // deprecated |
| 22607 final bool expandEntityReferences; | 22607 final bool expandEntityReferences; |
| 22608 | 22608 |
| 22609 @DomName('TreeWalker.filter') | 22609 @DomName('TreeWalker.filter') |
| 22610 @DocsEditable | 22610 @DocsEditable() |
| 22611 final NodeFilter filter; | 22611 final NodeFilter filter; |
| 22612 | 22612 |
| 22613 @DomName('TreeWalker.root') | 22613 @DomName('TreeWalker.root') |
| 22614 @DocsEditable | 22614 @DocsEditable() |
| 22615 final Node root; | 22615 final Node root; |
| 22616 | 22616 |
| 22617 @DomName('TreeWalker.whatToShow') | 22617 @DomName('TreeWalker.whatToShow') |
| 22618 @DocsEditable | 22618 @DocsEditable() |
| 22619 final int whatToShow; | 22619 final int whatToShow; |
| 22620 | 22620 |
| 22621 @DomName('TreeWalker.firstChild') | 22621 @DomName('TreeWalker.firstChild') |
| 22622 @DocsEditable | 22622 @DocsEditable() |
| 22623 Node firstChild() native; | 22623 Node firstChild() native; |
| 22624 | 22624 |
| 22625 @DomName('TreeWalker.lastChild') | 22625 @DomName('TreeWalker.lastChild') |
| 22626 @DocsEditable | 22626 @DocsEditable() |
| 22627 Node lastChild() native; | 22627 Node lastChild() native; |
| 22628 | 22628 |
| 22629 @DomName('TreeWalker.nextNode') | 22629 @DomName('TreeWalker.nextNode') |
| 22630 @DocsEditable | 22630 @DocsEditable() |
| 22631 Node nextNode() native; | 22631 Node nextNode() native; |
| 22632 | 22632 |
| 22633 @DomName('TreeWalker.nextSibling') | 22633 @DomName('TreeWalker.nextSibling') |
| 22634 @DocsEditable | 22634 @DocsEditable() |
| 22635 Node nextSibling() native; | 22635 Node nextSibling() native; |
| 22636 | 22636 |
| 22637 @DomName('TreeWalker.parentNode') | 22637 @DomName('TreeWalker.parentNode') |
| 22638 @DocsEditable | 22638 @DocsEditable() |
| 22639 Node parentNode() native; | 22639 Node parentNode() native; |
| 22640 | 22640 |
| 22641 @DomName('TreeWalker.previousNode') | 22641 @DomName('TreeWalker.previousNode') |
| 22642 @DocsEditable | 22642 @DocsEditable() |
| 22643 Node previousNode() native; | 22643 Node previousNode() native; |
| 22644 | 22644 |
| 22645 @DomName('TreeWalker.previousSibling') | 22645 @DomName('TreeWalker.previousSibling') |
| 22646 @DocsEditable | 22646 @DocsEditable() |
| 22647 Node previousSibling() native; | 22647 Node previousSibling() native; |
| 22648 | 22648 |
| 22649 } | 22649 } |
| 22650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22650 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22651 // for details. All rights reserved. Use of this source code is governed by a | 22651 // for details. All rights reserved. Use of this source code is governed by a |
| 22652 // BSD-style license that can be found in the LICENSE file. | 22652 // BSD-style license that can be found in the LICENSE file. |
| 22653 | 22653 |
| 22654 // WARNING: Do not edit - generated code. | 22654 // WARNING: Do not edit - generated code. |
| 22655 | 22655 |
| 22656 | 22656 |
| (...skipping 13 matching lines...) Expand all Loading... |
| 22670 } | 22670 } |
| 22671 final e = document.$dom_createEvent("UIEvent"); | 22671 final e = document.$dom_createEvent("UIEvent"); |
| 22672 e.$dom_initUIEvent(type, canBubble, cancelable, view, detail); | 22672 e.$dom_initUIEvent(type, canBubble, cancelable, view, detail); |
| 22673 return e; | 22673 return e; |
| 22674 } | 22674 } |
| 22675 // To suppress missing implicit constructor warnings. | 22675 // To suppress missing implicit constructor warnings. |
| 22676 factory UIEvent._() { throw new UnsupportedError("Not supported"); } | 22676 factory UIEvent._() { throw new UnsupportedError("Not supported"); } |
| 22677 | 22677 |
| 22678 @JSName('charCode') | 22678 @JSName('charCode') |
| 22679 @DomName('UIEvent.charCode') | 22679 @DomName('UIEvent.charCode') |
| 22680 @DocsEditable | 22680 @DocsEditable() |
| 22681 @Unstable | 22681 @Unstable() |
| 22682 final int $dom_charCode; | 22682 final int $dom_charCode; |
| 22683 | 22683 |
| 22684 @DomName('UIEvent.detail') | 22684 @DomName('UIEvent.detail') |
| 22685 @DocsEditable | 22685 @DocsEditable() |
| 22686 final int detail; | 22686 final int detail; |
| 22687 | 22687 |
| 22688 @JSName('keyCode') | 22688 @JSName('keyCode') |
| 22689 @DomName('UIEvent.keyCode') | 22689 @DomName('UIEvent.keyCode') |
| 22690 @DocsEditable | 22690 @DocsEditable() |
| 22691 @Unstable | 22691 @Unstable() |
| 22692 final int $dom_keyCode; | 22692 final int $dom_keyCode; |
| 22693 | 22693 |
| 22694 @JSName('layerX') | 22694 @JSName('layerX') |
| 22695 @DomName('UIEvent.layerX') | 22695 @DomName('UIEvent.layerX') |
| 22696 @DocsEditable | 22696 @DocsEditable() |
| 22697 // http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#even
ts-mouseevents | 22697 // http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#even
ts-mouseevents |
| 22698 @Experimental // nonstandard | 22698 @Experimental() // nonstandard |
| 22699 final int $dom_layerX; | 22699 final int $dom_layerX; |
| 22700 | 22700 |
| 22701 @JSName('layerY') | 22701 @JSName('layerY') |
| 22702 @DomName('UIEvent.layerY') | 22702 @DomName('UIEvent.layerY') |
| 22703 @DocsEditable | 22703 @DocsEditable() |
| 22704 // http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#even
ts-mouseevents | 22704 // http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#even
ts-mouseevents |
| 22705 @Experimental // nonstandard | 22705 @Experimental() // nonstandard |
| 22706 final int $dom_layerY; | 22706 final int $dom_layerY; |
| 22707 | 22707 |
| 22708 @JSName('pageX') | 22708 @JSName('pageX') |
| 22709 @DomName('UIEvent.pageX') | 22709 @DomName('UIEvent.pageX') |
| 22710 @DocsEditable | 22710 @DocsEditable() |
| 22711 // http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#even
ts-mouseevents | 22711 // http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#even
ts-mouseevents |
| 22712 @Experimental // nonstandard | 22712 @Experimental() // nonstandard |
| 22713 final int $dom_pageX; | 22713 final int $dom_pageX; |
| 22714 | 22714 |
| 22715 @JSName('pageY') | 22715 @JSName('pageY') |
| 22716 @DomName('UIEvent.pageY') | 22716 @DomName('UIEvent.pageY') |
| 22717 @DocsEditable | 22717 @DocsEditable() |
| 22718 // http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#even
ts-mouseevents | 22718 // http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html/DOM3-Events.html#even
ts-mouseevents |
| 22719 @Experimental // nonstandard | 22719 @Experimental() // nonstandard |
| 22720 final int $dom_pageY; | 22720 final int $dom_pageY; |
| 22721 | 22721 |
| 22722 WindowBase get view => _convertNativeToDart_Window(this._get_view); | 22722 WindowBase get view => _convertNativeToDart_Window(this._get_view); |
| 22723 @JSName('view') | 22723 @JSName('view') |
| 22724 @DomName('UIEvent.view') | 22724 @DomName('UIEvent.view') |
| 22725 @DocsEditable | 22725 @DocsEditable() |
| 22726 @Creates('Window|=Object') | 22726 @Creates('Window|=Object') |
| 22727 @Returns('Window|=Object') | 22727 @Returns('Window|=Object') |
| 22728 final dynamic _get_view; | 22728 final dynamic _get_view; |
| 22729 | 22729 |
| 22730 @DomName('UIEvent.which') | 22730 @DomName('UIEvent.which') |
| 22731 @DocsEditable | 22731 @DocsEditable() |
| 22732 @Unstable | 22732 @Unstable() |
| 22733 final int which; | 22733 final int which; |
| 22734 | 22734 |
| 22735 @JSName('initUIEvent') | 22735 @JSName('initUIEvent') |
| 22736 @DomName('UIEvent.initUIEvent') | 22736 @DomName('UIEvent.initUIEvent') |
| 22737 @DocsEditable | 22737 @DocsEditable() |
| 22738 void $dom_initUIEvent(String type, bool canBubble, bool cancelable, Window vie
w, int detail) native; | 22738 void $dom_initUIEvent(String type, bool canBubble, bool cancelable, Window vie
w, int detail) native; |
| 22739 | 22739 |
| 22740 | 22740 |
| 22741 @deprecated | 22741 @deprecated |
| 22742 int get layerX => layer.x; | 22742 int get layerX => layer.x; |
| 22743 @deprecated | 22743 @deprecated |
| 22744 int get layerY => layer.y; | 22744 int get layerY => layer.y; |
| 22745 | 22745 |
| 22746 @deprecated | 22746 @deprecated |
| 22747 int get pageX => page.x; | 22747 int get pageX => page.x; |
| 22748 @deprecated | 22748 @deprecated |
| 22749 int get pageY => page.y; | 22749 int get pageY => page.y; |
| 22750 | 22750 |
| 22751 @DomName('UIEvent.layerX') | 22751 @DomName('UIEvent.layerX') |
| 22752 @DomName('UIEvent.layerY') | 22752 @DomName('UIEvent.layerY') |
| 22753 Point get layer => new Point($dom_layerX, $dom_layerY); | 22753 Point get layer => new Point($dom_layerX, $dom_layerY); |
| 22754 | 22754 |
| 22755 @DomName('UIEvent.pageX') | 22755 @DomName('UIEvent.pageX') |
| 22756 @DomName('UIEvent.pageY') | 22756 @DomName('UIEvent.pageY') |
| 22757 Point get page => new Point($dom_pageX, $dom_pageY); | 22757 Point get page => new Point($dom_pageX, $dom_pageY); |
| 22758 } | 22758 } |
| 22759 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22759 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22760 // for details. All rights reserved. Use of this source code is governed by a | 22760 // for details. All rights reserved. Use of this source code is governed by a |
| 22761 // BSD-style license that can be found in the LICENSE file. | 22761 // BSD-style license that can be found in the LICENSE file. |
| 22762 | 22762 |
| 22763 | 22763 |
| 22764 @DocsEditable | 22764 @DocsEditable() |
| 22765 @DomName('HTMLUListElement') | 22765 @DomName('HTMLUListElement') |
| 22766 class UListElement extends _HTMLElement native "HTMLUListElement" { | 22766 class UListElement extends _HTMLElement native "HTMLUListElement" { |
| 22767 // To suppress missing implicit constructor warnings. | 22767 // To suppress missing implicit constructor warnings. |
| 22768 factory UListElement._() { throw new UnsupportedError("Not supported"); } | 22768 factory UListElement._() { throw new UnsupportedError("Not supported"); } |
| 22769 | 22769 |
| 22770 @DomName('HTMLUListElement.HTMLUListElement') | 22770 @DomName('HTMLUListElement.HTMLUListElement') |
| 22771 @DocsEditable | 22771 @DocsEditable() |
| 22772 factory UListElement() => document.$dom_createElement("ul"); | 22772 factory UListElement() => document.$dom_createElement("ul"); |
| 22773 } | 22773 } |
| 22774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22774 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22775 // for details. All rights reserved. Use of this source code is governed by a | 22775 // for details. All rights reserved. Use of this source code is governed by a |
| 22776 // BSD-style license that can be found in the LICENSE file. | 22776 // BSD-style license that can be found in the LICENSE file. |
| 22777 | 22777 |
| 22778 | 22778 |
| 22779 @DocsEditable | 22779 @DocsEditable() |
| 22780 @DomName('HTMLUnknownElement') | 22780 @DomName('HTMLUnknownElement') |
| 22781 class UnknownElement extends _HTMLElement native "HTMLUnknownElement" { | 22781 class UnknownElement extends _HTMLElement native "HTMLUnknownElement" { |
| 22782 // To suppress missing implicit constructor warnings. | 22782 // To suppress missing implicit constructor warnings. |
| 22783 factory UnknownElement._() { throw new UnsupportedError("Not supported"); } | 22783 factory UnknownElement._() { throw new UnsupportedError("Not supported"); } |
| 22784 } | 22784 } |
| 22785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22785 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22786 // for details. All rights reserved. Use of this source code is governed by a | 22786 // for details. All rights reserved. Use of this source code is governed by a |
| 22787 // BSD-style license that can be found in the LICENSE file. | 22787 // BSD-style license that can be found in the LICENSE file. |
| 22788 | 22788 |
| 22789 | 22789 |
| 22790 @DomName('URL') | 22790 @DomName('URL') |
| 22791 class Url extends Interceptor native "URL" { | 22791 class Url extends Interceptor native "URL" { |
| 22792 | 22792 |
| 22793 static String createObjectUrl(blob_OR_source_OR_stream) => | 22793 static String createObjectUrl(blob_OR_source_OR_stream) => |
| 22794 JS('String', | 22794 JS('String', |
| 22795 '(self.URL || self.webkitURL).createObjectURL(#)', | 22795 '(self.URL || self.webkitURL).createObjectURL(#)', |
| 22796 blob_OR_source_OR_stream); | 22796 blob_OR_source_OR_stream); |
| 22797 | 22797 |
| 22798 static void revokeObjectUrl(String url) => | 22798 static void revokeObjectUrl(String url) => |
| 22799 JS('void', | 22799 JS('void', |
| 22800 '(self.URL || self.webkitURL).revokeObjectURL(#)', url); | 22800 '(self.URL || self.webkitURL).revokeObjectURL(#)', url); |
| 22801 | 22801 |
| 22802 } | 22802 } |
| 22803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22804 // for details. All rights reserved. Use of this source code is governed by a | 22804 // for details. All rights reserved. Use of this source code is governed by a |
| 22805 // BSD-style license that can be found in the LICENSE file. | 22805 // BSD-style license that can be found in the LICENSE file. |
| 22806 | 22806 |
| 22807 | 22807 |
| 22808 @DocsEditable | 22808 @DocsEditable() |
| 22809 @DomName('ValidityState') | 22809 @DomName('ValidityState') |
| 22810 class ValidityState extends Interceptor native "ValidityState" { | 22810 class ValidityState extends Interceptor native "ValidityState" { |
| 22811 | 22811 |
| 22812 @DomName('ValidityState.badInput') | 22812 @DomName('ValidityState.badInput') |
| 22813 @DocsEditable | 22813 @DocsEditable() |
| 22814 final bool badInput; | 22814 final bool badInput; |
| 22815 | 22815 |
| 22816 @DomName('ValidityState.customError') | 22816 @DomName('ValidityState.customError') |
| 22817 @DocsEditable | 22817 @DocsEditable() |
| 22818 final bool customError; | 22818 final bool customError; |
| 22819 | 22819 |
| 22820 @DomName('ValidityState.patternMismatch') | 22820 @DomName('ValidityState.patternMismatch') |
| 22821 @DocsEditable | 22821 @DocsEditable() |
| 22822 final bool patternMismatch; | 22822 final bool patternMismatch; |
| 22823 | 22823 |
| 22824 @DomName('ValidityState.rangeOverflow') | 22824 @DomName('ValidityState.rangeOverflow') |
| 22825 @DocsEditable | 22825 @DocsEditable() |
| 22826 final bool rangeOverflow; | 22826 final bool rangeOverflow; |
| 22827 | 22827 |
| 22828 @DomName('ValidityState.rangeUnderflow') | 22828 @DomName('ValidityState.rangeUnderflow') |
| 22829 @DocsEditable | 22829 @DocsEditable() |
| 22830 final bool rangeUnderflow; | 22830 final bool rangeUnderflow; |
| 22831 | 22831 |
| 22832 @DomName('ValidityState.stepMismatch') | 22832 @DomName('ValidityState.stepMismatch') |
| 22833 @DocsEditable | 22833 @DocsEditable() |
| 22834 final bool stepMismatch; | 22834 final bool stepMismatch; |
| 22835 | 22835 |
| 22836 @DomName('ValidityState.tooLong') | 22836 @DomName('ValidityState.tooLong') |
| 22837 @DocsEditable | 22837 @DocsEditable() |
| 22838 final bool tooLong; | 22838 final bool tooLong; |
| 22839 | 22839 |
| 22840 @DomName('ValidityState.typeMismatch') | 22840 @DomName('ValidityState.typeMismatch') |
| 22841 @DocsEditable | 22841 @DocsEditable() |
| 22842 final bool typeMismatch; | 22842 final bool typeMismatch; |
| 22843 | 22843 |
| 22844 @DomName('ValidityState.valid') | 22844 @DomName('ValidityState.valid') |
| 22845 @DocsEditable | 22845 @DocsEditable() |
| 22846 final bool valid; | 22846 final bool valid; |
| 22847 | 22847 |
| 22848 @DomName('ValidityState.valueMissing') | 22848 @DomName('ValidityState.valueMissing') |
| 22849 @DocsEditable | 22849 @DocsEditable() |
| 22850 final bool valueMissing; | 22850 final bool valueMissing; |
| 22851 } | 22851 } |
| 22852 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22852 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22853 // for details. All rights reserved. Use of this source code is governed by a | 22853 // for details. All rights reserved. Use of this source code is governed by a |
| 22854 // BSD-style license that can be found in the LICENSE file. | 22854 // BSD-style license that can be found in the LICENSE file. |
| 22855 | 22855 |
| 22856 | 22856 |
| 22857 @DomName('HTMLVideoElement') | 22857 @DomName('HTMLVideoElement') |
| 22858 class VideoElement extends MediaElement implements CanvasImageSource native "HTM
LVideoElement" { | 22858 class VideoElement extends MediaElement implements CanvasImageSource native "HTM
LVideoElement" { |
| 22859 // To suppress missing implicit constructor warnings. | 22859 // To suppress missing implicit constructor warnings. |
| 22860 factory VideoElement._() { throw new UnsupportedError("Not supported"); } | 22860 factory VideoElement._() { throw new UnsupportedError("Not supported"); } |
| 22861 | 22861 |
| 22862 @DomName('HTMLVideoElement.HTMLVideoElement') | 22862 @DomName('HTMLVideoElement.HTMLVideoElement') |
| 22863 @DocsEditable | 22863 @DocsEditable() |
| 22864 factory VideoElement() => document.$dom_createElement("video"); | 22864 factory VideoElement() => document.$dom_createElement("video"); |
| 22865 | 22865 |
| 22866 @DomName('HTMLVideoElement.height') | 22866 @DomName('HTMLVideoElement.height') |
| 22867 @DocsEditable | 22867 @DocsEditable() |
| 22868 int height; | 22868 int height; |
| 22869 | 22869 |
| 22870 @DomName('HTMLVideoElement.poster') | 22870 @DomName('HTMLVideoElement.poster') |
| 22871 @DocsEditable | 22871 @DocsEditable() |
| 22872 String poster; | 22872 String poster; |
| 22873 | 22873 |
| 22874 @DomName('HTMLVideoElement.videoHeight') | 22874 @DomName('HTMLVideoElement.videoHeight') |
| 22875 @DocsEditable | 22875 @DocsEditable() |
| 22876 final int videoHeight; | 22876 final int videoHeight; |
| 22877 | 22877 |
| 22878 @DomName('HTMLVideoElement.videoWidth') | 22878 @DomName('HTMLVideoElement.videoWidth') |
| 22879 @DocsEditable | 22879 @DocsEditable() |
| 22880 final int videoWidth; | 22880 final int videoWidth; |
| 22881 | 22881 |
| 22882 @JSName('webkitDecodedFrameCount') | 22882 @JSName('webkitDecodedFrameCount') |
| 22883 @DomName('HTMLVideoElement.webkitDecodedFrameCount') | 22883 @DomName('HTMLVideoElement.webkitDecodedFrameCount') |
| 22884 @DocsEditable | 22884 @DocsEditable() |
| 22885 @SupportedBrowser(SupportedBrowser.CHROME) | 22885 @SupportedBrowser(SupportedBrowser.CHROME) |
| 22886 @SupportedBrowser(SupportedBrowser.SAFARI) | 22886 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 22887 @Experimental | 22887 @Experimental() |
| 22888 final int decodedFrameCount; | 22888 final int decodedFrameCount; |
| 22889 | 22889 |
| 22890 @JSName('webkitDisplayingFullscreen') | 22890 @JSName('webkitDisplayingFullscreen') |
| 22891 @DomName('HTMLVideoElement.webkitDisplayingFullscreen') | 22891 @DomName('HTMLVideoElement.webkitDisplayingFullscreen') |
| 22892 @DocsEditable | 22892 @DocsEditable() |
| 22893 @SupportedBrowser(SupportedBrowser.CHROME) | 22893 @SupportedBrowser(SupportedBrowser.CHROME) |
| 22894 @SupportedBrowser(SupportedBrowser.SAFARI) | 22894 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 22895 @Experimental | 22895 @Experimental() |
| 22896 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html | 22896 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html |
| 22897 @deprecated // deprecated | 22897 @deprecated // deprecated |
| 22898 final bool displayingFullscreen; | 22898 final bool displayingFullscreen; |
| 22899 | 22899 |
| 22900 @JSName('webkitDroppedFrameCount') | 22900 @JSName('webkitDroppedFrameCount') |
| 22901 @DomName('HTMLVideoElement.webkitDroppedFrameCount') | 22901 @DomName('HTMLVideoElement.webkitDroppedFrameCount') |
| 22902 @DocsEditable | 22902 @DocsEditable() |
| 22903 @SupportedBrowser(SupportedBrowser.CHROME) | 22903 @SupportedBrowser(SupportedBrowser.CHROME) |
| 22904 @SupportedBrowser(SupportedBrowser.SAFARI) | 22904 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 22905 @Experimental | 22905 @Experimental() |
| 22906 final int droppedFrameCount; | 22906 final int droppedFrameCount; |
| 22907 | 22907 |
| 22908 @JSName('webkitSupportsFullscreen') | 22908 @JSName('webkitSupportsFullscreen') |
| 22909 @DomName('HTMLVideoElement.webkitSupportsFullscreen') | 22909 @DomName('HTMLVideoElement.webkitSupportsFullscreen') |
| 22910 @DocsEditable | 22910 @DocsEditable() |
| 22911 @SupportedBrowser(SupportedBrowser.CHROME) | 22911 @SupportedBrowser(SupportedBrowser.CHROME) |
| 22912 @SupportedBrowser(SupportedBrowser.SAFARI) | 22912 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 22913 @Experimental | 22913 @Experimental() |
| 22914 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html | 22914 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html |
| 22915 @deprecated // deprecated | 22915 @deprecated // deprecated |
| 22916 final bool supportsFullscreen; | 22916 final bool supportsFullscreen; |
| 22917 | 22917 |
| 22918 @DomName('HTMLVideoElement.width') | 22918 @DomName('HTMLVideoElement.width') |
| 22919 @DocsEditable | 22919 @DocsEditable() |
| 22920 int width; | 22920 int width; |
| 22921 | 22921 |
| 22922 @JSName('webkitEnterFullScreen') | 22922 @JSName('webkitEnterFullScreen') |
| 22923 @DomName('HTMLVideoElement.webkitEnterFullScreen') | 22923 @DomName('HTMLVideoElement.webkitEnterFullScreen') |
| 22924 @DocsEditable | 22924 @DocsEditable() |
| 22925 @SupportedBrowser(SupportedBrowser.CHROME) | 22925 @SupportedBrowser(SupportedBrowser.CHROME) |
| 22926 @SupportedBrowser(SupportedBrowser.SAFARI) | 22926 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 22927 @Experimental | 22927 @Experimental() |
| 22928 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html | 22928 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html |
| 22929 @deprecated // deprecated | 22929 @deprecated // deprecated |
| 22930 void enterFullScreen() native; | 22930 void enterFullScreen() native; |
| 22931 | 22931 |
| 22932 @JSName('webkitEnterFullscreen') | 22932 @JSName('webkitEnterFullscreen') |
| 22933 @DomName('HTMLVideoElement.webkitEnterFullscreen') | 22933 @DomName('HTMLVideoElement.webkitEnterFullscreen') |
| 22934 @DocsEditable | 22934 @DocsEditable() |
| 22935 @SupportedBrowser(SupportedBrowser.CHROME) | 22935 @SupportedBrowser(SupportedBrowser.CHROME) |
| 22936 @SupportedBrowser(SupportedBrowser.SAFARI) | 22936 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 22937 @Experimental | 22937 @Experimental() |
| 22938 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html | 22938 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html |
| 22939 void enterFullscreen() native; | 22939 void enterFullscreen() native; |
| 22940 | 22940 |
| 22941 @JSName('webkitExitFullScreen') | 22941 @JSName('webkitExitFullScreen') |
| 22942 @DomName('HTMLVideoElement.webkitExitFullScreen') | 22942 @DomName('HTMLVideoElement.webkitExitFullScreen') |
| 22943 @DocsEditable | 22943 @DocsEditable() |
| 22944 @SupportedBrowser(SupportedBrowser.CHROME) | 22944 @SupportedBrowser(SupportedBrowser.CHROME) |
| 22945 @SupportedBrowser(SupportedBrowser.SAFARI) | 22945 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 22946 @Experimental | 22946 @Experimental() |
| 22947 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-document-e
xitfullscreen | 22947 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-document-e
xitfullscreen |
| 22948 @deprecated // deprecated | 22948 @deprecated // deprecated |
| 22949 void exitFullScreen() native; | 22949 void exitFullScreen() native; |
| 22950 | 22950 |
| 22951 @JSName('webkitExitFullscreen') | 22951 @JSName('webkitExitFullscreen') |
| 22952 @DomName('HTMLVideoElement.webkitExitFullscreen') | 22952 @DomName('HTMLVideoElement.webkitExitFullscreen') |
| 22953 @DocsEditable | 22953 @DocsEditable() |
| 22954 @SupportedBrowser(SupportedBrowser.CHROME) | 22954 @SupportedBrowser(SupportedBrowser.CHROME) |
| 22955 @SupportedBrowser(SupportedBrowser.SAFARI) | 22955 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 22956 @Experimental | 22956 @Experimental() |
| 22957 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-document-e
xitfullscreen | 22957 // https://dvcs.w3.org/hg/fullscreen/raw-file/tip/Overview.html#dom-document-e
xitfullscreen |
| 22958 void exitFullscreen() native; | 22958 void exitFullscreen() native; |
| 22959 | 22959 |
| 22960 } | 22960 } |
| 22961 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22961 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22962 // for details. All rights reserved. Use of this source code is governed by a | 22962 // for details. All rights reserved. Use of this source code is governed by a |
| 22963 // BSD-style license that can be found in the LICENSE file. | 22963 // BSD-style license that can be found in the LICENSE file. |
| 22964 | 22964 |
| 22965 // WARNING: Do not edit - generated code. | 22965 // WARNING: Do not edit - generated code. |
| 22966 | 22966 |
| 22967 | 22967 |
| 22968 @DomName('VoidCallback') | 22968 @DomName('VoidCallback') |
| 22969 // http://www.w3.org/TR/file-system-api/#the-voidcallback-interface | 22969 // http://www.w3.org/TR/file-system-api/#the-voidcallback-interface |
| 22970 @Experimental | 22970 @Experimental() |
| 22971 typedef void VoidCallback(); | 22971 typedef void VoidCallback(); |
| 22972 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 22972 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 22973 // for details. All rights reserved. Use of this source code is governed by a | 22973 // for details. All rights reserved. Use of this source code is governed by a |
| 22974 // BSD-style license that can be found in the LICENSE file. | 22974 // BSD-style license that can be found in the LICENSE file. |
| 22975 | 22975 |
| 22976 | 22976 |
| 22977 @DocsEditable | 22977 @DocsEditable() |
| 22978 /** | 22978 /** |
| 22979 * Use the WebSocket interface to connect to a WebSocket, | 22979 * Use the WebSocket interface to connect to a WebSocket, |
| 22980 * and to send and receive data on that WebSocket. | 22980 * and to send and receive data on that WebSocket. |
| 22981 * | 22981 * |
| 22982 * To use a WebSocket in your web app, first create a WebSocket object, | 22982 * To use a WebSocket in your web app, first create a WebSocket object, |
| 22983 * passing the WebSocket URL as an argument to the constructor. | 22983 * passing the WebSocket URL as an argument to the constructor. |
| 22984 * | 22984 * |
| 22985 * var webSocket = new WebSocket('ws://127.0.0.1:1337/ws'); | 22985 * var webSocket = new WebSocket('ws://127.0.0.1:1337/ws'); |
| 22986 * | 22986 * |
| 22987 * To send data on the WebSocket, use the [send] method. | 22987 * To send data on the WebSocket, use the [send] method. |
| (...skipping 19 matching lines...) Expand all Loading... |
| 23007 * [WebSockets](http://www.dartlang.org/docs/library-tour/#html-websockets) | 23007 * [WebSockets](http://www.dartlang.org/docs/library-tour/#html-websockets) |
| 23008 * section of the library tour and | 23008 * section of the library tour and |
| 23009 * [Introducing WebSockets](http://www.html5rocks.com/en/tutorials/websockets/ba
sics/), | 23009 * [Introducing WebSockets](http://www.html5rocks.com/en/tutorials/websockets/ba
sics/), |
| 23010 * an HTML5Rocks.com tutorial. | 23010 * an HTML5Rocks.com tutorial. |
| 23011 */ | 23011 */ |
| 23012 @DomName('WebSocket') | 23012 @DomName('WebSocket') |
| 23013 @SupportedBrowser(SupportedBrowser.CHROME) | 23013 @SupportedBrowser(SupportedBrowser.CHROME) |
| 23014 @SupportedBrowser(SupportedBrowser.FIREFOX) | 23014 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 23015 @SupportedBrowser(SupportedBrowser.IE, '10') | 23015 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 23016 @SupportedBrowser(SupportedBrowser.SAFARI) | 23016 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 23017 @Unstable | 23017 @Unstable() |
| 23018 class WebSocket extends EventTarget native "WebSocket" { | 23018 class WebSocket extends EventTarget native "WebSocket" { |
| 23019 // To suppress missing implicit constructor warnings. | 23019 // To suppress missing implicit constructor warnings. |
| 23020 factory WebSocket._() { throw new UnsupportedError("Not supported"); } | 23020 factory WebSocket._() { throw new UnsupportedError("Not supported"); } |
| 23021 | 23021 |
| 23022 @DomName('WebSocket.closeEvent') | 23022 @DomName('WebSocket.closeEvent') |
| 23023 @DocsEditable | 23023 @DocsEditable() |
| 23024 static const EventStreamProvider<CloseEvent> closeEvent = const EventStreamPro
vider<CloseEvent>('close'); | 23024 static const EventStreamProvider<CloseEvent> closeEvent = const EventStreamPro
vider<CloseEvent>('close'); |
| 23025 | 23025 |
| 23026 @DomName('WebSocket.errorEvent') | 23026 @DomName('WebSocket.errorEvent') |
| 23027 @DocsEditable | 23027 @DocsEditable() |
| 23028 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); | 23028 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider
<Event>('error'); |
| 23029 | 23029 |
| 23030 @DomName('WebSocket.messageEvent') | 23030 @DomName('WebSocket.messageEvent') |
| 23031 @DocsEditable | 23031 @DocsEditable() |
| 23032 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea
mProvider<MessageEvent>('message'); | 23032 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea
mProvider<MessageEvent>('message'); |
| 23033 | 23033 |
| 23034 @DomName('WebSocket.openEvent') | 23034 @DomName('WebSocket.openEvent') |
| 23035 @DocsEditable | 23035 @DocsEditable() |
| 23036 static const EventStreamProvider<Event> openEvent = const EventStreamProvider<
Event>('open'); | 23036 static const EventStreamProvider<Event> openEvent = const EventStreamProvider<
Event>('open'); |
| 23037 | 23037 |
| 23038 @DomName('WebSocket.WebSocket') | 23038 @DomName('WebSocket.WebSocket') |
| 23039 @DocsEditable | 23039 @DocsEditable() |
| 23040 factory WebSocket(String url, [protocol_OR_protocols]) { | 23040 factory WebSocket(String url, [protocol_OR_protocols]) { |
| 23041 if ((url is String || url == null) && protocol_OR_protocols == null) { | 23041 if ((url is String || url == null) && protocol_OR_protocols == null) { |
| 23042 return WebSocket._create_1(url); | 23042 return WebSocket._create_1(url); |
| 23043 } | 23043 } |
| 23044 if ((protocol_OR_protocols is List<String> || protocol_OR_protocols == null)
&& (url is String || url == null)) { | 23044 if ((protocol_OR_protocols is List<String> || protocol_OR_protocols == null)
&& (url is String || url == null)) { |
| 23045 return WebSocket._create_2(url, protocol_OR_protocols); | 23045 return WebSocket._create_2(url, protocol_OR_protocols); |
| 23046 } | 23046 } |
| 23047 if ((protocol_OR_protocols is String || protocol_OR_protocols == null) && (u
rl is String || url == null)) { | 23047 if ((protocol_OR_protocols is String || protocol_OR_protocols == null) && (u
rl is String || url == null)) { |
| 23048 return WebSocket._create_3(url, protocol_OR_protocols); | 23048 return WebSocket._create_3(url, protocol_OR_protocols); |
| 23049 } | 23049 } |
| 23050 throw new ArgumentError("Incorrect number or type of arguments"); | 23050 throw new ArgumentError("Incorrect number or type of arguments"); |
| 23051 } | 23051 } |
| 23052 static WebSocket _create_1(url) => JS('WebSocket', 'new WebSocket(#)', url); | 23052 static WebSocket _create_1(url) => JS('WebSocket', 'new WebSocket(#)', url); |
| 23053 static WebSocket _create_2(url, protocol_OR_protocols) => JS('WebSocket', 'new
WebSocket(#,#)', url, protocol_OR_protocols); | 23053 static WebSocket _create_2(url, protocol_OR_protocols) => JS('WebSocket', 'new
WebSocket(#,#)', url, protocol_OR_protocols); |
| 23054 static WebSocket _create_3(url, protocol_OR_protocols) => JS('WebSocket', 'new
WebSocket(#,#)', url, protocol_OR_protocols); | 23054 static WebSocket _create_3(url, protocol_OR_protocols) => JS('WebSocket', 'new
WebSocket(#,#)', url, protocol_OR_protocols); |
| 23055 | 23055 |
| 23056 /// Checks if this type is supported on the current platform. | 23056 /// Checks if this type is supported on the current platform. |
| 23057 static bool get supported => JS('bool', 'typeof window.WebSocket != "undefined
"'); | 23057 static bool get supported => JS('bool', 'typeof window.WebSocket != "undefined
"'); |
| 23058 | 23058 |
| 23059 @DomName('WebSocket.CLOSED') | 23059 @DomName('WebSocket.CLOSED') |
| 23060 @DocsEditable | 23060 @DocsEditable() |
| 23061 static const int CLOSED = 3; | 23061 static const int CLOSED = 3; |
| 23062 | 23062 |
| 23063 @DomName('WebSocket.CLOSING') | 23063 @DomName('WebSocket.CLOSING') |
| 23064 @DocsEditable | 23064 @DocsEditable() |
| 23065 static const int CLOSING = 2; | 23065 static const int CLOSING = 2; |
| 23066 | 23066 |
| 23067 @DomName('WebSocket.CONNECTING') | 23067 @DomName('WebSocket.CONNECTING') |
| 23068 @DocsEditable | 23068 @DocsEditable() |
| 23069 static const int CONNECTING = 0; | 23069 static const int CONNECTING = 0; |
| 23070 | 23070 |
| 23071 @DomName('WebSocket.OPEN') | 23071 @DomName('WebSocket.OPEN') |
| 23072 @DocsEditable | 23072 @DocsEditable() |
| 23073 static const int OPEN = 1; | 23073 static const int OPEN = 1; |
| 23074 | 23074 |
| 23075 @JSName('URL') | 23075 @JSName('URL') |
| 23076 @DomName('WebSocket.URL') | 23076 @DomName('WebSocket.URL') |
| 23077 @DocsEditable | 23077 @DocsEditable() |
| 23078 @deprecated // deprecated | 23078 @deprecated // deprecated |
| 23079 final String Url; | 23079 final String Url; |
| 23080 | 23080 |
| 23081 @DomName('WebSocket.binaryType') | 23081 @DomName('WebSocket.binaryType') |
| 23082 @DocsEditable | 23082 @DocsEditable() |
| 23083 String binaryType; | 23083 String binaryType; |
| 23084 | 23084 |
| 23085 @DomName('WebSocket.bufferedAmount') | 23085 @DomName('WebSocket.bufferedAmount') |
| 23086 @DocsEditable | 23086 @DocsEditable() |
| 23087 final int bufferedAmount; | 23087 final int bufferedAmount; |
| 23088 | 23088 |
| 23089 @DomName('WebSocket.extensions') | 23089 @DomName('WebSocket.extensions') |
| 23090 @DocsEditable | 23090 @DocsEditable() |
| 23091 final String extensions; | 23091 final String extensions; |
| 23092 | 23092 |
| 23093 @DomName('WebSocket.protocol') | 23093 @DomName('WebSocket.protocol') |
| 23094 @DocsEditable | 23094 @DocsEditable() |
| 23095 final String protocol; | 23095 final String protocol; |
| 23096 | 23096 |
| 23097 @DomName('WebSocket.readyState') | 23097 @DomName('WebSocket.readyState') |
| 23098 @DocsEditable | 23098 @DocsEditable() |
| 23099 final int readyState; | 23099 final int readyState; |
| 23100 | 23100 |
| 23101 @DomName('WebSocket.url') | 23101 @DomName('WebSocket.url') |
| 23102 @DocsEditable | 23102 @DocsEditable() |
| 23103 final String url; | 23103 final String url; |
| 23104 | 23104 |
| 23105 @JSName('addEventListener') | 23105 @JSName('addEventListener') |
| 23106 @DomName('WebSocket.addEventListener') | 23106 @DomName('WebSocket.addEventListener') |
| 23107 @DocsEditable | 23107 @DocsEditable() |
| 23108 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 23108 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 23109 | 23109 |
| 23110 @DomName('WebSocket.close') | 23110 @DomName('WebSocket.close') |
| 23111 @DocsEditable | 23111 @DocsEditable() |
| 23112 void close([int code, String reason]) native; | 23112 void close([int code, String reason]) native; |
| 23113 | 23113 |
| 23114 @DomName('WebSocket.dispatchEvent') | 23114 @DomName('WebSocket.dispatchEvent') |
| 23115 @DocsEditable | 23115 @DocsEditable() |
| 23116 bool dispatchEvent(Event evt) native; | 23116 bool dispatchEvent(Event evt) native; |
| 23117 | 23117 |
| 23118 @JSName('removeEventListener') | 23118 @JSName('removeEventListener') |
| 23119 @DomName('WebSocket.removeEventListener') | 23119 @DomName('WebSocket.removeEventListener') |
| 23120 @DocsEditable | 23120 @DocsEditable() |
| 23121 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 23121 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 23122 | 23122 |
| 23123 @DomName('WebSocket.send') | 23123 @DomName('WebSocket.send') |
| 23124 @DocsEditable | 23124 @DocsEditable() |
| 23125 void send(data) native; | 23125 void send(data) native; |
| 23126 | 23126 |
| 23127 @DomName('WebSocket.onclose') | 23127 @DomName('WebSocket.onclose') |
| 23128 @DocsEditable | 23128 @DocsEditable() |
| 23129 Stream<CloseEvent> get onClose => closeEvent.forTarget(this); | 23129 Stream<CloseEvent> get onClose => closeEvent.forTarget(this); |
| 23130 | 23130 |
| 23131 @DomName('WebSocket.onerror') | 23131 @DomName('WebSocket.onerror') |
| 23132 @DocsEditable | 23132 @DocsEditable() |
| 23133 Stream<Event> get onError => errorEvent.forTarget(this); | 23133 Stream<Event> get onError => errorEvent.forTarget(this); |
| 23134 | 23134 |
| 23135 @DomName('WebSocket.onmessage') | 23135 @DomName('WebSocket.onmessage') |
| 23136 @DocsEditable | 23136 @DocsEditable() |
| 23137 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); | 23137 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); |
| 23138 | 23138 |
| 23139 @DomName('WebSocket.onopen') | 23139 @DomName('WebSocket.onopen') |
| 23140 @DocsEditable | 23140 @DocsEditable() |
| 23141 Stream<Event> get onOpen => openEvent.forTarget(this); | 23141 Stream<Event> get onOpen => openEvent.forTarget(this); |
| 23142 } | 23142 } |
| 23143 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 23143 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 23144 // for details. All rights reserved. Use of this source code is governed by a | 23144 // for details. All rights reserved. Use of this source code is governed by a |
| 23145 // BSD-style license that can be found in the LICENSE file. | 23145 // BSD-style license that can be found in the LICENSE file. |
| 23146 | 23146 |
| 23147 | 23147 |
| 23148 @DomName('WheelEvent') | 23148 @DomName('WheelEvent') |
| 23149 class WheelEvent extends MouseEvent native "WheelEvent,MouseWheelEvent,MouseScro
llEvent" { | 23149 class WheelEvent extends MouseEvent native "WheelEvent,MouseWheelEvent,MouseScro
llEvent" { |
| 23150 | 23150 |
| (...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23215 metaKey); | 23215 metaKey); |
| 23216 } | 23216 } |
| 23217 | 23217 |
| 23218 return event; | 23218 return event; |
| 23219 } | 23219 } |
| 23220 | 23220 |
| 23221 // To suppress missing implicit constructor warnings. | 23221 // To suppress missing implicit constructor warnings. |
| 23222 factory WheelEvent._() { throw new UnsupportedError("Not supported"); } | 23222 factory WheelEvent._() { throw new UnsupportedError("Not supported"); } |
| 23223 | 23223 |
| 23224 @DomName('WheelEvent.DOM_DELTA_LINE') | 23224 @DomName('WheelEvent.DOM_DELTA_LINE') |
| 23225 @DocsEditable | 23225 @DocsEditable() |
| 23226 static const int DOM_DELTA_LINE = 0x01; | 23226 static const int DOM_DELTA_LINE = 0x01; |
| 23227 | 23227 |
| 23228 @DomName('WheelEvent.DOM_DELTA_PAGE') | 23228 @DomName('WheelEvent.DOM_DELTA_PAGE') |
| 23229 @DocsEditable | 23229 @DocsEditable() |
| 23230 static const int DOM_DELTA_PAGE = 0x02; | 23230 static const int DOM_DELTA_PAGE = 0x02; |
| 23231 | 23231 |
| 23232 @DomName('WheelEvent.DOM_DELTA_PIXEL') | 23232 @DomName('WheelEvent.DOM_DELTA_PIXEL') |
| 23233 @DocsEditable | 23233 @DocsEditable() |
| 23234 static const int DOM_DELTA_PIXEL = 0x00; | 23234 static const int DOM_DELTA_PIXEL = 0x00; |
| 23235 | 23235 |
| 23236 @JSName('webkitDirectionInvertedFromDevice') | 23236 @JSName('webkitDirectionInvertedFromDevice') |
| 23237 @DomName('WheelEvent.webkitDirectionInvertedFromDevice') | 23237 @DomName('WheelEvent.webkitDirectionInvertedFromDevice') |
| 23238 @DocsEditable | 23238 @DocsEditable() |
| 23239 @SupportedBrowser(SupportedBrowser.CHROME) | 23239 @SupportedBrowser(SupportedBrowser.CHROME) |
| 23240 @SupportedBrowser(SupportedBrowser.SAFARI) | 23240 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 23241 @Experimental | 23241 @Experimental() |
| 23242 final bool directionInvertedFromDevice; | 23242 final bool directionInvertedFromDevice; |
| 23243 | 23243 |
| 23244 @JSName('initWebKitWheelEvent') | 23244 @JSName('initWebKitWheelEvent') |
| 23245 @DomName('WheelEvent.initWebKitWheelEvent') | 23245 @DomName('WheelEvent.initWebKitWheelEvent') |
| 23246 @DocsEditable | 23246 @DocsEditable() |
| 23247 @Experimental | 23247 @Experimental() |
| 23248 void $dom_initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view,
int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, b
ool shiftKey, bool metaKey) native; | 23248 void $dom_initWebKitWheelEvent(int wheelDeltaX, int wheelDeltaY, Window view,
int screenX, int screenY, int clientX, int clientY, bool ctrlKey, bool altKey, b
ool shiftKey, bool metaKey) native; |
| 23249 | 23249 |
| 23250 | 23250 |
| 23251 /** | 23251 /** |
| 23252 * The amount that is expected to scroll vertically, in units determined by | 23252 * The amount that is expected to scroll vertically, in units determined by |
| 23253 * [deltaMode]. | 23253 * [deltaMode]. |
| 23254 * | 23254 * |
| 23255 * See also: | 23255 * See also: |
| 23256 * | 23256 * |
| 23257 * * [WheelEvent.deltaY](http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html
/DOM3-Events.html#events-WheelEvent-deltaY) from the W3C. | 23257 * * [WheelEvent.deltaY](http://dev.w3.org/2006/webapi/DOM-Level-3-Events/html
/DOM3-Events.html#events-WheelEvent-deltaY) from the W3C. |
| (...skipping 316 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 23574 | 23574 |
| 23575 /** | 23575 /** |
| 23576 * Gets an instance of the Indexed DB factory to being using Indexed DB. | 23576 * Gets an instance of the Indexed DB factory to being using Indexed DB. |
| 23577 * | 23577 * |
| 23578 * Use [IdbFactory.supported] to check if Indexed DB is supported on the | 23578 * Use [IdbFactory.supported] to check if Indexed DB is supported on the |
| 23579 * current platform. | 23579 * current platform. |
| 23580 */ | 23580 */ |
| 23581 @SupportedBrowser(SupportedBrowser.CHROME, '23.0') | 23581 @SupportedBrowser(SupportedBrowser.CHROME, '23.0') |
| 23582 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0') | 23582 @SupportedBrowser(SupportedBrowser.FIREFOX, '15.0') |
| 23583 @SupportedBrowser(SupportedBrowser.IE, '10.0') | 23583 @SupportedBrowser(SupportedBrowser.IE, '10.0') |
| 23584 @Experimental | 23584 @Experimental() |
| 23585 IdbFactory get indexedDB => | 23585 IdbFactory get indexedDB => |
| 23586 JS('IdbFactory|Null', // If not supported, returns `null`. | 23586 JS('IdbFactory|Null', // If not supported, returns `null`. |
| 23587 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB', | 23587 '#.indexedDB || #.webkitIndexedDB || #.mozIndexedDB', |
| 23588 this, this, this); | 23588 this, this, this); |
| 23589 | 23589 |
| 23590 @DomName('Window.console') | 23590 @DomName('Window.console') |
| 23591 Console get console => Console._safeConsole; | 23591 Console get console => Console._safeConsole; |
| 23592 | 23592 |
| 23593 /// Checks if _setImmediate is supported. | 23593 /// Checks if _setImmediate is supported. |
| 23594 static bool get _supportsSetImmediate => | 23594 static bool get _supportsSetImmediate => |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23607 * sandboxed file system for use. Because the file system is sandboxed, | 23607 * sandboxed file system for use. Because the file system is sandboxed, |
| 23608 * applications cannot access file systems created in other web pages. | 23608 * applications cannot access file systems created in other web pages. |
| 23609 */ | 23609 */ |
| 23610 Future<FileSystem> requestFileSystem(int size, {bool persistent: false}) { | 23610 Future<FileSystem> requestFileSystem(int size, {bool persistent: false}) { |
| 23611 return _requestFileSystem(persistent? 1 : 0, size); | 23611 return _requestFileSystem(persistent? 1 : 0, size); |
| 23612 } | 23612 } |
| 23613 | 23613 |
| 23614 @DomName('DOMWindow.convertPointFromNodeToPage') | 23614 @DomName('DOMWindow.convertPointFromNodeToPage') |
| 23615 @SupportedBrowser(SupportedBrowser.CHROME) | 23615 @SupportedBrowser(SupportedBrowser.CHROME) |
| 23616 @SupportedBrowser(SupportedBrowser.SAFARI) | 23616 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 23617 @Experimental | 23617 @Experimental() |
| 23618 Point convertPointFromNodeToPage(Node node, Point point) { | 23618 Point convertPointFromNodeToPage(Node node, Point point) { |
| 23619 var result = _convertPointFromNodeToPage(node, | 23619 var result = _convertPointFromNodeToPage(node, |
| 23620 new _DomPoint(point.x, point.y)); | 23620 new _DomPoint(point.x, point.y)); |
| 23621 return new Point(result.x, result.y); | 23621 return new Point(result.x, result.y); |
| 23622 } | 23622 } |
| 23623 | 23623 |
| 23624 @DomName('DOMWindow.convertPointFromPageToNode') | 23624 @DomName('DOMWindow.convertPointFromPageToNode') |
| 23625 @SupportedBrowser(SupportedBrowser.CHROME) | 23625 @SupportedBrowser(SupportedBrowser.CHROME) |
| 23626 @SupportedBrowser(SupportedBrowser.SAFARI) | 23626 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 23627 @Experimental | 23627 @Experimental() |
| 23628 Point convertPointFromPageToNode(Node node, Point point) { | 23628 Point convertPointFromPageToNode(Node node, Point point) { |
| 23629 var result = _convertPointFromPageToNode(node, | 23629 var result = _convertPointFromPageToNode(node, |
| 23630 new _DomPoint(point.x, point.y)); | 23630 new _DomPoint(point.x, point.y)); |
| 23631 return new Point(result.x, result.y); | 23631 return new Point(result.x, result.y); |
| 23632 } | 23632 } |
| 23633 | 23633 |
| 23634 /** | 23634 /** |
| 23635 * Checks whether [convertPointFromNodeToPage] and | 23635 * Checks whether [convertPointFromNodeToPage] and |
| 23636 * [convertPointFromPageToNode] are supported on the current platform. | 23636 * [convertPointFromPageToNode] are supported on the current platform. |
| 23637 */ | 23637 */ |
| 23638 static bool get supportsPointConversions => _DomPoint.supported; | 23638 static bool get supportsPointConversions => _DomPoint.supported; |
| 23639 // To suppress missing implicit constructor warnings. | 23639 // To suppress missing implicit constructor warnings. |
| 23640 factory Window._() { throw new UnsupportedError("Not supported"); } | 23640 factory Window._() { throw new UnsupportedError("Not supported"); } |
| 23641 | 23641 |
| 23642 @DomName('Window.DOMContentLoadedEvent') | 23642 @DomName('Window.DOMContentLoadedEvent') |
| 23643 @DocsEditable | 23643 @DocsEditable() |
| 23644 static const EventStreamProvider<Event> contentLoadedEvent = const EventStream
Provider<Event>('DOMContentLoaded'); | 23644 static const EventStreamProvider<Event> contentLoadedEvent = const EventStream
Provider<Event>('DOMContentLoaded'); |
| 23645 | 23645 |
| 23646 @DomName('Window.devicemotionEvent') | 23646 @DomName('Window.devicemotionEvent') |
| 23647 @DocsEditable | 23647 @DocsEditable() |
| 23648 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion | 23648 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion |
| 23649 @Experimental | 23649 @Experimental() |
| 23650 static const EventStreamProvider<DeviceMotionEvent> deviceMotionEvent = const
EventStreamProvider<DeviceMotionEvent>('devicemotion'); | 23650 static const EventStreamProvider<DeviceMotionEvent> deviceMotionEvent = const
EventStreamProvider<DeviceMotionEvent>('devicemotion'); |
| 23651 | 23651 |
| 23652 @DomName('Window.deviceorientationEvent') | 23652 @DomName('Window.deviceorientationEvent') |
| 23653 @DocsEditable | 23653 @DocsEditable() |
| 23654 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion | 23654 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion |
| 23655 @Experimental | 23655 @Experimental() |
| 23656 static const EventStreamProvider<DeviceOrientationEvent> deviceOrientationEven
t = const EventStreamProvider<DeviceOrientationEvent>('deviceorientation'); | 23656 static const EventStreamProvider<DeviceOrientationEvent> deviceOrientationEven
t = const EventStreamProvider<DeviceOrientationEvent>('deviceorientation'); |
| 23657 | 23657 |
| 23658 @DomName('Window.hashchangeEvent') | 23658 @DomName('Window.hashchangeEvent') |
| 23659 @DocsEditable | 23659 @DocsEditable() |
| 23660 static const EventStreamProvider<Event> hashChangeEvent = const EventStreamPro
vider<Event>('hashchange'); | 23660 static const EventStreamProvider<Event> hashChangeEvent = const EventStreamPro
vider<Event>('hashchange'); |
| 23661 | 23661 |
| 23662 @DomName('Window.messageEvent') | 23662 @DomName('Window.messageEvent') |
| 23663 @DocsEditable | 23663 @DocsEditable() |
| 23664 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea
mProvider<MessageEvent>('message'); | 23664 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea
mProvider<MessageEvent>('message'); |
| 23665 | 23665 |
| 23666 @DomName('Window.offlineEvent') | 23666 @DomName('Window.offlineEvent') |
| 23667 @DocsEditable | 23667 @DocsEditable() |
| 23668 static const EventStreamProvider<Event> offlineEvent = const EventStreamProvid
er<Event>('offline'); | 23668 static const EventStreamProvider<Event> offlineEvent = const EventStreamProvid
er<Event>('offline'); |
| 23669 | 23669 |
| 23670 @DomName('Window.onlineEvent') | 23670 @DomName('Window.onlineEvent') |
| 23671 @DocsEditable | 23671 @DocsEditable() |
| 23672 static const EventStreamProvider<Event> onlineEvent = const EventStreamProvide
r<Event>('online'); | 23672 static const EventStreamProvider<Event> onlineEvent = const EventStreamProvide
r<Event>('online'); |
| 23673 | 23673 |
| 23674 @DomName('Window.pagehideEvent') | 23674 @DomName('Window.pagehideEvent') |
| 23675 @DocsEditable | 23675 @DocsEditable() |
| 23676 static const EventStreamProvider<Event> pageHideEvent = const EventStreamProvi
der<Event>('pagehide'); | 23676 static const EventStreamProvider<Event> pageHideEvent = const EventStreamProvi
der<Event>('pagehide'); |
| 23677 | 23677 |
| 23678 @DomName('Window.pageshowEvent') | 23678 @DomName('Window.pageshowEvent') |
| 23679 @DocsEditable | 23679 @DocsEditable() |
| 23680 static const EventStreamProvider<Event> pageShowEvent = const EventStreamProvi
der<Event>('pageshow'); | 23680 static const EventStreamProvider<Event> pageShowEvent = const EventStreamProvi
der<Event>('pageshow'); |
| 23681 | 23681 |
| 23682 @DomName('Window.popstateEvent') | 23682 @DomName('Window.popstateEvent') |
| 23683 @DocsEditable | 23683 @DocsEditable() |
| 23684 static const EventStreamProvider<PopStateEvent> popStateEvent = const EventStr
eamProvider<PopStateEvent>('popstate'); | 23684 static const EventStreamProvider<PopStateEvent> popStateEvent = const EventStr
eamProvider<PopStateEvent>('popstate'); |
| 23685 | 23685 |
| 23686 @DomName('Window.resizeEvent') | 23686 @DomName('Window.resizeEvent') |
| 23687 @DocsEditable | 23687 @DocsEditable() |
| 23688 static const EventStreamProvider<Event> resizeEvent = const EventStreamProvide
r<Event>('resize'); | 23688 static const EventStreamProvider<Event> resizeEvent = const EventStreamProvide
r<Event>('resize'); |
| 23689 | 23689 |
| 23690 @DomName('Window.storageEvent') | 23690 @DomName('Window.storageEvent') |
| 23691 @DocsEditable | 23691 @DocsEditable() |
| 23692 static const EventStreamProvider<StorageEvent> storageEvent = const EventStrea
mProvider<StorageEvent>('storage'); | 23692 static const EventStreamProvider<StorageEvent> storageEvent = const EventStrea
mProvider<StorageEvent>('storage'); |
| 23693 | 23693 |
| 23694 @DomName('Window.unloadEvent') | 23694 @DomName('Window.unloadEvent') |
| 23695 @DocsEditable | 23695 @DocsEditable() |
| 23696 static const EventStreamProvider<Event> unloadEvent = const EventStreamProvide
r<Event>('unload'); | 23696 static const EventStreamProvider<Event> unloadEvent = const EventStreamProvide
r<Event>('unload'); |
| 23697 | 23697 |
| 23698 @DomName('Window.webkitAnimationEndEvent') | 23698 @DomName('Window.webkitAnimationEndEvent') |
| 23699 @DocsEditable | 23699 @DocsEditable() |
| 23700 @SupportedBrowser(SupportedBrowser.CHROME) | 23700 @SupportedBrowser(SupportedBrowser.CHROME) |
| 23701 @SupportedBrowser(SupportedBrowser.SAFARI) | 23701 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 23702 @Experimental | 23702 @Experimental() |
| 23703 static const EventStreamProvider<AnimationEvent> animationEndEvent = const Eve
ntStreamProvider<AnimationEvent>('webkitAnimationEnd'); | 23703 static const EventStreamProvider<AnimationEvent> animationEndEvent = const Eve
ntStreamProvider<AnimationEvent>('webkitAnimationEnd'); |
| 23704 | 23704 |
| 23705 @DomName('Window.webkitAnimationIterationEvent') | 23705 @DomName('Window.webkitAnimationIterationEvent') |
| 23706 @DocsEditable | 23706 @DocsEditable() |
| 23707 @SupportedBrowser(SupportedBrowser.CHROME) | 23707 @SupportedBrowser(SupportedBrowser.CHROME) |
| 23708 @SupportedBrowser(SupportedBrowser.SAFARI) | 23708 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 23709 @Experimental | 23709 @Experimental() |
| 23710 static const EventStreamProvider<AnimationEvent> animationIterationEvent = con
st EventStreamProvider<AnimationEvent>('webkitAnimationIteration'); | 23710 static const EventStreamProvider<AnimationEvent> animationIterationEvent = con
st EventStreamProvider<AnimationEvent>('webkitAnimationIteration'); |
| 23711 | 23711 |
| 23712 @DomName('Window.webkitAnimationStartEvent') | 23712 @DomName('Window.webkitAnimationStartEvent') |
| 23713 @DocsEditable | 23713 @DocsEditable() |
| 23714 @SupportedBrowser(SupportedBrowser.CHROME) | 23714 @SupportedBrowser(SupportedBrowser.CHROME) |
| 23715 @SupportedBrowser(SupportedBrowser.SAFARI) | 23715 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 23716 @Experimental | 23716 @Experimental() |
| 23717 static const EventStreamProvider<AnimationEvent> animationStartEvent = const E
ventStreamProvider<AnimationEvent>('webkitAnimationStart'); | 23717 static const EventStreamProvider<AnimationEvent> animationStartEvent = const E
ventStreamProvider<AnimationEvent>('webkitAnimationStart'); |
| 23718 | 23718 |
| 23719 @DomName('Window.PERSISTENT') | 23719 @DomName('Window.PERSISTENT') |
| 23720 @DocsEditable | 23720 @DocsEditable() |
| 23721 // http://www.w3.org/TR/file-system-api/#idl-def-LocalFileSystem | 23721 // http://www.w3.org/TR/file-system-api/#idl-def-LocalFileSystem |
| 23722 @Experimental | 23722 @Experimental() |
| 23723 static const int PERSISTENT = 1; | 23723 static const int PERSISTENT = 1; |
| 23724 | 23724 |
| 23725 @DomName('Window.TEMPORARY') | 23725 @DomName('Window.TEMPORARY') |
| 23726 @DocsEditable | 23726 @DocsEditable() |
| 23727 // http://www.w3.org/TR/file-system-api/#idl-def-LocalFileSystem | 23727 // http://www.w3.org/TR/file-system-api/#idl-def-LocalFileSystem |
| 23728 @Experimental | 23728 @Experimental() |
| 23729 static const int TEMPORARY = 0; | 23729 static const int TEMPORARY = 0; |
| 23730 | 23730 |
| 23731 @JSName('CSS') | 23731 @JSName('CSS') |
| 23732 @DomName('Window.CSS') | 23732 @DomName('Window.CSS') |
| 23733 @DocsEditable | 23733 @DocsEditable() |
| 23734 final Css css; | 23734 final Css css; |
| 23735 | 23735 |
| 23736 @DomName('Window.applicationCache') | 23736 @DomName('Window.applicationCache') |
| 23737 @DocsEditable | 23737 @DocsEditable() |
| 23738 final ApplicationCache applicationCache; | 23738 final ApplicationCache applicationCache; |
| 23739 | 23739 |
| 23740 @DomName('Window.closed') | 23740 @DomName('Window.closed') |
| 23741 @DocsEditable | 23741 @DocsEditable() |
| 23742 final bool closed; | 23742 final bool closed; |
| 23743 | 23743 |
| 23744 @DomName('Window.crypto') | 23744 @DomName('Window.crypto') |
| 23745 @DocsEditable | 23745 @DocsEditable() |
| 23746 // http://www.w3.org/TR/WebCryptoAPI/ | 23746 // http://www.w3.org/TR/WebCryptoAPI/ |
| 23747 @Experimental | 23747 @Experimental() |
| 23748 final Crypto crypto; | 23748 final Crypto crypto; |
| 23749 | 23749 |
| 23750 @DomName('Window.defaultStatus') | 23750 @DomName('Window.defaultStatus') |
| 23751 @DocsEditable | 23751 @DocsEditable() |
| 23752 String defaultStatus; | 23752 String defaultStatus; |
| 23753 | 23753 |
| 23754 @DomName('Window.defaultstatus') | 23754 @DomName('Window.defaultstatus') |
| 23755 @DocsEditable | 23755 @DocsEditable() |
| 23756 @Experimental // non-standard | 23756 @Experimental() // non-standard |
| 23757 String defaultstatus; | 23757 String defaultstatus; |
| 23758 | 23758 |
| 23759 @DomName('Window.devicePixelRatio') | 23759 @DomName('Window.devicePixelRatio') |
| 23760 @DocsEditable | 23760 @DocsEditable() |
| 23761 // http://www.quirksmode.org/blog/archives/2012/06/devicepixelrati.html | 23761 // http://www.quirksmode.org/blog/archives/2012/06/devicepixelrati.html |
| 23762 @Experimental // non-standard | 23762 @Experimental() // non-standard |
| 23763 final num devicePixelRatio; | 23763 final num devicePixelRatio; |
| 23764 | 23764 |
| 23765 @DomName('Window.event') | 23765 @DomName('Window.event') |
| 23766 @DocsEditable | 23766 @DocsEditable() |
| 23767 @deprecated // deprecated | 23767 @deprecated // deprecated |
| 23768 final Event event; | 23768 final Event event; |
| 23769 | 23769 |
| 23770 @DomName('Window.history') | 23770 @DomName('Window.history') |
| 23771 @DocsEditable | 23771 @DocsEditable() |
| 23772 final History history; | 23772 final History history; |
| 23773 | 23773 |
| 23774 @DomName('Window.innerHeight') | 23774 @DomName('Window.innerHeight') |
| 23775 @DocsEditable | 23775 @DocsEditable() |
| 23776 final int innerHeight; | 23776 final int innerHeight; |
| 23777 | 23777 |
| 23778 @DomName('Window.innerWidth') | 23778 @DomName('Window.innerWidth') |
| 23779 @DocsEditable | 23779 @DocsEditable() |
| 23780 final int innerWidth; | 23780 final int innerWidth; |
| 23781 | 23781 |
| 23782 @DomName('Window.localStorage') | 23782 @DomName('Window.localStorage') |
| 23783 @DocsEditable | 23783 @DocsEditable() |
| 23784 final Storage localStorage; | 23784 final Storage localStorage; |
| 23785 | 23785 |
| 23786 @DomName('Window.locationbar') | 23786 @DomName('Window.locationbar') |
| 23787 @DocsEditable | 23787 @DocsEditable() |
| 23788 final BarProp locationbar; | 23788 final BarProp locationbar; |
| 23789 | 23789 |
| 23790 @DomName('Window.menubar') | 23790 @DomName('Window.menubar') |
| 23791 @DocsEditable | 23791 @DocsEditable() |
| 23792 final BarProp menubar; | 23792 final BarProp menubar; |
| 23793 | 23793 |
| 23794 @DomName('Window.name') | 23794 @DomName('Window.name') |
| 23795 @DocsEditable | 23795 @DocsEditable() |
| 23796 String name; | 23796 String name; |
| 23797 | 23797 |
| 23798 @DomName('Window.navigator') | 23798 @DomName('Window.navigator') |
| 23799 @DocsEditable | 23799 @DocsEditable() |
| 23800 final Navigator navigator; | 23800 final Navigator navigator; |
| 23801 | 23801 |
| 23802 @DomName('Window.offscreenBuffering') | 23802 @DomName('Window.offscreenBuffering') |
| 23803 @DocsEditable | 23803 @DocsEditable() |
| 23804 @Experimental // non-standard | 23804 @Experimental() // non-standard |
| 23805 final bool offscreenBuffering; | 23805 final bool offscreenBuffering; |
| 23806 | 23806 |
| 23807 WindowBase get opener => _convertNativeToDart_Window(this._get_opener); | 23807 WindowBase get opener => _convertNativeToDart_Window(this._get_opener); |
| 23808 @JSName('opener') | 23808 @JSName('opener') |
| 23809 @DomName('Window.opener') | 23809 @DomName('Window.opener') |
| 23810 @DocsEditable | 23810 @DocsEditable() |
| 23811 @Creates('Window|=Object') | 23811 @Creates('Window|=Object') |
| 23812 @Returns('Window|=Object') | 23812 @Returns('Window|=Object') |
| 23813 final dynamic _get_opener; | 23813 final dynamic _get_opener; |
| 23814 | 23814 |
| 23815 @DomName('Window.outerHeight') | 23815 @DomName('Window.outerHeight') |
| 23816 @DocsEditable | 23816 @DocsEditable() |
| 23817 final int outerHeight; | 23817 final int outerHeight; |
| 23818 | 23818 |
| 23819 @DomName('Window.outerWidth') | 23819 @DomName('Window.outerWidth') |
| 23820 @DocsEditable | 23820 @DocsEditable() |
| 23821 final int outerWidth; | 23821 final int outerWidth; |
| 23822 | 23822 |
| 23823 @DomName('Window.pageXOffset') | 23823 @DomName('Window.pageXOffset') |
| 23824 @DocsEditable | 23824 @DocsEditable() |
| 23825 final int pageXOffset; | 23825 final int pageXOffset; |
| 23826 | 23826 |
| 23827 @DomName('Window.pageYOffset') | 23827 @DomName('Window.pageYOffset') |
| 23828 @DocsEditable | 23828 @DocsEditable() |
| 23829 final int pageYOffset; | 23829 final int pageYOffset; |
| 23830 | 23830 |
| 23831 WindowBase get parent => _convertNativeToDart_Window(this._get_parent); | 23831 WindowBase get parent => _convertNativeToDart_Window(this._get_parent); |
| 23832 @JSName('parent') | 23832 @JSName('parent') |
| 23833 @DomName('Window.parent') | 23833 @DomName('Window.parent') |
| 23834 @DocsEditable | 23834 @DocsEditable() |
| 23835 @Creates('Window|=Object') | 23835 @Creates('Window|=Object') |
| 23836 @Returns('Window|=Object') | 23836 @Returns('Window|=Object') |
| 23837 final dynamic _get_parent; | 23837 final dynamic _get_parent; |
| 23838 | 23838 |
| 23839 @DomName('Window.performance') | 23839 @DomName('Window.performance') |
| 23840 @DocsEditable | 23840 @DocsEditable() |
| 23841 @SupportedBrowser(SupportedBrowser.CHROME) | 23841 @SupportedBrowser(SupportedBrowser.CHROME) |
| 23842 @SupportedBrowser(SupportedBrowser.FIREFOX) | 23842 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 23843 @SupportedBrowser(SupportedBrowser.IE) | 23843 @SupportedBrowser(SupportedBrowser.IE) |
| 23844 final Performance performance; | 23844 final Performance performance; |
| 23845 | 23845 |
| 23846 @DomName('Window.personalbar') | 23846 @DomName('Window.personalbar') |
| 23847 @DocsEditable | 23847 @DocsEditable() |
| 23848 // https://developer.mozilla.org/en-US/docs/DOM/window.personalbar | 23848 // https://developer.mozilla.org/en-US/docs/DOM/window.personalbar |
| 23849 @deprecated // deprecated | 23849 @deprecated // deprecated |
| 23850 final BarProp personalbar; | 23850 final BarProp personalbar; |
| 23851 | 23851 |
| 23852 @DomName('Window.screen') | 23852 @DomName('Window.screen') |
| 23853 @DocsEditable | 23853 @DocsEditable() |
| 23854 final Screen screen; | 23854 final Screen screen; |
| 23855 | 23855 |
| 23856 @DomName('Window.screenLeft') | 23856 @DomName('Window.screenLeft') |
| 23857 @DocsEditable | 23857 @DocsEditable() |
| 23858 final int screenLeft; | 23858 final int screenLeft; |
| 23859 | 23859 |
| 23860 @DomName('Window.screenTop') | 23860 @DomName('Window.screenTop') |
| 23861 @DocsEditable | 23861 @DocsEditable() |
| 23862 final int screenTop; | 23862 final int screenTop; |
| 23863 | 23863 |
| 23864 @DomName('Window.screenX') | 23864 @DomName('Window.screenX') |
| 23865 @DocsEditable | 23865 @DocsEditable() |
| 23866 final int screenX; | 23866 final int screenX; |
| 23867 | 23867 |
| 23868 @DomName('Window.screenY') | 23868 @DomName('Window.screenY') |
| 23869 @DocsEditable | 23869 @DocsEditable() |
| 23870 final int screenY; | 23870 final int screenY; |
| 23871 | 23871 |
| 23872 @DomName('Window.scrollX') | 23872 @DomName('Window.scrollX') |
| 23873 @DocsEditable | 23873 @DocsEditable() |
| 23874 final int scrollX; | 23874 final int scrollX; |
| 23875 | 23875 |
| 23876 @DomName('Window.scrollY') | 23876 @DomName('Window.scrollY') |
| 23877 @DocsEditable | 23877 @DocsEditable() |
| 23878 final int scrollY; | 23878 final int scrollY; |
| 23879 | 23879 |
| 23880 @DomName('Window.scrollbars') | 23880 @DomName('Window.scrollbars') |
| 23881 @DocsEditable | 23881 @DocsEditable() |
| 23882 final BarProp scrollbars; | 23882 final BarProp scrollbars; |
| 23883 | 23883 |
| 23884 WindowBase get self => _convertNativeToDart_Window(this._get_self); | 23884 WindowBase get self => _convertNativeToDart_Window(this._get_self); |
| 23885 @JSName('self') | 23885 @JSName('self') |
| 23886 @DomName('Window.self') | 23886 @DomName('Window.self') |
| 23887 @DocsEditable | 23887 @DocsEditable() |
| 23888 @Creates('Window|=Object') | 23888 @Creates('Window|=Object') |
| 23889 @Returns('Window|=Object') | 23889 @Returns('Window|=Object') |
| 23890 final dynamic _get_self; | 23890 final dynamic _get_self; |
| 23891 | 23891 |
| 23892 @DomName('Window.sessionStorage') | 23892 @DomName('Window.sessionStorage') |
| 23893 @DocsEditable | 23893 @DocsEditable() |
| 23894 final Storage sessionStorage; | 23894 final Storage sessionStorage; |
| 23895 | 23895 |
| 23896 @DomName('Window.speechSynthesis') | 23896 @DomName('Window.speechSynthesis') |
| 23897 @DocsEditable | 23897 @DocsEditable() |
| 23898 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section | 23898 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#tts-section |
| 23899 @Experimental | 23899 @Experimental() |
| 23900 final SpeechSynthesis speechSynthesis; | 23900 final SpeechSynthesis speechSynthesis; |
| 23901 | 23901 |
| 23902 @DomName('Window.status') | 23902 @DomName('Window.status') |
| 23903 @DocsEditable | 23903 @DocsEditable() |
| 23904 String status; | 23904 String status; |
| 23905 | 23905 |
| 23906 @DomName('Window.statusbar') | 23906 @DomName('Window.statusbar') |
| 23907 @DocsEditable | 23907 @DocsEditable() |
| 23908 final BarProp statusbar; | 23908 final BarProp statusbar; |
| 23909 | 23909 |
| 23910 @DomName('Window.styleMedia') | 23910 @DomName('Window.styleMedia') |
| 23911 @DocsEditable | 23911 @DocsEditable() |
| 23912 // http://developer.apple.com/library/safari/#documentation/SafariDOMAdditions
/Reference/StyleMedia/StyleMedia/StyleMedia.html | 23912 // http://developer.apple.com/library/safari/#documentation/SafariDOMAdditions
/Reference/StyleMedia/StyleMedia/StyleMedia.html |
| 23913 @Experimental // nonstandard | 23913 @Experimental() // nonstandard |
| 23914 final StyleMedia styleMedia; | 23914 final StyleMedia styleMedia; |
| 23915 | 23915 |
| 23916 @DomName('Window.toolbar') | 23916 @DomName('Window.toolbar') |
| 23917 @DocsEditable | 23917 @DocsEditable() |
| 23918 final BarProp toolbar; | 23918 final BarProp toolbar; |
| 23919 | 23919 |
| 23920 WindowBase get top => _convertNativeToDart_Window(this._get_top); | 23920 WindowBase get top => _convertNativeToDart_Window(this._get_top); |
| 23921 @JSName('top') | 23921 @JSName('top') |
| 23922 @DomName('Window.top') | 23922 @DomName('Window.top') |
| 23923 @DocsEditable | 23923 @DocsEditable() |
| 23924 @Creates('Window|=Object') | 23924 @Creates('Window|=Object') |
| 23925 @Returns('Window|=Object') | 23925 @Returns('Window|=Object') |
| 23926 final dynamic _get_top; | 23926 final dynamic _get_top; |
| 23927 | 23927 |
| 23928 @JSName('webkitNotifications') | 23928 @JSName('webkitNotifications') |
| 23929 @DomName('Window.webkitNotifications') | 23929 @DomName('Window.webkitNotifications') |
| 23930 @DocsEditable | 23930 @DocsEditable() |
| 23931 @SupportedBrowser(SupportedBrowser.CHROME) | 23931 @SupportedBrowser(SupportedBrowser.CHROME) |
| 23932 @SupportedBrowser(SupportedBrowser.SAFARI) | 23932 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 23933 @Experimental | 23933 @Experimental() |
| 23934 // https://plus.sandbox.google.com/u/0/+GoogleChromeDevelopers/posts/8vWo8hq4p
Dm?e=Showroom | 23934 // https://plus.sandbox.google.com/u/0/+GoogleChromeDevelopers/posts/8vWo8hq4p
Dm?e=Showroom |
| 23935 @deprecated // deprecated | 23935 @deprecated // deprecated |
| 23936 final NotificationCenter notifications; | 23936 final NotificationCenter notifications; |
| 23937 | 23937 |
| 23938 @JSName('webkitStorageInfo') | 23938 @JSName('webkitStorageInfo') |
| 23939 @DomName('Window.webkitStorageInfo') | 23939 @DomName('Window.webkitStorageInfo') |
| 23940 @DocsEditable | 23940 @DocsEditable() |
| 23941 @SupportedBrowser(SupportedBrowser.CHROME) | 23941 @SupportedBrowser(SupportedBrowser.CHROME) |
| 23942 @SupportedBrowser(SupportedBrowser.SAFARI) | 23942 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 23943 @Experimental | 23943 @Experimental() |
| 23944 // http://www.w3.org/TR/file-system-api/ | 23944 // http://www.w3.org/TR/file-system-api/ |
| 23945 @deprecated // deprecated | 23945 @deprecated // deprecated |
| 23946 final StorageInfo storageInfo; | 23946 final StorageInfo storageInfo; |
| 23947 | 23947 |
| 23948 WindowBase get window => _convertNativeToDart_Window(this._get_window); | 23948 WindowBase get window => _convertNativeToDart_Window(this._get_window); |
| 23949 @JSName('window') | 23949 @JSName('window') |
| 23950 @DomName('Window.window') | 23950 @DomName('Window.window') |
| 23951 @DocsEditable | 23951 @DocsEditable() |
| 23952 @Creates('Window|=Object') | 23952 @Creates('Window|=Object') |
| 23953 @Returns('Window|=Object') | 23953 @Returns('Window|=Object') |
| 23954 final dynamic _get_window; | 23954 final dynamic _get_window; |
| 23955 | 23955 |
| 23956 @DomName('Window.__getter__') | 23956 @DomName('Window.__getter__') |
| 23957 @DocsEditable | 23957 @DocsEditable() |
| 23958 @Creates('Window|=Object') | 23958 @Creates('Window|=Object') |
| 23959 @Returns('Window|=Object') | 23959 @Returns('Window|=Object') |
| 23960 WindowBase __getter__(index_OR_name) { | 23960 WindowBase __getter__(index_OR_name) { |
| 23961 if ((index_OR_name is int || index_OR_name == null)) { | 23961 if ((index_OR_name is int || index_OR_name == null)) { |
| 23962 return _convertNativeToDart_Window(___getter___1(index_OR_name)); | 23962 return _convertNativeToDart_Window(___getter___1(index_OR_name)); |
| 23963 } | 23963 } |
| 23964 if ((index_OR_name is String || index_OR_name == null)) { | 23964 if ((index_OR_name is String || index_OR_name == null)) { |
| 23965 return _convertNativeToDart_Window(___getter___2(index_OR_name)); | 23965 return _convertNativeToDart_Window(___getter___2(index_OR_name)); |
| 23966 } | 23966 } |
| 23967 throw new ArgumentError("Incorrect number or type of arguments"); | 23967 throw new ArgumentError("Incorrect number or type of arguments"); |
| 23968 } | 23968 } |
| 23969 @JSName('__getter__') | 23969 @JSName('__getter__') |
| 23970 @DomName('Window.__getter__') | 23970 @DomName('Window.__getter__') |
| 23971 @DocsEditable | 23971 @DocsEditable() |
| 23972 @Creates('Window|=Object') | 23972 @Creates('Window|=Object') |
| 23973 @Returns('Window|=Object') | 23973 @Returns('Window|=Object') |
| 23974 ___getter___1(int index) native; | 23974 ___getter___1(int index) native; |
| 23975 @JSName('__getter__') | 23975 @JSName('__getter__') |
| 23976 @DomName('Window.__getter__') | 23976 @DomName('Window.__getter__') |
| 23977 @DocsEditable | 23977 @DocsEditable() |
| 23978 @Creates('Window|=Object') | 23978 @Creates('Window|=Object') |
| 23979 @Returns('Window|=Object') | 23979 @Returns('Window|=Object') |
| 23980 ___getter___2(String name) native; | 23980 ___getter___2(String name) native; |
| 23981 | 23981 |
| 23982 @JSName('addEventListener') | 23982 @JSName('addEventListener') |
| 23983 @DomName('Window.addEventListener') | 23983 @DomName('Window.addEventListener') |
| 23984 @DocsEditable | 23984 @DocsEditable() |
| 23985 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; | 23985 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu
re]) native; |
| 23986 | 23986 |
| 23987 @DomName('Window.alert') | 23987 @DomName('Window.alert') |
| 23988 @DocsEditable | 23988 @DocsEditable() |
| 23989 void alert(String message) native; | 23989 void alert(String message) native; |
| 23990 | 23990 |
| 23991 @DomName('Window.atob') | 23991 @DomName('Window.atob') |
| 23992 @DocsEditable | 23992 @DocsEditable() |
| 23993 String atob(String string) native; | 23993 String atob(String string) native; |
| 23994 | 23994 |
| 23995 @DomName('Window.btoa') | 23995 @DomName('Window.btoa') |
| 23996 @DocsEditable | 23996 @DocsEditable() |
| 23997 String btoa(String string) native; | 23997 String btoa(String string) native; |
| 23998 | 23998 |
| 23999 @JSName('clearInterval') | 23999 @JSName('clearInterval') |
| 24000 @DomName('Window.clearInterval') | 24000 @DomName('Window.clearInterval') |
| 24001 @DocsEditable | 24001 @DocsEditable() |
| 24002 void _clearInterval(int handle) native; | 24002 void _clearInterval(int handle) native; |
| 24003 | 24003 |
| 24004 @JSName('clearTimeout') | 24004 @JSName('clearTimeout') |
| 24005 @DomName('Window.clearTimeout') | 24005 @DomName('Window.clearTimeout') |
| 24006 @DocsEditable | 24006 @DocsEditable() |
| 24007 void _clearTimeout(int handle) native; | 24007 void _clearTimeout(int handle) native; |
| 24008 | 24008 |
| 24009 @DomName('Window.close') | 24009 @DomName('Window.close') |
| 24010 @DocsEditable | 24010 @DocsEditable() |
| 24011 void close() native; | 24011 void close() native; |
| 24012 | 24012 |
| 24013 @DomName('Window.confirm') | 24013 @DomName('Window.confirm') |
| 24014 @DocsEditable | 24014 @DocsEditable() |
| 24015 bool confirm(String message) native; | 24015 bool confirm(String message) native; |
| 24016 | 24016 |
| 24017 @DomName('Window.dispatchEvent') | 24017 @DomName('Window.dispatchEvent') |
| 24018 @DocsEditable | 24018 @DocsEditable() |
| 24019 bool dispatchEvent(Event evt) native; | 24019 bool dispatchEvent(Event evt) native; |
| 24020 | 24020 |
| 24021 @DomName('Window.find') | 24021 @DomName('Window.find') |
| 24022 @DocsEditable | 24022 @DocsEditable() |
| 24023 @Experimental // non-standard | 24023 @Experimental() // non-standard |
| 24024 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; | 24024 bool find(String string, bool caseSensitive, bool backwards, bool wrap, bool w
holeWord, bool searchInFrames, bool showDialog) native; |
| 24025 | 24025 |
| 24026 @JSName('getComputedStyle') | 24026 @JSName('getComputedStyle') |
| 24027 @DomName('Window.getComputedStyle') | 24027 @DomName('Window.getComputedStyle') |
| 24028 @DocsEditable | 24028 @DocsEditable() |
| 24029 CssStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen
t) native; | 24029 CssStyleDeclaration $dom_getComputedStyle(Element element, String pseudoElemen
t) native; |
| 24030 | 24030 |
| 24031 @JSName('getMatchedCSSRules') | 24031 @JSName('getMatchedCSSRules') |
| 24032 @DomName('Window.getMatchedCSSRules') | 24032 @DomName('Window.getMatchedCSSRules') |
| 24033 @DocsEditable | 24033 @DocsEditable() |
| 24034 @Experimental // non-standard | 24034 @Experimental() // non-standard |
| 24035 @Returns('_CssRuleList') | 24035 @Returns('_CssRuleList') |
| 24036 @Creates('_CssRuleList') | 24036 @Creates('_CssRuleList') |
| 24037 List<CssRule> getMatchedCssRules(Element element, String pseudoElement) native
; | 24037 List<CssRule> getMatchedCssRules(Element element, String pseudoElement) native
; |
| 24038 | 24038 |
| 24039 @DomName('Window.getSelection') | 24039 @DomName('Window.getSelection') |
| 24040 @DocsEditable | 24040 @DocsEditable() |
| 24041 Selection getSelection() native; | 24041 Selection getSelection() native; |
| 24042 | 24042 |
| 24043 @DomName('Window.matchMedia') | 24043 @DomName('Window.matchMedia') |
| 24044 @DocsEditable | 24044 @DocsEditable() |
| 24045 MediaQueryList matchMedia(String query) native; | 24045 MediaQueryList matchMedia(String query) native; |
| 24046 | 24046 |
| 24047 @DomName('Window.moveBy') | 24047 @DomName('Window.moveBy') |
| 24048 @DocsEditable | 24048 @DocsEditable() |
| 24049 void moveBy(num x, num y) native; | 24049 void moveBy(num x, num y) native; |
| 24050 | 24050 |
| 24051 @DomName('Window.moveTo') | 24051 @DomName('Window.moveTo') |
| 24052 @DocsEditable | 24052 @DocsEditable() |
| 24053 void moveTo(num x, num y) native; | 24053 void moveTo(num x, num y) native; |
| 24054 | 24054 |
| 24055 @DomName('Window.openDatabase') | 24055 @DomName('Window.openDatabase') |
| 24056 @DocsEditable | 24056 @DocsEditable() |
| 24057 @SupportedBrowser(SupportedBrowser.CHROME) | 24057 @SupportedBrowser(SupportedBrowser.CHROME) |
| 24058 @SupportedBrowser(SupportedBrowser.SAFARI) | 24058 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 24059 @Experimental | 24059 @Experimental() |
| 24060 // http://www.w3.org/TR/webdatabase/ | 24060 // http://www.w3.org/TR/webdatabase/ |
| 24061 @Experimental // deprecated | 24061 @Experimental() // deprecated |
| 24062 @Creates('SqlDatabase') | 24062 @Creates('SqlDatabase') |
| 24063 SqlDatabase openDatabase(String name, String version, String displayName, int
estimatedSize, [DatabaseCallback creationCallback]) native; | 24063 SqlDatabase openDatabase(String name, String version, String displayName, int
estimatedSize, [DatabaseCallback creationCallback]) native; |
| 24064 | 24064 |
| 24065 @DomName('Window.postMessage') | 24065 @DomName('Window.postMessage') |
| 24066 @DocsEditable | 24066 @DocsEditable() |
| 24067 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List
messagePorts]) { | 24067 void postMessage(/*SerializedScriptValue*/ message, String targetOrigin, [List
messagePorts]) { |
| 24068 if (messagePorts != null) { | 24068 if (messagePorts != null) { |
| 24069 var message_1 = convertDartToNative_SerializedScriptValue(message); | 24069 var message_1 = convertDartToNative_SerializedScriptValue(message); |
| 24070 _postMessage_1(message_1, targetOrigin, messagePorts); | 24070 _postMessage_1(message_1, targetOrigin, messagePorts); |
| 24071 return; | 24071 return; |
| 24072 } | 24072 } |
| 24073 var message_2 = convertDartToNative_SerializedScriptValue(message); | 24073 var message_2 = convertDartToNative_SerializedScriptValue(message); |
| 24074 _postMessage_2(message_2, targetOrigin); | 24074 _postMessage_2(message_2, targetOrigin); |
| 24075 return; | 24075 return; |
| 24076 } | 24076 } |
| 24077 @JSName('postMessage') | 24077 @JSName('postMessage') |
| 24078 @DomName('Window.postMessage') | 24078 @DomName('Window.postMessage') |
| 24079 @DocsEditable | 24079 @DocsEditable() |
| 24080 void _postMessage_1(message, targetOrigin, List messagePorts) native; | 24080 void _postMessage_1(message, targetOrigin, List messagePorts) native; |
| 24081 @JSName('postMessage') | 24081 @JSName('postMessage') |
| 24082 @DomName('Window.postMessage') | 24082 @DomName('Window.postMessage') |
| 24083 @DocsEditable | 24083 @DocsEditable() |
| 24084 void _postMessage_2(message, targetOrigin) native; | 24084 void _postMessage_2(message, targetOrigin) native; |
| 24085 | 24085 |
| 24086 @DomName('Window.print') | 24086 @DomName('Window.print') |
| 24087 @DocsEditable | 24087 @DocsEditable() |
| 24088 void print() native; | 24088 void print() native; |
| 24089 | 24089 |
| 24090 @JSName('removeEventListener') | 24090 @JSName('removeEventListener') |
| 24091 @DomName('Window.removeEventListener') | 24091 @DomName('Window.removeEventListener') |
| 24092 @DocsEditable | 24092 @DocsEditable() |
| 24093 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; | 24093 void $dom_removeEventListener(String type, EventListener listener, [bool useCa
pture]) native; |
| 24094 | 24094 |
| 24095 @DomName('Window.resizeBy') | 24095 @DomName('Window.resizeBy') |
| 24096 @DocsEditable | 24096 @DocsEditable() |
| 24097 void resizeBy(num x, num y) native; | 24097 void resizeBy(num x, num y) native; |
| 24098 | 24098 |
| 24099 @DomName('Window.resizeTo') | 24099 @DomName('Window.resizeTo') |
| 24100 @DocsEditable | 24100 @DocsEditable() |
| 24101 void resizeTo(num width, num height) native; | 24101 void resizeTo(num width, num height) native; |
| 24102 | 24102 |
| 24103 @DomName('Window.scroll') | 24103 @DomName('Window.scroll') |
| 24104 @DocsEditable | 24104 @DocsEditable() |
| 24105 void scroll(int x, int y) native; | 24105 void scroll(int x, int y) native; |
| 24106 | 24106 |
| 24107 @DomName('Window.scrollBy') | 24107 @DomName('Window.scrollBy') |
| 24108 @DocsEditable | 24108 @DocsEditable() |
| 24109 void scrollBy(int x, int y) native; | 24109 void scrollBy(int x, int y) native; |
| 24110 | 24110 |
| 24111 @DomName('Window.scrollTo') | 24111 @DomName('Window.scrollTo') |
| 24112 @DocsEditable | 24112 @DocsEditable() |
| 24113 void scrollTo(int x, int y) native; | 24113 void scrollTo(int x, int y) native; |
| 24114 | 24114 |
| 24115 @JSName('setInterval') | 24115 @JSName('setInterval') |
| 24116 @DomName('Window.setInterval') | 24116 @DomName('Window.setInterval') |
| 24117 @DocsEditable | 24117 @DocsEditable() |
| 24118 int _setInterval(Object handler, int timeout) native; | 24118 int _setInterval(Object handler, int timeout) native; |
| 24119 | 24119 |
| 24120 @JSName('setTimeout') | 24120 @JSName('setTimeout') |
| 24121 @DomName('Window.setTimeout') | 24121 @DomName('Window.setTimeout') |
| 24122 @DocsEditable | 24122 @DocsEditable() |
| 24123 int _setTimeout(Object handler, int timeout) native; | 24123 int _setTimeout(Object handler, int timeout) native; |
| 24124 | 24124 |
| 24125 @DomName('Window.showModalDialog') | 24125 @DomName('Window.showModalDialog') |
| 24126 @DocsEditable | 24126 @DocsEditable() |
| 24127 @Creates('Null') | 24127 @Creates('Null') |
| 24128 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na
tive; | 24128 Object showModalDialog(String url, [Object dialogArgs, String featureArgs]) na
tive; |
| 24129 | 24129 |
| 24130 @DomName('Window.stop') | 24130 @DomName('Window.stop') |
| 24131 @DocsEditable | 24131 @DocsEditable() |
| 24132 void stop() native; | 24132 void stop() native; |
| 24133 | 24133 |
| 24134 @DomName('Window.toString') | 24134 @DomName('Window.toString') |
| 24135 @DocsEditable | 24135 @DocsEditable() |
| 24136 String toString() native; | 24136 String toString() native; |
| 24137 | 24137 |
| 24138 @JSName('webkitConvertPointFromNodeToPage') | 24138 @JSName('webkitConvertPointFromNodeToPage') |
| 24139 @DomName('Window.webkitConvertPointFromNodeToPage') | 24139 @DomName('Window.webkitConvertPointFromNodeToPage') |
| 24140 @DocsEditable | 24140 @DocsEditable() |
| 24141 @SupportedBrowser(SupportedBrowser.CHROME) | 24141 @SupportedBrowser(SupportedBrowser.CHROME) |
| 24142 @SupportedBrowser(SupportedBrowser.SAFARI) | 24142 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 24143 @Experimental | 24143 @Experimental() |
| 24144 // http://developer.apple.com/library/safari/#documentation/DataManagement/Ref
erence/DOMWindowAdditionsReference/DOMWindowAdditions/DOMWindowAdditions.html | 24144 // http://developer.apple.com/library/safari/#documentation/DataManagement/Ref
erence/DOMWindowAdditionsReference/DOMWindowAdditions/DOMWindowAdditions.html |
| 24145 _DomPoint _convertPointFromNodeToPage(Node node, _DomPoint p) native; | 24145 _DomPoint _convertPointFromNodeToPage(Node node, _DomPoint p) native; |
| 24146 | 24146 |
| 24147 @JSName('webkitConvertPointFromPageToNode') | 24147 @JSName('webkitConvertPointFromPageToNode') |
| 24148 @DomName('Window.webkitConvertPointFromPageToNode') | 24148 @DomName('Window.webkitConvertPointFromPageToNode') |
| 24149 @DocsEditable | 24149 @DocsEditable() |
| 24150 @SupportedBrowser(SupportedBrowser.CHROME) | 24150 @SupportedBrowser(SupportedBrowser.CHROME) |
| 24151 @SupportedBrowser(SupportedBrowser.SAFARI) | 24151 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 24152 @Experimental | 24152 @Experimental() |
| 24153 // http://developer.apple.com/library/safari/#documentation/DataManagement/Ref
erence/DOMWindowAdditionsReference/DOMWindowAdditions/DOMWindowAdditions.html | 24153 // http://developer.apple.com/library/safari/#documentation/DataManagement/Ref
erence/DOMWindowAdditionsReference/DOMWindowAdditions/DOMWindowAdditions.html |
| 24154 _DomPoint _convertPointFromPageToNode(Node node, _DomPoint p) native; | 24154 _DomPoint _convertPointFromPageToNode(Node node, _DomPoint p) native; |
| 24155 | 24155 |
| 24156 @JSName('webkitRequestFileSystem') | 24156 @JSName('webkitRequestFileSystem') |
| 24157 @DomName('Window.webkitRequestFileSystem') | 24157 @DomName('Window.webkitRequestFileSystem') |
| 24158 @DocsEditable | 24158 @DocsEditable() |
| 24159 @SupportedBrowser(SupportedBrowser.CHROME) | 24159 @SupportedBrowser(SupportedBrowser.CHROME) |
| 24160 @Experimental | 24160 @Experimental() |
| 24161 // http://www.w3.org/TR/file-system-api/#idl-def-LocalFileSystem | 24161 // http://www.w3.org/TR/file-system-api/#idl-def-LocalFileSystem |
| 24162 void __requestFileSystem(int type, int size, _FileSystemCallback successCallba
ck, [_ErrorCallback errorCallback]) native; | 24162 void __requestFileSystem(int type, int size, _FileSystemCallback successCallba
ck, [_ErrorCallback errorCallback]) native; |
| 24163 | 24163 |
| 24164 @JSName('webkitRequestFileSystem') | 24164 @JSName('webkitRequestFileSystem') |
| 24165 @DomName('Window.webkitRequestFileSystem') | 24165 @DomName('Window.webkitRequestFileSystem') |
| 24166 @DocsEditable | 24166 @DocsEditable() |
| 24167 @SupportedBrowser(SupportedBrowser.CHROME) | 24167 @SupportedBrowser(SupportedBrowser.CHROME) |
| 24168 @Experimental | 24168 @Experimental() |
| 24169 // http://www.w3.org/TR/file-system-api/#idl-def-LocalFileSystem | 24169 // http://www.w3.org/TR/file-system-api/#idl-def-LocalFileSystem |
| 24170 Future<FileSystem> _requestFileSystem(int type, int size) { | 24170 Future<FileSystem> _requestFileSystem(int type, int size) { |
| 24171 var completer = new Completer<FileSystem>(); | 24171 var completer = new Completer<FileSystem>(); |
| 24172 __requestFileSystem(type, size, | 24172 __requestFileSystem(type, size, |
| 24173 (value) { completer.complete(value); }, | 24173 (value) { completer.complete(value); }, |
| 24174 (error) { completer.completeError(error); }); | 24174 (error) { completer.completeError(error); }); |
| 24175 return completer.future; | 24175 return completer.future; |
| 24176 } | 24176 } |
| 24177 | 24177 |
| 24178 @JSName('webkitResolveLocalFileSystemURL') | 24178 @JSName('webkitResolveLocalFileSystemURL') |
| 24179 @DomName('Window.webkitResolveLocalFileSystemURL') | 24179 @DomName('Window.webkitResolveLocalFileSystemURL') |
| 24180 @DocsEditable | 24180 @DocsEditable() |
| 24181 @SupportedBrowser(SupportedBrowser.CHROME) | 24181 @SupportedBrowser(SupportedBrowser.CHROME) |
| 24182 @Experimental | 24182 @Experimental() |
| 24183 // http://www.w3.org/TR/file-system-api/#idl-def-LocalFileSystem | 24183 // http://www.w3.org/TR/file-system-api/#idl-def-LocalFileSystem |
| 24184 void _resolveLocalFileSystemUrl(String url, _EntryCallback successCallback, [_
ErrorCallback errorCallback]) native; | 24184 void _resolveLocalFileSystemUrl(String url, _EntryCallback successCallback, [_
ErrorCallback errorCallback]) native; |
| 24185 | 24185 |
| 24186 @JSName('webkitResolveLocalFileSystemURL') | 24186 @JSName('webkitResolveLocalFileSystemURL') |
| 24187 @DomName('Window.webkitResolveLocalFileSystemURL') | 24187 @DomName('Window.webkitResolveLocalFileSystemURL') |
| 24188 @DocsEditable | 24188 @DocsEditable() |
| 24189 @SupportedBrowser(SupportedBrowser.CHROME) | 24189 @SupportedBrowser(SupportedBrowser.CHROME) |
| 24190 @Experimental | 24190 @Experimental() |
| 24191 // http://www.w3.org/TR/file-system-api/#idl-def-LocalFileSystem | 24191 // http://www.w3.org/TR/file-system-api/#idl-def-LocalFileSystem |
| 24192 Future<Entry> resolveLocalFileSystemUrl(String url) { | 24192 Future<Entry> resolveLocalFileSystemUrl(String url) { |
| 24193 var completer = new Completer<Entry>(); | 24193 var completer = new Completer<Entry>(); |
| 24194 _resolveLocalFileSystemUrl(url, | 24194 _resolveLocalFileSystemUrl(url, |
| 24195 (value) { completer.complete(value); }, | 24195 (value) { completer.complete(value); }, |
| 24196 (error) { completer.completeError(error); }); | 24196 (error) { completer.completeError(error); }); |
| 24197 return completer.future; | 24197 return completer.future; |
| 24198 } | 24198 } |
| 24199 | 24199 |
| 24200 @DomName('Window.onDOMContentLoaded') | 24200 @DomName('Window.onDOMContentLoaded') |
| 24201 @DocsEditable | 24201 @DocsEditable() |
| 24202 Stream<Event> get onContentLoaded => contentLoadedEvent.forTarget(this); | 24202 Stream<Event> get onContentLoaded => contentLoadedEvent.forTarget(this); |
| 24203 | 24203 |
| 24204 @DomName('Window.onabort') | 24204 @DomName('Window.onabort') |
| 24205 @DocsEditable | 24205 @DocsEditable() |
| 24206 Stream<Event> get onAbort => Element.abortEvent.forTarget(this); | 24206 Stream<Event> get onAbort => Element.abortEvent.forTarget(this); |
| 24207 | 24207 |
| 24208 @DomName('Window.onblur') | 24208 @DomName('Window.onblur') |
| 24209 @DocsEditable | 24209 @DocsEditable() |
| 24210 Stream<Event> get onBlur => Element.blurEvent.forTarget(this); | 24210 Stream<Event> get onBlur => Element.blurEvent.forTarget(this); |
| 24211 | 24211 |
| 24212 @DomName('Window.onchange') | 24212 @DomName('Window.onchange') |
| 24213 @DocsEditable | 24213 @DocsEditable() |
| 24214 Stream<Event> get onChange => Element.changeEvent.forTarget(this); | 24214 Stream<Event> get onChange => Element.changeEvent.forTarget(this); |
| 24215 | 24215 |
| 24216 @DomName('Window.onclick') | 24216 @DomName('Window.onclick') |
| 24217 @DocsEditable | 24217 @DocsEditable() |
| 24218 Stream<MouseEvent> get onClick => Element.clickEvent.forTarget(this); | 24218 Stream<MouseEvent> get onClick => Element.clickEvent.forTarget(this); |
| 24219 | 24219 |
| 24220 @DomName('Window.oncontextmenu') | 24220 @DomName('Window.oncontextmenu') |
| 24221 @DocsEditable | 24221 @DocsEditable() |
| 24222 Stream<MouseEvent> get onContextMenu => Element.contextMenuEvent.forTarget(thi
s); | 24222 Stream<MouseEvent> get onContextMenu => Element.contextMenuEvent.forTarget(thi
s); |
| 24223 | 24223 |
| 24224 @DomName('Window.ondblclick') | 24224 @DomName('Window.ondblclick') |
| 24225 @DocsEditable | 24225 @DocsEditable() |
| 24226 Stream<Event> get onDoubleClick => Element.doubleClickEvent.forTarget(this); | 24226 Stream<Event> get onDoubleClick => Element.doubleClickEvent.forTarget(this); |
| 24227 | 24227 |
| 24228 @DomName('Window.ondevicemotion') | 24228 @DomName('Window.ondevicemotion') |
| 24229 @DocsEditable | 24229 @DocsEditable() |
| 24230 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion | 24230 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion |
| 24231 @Experimental | 24231 @Experimental() |
| 24232 Stream<DeviceMotionEvent> get onDeviceMotion => deviceMotionEvent.forTarget(th
is); | 24232 Stream<DeviceMotionEvent> get onDeviceMotion => deviceMotionEvent.forTarget(th
is); |
| 24233 | 24233 |
| 24234 @DomName('Window.ondeviceorientation') | 24234 @DomName('Window.ondeviceorientation') |
| 24235 @DocsEditable | 24235 @DocsEditable() |
| 24236 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion | 24236 // http://dev.w3.org/geo/api/spec-source-orientation.html#devicemotion |
| 24237 @Experimental | 24237 @Experimental() |
| 24238 Stream<DeviceOrientationEvent> get onDeviceOrientation => deviceOrientationEve
nt.forTarget(this); | 24238 Stream<DeviceOrientationEvent> get onDeviceOrientation => deviceOrientationEve
nt.forTarget(this); |
| 24239 | 24239 |
| 24240 @DomName('Window.ondrag') | 24240 @DomName('Window.ondrag') |
| 24241 @DocsEditable | 24241 @DocsEditable() |
| 24242 Stream<MouseEvent> get onDrag => Element.dragEvent.forTarget(this); | 24242 Stream<MouseEvent> get onDrag => Element.dragEvent.forTarget(this); |
| 24243 | 24243 |
| 24244 @DomName('Window.ondragend') | 24244 @DomName('Window.ondragend') |
| 24245 @DocsEditable | 24245 @DocsEditable() |
| 24246 Stream<MouseEvent> get onDragEnd => Element.dragEndEvent.forTarget(this); | 24246 Stream<MouseEvent> get onDragEnd => Element.dragEndEvent.forTarget(this); |
| 24247 | 24247 |
| 24248 @DomName('Window.ondragenter') | 24248 @DomName('Window.ondragenter') |
| 24249 @DocsEditable | 24249 @DocsEditable() |
| 24250 Stream<MouseEvent> get onDragEnter => Element.dragEnterEvent.forTarget(this); | 24250 Stream<MouseEvent> get onDragEnter => Element.dragEnterEvent.forTarget(this); |
| 24251 | 24251 |
| 24252 @DomName('Window.ondragleave') | 24252 @DomName('Window.ondragleave') |
| 24253 @DocsEditable | 24253 @DocsEditable() |
| 24254 Stream<MouseEvent> get onDragLeave => Element.dragLeaveEvent.forTarget(this); | 24254 Stream<MouseEvent> get onDragLeave => Element.dragLeaveEvent.forTarget(this); |
| 24255 | 24255 |
| 24256 @DomName('Window.ondragover') | 24256 @DomName('Window.ondragover') |
| 24257 @DocsEditable | 24257 @DocsEditable() |
| 24258 Stream<MouseEvent> get onDragOver => Element.dragOverEvent.forTarget(this); | 24258 Stream<MouseEvent> get onDragOver => Element.dragOverEvent.forTarget(this); |
| 24259 | 24259 |
| 24260 @DomName('Window.ondragstart') | 24260 @DomName('Window.ondragstart') |
| 24261 @DocsEditable | 24261 @DocsEditable() |
| 24262 Stream<MouseEvent> get onDragStart => Element.dragStartEvent.forTarget(this); | 24262 Stream<MouseEvent> get onDragStart => Element.dragStartEvent.forTarget(this); |
| 24263 | 24263 |
| 24264 @DomName('Window.ondrop') | 24264 @DomName('Window.ondrop') |
| 24265 @DocsEditable | 24265 @DocsEditable() |
| 24266 Stream<MouseEvent> get onDrop => Element.dropEvent.forTarget(this); | 24266 Stream<MouseEvent> get onDrop => Element.dropEvent.forTarget(this); |
| 24267 | 24267 |
| 24268 @DomName('Window.onerror') | 24268 @DomName('Window.onerror') |
| 24269 @DocsEditable | 24269 @DocsEditable() |
| 24270 Stream<Event> get onError => Element.errorEvent.forTarget(this); | 24270 Stream<Event> get onError => Element.errorEvent.forTarget(this); |
| 24271 | 24271 |
| 24272 @DomName('Window.onfocus') | 24272 @DomName('Window.onfocus') |
| 24273 @DocsEditable | 24273 @DocsEditable() |
| 24274 Stream<Event> get onFocus => Element.focusEvent.forTarget(this); | 24274 Stream<Event> get onFocus => Element.focusEvent.forTarget(this); |
| 24275 | 24275 |
| 24276 @DomName('Window.onhashchange') | 24276 @DomName('Window.onhashchange') |
| 24277 @DocsEditable | 24277 @DocsEditable() |
| 24278 Stream<Event> get onHashChange => hashChangeEvent.forTarget(this); | 24278 Stream<Event> get onHashChange => hashChangeEvent.forTarget(this); |
| 24279 | 24279 |
| 24280 @DomName('Window.oninput') | 24280 @DomName('Window.oninput') |
| 24281 @DocsEditable | 24281 @DocsEditable() |
| 24282 Stream<Event> get onInput => Element.inputEvent.forTarget(this); | 24282 Stream<Event> get onInput => Element.inputEvent.forTarget(this); |
| 24283 | 24283 |
| 24284 @DomName('Window.oninvalid') | 24284 @DomName('Window.oninvalid') |
| 24285 @DocsEditable | 24285 @DocsEditable() |
| 24286 Stream<Event> get onInvalid => Element.invalidEvent.forTarget(this); | 24286 Stream<Event> get onInvalid => Element.invalidEvent.forTarget(this); |
| 24287 | 24287 |
| 24288 @DomName('Window.onkeydown') | 24288 @DomName('Window.onkeydown') |
| 24289 @DocsEditable | 24289 @DocsEditable() |
| 24290 Stream<KeyboardEvent> get onKeyDown => Element.keyDownEvent.forTarget(this); | 24290 Stream<KeyboardEvent> get onKeyDown => Element.keyDownEvent.forTarget(this); |
| 24291 | 24291 |
| 24292 @DomName('Window.onkeypress') | 24292 @DomName('Window.onkeypress') |
| 24293 @DocsEditable | 24293 @DocsEditable() |
| 24294 Stream<KeyboardEvent> get onKeyPress => Element.keyPressEvent.forTarget(this); | 24294 Stream<KeyboardEvent> get onKeyPress => Element.keyPressEvent.forTarget(this); |
| 24295 | 24295 |
| 24296 @DomName('Window.onkeyup') | 24296 @DomName('Window.onkeyup') |
| 24297 @DocsEditable | 24297 @DocsEditable() |
| 24298 Stream<KeyboardEvent> get onKeyUp => Element.keyUpEvent.forTarget(this); | 24298 Stream<KeyboardEvent> get onKeyUp => Element.keyUpEvent.forTarget(this); |
| 24299 | 24299 |
| 24300 @DomName('Window.onload') | 24300 @DomName('Window.onload') |
| 24301 @DocsEditable | 24301 @DocsEditable() |
| 24302 Stream<Event> get onLoad => Element.loadEvent.forTarget(this); | 24302 Stream<Event> get onLoad => Element.loadEvent.forTarget(this); |
| 24303 | 24303 |
| 24304 @DomName('Window.onmessage') | 24304 @DomName('Window.onmessage') |
| 24305 @DocsEditable | 24305 @DocsEditable() |
| 24306 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); | 24306 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); |
| 24307 | 24307 |
| 24308 @DomName('Window.onmousedown') | 24308 @DomName('Window.onmousedown') |
| 24309 @DocsEditable | 24309 @DocsEditable() |
| 24310 Stream<MouseEvent> get onMouseDown => Element.mouseDownEvent.forTarget(this); | 24310 Stream<MouseEvent> get onMouseDown => Element.mouseDownEvent.forTarget(this); |
| 24311 | 24311 |
| 24312 @DomName('Window.onmousemove') | 24312 @DomName('Window.onmousemove') |
| 24313 @DocsEditable | 24313 @DocsEditable() |
| 24314 Stream<MouseEvent> get onMouseMove => Element.mouseMoveEvent.forTarget(this); | 24314 Stream<MouseEvent> get onMouseMove => Element.mouseMoveEvent.forTarget(this); |
| 24315 | 24315 |
| 24316 @DomName('Window.onmouseout') | 24316 @DomName('Window.onmouseout') |
| 24317 @DocsEditable | 24317 @DocsEditable() |
| 24318 Stream<MouseEvent> get onMouseOut => Element.mouseOutEvent.forTarget(this); | 24318 Stream<MouseEvent> get onMouseOut => Element.mouseOutEvent.forTarget(this); |
| 24319 | 24319 |
| 24320 @DomName('Window.onmouseover') | 24320 @DomName('Window.onmouseover') |
| 24321 @DocsEditable | 24321 @DocsEditable() |
| 24322 Stream<MouseEvent> get onMouseOver => Element.mouseOverEvent.forTarget(this); | 24322 Stream<MouseEvent> get onMouseOver => Element.mouseOverEvent.forTarget(this); |
| 24323 | 24323 |
| 24324 @DomName('Window.onmouseup') | 24324 @DomName('Window.onmouseup') |
| 24325 @DocsEditable | 24325 @DocsEditable() |
| 24326 Stream<MouseEvent> get onMouseUp => Element.mouseUpEvent.forTarget(this); | 24326 Stream<MouseEvent> get onMouseUp => Element.mouseUpEvent.forTarget(this); |
| 24327 | 24327 |
| 24328 @DomName('Window.onmousewheel') | 24328 @DomName('Window.onmousewheel') |
| 24329 @DocsEditable | 24329 @DocsEditable() |
| 24330 Stream<WheelEvent> get onMouseWheel => Element.mouseWheelEvent.forTarget(this)
; | 24330 Stream<WheelEvent> get onMouseWheel => Element.mouseWheelEvent.forTarget(this)
; |
| 24331 | 24331 |
| 24332 @DomName('Window.onoffline') | 24332 @DomName('Window.onoffline') |
| 24333 @DocsEditable | 24333 @DocsEditable() |
| 24334 Stream<Event> get onOffline => offlineEvent.forTarget(this); | 24334 Stream<Event> get onOffline => offlineEvent.forTarget(this); |
| 24335 | 24335 |
| 24336 @DomName('Window.ononline') | 24336 @DomName('Window.ononline') |
| 24337 @DocsEditable | 24337 @DocsEditable() |
| 24338 Stream<Event> get onOnline => onlineEvent.forTarget(this); | 24338 Stream<Event> get onOnline => onlineEvent.forTarget(this); |
| 24339 | 24339 |
| 24340 @DomName('Window.onpagehide') | 24340 @DomName('Window.onpagehide') |
| 24341 @DocsEditable | 24341 @DocsEditable() |
| 24342 Stream<Event> get onPageHide => pageHideEvent.forTarget(this); | 24342 Stream<Event> get onPageHide => pageHideEvent.forTarget(this); |
| 24343 | 24343 |
| 24344 @DomName('Window.onpageshow') | 24344 @DomName('Window.onpageshow') |
| 24345 @DocsEditable | 24345 @DocsEditable() |
| 24346 Stream<Event> get onPageShow => pageShowEvent.forTarget(this); | 24346 Stream<Event> get onPageShow => pageShowEvent.forTarget(this); |
| 24347 | 24347 |
| 24348 @DomName('Window.onpopstate') | 24348 @DomName('Window.onpopstate') |
| 24349 @DocsEditable | 24349 @DocsEditable() |
| 24350 Stream<PopStateEvent> get onPopState => popStateEvent.forTarget(this); | 24350 Stream<PopStateEvent> get onPopState => popStateEvent.forTarget(this); |
| 24351 | 24351 |
| 24352 @DomName('Window.onreset') | 24352 @DomName('Window.onreset') |
| 24353 @DocsEditable | 24353 @DocsEditable() |
| 24354 Stream<Event> get onReset => Element.resetEvent.forTarget(this); | 24354 Stream<Event> get onReset => Element.resetEvent.forTarget(this); |
| 24355 | 24355 |
| 24356 @DomName('Window.onresize') | 24356 @DomName('Window.onresize') |
| 24357 @DocsEditable | 24357 @DocsEditable() |
| 24358 Stream<Event> get onResize => resizeEvent.forTarget(this); | 24358 Stream<Event> get onResize => resizeEvent.forTarget(this); |
| 24359 | 24359 |
| 24360 @DomName('Window.onscroll') | 24360 @DomName('Window.onscroll') |
| 24361 @DocsEditable | 24361 @DocsEditable() |
| 24362 Stream<Event> get onScroll => Element.scrollEvent.forTarget(this); | 24362 Stream<Event> get onScroll => Element.scrollEvent.forTarget(this); |
| 24363 | 24363 |
| 24364 @DomName('Window.onsearch') | 24364 @DomName('Window.onsearch') |
| 24365 @DocsEditable | 24365 @DocsEditable() |
| 24366 // http://www.w3.org/TR/html-markup/input.search.html | 24366 // http://www.w3.org/TR/html-markup/input.search.html |
| 24367 @Experimental | 24367 @Experimental() |
| 24368 Stream<Event> get onSearch => Element.searchEvent.forTarget(this); | 24368 Stream<Event> get onSearch => Element.searchEvent.forTarget(this); |
| 24369 | 24369 |
| 24370 @DomName('Window.onselect') | 24370 @DomName('Window.onselect') |
| 24371 @DocsEditable | 24371 @DocsEditable() |
| 24372 Stream<Event> get onSelect => Element.selectEvent.forTarget(this); | 24372 Stream<Event> get onSelect => Element.selectEvent.forTarget(this); |
| 24373 | 24373 |
| 24374 @DomName('Window.onstorage') | 24374 @DomName('Window.onstorage') |
| 24375 @DocsEditable | 24375 @DocsEditable() |
| 24376 Stream<StorageEvent> get onStorage => storageEvent.forTarget(this); | 24376 Stream<StorageEvent> get onStorage => storageEvent.forTarget(this); |
| 24377 | 24377 |
| 24378 @DomName('Window.onsubmit') | 24378 @DomName('Window.onsubmit') |
| 24379 @DocsEditable | 24379 @DocsEditable() |
| 24380 Stream<Event> get onSubmit => Element.submitEvent.forTarget(this); | 24380 Stream<Event> get onSubmit => Element.submitEvent.forTarget(this); |
| 24381 | 24381 |
| 24382 @DomName('Window.ontouchcancel') | 24382 @DomName('Window.ontouchcancel') |
| 24383 @DocsEditable | 24383 @DocsEditable() |
| 24384 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 24384 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 24385 @Experimental | 24385 @Experimental() |
| 24386 Stream<TouchEvent> get onTouchCancel => Element.touchCancelEvent.forTarget(thi
s); | 24386 Stream<TouchEvent> get onTouchCancel => Element.touchCancelEvent.forTarget(thi
s); |
| 24387 | 24387 |
| 24388 @DomName('Window.ontouchend') | 24388 @DomName('Window.ontouchend') |
| 24389 @DocsEditable | 24389 @DocsEditable() |
| 24390 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 24390 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 24391 @Experimental | 24391 @Experimental() |
| 24392 Stream<TouchEvent> get onTouchEnd => Element.touchEndEvent.forTarget(this); | 24392 Stream<TouchEvent> get onTouchEnd => Element.touchEndEvent.forTarget(this); |
| 24393 | 24393 |
| 24394 @DomName('Window.ontouchmove') | 24394 @DomName('Window.ontouchmove') |
| 24395 @DocsEditable | 24395 @DocsEditable() |
| 24396 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 24396 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 24397 @Experimental | 24397 @Experimental() |
| 24398 Stream<TouchEvent> get onTouchMove => Element.touchMoveEvent.forTarget(this); | 24398 Stream<TouchEvent> get onTouchMove => Element.touchMoveEvent.forTarget(this); |
| 24399 | 24399 |
| 24400 @DomName('Window.ontouchstart') | 24400 @DomName('Window.ontouchstart') |
| 24401 @DocsEditable | 24401 @DocsEditable() |
| 24402 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features | 24402 // http://www.w3.org/TR/touch-events/, http://www.chromestatus.com/features |
| 24403 @Experimental | 24403 @Experimental() |
| 24404 Stream<TouchEvent> get onTouchStart => Element.touchStartEvent.forTarget(this)
; | 24404 Stream<TouchEvent> get onTouchStart => Element.touchStartEvent.forTarget(this)
; |
| 24405 | 24405 |
| 24406 @DomName('Window.ontransitionend') | 24406 @DomName('Window.ontransitionend') |
| 24407 @DocsEditable | 24407 @DocsEditable() |
| 24408 Stream<TransitionEvent> get onTransitionEnd => Element.transitionEndEvent.forT
arget(this); | 24408 Stream<TransitionEvent> get onTransitionEnd => Element.transitionEndEvent.forT
arget(this); |
| 24409 | 24409 |
| 24410 @DomName('Window.onunload') | 24410 @DomName('Window.onunload') |
| 24411 @DocsEditable | 24411 @DocsEditable() |
| 24412 Stream<Event> get onUnload => unloadEvent.forTarget(this); | 24412 Stream<Event> get onUnload => unloadEvent.forTarget(this); |
| 24413 | 24413 |
| 24414 @DomName('Window.onwebkitAnimationEnd') | 24414 @DomName('Window.onwebkitAnimationEnd') |
| 24415 @DocsEditable | 24415 @DocsEditable() |
| 24416 @Experimental | 24416 @Experimental() |
| 24417 Stream<AnimationEvent> get onAnimationEnd => animationEndEvent.forTarget(this)
; | 24417 Stream<AnimationEvent> get onAnimationEnd => animationEndEvent.forTarget(this)
; |
| 24418 | 24418 |
| 24419 @DomName('Window.onwebkitAnimationIteration') | 24419 @DomName('Window.onwebkitAnimationIteration') |
| 24420 @DocsEditable | 24420 @DocsEditable() |
| 24421 @Experimental | 24421 @Experimental() |
| 24422 Stream<AnimationEvent> get onAnimationIteration => animationIterationEvent.for
Target(this); | 24422 Stream<AnimationEvent> get onAnimationIteration => animationIterationEvent.for
Target(this); |
| 24423 | 24423 |
| 24424 @DomName('Window.onwebkitAnimationStart') | 24424 @DomName('Window.onwebkitAnimationStart') |
| 24425 @DocsEditable | 24425 @DocsEditable() |
| 24426 @Experimental | 24426 @Experimental() |
| 24427 Stream<AnimationEvent> get onAnimationStart => animationStartEvent.forTarget(t
his); | 24427 Stream<AnimationEvent> get onAnimationStart => animationStartEvent.forTarget(t
his); |
| 24428 | 24428 |
| 24429 | 24429 |
| 24430 @DomName('DOMWindow.beforeunloadEvent') | 24430 @DomName('DOMWindow.beforeunloadEvent') |
| 24431 @DocsEditable | 24431 @DocsEditable() |
| 24432 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent = | 24432 static const EventStreamProvider<BeforeUnloadEvent> beforeUnloadEvent = |
| 24433 const _BeforeUnloadEventStreamProvider('beforeunload'); | 24433 const _BeforeUnloadEventStreamProvider('beforeunload'); |
| 24434 | 24434 |
| 24435 @DomName('DOMWindow.onbeforeunload') | 24435 @DomName('DOMWindow.onbeforeunload') |
| 24436 @DocsEditable | 24436 @DocsEditable() |
| 24437 Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this); | 24437 Stream<Event> get onBeforeUnload => beforeUnloadEvent.forTarget(this); |
| 24438 } | 24438 } |
| 24439 | 24439 |
| 24440 /** | 24440 /** |
| 24441 * Event object that is fired before the window is closed. | 24441 * Event object that is fired before the window is closed. |
| 24442 * | 24442 * |
| 24443 * The standard window close behavior can be prevented by setting the | 24443 * The standard window close behavior can be prevented by setting the |
| 24444 * [returnValue]. This will display a dialog to the user confirming that they | 24444 * [returnValue]. This will display a dialog to the user confirming that they |
| 24445 * want to close the page. | 24445 * want to close the page. |
| 24446 */ | 24446 */ |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24489 | 24489 |
| 24490 String getEventType(EventTarget target) { | 24490 String getEventType(EventTarget target) { |
| 24491 return _eventType; | 24491 return _eventType; |
| 24492 } | 24492 } |
| 24493 } | 24493 } |
| 24494 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24494 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24495 // for details. All rights reserved. Use of this source code is governed by a | 24495 // for details. All rights reserved. Use of this source code is governed by a |
| 24496 // BSD-style license that can be found in the LICENSE file. | 24496 // BSD-style license that can be found in the LICENSE file. |
| 24497 | 24497 |
| 24498 | 24498 |
| 24499 @DocsEditable | 24499 @DocsEditable() |
| 24500 @DomName('Worker') | 24500 @DomName('Worker') |
| 24501 @SupportedBrowser(SupportedBrowser.CHROME) | 24501 @SupportedBrowser(SupportedBrowser.CHROME) |
| 24502 @SupportedBrowser(SupportedBrowser.FIREFOX) | 24502 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 24503 @SupportedBrowser(SupportedBrowser.IE, '10') | 24503 @SupportedBrowser(SupportedBrowser.IE, '10') |
| 24504 @SupportedBrowser(SupportedBrowser.SAFARI) | 24504 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 24505 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#work
er | 24505 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#work
er |
| 24506 @Experimental // stable | 24506 @Experimental() // stable |
| 24507 class Worker extends AbstractWorker native "Worker" { | 24507 class Worker extends AbstractWorker native "Worker" { |
| 24508 // To suppress missing implicit constructor warnings. | 24508 // To suppress missing implicit constructor warnings. |
| 24509 factory Worker._() { throw new UnsupportedError("Not supported"); } | 24509 factory Worker._() { throw new UnsupportedError("Not supported"); } |
| 24510 | 24510 |
| 24511 @DomName('Worker.messageEvent') | 24511 @DomName('Worker.messageEvent') |
| 24512 @DocsEditable | 24512 @DocsEditable() |
| 24513 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea
mProvider<MessageEvent>('message'); | 24513 static const EventStreamProvider<MessageEvent> messageEvent = const EventStrea
mProvider<MessageEvent>('message'); |
| 24514 | 24514 |
| 24515 @DomName('Worker.Worker') | 24515 @DomName('Worker.Worker') |
| 24516 @DocsEditable | 24516 @DocsEditable() |
| 24517 factory Worker(String scriptUrl) { | 24517 factory Worker(String scriptUrl) { |
| 24518 return Worker._create_1(scriptUrl); | 24518 return Worker._create_1(scriptUrl); |
| 24519 } | 24519 } |
| 24520 static Worker _create_1(scriptUrl) => JS('Worker', 'new Worker(#)', scriptUrl)
; | 24520 static Worker _create_1(scriptUrl) => JS('Worker', 'new Worker(#)', scriptUrl)
; |
| 24521 | 24521 |
| 24522 /// Checks if this type is supported on the current platform. | 24522 /// Checks if this type is supported on the current platform. |
| 24523 static bool get supported => JS('bool', '(typeof window.Worker != "undefined")
'); | 24523 static bool get supported => JS('bool', '(typeof window.Worker != "undefined")
'); |
| 24524 | 24524 |
| 24525 @DomName('Worker.postMessage') | 24525 @DomName('Worker.postMessage') |
| 24526 @DocsEditable | 24526 @DocsEditable() |
| 24527 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) nativ
e; | 24527 void postMessage(/*SerializedScriptValue*/ message, [List messagePorts]) nativ
e; |
| 24528 | 24528 |
| 24529 @DomName('Worker.terminate') | 24529 @DomName('Worker.terminate') |
| 24530 @DocsEditable | 24530 @DocsEditable() |
| 24531 void terminate() native; | 24531 void terminate() native; |
| 24532 | 24532 |
| 24533 @DomName('Worker.onmessage') | 24533 @DomName('Worker.onmessage') |
| 24534 @DocsEditable | 24534 @DocsEditable() |
| 24535 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); | 24535 Stream<MessageEvent> get onMessage => messageEvent.forTarget(this); |
| 24536 } | 24536 } |
| 24537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24537 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24538 // for details. All rights reserved. Use of this source code is governed by a | 24538 // for details. All rights reserved. Use of this source code is governed by a |
| 24539 // BSD-style license that can be found in the LICENSE file. | 24539 // BSD-style license that can be found in the LICENSE file. |
| 24540 | 24540 |
| 24541 | 24541 |
| 24542 @DocsEditable | 24542 @DocsEditable() |
| 24543 @DomName('XPathEvaluator') | 24543 @DomName('XPathEvaluator') |
| 24544 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator | 24544 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathEvaluator |
| 24545 @deprecated // experimental | 24545 @deprecated // experimental |
| 24546 class XPathEvaluator extends Interceptor native "XPathEvaluator" { | 24546 class XPathEvaluator extends Interceptor native "XPathEvaluator" { |
| 24547 | 24547 |
| 24548 @DomName('XPathEvaluator.XPathEvaluator') | 24548 @DomName('XPathEvaluator.XPathEvaluator') |
| 24549 @DocsEditable | 24549 @DocsEditable() |
| 24550 factory XPathEvaluator() { | 24550 factory XPathEvaluator() { |
| 24551 return XPathEvaluator._create_1(); | 24551 return XPathEvaluator._create_1(); |
| 24552 } | 24552 } |
| 24553 static XPathEvaluator _create_1() => JS('XPathEvaluator', 'new XPathEvaluator(
)'); | 24553 static XPathEvaluator _create_1() => JS('XPathEvaluator', 'new XPathEvaluator(
)'); |
| 24554 | 24554 |
| 24555 @DomName('XPathEvaluator.createExpression') | 24555 @DomName('XPathEvaluator.createExpression') |
| 24556 @DocsEditable | 24556 @DocsEditable() |
| 24557 XPathExpression createExpression(String expression, XPathNSResolver resolver)
native; | 24557 XPathExpression createExpression(String expression, XPathNSResolver resolver)
native; |
| 24558 | 24558 |
| 24559 @DomName('XPathEvaluator.createNSResolver') | 24559 @DomName('XPathEvaluator.createNSResolver') |
| 24560 @DocsEditable | 24560 @DocsEditable() |
| 24561 XPathNSResolver createNSResolver(Node nodeResolver) native; | 24561 XPathNSResolver createNSResolver(Node nodeResolver) native; |
| 24562 | 24562 |
| 24563 @DomName('XPathEvaluator.evaluate') | 24563 @DomName('XPathEvaluator.evaluate') |
| 24564 @DocsEditable | 24564 @DocsEditable() |
| 24565 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso
lver, int type, XPathResult inResult) native; | 24565 XPathResult evaluate(String expression, Node contextNode, XPathNSResolver reso
lver, int type, XPathResult inResult) native; |
| 24566 } | 24566 } |
| 24567 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24567 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24568 // for details. All rights reserved. Use of this source code is governed by a | 24568 // for details. All rights reserved. Use of this source code is governed by a |
| 24569 // BSD-style license that can be found in the LICENSE file. | 24569 // BSD-style license that can be found in the LICENSE file. |
| 24570 | 24570 |
| 24571 | 24571 |
| 24572 @DocsEditable | 24572 @DocsEditable() |
| 24573 @DomName('XPathException') | 24573 @DomName('XPathException') |
| 24574 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathException | 24574 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathException |
| 24575 @deprecated // experimental | 24575 @deprecated // experimental |
| 24576 class XPathException extends Interceptor native "XPathException" { | 24576 class XPathException extends Interceptor native "XPathException" { |
| 24577 | 24577 |
| 24578 @DomName('XPathException.INVALID_EXPRESSION_ERR') | 24578 @DomName('XPathException.INVALID_EXPRESSION_ERR') |
| 24579 @DocsEditable | 24579 @DocsEditable() |
| 24580 static const int INVALID_EXPRESSION_ERR = 51; | 24580 static const int INVALID_EXPRESSION_ERR = 51; |
| 24581 | 24581 |
| 24582 @DomName('XPathException.TYPE_ERR') | 24582 @DomName('XPathException.TYPE_ERR') |
| 24583 @DocsEditable | 24583 @DocsEditable() |
| 24584 static const int TYPE_ERR = 52; | 24584 static const int TYPE_ERR = 52; |
| 24585 | 24585 |
| 24586 @DomName('XPathException.code') | 24586 @DomName('XPathException.code') |
| 24587 @DocsEditable | 24587 @DocsEditable() |
| 24588 final int code; | 24588 final int code; |
| 24589 | 24589 |
| 24590 @DomName('XPathException.message') | 24590 @DomName('XPathException.message') |
| 24591 @DocsEditable | 24591 @DocsEditable() |
| 24592 @Experimental // non-standard | 24592 @Experimental() // non-standard |
| 24593 final String message; | 24593 final String message; |
| 24594 | 24594 |
| 24595 @DomName('XPathException.name') | 24595 @DomName('XPathException.name') |
| 24596 @DocsEditable | 24596 @DocsEditable() |
| 24597 @Experimental // non-standard | 24597 @Experimental() // non-standard |
| 24598 final String name; | 24598 final String name; |
| 24599 | 24599 |
| 24600 @DomName('XPathException.toString') | 24600 @DomName('XPathException.toString') |
| 24601 @DocsEditable | 24601 @DocsEditable() |
| 24602 String toString() native; | 24602 String toString() native; |
| 24603 } | 24603 } |
| 24604 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24604 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24605 // for details. All rights reserved. Use of this source code is governed by a | 24605 // for details. All rights reserved. Use of this source code is governed by a |
| 24606 // BSD-style license that can be found in the LICENSE file. | 24606 // BSD-style license that can be found in the LICENSE file. |
| 24607 | 24607 |
| 24608 | 24608 |
| 24609 @DocsEditable | 24609 @DocsEditable() |
| 24610 @DomName('XPathExpression') | 24610 @DomName('XPathExpression') |
| 24611 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathExpression | 24611 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathExpression |
| 24612 @deprecated // experimental | 24612 @deprecated // experimental |
| 24613 class XPathExpression extends Interceptor native "XPathExpression" { | 24613 class XPathExpression extends Interceptor native "XPathExpression" { |
| 24614 | 24614 |
| 24615 @DomName('XPathExpression.evaluate') | 24615 @DomName('XPathExpression.evaluate') |
| 24616 @DocsEditable | 24616 @DocsEditable() |
| 24617 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native; | 24617 XPathResult evaluate(Node contextNode, int type, XPathResult inResult) native; |
| 24618 } | 24618 } |
| 24619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24619 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24620 // for details. All rights reserved. Use of this source code is governed by a | 24620 // for details. All rights reserved. Use of this source code is governed by a |
| 24621 // BSD-style license that can be found in the LICENSE file. | 24621 // BSD-style license that can be found in the LICENSE file. |
| 24622 | 24622 |
| 24623 | 24623 |
| 24624 @DocsEditable | 24624 @DocsEditable() |
| 24625 @DomName('XPathNSResolver') | 24625 @DomName('XPathNSResolver') |
| 24626 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathNSResolver | 24626 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathNSResolver |
| 24627 @deprecated // experimental | 24627 @deprecated // experimental |
| 24628 class XPathNSResolver extends Interceptor native "XPathNSResolver" { | 24628 class XPathNSResolver extends Interceptor native "XPathNSResolver" { |
| 24629 | 24629 |
| 24630 @JSName('lookupNamespaceURI') | 24630 @JSName('lookupNamespaceURI') |
| 24631 @DomName('XPathNSResolver.lookupNamespaceURI') | 24631 @DomName('XPathNSResolver.lookupNamespaceURI') |
| 24632 @DocsEditable | 24632 @DocsEditable() |
| 24633 String lookupNamespaceUri(String prefix) native; | 24633 String lookupNamespaceUri(String prefix) native; |
| 24634 } | 24634 } |
| 24635 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24635 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24636 // for details. All rights reserved. Use of this source code is governed by a | 24636 // for details. All rights reserved. Use of this source code is governed by a |
| 24637 // BSD-style license that can be found in the LICENSE file. | 24637 // BSD-style license that can be found in the LICENSE file. |
| 24638 | 24638 |
| 24639 | 24639 |
| 24640 @DocsEditable | 24640 @DocsEditable() |
| 24641 @DomName('XPathResult') | 24641 @DomName('XPathResult') |
| 24642 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult | 24642 // http://www.w3.org/TR/DOM-Level-3-XPath/xpath.html#XPathResult |
| 24643 @deprecated // experimental | 24643 @deprecated // experimental |
| 24644 class XPathResult extends Interceptor native "XPathResult" { | 24644 class XPathResult extends Interceptor native "XPathResult" { |
| 24645 | 24645 |
| 24646 @DomName('XPathResult.ANY_TYPE') | 24646 @DomName('XPathResult.ANY_TYPE') |
| 24647 @DocsEditable | 24647 @DocsEditable() |
| 24648 static const int ANY_TYPE = 0; | 24648 static const int ANY_TYPE = 0; |
| 24649 | 24649 |
| 24650 @DomName('XPathResult.ANY_UNORDERED_NODE_TYPE') | 24650 @DomName('XPathResult.ANY_UNORDERED_NODE_TYPE') |
| 24651 @DocsEditable | 24651 @DocsEditable() |
| 24652 static const int ANY_UNORDERED_NODE_TYPE = 8; | 24652 static const int ANY_UNORDERED_NODE_TYPE = 8; |
| 24653 | 24653 |
| 24654 @DomName('XPathResult.BOOLEAN_TYPE') | 24654 @DomName('XPathResult.BOOLEAN_TYPE') |
| 24655 @DocsEditable | 24655 @DocsEditable() |
| 24656 static const int BOOLEAN_TYPE = 3; | 24656 static const int BOOLEAN_TYPE = 3; |
| 24657 | 24657 |
| 24658 @DomName('XPathResult.FIRST_ORDERED_NODE_TYPE') | 24658 @DomName('XPathResult.FIRST_ORDERED_NODE_TYPE') |
| 24659 @DocsEditable | 24659 @DocsEditable() |
| 24660 static const int FIRST_ORDERED_NODE_TYPE = 9; | 24660 static const int FIRST_ORDERED_NODE_TYPE = 9; |
| 24661 | 24661 |
| 24662 @DomName('XPathResult.NUMBER_TYPE') | 24662 @DomName('XPathResult.NUMBER_TYPE') |
| 24663 @DocsEditable | 24663 @DocsEditable() |
| 24664 static const int NUMBER_TYPE = 1; | 24664 static const int NUMBER_TYPE = 1; |
| 24665 | 24665 |
| 24666 @DomName('XPathResult.ORDERED_NODE_ITERATOR_TYPE') | 24666 @DomName('XPathResult.ORDERED_NODE_ITERATOR_TYPE') |
| 24667 @DocsEditable | 24667 @DocsEditable() |
| 24668 static const int ORDERED_NODE_ITERATOR_TYPE = 5; | 24668 static const int ORDERED_NODE_ITERATOR_TYPE = 5; |
| 24669 | 24669 |
| 24670 @DomName('XPathResult.ORDERED_NODE_SNAPSHOT_TYPE') | 24670 @DomName('XPathResult.ORDERED_NODE_SNAPSHOT_TYPE') |
| 24671 @DocsEditable | 24671 @DocsEditable() |
| 24672 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7; | 24672 static const int ORDERED_NODE_SNAPSHOT_TYPE = 7; |
| 24673 | 24673 |
| 24674 @DomName('XPathResult.STRING_TYPE') | 24674 @DomName('XPathResult.STRING_TYPE') |
| 24675 @DocsEditable | 24675 @DocsEditable() |
| 24676 static const int STRING_TYPE = 2; | 24676 static const int STRING_TYPE = 2; |
| 24677 | 24677 |
| 24678 @DomName('XPathResult.UNORDERED_NODE_ITERATOR_TYPE') | 24678 @DomName('XPathResult.UNORDERED_NODE_ITERATOR_TYPE') |
| 24679 @DocsEditable | 24679 @DocsEditable() |
| 24680 static const int UNORDERED_NODE_ITERATOR_TYPE = 4; | 24680 static const int UNORDERED_NODE_ITERATOR_TYPE = 4; |
| 24681 | 24681 |
| 24682 @DomName('XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE') | 24682 @DomName('XPathResult.UNORDERED_NODE_SNAPSHOT_TYPE') |
| 24683 @DocsEditable | 24683 @DocsEditable() |
| 24684 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6; | 24684 static const int UNORDERED_NODE_SNAPSHOT_TYPE = 6; |
| 24685 | 24685 |
| 24686 @DomName('XPathResult.booleanValue') | 24686 @DomName('XPathResult.booleanValue') |
| 24687 @DocsEditable | 24687 @DocsEditable() |
| 24688 final bool booleanValue; | 24688 final bool booleanValue; |
| 24689 | 24689 |
| 24690 @DomName('XPathResult.invalidIteratorState') | 24690 @DomName('XPathResult.invalidIteratorState') |
| 24691 @DocsEditable | 24691 @DocsEditable() |
| 24692 final bool invalidIteratorState; | 24692 final bool invalidIteratorState; |
| 24693 | 24693 |
| 24694 @DomName('XPathResult.numberValue') | 24694 @DomName('XPathResult.numberValue') |
| 24695 @DocsEditable | 24695 @DocsEditable() |
| 24696 final num numberValue; | 24696 final num numberValue; |
| 24697 | 24697 |
| 24698 @DomName('XPathResult.resultType') | 24698 @DomName('XPathResult.resultType') |
| 24699 @DocsEditable | 24699 @DocsEditable() |
| 24700 final int resultType; | 24700 final int resultType; |
| 24701 | 24701 |
| 24702 @DomName('XPathResult.singleNodeValue') | 24702 @DomName('XPathResult.singleNodeValue') |
| 24703 @DocsEditable | 24703 @DocsEditable() |
| 24704 final Node singleNodeValue; | 24704 final Node singleNodeValue; |
| 24705 | 24705 |
| 24706 @DomName('XPathResult.snapshotLength') | 24706 @DomName('XPathResult.snapshotLength') |
| 24707 @DocsEditable | 24707 @DocsEditable() |
| 24708 final int snapshotLength; | 24708 final int snapshotLength; |
| 24709 | 24709 |
| 24710 @DomName('XPathResult.stringValue') | 24710 @DomName('XPathResult.stringValue') |
| 24711 @DocsEditable | 24711 @DocsEditable() |
| 24712 final String stringValue; | 24712 final String stringValue; |
| 24713 | 24713 |
| 24714 @DomName('XPathResult.iterateNext') | 24714 @DomName('XPathResult.iterateNext') |
| 24715 @DocsEditable | 24715 @DocsEditable() |
| 24716 Node iterateNext() native; | 24716 Node iterateNext() native; |
| 24717 | 24717 |
| 24718 @DomName('XPathResult.snapshotItem') | 24718 @DomName('XPathResult.snapshotItem') |
| 24719 @DocsEditable | 24719 @DocsEditable() |
| 24720 Node snapshotItem(int index) native; | 24720 Node snapshotItem(int index) native; |
| 24721 } | 24721 } |
| 24722 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24722 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24723 // for details. All rights reserved. Use of this source code is governed by a | 24723 // for details. All rights reserved. Use of this source code is governed by a |
| 24724 // BSD-style license that can be found in the LICENSE file. | 24724 // BSD-style license that can be found in the LICENSE file. |
| 24725 | 24725 |
| 24726 | 24726 |
| 24727 @DocsEditable | 24727 @DocsEditable() |
| 24728 @DomName('XMLSerializer') | 24728 @DomName('XMLSerializer') |
| 24729 // http://domparsing.spec.whatwg.org/#the-xmlserializer-interface | 24729 // http://domparsing.spec.whatwg.org/#the-xmlserializer-interface |
| 24730 @deprecated // stable | 24730 @deprecated // stable |
| 24731 class XmlSerializer extends Interceptor native "XMLSerializer" { | 24731 class XmlSerializer extends Interceptor native "XMLSerializer" { |
| 24732 | 24732 |
| 24733 @DomName('XMLSerializer.XMLSerializer') | 24733 @DomName('XMLSerializer.XMLSerializer') |
| 24734 @DocsEditable | 24734 @DocsEditable() |
| 24735 factory XmlSerializer() { | 24735 factory XmlSerializer() { |
| 24736 return XmlSerializer._create_1(); | 24736 return XmlSerializer._create_1(); |
| 24737 } | 24737 } |
| 24738 static XmlSerializer _create_1() => JS('XmlSerializer', 'new XMLSerializer()')
; | 24738 static XmlSerializer _create_1() => JS('XmlSerializer', 'new XMLSerializer()')
; |
| 24739 | 24739 |
| 24740 @DomName('XMLSerializer.serializeToString') | 24740 @DomName('XMLSerializer.serializeToString') |
| 24741 @DocsEditable | 24741 @DocsEditable() |
| 24742 String serializeToString(Node node) native; | 24742 String serializeToString(Node node) native; |
| 24743 } | 24743 } |
| 24744 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24744 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24745 // for details. All rights reserved. Use of this source code is governed by a | 24745 // for details. All rights reserved. Use of this source code is governed by a |
| 24746 // BSD-style license that can be found in the LICENSE file. | 24746 // BSD-style license that can be found in the LICENSE file. |
| 24747 | 24747 |
| 24748 | 24748 |
| 24749 @DocsEditable | 24749 @DocsEditable() |
| 24750 @DomName('XSLTProcessor') | 24750 @DomName('XSLTProcessor') |
| 24751 @SupportedBrowser(SupportedBrowser.CHROME) | 24751 @SupportedBrowser(SupportedBrowser.CHROME) |
| 24752 @SupportedBrowser(SupportedBrowser.FIREFOX) | 24752 @SupportedBrowser(SupportedBrowser.FIREFOX) |
| 24753 @SupportedBrowser(SupportedBrowser.SAFARI) | 24753 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 24754 @deprecated // nonstandard | 24754 @deprecated // nonstandard |
| 24755 class XsltProcessor extends Interceptor native "XSLTProcessor" { | 24755 class XsltProcessor extends Interceptor native "XSLTProcessor" { |
| 24756 | 24756 |
| 24757 @DomName('XSLTProcessor.XSLTProcessor') | 24757 @DomName('XSLTProcessor.XSLTProcessor') |
| 24758 @DocsEditable | 24758 @DocsEditable() |
| 24759 factory XsltProcessor() { | 24759 factory XsltProcessor() { |
| 24760 return XsltProcessor._create_1(); | 24760 return XsltProcessor._create_1(); |
| 24761 } | 24761 } |
| 24762 static XsltProcessor _create_1() => JS('XsltProcessor', 'new XSLTProcessor()')
; | 24762 static XsltProcessor _create_1() => JS('XsltProcessor', 'new XSLTProcessor()')
; |
| 24763 | 24763 |
| 24764 /// Checks if this type is supported on the current platform. | 24764 /// Checks if this type is supported on the current platform. |
| 24765 static bool get supported => JS('bool', '!!(window.XSLTProcessor)'); | 24765 static bool get supported => JS('bool', '!!(window.XSLTProcessor)'); |
| 24766 | 24766 |
| 24767 @DomName('XSLTProcessor.clearParameters') | 24767 @DomName('XSLTProcessor.clearParameters') |
| 24768 @DocsEditable | 24768 @DocsEditable() |
| 24769 void clearParameters() native; | 24769 void clearParameters() native; |
| 24770 | 24770 |
| 24771 @DomName('XSLTProcessor.getParameter') | 24771 @DomName('XSLTProcessor.getParameter') |
| 24772 @DocsEditable | 24772 @DocsEditable() |
| 24773 String getParameter(String namespaceURI, String localName) native; | 24773 String getParameter(String namespaceURI, String localName) native; |
| 24774 | 24774 |
| 24775 @DomName('XSLTProcessor.importStylesheet') | 24775 @DomName('XSLTProcessor.importStylesheet') |
| 24776 @DocsEditable | 24776 @DocsEditable() |
| 24777 void importStylesheet(Node stylesheet) native; | 24777 void importStylesheet(Node stylesheet) native; |
| 24778 | 24778 |
| 24779 @DomName('XSLTProcessor.removeParameter') | 24779 @DomName('XSLTProcessor.removeParameter') |
| 24780 @DocsEditable | 24780 @DocsEditable() |
| 24781 void removeParameter(String namespaceURI, String localName) native; | 24781 void removeParameter(String namespaceURI, String localName) native; |
| 24782 | 24782 |
| 24783 @DomName('XSLTProcessor.reset') | 24783 @DomName('XSLTProcessor.reset') |
| 24784 @DocsEditable | 24784 @DocsEditable() |
| 24785 void reset() native; | 24785 void reset() native; |
| 24786 | 24786 |
| 24787 @DomName('XSLTProcessor.setParameter') | 24787 @DomName('XSLTProcessor.setParameter') |
| 24788 @DocsEditable | 24788 @DocsEditable() |
| 24789 void setParameter(String namespaceURI, String localName, String value) native; | 24789 void setParameter(String namespaceURI, String localName, String value) native; |
| 24790 | 24790 |
| 24791 @DomName('XSLTProcessor.transformToDocument') | 24791 @DomName('XSLTProcessor.transformToDocument') |
| 24792 @DocsEditable | 24792 @DocsEditable() |
| 24793 Document transformToDocument(Node source) native; | 24793 Document transformToDocument(Node source) native; |
| 24794 | 24794 |
| 24795 @DomName('XSLTProcessor.transformToFragment') | 24795 @DomName('XSLTProcessor.transformToFragment') |
| 24796 @DocsEditable | 24796 @DocsEditable() |
| 24797 DocumentFragment transformToFragment(Node source, Document docVal) native; | 24797 DocumentFragment transformToFragment(Node source, Document docVal) native; |
| 24798 } | 24798 } |
| 24799 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24799 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24800 // for details. All rights reserved. Use of this source code is governed by a | 24800 // for details. All rights reserved. Use of this source code is governed by a |
| 24801 // BSD-style license that can be found in the LICENSE file. | 24801 // BSD-style license that can be found in the LICENSE file. |
| 24802 | 24802 |
| 24803 | 24803 |
| 24804 @DocsEditable | 24804 @DocsEditable() |
| 24805 @DomName('Attr') | 24805 @DomName('Attr') |
| 24806 class _Attr extends Node native "Attr" { | 24806 class _Attr extends Node native "Attr" { |
| 24807 // To suppress missing implicit constructor warnings. | 24807 // To suppress missing implicit constructor warnings. |
| 24808 factory _Attr._() { throw new UnsupportedError("Not supported"); } | 24808 factory _Attr._() { throw new UnsupportedError("Not supported"); } |
| 24809 | 24809 |
| 24810 @DomName('Attr.isId') | 24810 @DomName('Attr.isId') |
| 24811 @DocsEditable | 24811 @DocsEditable() |
| 24812 final bool isId; | 24812 final bool isId; |
| 24813 | 24813 |
| 24814 @DomName('Attr.name') | 24814 @DomName('Attr.name') |
| 24815 @DocsEditable | 24815 @DocsEditable() |
| 24816 final String name; | 24816 final String name; |
| 24817 | 24817 |
| 24818 @DomName('Attr.ownerElement') | 24818 @DomName('Attr.ownerElement') |
| 24819 @DocsEditable | 24819 @DocsEditable() |
| 24820 @deprecated // deprecated | 24820 @deprecated // deprecated |
| 24821 final Element ownerElement; | 24821 final Element ownerElement; |
| 24822 | 24822 |
| 24823 @DomName('Attr.specified') | 24823 @DomName('Attr.specified') |
| 24824 @DocsEditable | 24824 @DocsEditable() |
| 24825 @deprecated // deprecated | 24825 @deprecated // deprecated |
| 24826 final bool specified; | 24826 final bool specified; |
| 24827 | 24827 |
| 24828 @DomName('Attr.value') | 24828 @DomName('Attr.value') |
| 24829 @DocsEditable | 24829 @DocsEditable() |
| 24830 String value; | 24830 String value; |
| 24831 } | 24831 } |
| 24832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24832 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24833 // for details. All rights reserved. Use of this source code is governed by a | 24833 // for details. All rights reserved. Use of this source code is governed by a |
| 24834 // BSD-style license that can be found in the LICENSE file. | 24834 // BSD-style license that can be found in the LICENSE file. |
| 24835 | 24835 |
| 24836 | 24836 |
| 24837 @DocsEditable | 24837 @DocsEditable() |
| 24838 @DomName('CSSPrimitiveValue') | 24838 @DomName('CSSPrimitiveValue') |
| 24839 // http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface | 24839 // http://dev.w3.org/csswg/cssom/#the-cssstyledeclaration-interface |
| 24840 @deprecated // deprecated | 24840 @deprecated // deprecated |
| 24841 abstract class _CSSPrimitiveValue extends _CSSValue native "CSSPrimitiveValue" { | 24841 abstract class _CSSPrimitiveValue extends _CSSValue native "CSSPrimitiveValue" { |
| 24842 // To suppress missing implicit constructor warnings. | 24842 // To suppress missing implicit constructor warnings. |
| 24843 factory _CSSPrimitiveValue._() { throw new UnsupportedError("Not supported");
} | 24843 factory _CSSPrimitiveValue._() { throw new UnsupportedError("Not supported");
} |
| 24844 } | 24844 } |
| 24845 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24845 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24846 // for details. All rights reserved. Use of this source code is governed by a | 24846 // for details. All rights reserved. Use of this source code is governed by a |
| 24847 // BSD-style license that can be found in the LICENSE file. | 24847 // BSD-style license that can be found in the LICENSE file. |
| 24848 | 24848 |
| 24849 | 24849 |
| 24850 @DocsEditable | 24850 @DocsEditable() |
| 24851 @DomName('CSSValue') | 24851 @DomName('CSSValue') |
| 24852 // http://dev.w3.org/csswg/cssom/ | 24852 // http://dev.w3.org/csswg/cssom/ |
| 24853 @deprecated // deprecated | 24853 @deprecated // deprecated |
| 24854 abstract class _CSSValue extends Interceptor native "CSSValue" { | 24854 abstract class _CSSValue extends Interceptor native "CSSValue" { |
| 24855 } | 24855 } |
| 24856 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 24856 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 24857 // for details. All rights reserved. Use of this source code is governed by a | 24857 // for details. All rights reserved. Use of this source code is governed by a |
| 24858 // BSD-style license that can be found in the LICENSE file. | 24858 // BSD-style license that can be found in the LICENSE file. |
| 24859 | 24859 |
| 24860 | 24860 |
| 24861 @DocsEditable | 24861 @DocsEditable() |
| 24862 @DomName('ClientRect') | 24862 @DomName('ClientRect') |
| 24863 class _ClientRect extends Interceptor implements Rect native "ClientRect" { | 24863 class _ClientRect extends Interceptor implements Rect native "ClientRect" { |
| 24864 | 24864 |
| 24865 // NOTE! All code below should be common with Rect. | 24865 // NOTE! All code below should be common with Rect. |
| 24866 // TODO(blois): implement with mixins when available. | 24866 // TODO(blois): implement with mixins when available. |
| 24867 | 24867 |
| 24868 String toString() { | 24868 String toString() { |
| 24869 return '($left, $top, $width, $height)'; | 24869 return '($left, $top, $width, $height)'; |
| 24870 } | 24870 } |
| 24871 | 24871 |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 24951 * rectangle. | 24951 * rectangle. |
| 24952 */ | 24952 */ |
| 24953 Rect toInt() => new Rect(left.toInt(), top.toInt(), width.toInt(), | 24953 Rect toInt() => new Rect(left.toInt(), top.toInt(), width.toInt(), |
| 24954 height.toInt()); | 24954 height.toInt()); |
| 24955 | 24955 |
| 24956 Point get topLeft => new Point(this.left, this.top); | 24956 Point get topLeft => new Point(this.left, this.top); |
| 24957 Point get bottomRight => new Point(this.left + this.width, | 24957 Point get bottomRight => new Point(this.left + this.width, |
| 24958 this.top + this.height); | 24958 this.top + this.height); |
| 24959 | 24959 |
| 24960 @DomName('ClientRect.bottom') | 24960 @DomName('ClientRect.bottom') |
| 24961 @DocsEditable | 24961 @DocsEditable() |
| 24962 final num bottom; | 24962 final num bottom; |
| 24963 | 24963 |
| 24964 @DomName('ClientRect.height') | 24964 @DomName('ClientRect.height') |
| 24965 @DocsEditable | 24965 @DocsEditable() |
| 24966 final num height; | 24966 final num height; |
| 24967 | 24967 |
| 24968 @DomName('ClientRect.left') | 24968 @DomName('ClientRect.left') |
| 24969 @DocsEditable | 24969 @DocsEditable() |
| 24970 final num left; | 24970 final num left; |
| 24971 | 24971 |
| 24972 @DomName('ClientRect.right') | 24972 @DomName('ClientRect.right') |
| 24973 @DocsEditable | 24973 @DocsEditable() |
| 24974 final num right; | 24974 final num right; |
| 24975 | 24975 |
| 24976 @DomName('ClientRect.top') | 24976 @DomName('ClientRect.top') |
| 24977 @DocsEditable | 24977 @DocsEditable() |
| 24978 final num top; | 24978 final num top; |
| 24979 | 24979 |
| 24980 @DomName('ClientRect.width') | 24980 @DomName('ClientRect.width') |
| 24981 @DocsEditable | 24981 @DocsEditable() |
| 24982 final num width; | 24982 final num width; |
| 24983 } | 24983 } |
| 24984 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 24984 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 24985 // for details. All rights reserved. Use of this source code is governed by a | 24985 // for details. All rights reserved. Use of this source code is governed by a |
| 24986 // BSD-style license that can be found in the LICENSE file. | 24986 // BSD-style license that can be found in the LICENSE file. |
| 24987 | 24987 |
| 24988 | 24988 |
| 24989 @DocsEditable | 24989 @DocsEditable() |
| 24990 @DomName('ClientRectList') | 24990 @DomName('ClientRectList') |
| 24991 class _ClientRectList extends Interceptor with ListMixin<Rect>, ImmutableListMix
in<Rect> implements JavaScriptIndexingBehavior, List<Rect> native "ClientRectLis
t" { | 24991 class _ClientRectList extends Interceptor with ListMixin<Rect>, ImmutableListMix
in<Rect> implements JavaScriptIndexingBehavior, List<Rect> native "ClientRectLis
t" { |
| 24992 | 24992 |
| 24993 @DomName('ClientRectList.length') | 24993 @DomName('ClientRectList.length') |
| 24994 @DocsEditable | 24994 @DocsEditable() |
| 24995 int get length => JS("int", "#.length", this); | 24995 int get length => JS("int", "#.length", this); |
| 24996 | 24996 |
| 24997 Rect operator[](int index) { | 24997 Rect operator[](int index) { |
| 24998 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 24998 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 24999 index, index, length)) | 24999 index, index, length)) |
| 25000 throw new RangeError.range(index, 0, length); | 25000 throw new RangeError.range(index, 0, length); |
| 25001 return JS("Rect", "#[#]", this, index); | 25001 return JS("Rect", "#[#]", this, index); |
| 25002 } | 25002 } |
| 25003 void operator[]=(int index, Rect value) { | 25003 void operator[]=(int index, Rect value) { |
| 25004 throw new UnsupportedError("Cannot assign element of immutable List."); | 25004 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 25032 return JS('Rect', '#[0]', this); | 25032 return JS('Rect', '#[0]', this); |
| 25033 } | 25033 } |
| 25034 if (len == 0) throw new StateError("No elements"); | 25034 if (len == 0) throw new StateError("No elements"); |
| 25035 throw new StateError("More than one element"); | 25035 throw new StateError("More than one element"); |
| 25036 } | 25036 } |
| 25037 | 25037 |
| 25038 Rect elementAt(int index) => this[index]; | 25038 Rect elementAt(int index) => this[index]; |
| 25039 // -- end List<Rect> mixins. | 25039 // -- end List<Rect> mixins. |
| 25040 | 25040 |
| 25041 @DomName('ClientRectList.item') | 25041 @DomName('ClientRectList.item') |
| 25042 @DocsEditable | 25042 @DocsEditable() |
| 25043 Rect item(int index) native; | 25043 Rect item(int index) native; |
| 25044 } | 25044 } |
| 25045 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25045 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25046 // for details. All rights reserved. Use of this source code is governed by a | 25046 // for details. All rights reserved. Use of this source code is governed by a |
| 25047 // BSD-style license that can be found in the LICENSE file. | 25047 // BSD-style license that can be found in the LICENSE file. |
| 25048 | 25048 |
| 25049 | 25049 |
| 25050 @DocsEditable | 25050 @DocsEditable() |
| 25051 @DomName('Counter') | 25051 @DomName('Counter') |
| 25052 // http://dev.w3.org/csswg/cssom/ | 25052 // http://dev.w3.org/csswg/cssom/ |
| 25053 @deprecated // deprecated | 25053 @deprecated // deprecated |
| 25054 abstract class _Counter extends Interceptor native "Counter" { | 25054 abstract class _Counter extends Interceptor native "Counter" { |
| 25055 } | 25055 } |
| 25056 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25056 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25057 // for details. All rights reserved. Use of this source code is governed by a | 25057 // for details. All rights reserved. Use of this source code is governed by a |
| 25058 // BSD-style license that can be found in the LICENSE file. | 25058 // BSD-style license that can be found in the LICENSE file. |
| 25059 | 25059 |
| 25060 | 25060 |
| 25061 @DocsEditable | 25061 @DocsEditable() |
| 25062 @DomName('CSSRuleList') | 25062 @DomName('CSSRuleList') |
| 25063 class _CssRuleList extends Interceptor with ListMixin<CssRule>, ImmutableListMix
in<CssRule> implements JavaScriptIndexingBehavior, List<CssRule> native "CSSRule
List" { | 25063 class _CssRuleList extends Interceptor with ListMixin<CssRule>, ImmutableListMix
in<CssRule> implements JavaScriptIndexingBehavior, List<CssRule> native "CSSRule
List" { |
| 25064 | 25064 |
| 25065 @DomName('CSSRuleList.length') | 25065 @DomName('CSSRuleList.length') |
| 25066 @DocsEditable | 25066 @DocsEditable() |
| 25067 int get length => JS("int", "#.length", this); | 25067 int get length => JS("int", "#.length", this); |
| 25068 | 25068 |
| 25069 CssRule operator[](int index) { | 25069 CssRule operator[](int index) { |
| 25070 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 25070 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 25071 index, index, length)) | 25071 index, index, length)) |
| 25072 throw new RangeError.range(index, 0, length); | 25072 throw new RangeError.range(index, 0, length); |
| 25073 return JS("CssRule", "#[#]", this, index); | 25073 return JS("CssRule", "#[#]", this, index); |
| 25074 } | 25074 } |
| 25075 void operator[]=(int index, CssRule value) { | 25075 void operator[]=(int index, CssRule value) { |
| 25076 throw new UnsupportedError("Cannot assign element of immutable List."); | 25076 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 25104 return JS('CssRule', '#[0]', this); | 25104 return JS('CssRule', '#[0]', this); |
| 25105 } | 25105 } |
| 25106 if (len == 0) throw new StateError("No elements"); | 25106 if (len == 0) throw new StateError("No elements"); |
| 25107 throw new StateError("More than one element"); | 25107 throw new StateError("More than one element"); |
| 25108 } | 25108 } |
| 25109 | 25109 |
| 25110 CssRule elementAt(int index) => this[index]; | 25110 CssRule elementAt(int index) => this[index]; |
| 25111 // -- end List<CssRule> mixins. | 25111 // -- end List<CssRule> mixins. |
| 25112 | 25112 |
| 25113 @DomName('CSSRuleList.item') | 25113 @DomName('CSSRuleList.item') |
| 25114 @DocsEditable | 25114 @DocsEditable() |
| 25115 CssRule item(int index) native; | 25115 CssRule item(int index) native; |
| 25116 } | 25116 } |
| 25117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25117 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25118 // for details. All rights reserved. Use of this source code is governed by a | 25118 // for details. All rights reserved. Use of this source code is governed by a |
| 25119 // BSD-style license that can be found in the LICENSE file. | 25119 // BSD-style license that can be found in the LICENSE file. |
| 25120 | 25120 |
| 25121 | 25121 |
| 25122 @DocsEditable | 25122 @DocsEditable() |
| 25123 @DomName('CSSValueList') | 25123 @DomName('CSSValueList') |
| 25124 // http://dev.w3.org/csswg/cssom/ | 25124 // http://dev.w3.org/csswg/cssom/ |
| 25125 @deprecated // deprecated | 25125 @deprecated // deprecated |
| 25126 class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMi
xin<_CSSValue> implements JavaScriptIndexingBehavior, List<_CSSValue> native "CS
SValueList" { | 25126 class _CssValueList extends _CSSValue with ListMixin<_CSSValue>, ImmutableListMi
xin<_CSSValue> implements JavaScriptIndexingBehavior, List<_CSSValue> native "CS
SValueList" { |
| 25127 // To suppress missing implicit constructor warnings. | 25127 // To suppress missing implicit constructor warnings. |
| 25128 factory _CssValueList._() { throw new UnsupportedError("Not supported"); } | 25128 factory _CssValueList._() { throw new UnsupportedError("Not supported"); } |
| 25129 | 25129 |
| 25130 @DomName('CSSValueList.length') | 25130 @DomName('CSSValueList.length') |
| 25131 @DocsEditable | 25131 @DocsEditable() |
| 25132 int get length => JS("int", "#.length", this); | 25132 int get length => JS("int", "#.length", this); |
| 25133 | 25133 |
| 25134 _CSSValue operator[](int index) { | 25134 _CSSValue operator[](int index) { |
| 25135 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 25135 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 25136 index, index, length)) | 25136 index, index, length)) |
| 25137 throw new RangeError.range(index, 0, length); | 25137 throw new RangeError.range(index, 0, length); |
| 25138 return JS("_CSSValue", "#[#]", this, index); | 25138 return JS("_CSSValue", "#[#]", this, index); |
| 25139 } | 25139 } |
| 25140 void operator[]=(int index, _CSSValue value) { | 25140 void operator[]=(int index, _CSSValue value) { |
| 25141 throw new UnsupportedError("Cannot assign element of immutable List."); | 25141 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 25169 return JS('_CSSValue', '#[0]', this); | 25169 return JS('_CSSValue', '#[0]', this); |
| 25170 } | 25170 } |
| 25171 if (len == 0) throw new StateError("No elements"); | 25171 if (len == 0) throw new StateError("No elements"); |
| 25172 throw new StateError("More than one element"); | 25172 throw new StateError("More than one element"); |
| 25173 } | 25173 } |
| 25174 | 25174 |
| 25175 _CSSValue elementAt(int index) => this[index]; | 25175 _CSSValue elementAt(int index) => this[index]; |
| 25176 // -- end List<_CSSValue> mixins. | 25176 // -- end List<_CSSValue> mixins. |
| 25177 | 25177 |
| 25178 @DomName('CSSValueList.item') | 25178 @DomName('CSSValueList.item') |
| 25179 @DocsEditable | 25179 @DocsEditable() |
| 25180 _CSSValue item(int index) native; | 25180 _CSSValue item(int index) native; |
| 25181 } | 25181 } |
| 25182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25182 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25183 // for details. All rights reserved. Use of this source code is governed by a | 25183 // for details. All rights reserved. Use of this source code is governed by a |
| 25184 // BSD-style license that can be found in the LICENSE file. | 25184 // BSD-style license that can be found in the LICENSE file. |
| 25185 | 25185 |
| 25186 | 25186 |
| 25187 @DocsEditable | 25187 @DocsEditable() |
| 25188 @DomName('DOMFileSystemSync') | 25188 @DomName('DOMFileSystemSync') |
| 25189 @SupportedBrowser(SupportedBrowser.CHROME) | 25189 @SupportedBrowser(SupportedBrowser.CHROME) |
| 25190 @Experimental | 25190 @Experimental() |
| 25191 // http://www.w3.org/TR/file-system-api/#the-filesystemsync-interface | 25191 // http://www.w3.org/TR/file-system-api/#the-filesystemsync-interface |
| 25192 abstract class _DOMFileSystemSync extends Interceptor native "DOMFileSystemSync"
{ | 25192 abstract class _DOMFileSystemSync extends Interceptor native "DOMFileSystemSync"
{ |
| 25193 } | 25193 } |
| 25194 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25194 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25195 // for details. All rights reserved. Use of this source code is governed by a | 25195 // for details. All rights reserved. Use of this source code is governed by a |
| 25196 // BSD-style license that can be found in the LICENSE file. | 25196 // BSD-style license that can be found in the LICENSE file. |
| 25197 | 25197 |
| 25198 | 25198 |
| 25199 @DocsEditable | 25199 @DocsEditable() |
| 25200 @DomName('DatabaseSync') | 25200 @DomName('DatabaseSync') |
| 25201 @SupportedBrowser(SupportedBrowser.CHROME) | 25201 @SupportedBrowser(SupportedBrowser.CHROME) |
| 25202 @SupportedBrowser(SupportedBrowser.SAFARI) | 25202 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 25203 @Experimental | 25203 @Experimental() |
| 25204 // http://www.w3.org/TR/webdatabase/#databasesync | 25204 // http://www.w3.org/TR/webdatabase/#databasesync |
| 25205 @deprecated // deprecated | 25205 @deprecated // deprecated |
| 25206 abstract class _DatabaseSync extends Interceptor native "DatabaseSync" { | 25206 abstract class _DatabaseSync extends Interceptor native "DatabaseSync" { |
| 25207 } | 25207 } |
| 25208 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25208 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25209 // for details. All rights reserved. Use of this source code is governed by a | 25209 // for details. All rights reserved. Use of this source code is governed by a |
| 25210 // BSD-style license that can be found in the LICENSE file. | 25210 // BSD-style license that can be found in the LICENSE file. |
| 25211 | 25211 |
| 25212 | 25212 |
| 25213 @DocsEditable | 25213 @DocsEditable() |
| 25214 @DomName('DedicatedWorkerContext') | 25214 @DomName('DedicatedWorkerContext') |
| 25215 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html | 25215 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html |
| 25216 @Experimental | 25216 @Experimental() |
| 25217 abstract class _DedicatedWorkerContext extends _WorkerContext native "DedicatedW
orkerContext" { | 25217 abstract class _DedicatedWorkerContext extends _WorkerContext native "DedicatedW
orkerContext" { |
| 25218 // To suppress missing implicit constructor warnings. | 25218 // To suppress missing implicit constructor warnings. |
| 25219 factory _DedicatedWorkerContext._() { throw new UnsupportedError("Not supporte
d"); } | 25219 factory _DedicatedWorkerContext._() { throw new UnsupportedError("Not supporte
d"); } |
| 25220 } | 25220 } |
| 25221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25221 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25222 // for details. All rights reserved. Use of this source code is governed by a | 25222 // for details. All rights reserved. Use of this source code is governed by a |
| 25223 // BSD-style license that can be found in the LICENSE file. | 25223 // BSD-style license that can be found in the LICENSE file. |
| 25224 | 25224 |
| 25225 | 25225 |
| 25226 @DocsEditable | 25226 @DocsEditable() |
| 25227 @DomName('DirectoryEntrySync') | 25227 @DomName('DirectoryEntrySync') |
| 25228 // http://www.w3.org/TR/file-system-api/#the-directoryentrysync-interface | 25228 // http://www.w3.org/TR/file-system-api/#the-directoryentrysync-interface |
| 25229 @Experimental | 25229 @Experimental() |
| 25230 abstract class _DirectoryEntrySync extends _EntrySync native "DirectoryEntrySync
" { | 25230 abstract class _DirectoryEntrySync extends _EntrySync native "DirectoryEntrySync
" { |
| 25231 // To suppress missing implicit constructor warnings. | 25231 // To suppress missing implicit constructor warnings. |
| 25232 factory _DirectoryEntrySync._() { throw new UnsupportedError("Not supported");
} | 25232 factory _DirectoryEntrySync._() { throw new UnsupportedError("Not supported");
} |
| 25233 } | 25233 } |
| 25234 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25234 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25235 // for details. All rights reserved. Use of this source code is governed by a | 25235 // for details. All rights reserved. Use of this source code is governed by a |
| 25236 // BSD-style license that can be found in the LICENSE file. | 25236 // BSD-style license that can be found in the LICENSE file. |
| 25237 | 25237 |
| 25238 | 25238 |
| 25239 @DocsEditable | 25239 @DocsEditable() |
| 25240 @DomName('DirectoryReaderSync') | 25240 @DomName('DirectoryReaderSync') |
| 25241 // http://www.w3.org/TR/file-system-api/#idl-def-DirectoryReaderSync | 25241 // http://www.w3.org/TR/file-system-api/#idl-def-DirectoryReaderSync |
| 25242 @Experimental | 25242 @Experimental() |
| 25243 abstract class _DirectoryReaderSync extends Interceptor native "DirectoryReaderS
ync" { | 25243 abstract class _DirectoryReaderSync extends Interceptor native "DirectoryReaderS
ync" { |
| 25244 } | 25244 } |
| 25245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25245 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25246 // for details. All rights reserved. Use of this source code is governed by a | 25246 // for details. All rights reserved. Use of this source code is governed by a |
| 25247 // BSD-style license that can be found in the LICENSE file. | 25247 // BSD-style license that can be found in the LICENSE file. |
| 25248 | 25248 |
| 25249 | 25249 |
| 25250 @DocsEditable | 25250 @DocsEditable() |
| 25251 @DomName('WebKitPoint') | 25251 @DomName('WebKitPoint') |
| 25252 @SupportedBrowser(SupportedBrowser.CHROME) | 25252 @SupportedBrowser(SupportedBrowser.CHROME) |
| 25253 @SupportedBrowser(SupportedBrowser.SAFARI) | 25253 @SupportedBrowser(SupportedBrowser.SAFARI) |
| 25254 @Experimental | 25254 @Experimental() |
| 25255 // http://developer.apple.com/library/safari/#documentation/DataManagement/Refer
ence/DOMWindowAdditionsReference/DOMWindowAdditions/DOMWindowAdditions.html | 25255 // http://developer.apple.com/library/safari/#documentation/DataManagement/Refer
ence/DOMWindowAdditionsReference/DOMWindowAdditions/DOMWindowAdditions.html |
| 25256 @Experimental // non-standard | 25256 @Experimental() // non-standard |
| 25257 class _DomPoint extends Interceptor native "WebKitPoint" { | 25257 class _DomPoint extends Interceptor native "WebKitPoint" { |
| 25258 | 25258 |
| 25259 @DomName('WebKitPoint.DOMPoint') | 25259 @DomName('WebKitPoint.DOMPoint') |
| 25260 @DocsEditable | 25260 @DocsEditable() |
| 25261 factory _DomPoint(num x, num y) { | 25261 factory _DomPoint(num x, num y) { |
| 25262 return _DomPoint._create_1(x, y); | 25262 return _DomPoint._create_1(x, y); |
| 25263 } | 25263 } |
| 25264 static _DomPoint _create_1(x, y) => JS('_DomPoint', 'new WebKitPoint(#,#)', x,
y); | 25264 static _DomPoint _create_1(x, y) => JS('_DomPoint', 'new WebKitPoint(#,#)', x,
y); |
| 25265 | 25265 |
| 25266 /// Checks if this type is supported on the current platform. | 25266 /// Checks if this type is supported on the current platform. |
| 25267 static bool get supported => JS('bool', '!!(window.WebKitPoint)'); | 25267 static bool get supported => JS('bool', '!!(window.WebKitPoint)'); |
| 25268 | 25268 |
| 25269 @DomName('WebKitPoint.x') | 25269 @DomName('WebKitPoint.x') |
| 25270 @DocsEditable | 25270 @DocsEditable() |
| 25271 num x; | 25271 num x; |
| 25272 | 25272 |
| 25273 @DomName('WebKitPoint.y') | 25273 @DomName('WebKitPoint.y') |
| 25274 @DocsEditable | 25274 @DocsEditable() |
| 25275 num y; | 25275 num y; |
| 25276 } | 25276 } |
| 25277 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25277 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25278 // for details. All rights reserved. Use of this source code is governed by a | 25278 // for details. All rights reserved. Use of this source code is governed by a |
| 25279 // BSD-style license that can be found in the LICENSE file. | 25279 // BSD-style license that can be found in the LICENSE file. |
| 25280 | 25280 |
| 25281 | 25281 |
| 25282 @DocsEditable | 25282 @DocsEditable() |
| 25283 @DomName('Entity') | 25283 @DomName('Entity') |
| 25284 @deprecated // deprecated | 25284 @deprecated // deprecated |
| 25285 class _Entity extends Node native "Entity" { | 25285 class _Entity extends Node native "Entity" { |
| 25286 // To suppress missing implicit constructor warnings. | 25286 // To suppress missing implicit constructor warnings. |
| 25287 factory _Entity._() { throw new UnsupportedError("Not supported"); } | 25287 factory _Entity._() { throw new UnsupportedError("Not supported"); } |
| 25288 | 25288 |
| 25289 @DomName('Entity.notationName') | 25289 @DomName('Entity.notationName') |
| 25290 @DocsEditable | 25290 @DocsEditable() |
| 25291 final String notationName; | 25291 final String notationName; |
| 25292 | 25292 |
| 25293 @DomName('Entity.publicId') | 25293 @DomName('Entity.publicId') |
| 25294 @DocsEditable | 25294 @DocsEditable() |
| 25295 final String publicId; | 25295 final String publicId; |
| 25296 | 25296 |
| 25297 @DomName('Entity.systemId') | 25297 @DomName('Entity.systemId') |
| 25298 @DocsEditable | 25298 @DocsEditable() |
| 25299 final String systemId; | 25299 final String systemId; |
| 25300 } | 25300 } |
| 25301 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25301 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25302 // for details. All rights reserved. Use of this source code is governed by a | 25302 // for details. All rights reserved. Use of this source code is governed by a |
| 25303 // BSD-style license that can be found in the LICENSE file. | 25303 // BSD-style license that can be found in the LICENSE file. |
| 25304 | 25304 |
| 25305 | 25305 |
| 25306 @DocsEditable | 25306 @DocsEditable() |
| 25307 @DomName('EntryArray') | 25307 @DomName('EntryArray') |
| 25308 // http://www.w3.org/TR/file-system-api/#the-entry-interface | 25308 // http://www.w3.org/TR/file-system-api/#the-entry-interface |
| 25309 @Experimental | 25309 @Experimental() |
| 25310 class _EntryArray extends Interceptor with ListMixin<Entry>, ImmutableListMixin<
Entry> implements JavaScriptIndexingBehavior, List<Entry> native "EntryArray" { | 25310 class _EntryArray extends Interceptor with ListMixin<Entry>, ImmutableListMixin<
Entry> implements JavaScriptIndexingBehavior, List<Entry> native "EntryArray" { |
| 25311 | 25311 |
| 25312 @DomName('EntryArray.length') | 25312 @DomName('EntryArray.length') |
| 25313 @DocsEditable | 25313 @DocsEditable() |
| 25314 int get length => JS("int", "#.length", this); | 25314 int get length => JS("int", "#.length", this); |
| 25315 | 25315 |
| 25316 Entry operator[](int index) { | 25316 Entry operator[](int index) { |
| 25317 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 25317 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 25318 index, index, length)) | 25318 index, index, length)) |
| 25319 throw new RangeError.range(index, 0, length); | 25319 throw new RangeError.range(index, 0, length); |
| 25320 return JS("Entry", "#[#]", this, index); | 25320 return JS("Entry", "#[#]", this, index); |
| 25321 } | 25321 } |
| 25322 void operator[]=(int index, Entry value) { | 25322 void operator[]=(int index, Entry value) { |
| 25323 throw new UnsupportedError("Cannot assign element of immutable List."); | 25323 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 25351 return JS('Entry', '#[0]', this); | 25351 return JS('Entry', '#[0]', this); |
| 25352 } | 25352 } |
| 25353 if (len == 0) throw new StateError("No elements"); | 25353 if (len == 0) throw new StateError("No elements"); |
| 25354 throw new StateError("More than one element"); | 25354 throw new StateError("More than one element"); |
| 25355 } | 25355 } |
| 25356 | 25356 |
| 25357 Entry elementAt(int index) => this[index]; | 25357 Entry elementAt(int index) => this[index]; |
| 25358 // -- end List<Entry> mixins. | 25358 // -- end List<Entry> mixins. |
| 25359 | 25359 |
| 25360 @DomName('EntryArray.item') | 25360 @DomName('EntryArray.item') |
| 25361 @DocsEditable | 25361 @DocsEditable() |
| 25362 Entry item(int index) native; | 25362 Entry item(int index) native; |
| 25363 } | 25363 } |
| 25364 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25364 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25365 // for details. All rights reserved. Use of this source code is governed by a | 25365 // for details. All rights reserved. Use of this source code is governed by a |
| 25366 // BSD-style license that can be found in the LICENSE file. | 25366 // BSD-style license that can be found in the LICENSE file. |
| 25367 | 25367 |
| 25368 | 25368 |
| 25369 @DocsEditable | 25369 @DocsEditable() |
| 25370 @DomName('EntryArraySync') | 25370 @DomName('EntryArraySync') |
| 25371 // http://www.w3.org/TR/file-system-api/#idl-def-EntrySync | 25371 // http://www.w3.org/TR/file-system-api/#idl-def-EntrySync |
| 25372 @Experimental | 25372 @Experimental() |
| 25373 class _EntryArraySync extends Interceptor with ListMixin<_EntrySync>, ImmutableL
istMixin<_EntrySync> implements JavaScriptIndexingBehavior, List<_EntrySync> nat
ive "EntryArraySync" { | 25373 class _EntryArraySync extends Interceptor with ListMixin<_EntrySync>, ImmutableL
istMixin<_EntrySync> implements JavaScriptIndexingBehavior, List<_EntrySync> nat
ive "EntryArraySync" { |
| 25374 | 25374 |
| 25375 @DomName('EntryArraySync.length') | 25375 @DomName('EntryArraySync.length') |
| 25376 @DocsEditable | 25376 @DocsEditable() |
| 25377 int get length => JS("int", "#.length", this); | 25377 int get length => JS("int", "#.length", this); |
| 25378 | 25378 |
| 25379 _EntrySync operator[](int index) { | 25379 _EntrySync operator[](int index) { |
| 25380 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 25380 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 25381 index, index, length)) | 25381 index, index, length)) |
| 25382 throw new RangeError.range(index, 0, length); | 25382 throw new RangeError.range(index, 0, length); |
| 25383 return JS("_EntrySync", "#[#]", this, index); | 25383 return JS("_EntrySync", "#[#]", this, index); |
| 25384 } | 25384 } |
| 25385 void operator[]=(int index, _EntrySync value) { | 25385 void operator[]=(int index, _EntrySync value) { |
| 25386 throw new UnsupportedError("Cannot assign element of immutable List."); | 25386 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 25414 return JS('_EntrySync', '#[0]', this); | 25414 return JS('_EntrySync', '#[0]', this); |
| 25415 } | 25415 } |
| 25416 if (len == 0) throw new StateError("No elements"); | 25416 if (len == 0) throw new StateError("No elements"); |
| 25417 throw new StateError("More than one element"); | 25417 throw new StateError("More than one element"); |
| 25418 } | 25418 } |
| 25419 | 25419 |
| 25420 _EntrySync elementAt(int index) => this[index]; | 25420 _EntrySync elementAt(int index) => this[index]; |
| 25421 // -- end List<_EntrySync> mixins. | 25421 // -- end List<_EntrySync> mixins. |
| 25422 | 25422 |
| 25423 @DomName('EntryArraySync.item') | 25423 @DomName('EntryArraySync.item') |
| 25424 @DocsEditable | 25424 @DocsEditable() |
| 25425 _EntrySync item(int index) native; | 25425 _EntrySync item(int index) native; |
| 25426 } | 25426 } |
| 25427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25427 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25428 // for details. All rights reserved. Use of this source code is governed by a | 25428 // for details. All rights reserved. Use of this source code is governed by a |
| 25429 // BSD-style license that can be found in the LICENSE file. | 25429 // BSD-style license that can be found in the LICENSE file. |
| 25430 | 25430 |
| 25431 | 25431 |
| 25432 @DocsEditable | 25432 @DocsEditable() |
| 25433 @DomName('EntrySync') | 25433 @DomName('EntrySync') |
| 25434 // http://www.w3.org/TR/file-system-api/#idl-def-EntrySync | 25434 // http://www.w3.org/TR/file-system-api/#idl-def-EntrySync |
| 25435 @Experimental | 25435 @Experimental() |
| 25436 abstract class _EntrySync extends Interceptor native "EntrySync" { | 25436 abstract class _EntrySync extends Interceptor native "EntrySync" { |
| 25437 } | 25437 } |
| 25438 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25438 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25439 // for details. All rights reserved. Use of this source code is governed by a | 25439 // for details. All rights reserved. Use of this source code is governed by a |
| 25440 // BSD-style license that can be found in the LICENSE file. | 25440 // BSD-style license that can be found in the LICENSE file. |
| 25441 | 25441 |
| 25442 | 25442 |
| 25443 @DocsEditable | 25443 @DocsEditable() |
| 25444 @DomName('FileEntrySync') | 25444 @DomName('FileEntrySync') |
| 25445 // http://www.w3.org/TR/file-system-api/#the-fileentrysync-interface | 25445 // http://www.w3.org/TR/file-system-api/#the-fileentrysync-interface |
| 25446 @Experimental | 25446 @Experimental() |
| 25447 abstract class _FileEntrySync extends _EntrySync native "FileEntrySync" { | 25447 abstract class _FileEntrySync extends _EntrySync native "FileEntrySync" { |
| 25448 // To suppress missing implicit constructor warnings. | 25448 // To suppress missing implicit constructor warnings. |
| 25449 factory _FileEntrySync._() { throw new UnsupportedError("Not supported"); } | 25449 factory _FileEntrySync._() { throw new UnsupportedError("Not supported"); } |
| 25450 } | 25450 } |
| 25451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25451 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25452 // for details. All rights reserved. Use of this source code is governed by a | 25452 // for details. All rights reserved. Use of this source code is governed by a |
| 25453 // BSD-style license that can be found in the LICENSE file. | 25453 // BSD-style license that can be found in the LICENSE file. |
| 25454 | 25454 |
| 25455 | 25455 |
| 25456 @DocsEditable | 25456 @DocsEditable() |
| 25457 @DomName('FileReaderSync') | 25457 @DomName('FileReaderSync') |
| 25458 // http://www.w3.org/TR/FileAPI/#FileReaderSync | 25458 // http://www.w3.org/TR/FileAPI/#FileReaderSync |
| 25459 @Experimental | 25459 @Experimental() |
| 25460 abstract class _FileReaderSync extends Interceptor native "FileReaderSync" { | 25460 abstract class _FileReaderSync extends Interceptor native "FileReaderSync" { |
| 25461 | 25461 |
| 25462 @DomName('FileReaderSync.FileReaderSync') | 25462 @DomName('FileReaderSync.FileReaderSync') |
| 25463 @DocsEditable | 25463 @DocsEditable() |
| 25464 factory _FileReaderSync() { | 25464 factory _FileReaderSync() { |
| 25465 return _FileReaderSync._create_1(); | 25465 return _FileReaderSync._create_1(); |
| 25466 } | 25466 } |
| 25467 static _FileReaderSync _create_1() => JS('_FileReaderSync', 'new FileReaderSyn
c()'); | 25467 static _FileReaderSync _create_1() => JS('_FileReaderSync', 'new FileReaderSyn
c()'); |
| 25468 } | 25468 } |
| 25469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25469 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25470 // for details. All rights reserved. Use of this source code is governed by a | 25470 // for details. All rights reserved. Use of this source code is governed by a |
| 25471 // BSD-style license that can be found in the LICENSE file. | 25471 // BSD-style license that can be found in the LICENSE file. |
| 25472 | 25472 |
| 25473 | 25473 |
| 25474 @DocsEditable | 25474 @DocsEditable() |
| 25475 @DomName('FileWriterSync') | 25475 @DomName('FileWriterSync') |
| 25476 // http://www.w3.org/TR/file-writer-api/#idl-def-FileWriterSync | 25476 // http://www.w3.org/TR/file-writer-api/#idl-def-FileWriterSync |
| 25477 @Experimental | 25477 @Experimental() |
| 25478 abstract class _FileWriterSync extends Interceptor native "FileWriterSync" { | 25478 abstract class _FileWriterSync extends Interceptor native "FileWriterSync" { |
| 25479 } | 25479 } |
| 25480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25480 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25481 // for details. All rights reserved. Use of this source code is governed by a | 25481 // for details. All rights reserved. Use of this source code is governed by a |
| 25482 // BSD-style license that can be found in the LICENSE file. | 25482 // BSD-style license that can be found in the LICENSE file. |
| 25483 | 25483 |
| 25484 | 25484 |
| 25485 @DocsEditable | 25485 @DocsEditable() |
| 25486 @DomName('GamepadList') | 25486 @DomName('GamepadList') |
| 25487 // https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html | 25487 // https://dvcs.w3.org/hg/gamepad/raw-file/default/gamepad.html |
| 25488 @Experimental | 25488 @Experimental() |
| 25489 class _GamepadList extends Interceptor with ListMixin<Gamepad>, ImmutableListMix
in<Gamepad> implements JavaScriptIndexingBehavior, List<Gamepad> native "Gamepad
List" { | 25489 class _GamepadList extends Interceptor with ListMixin<Gamepad>, ImmutableListMix
in<Gamepad> implements JavaScriptIndexingBehavior, List<Gamepad> native "Gamepad
List" { |
| 25490 | 25490 |
| 25491 @DomName('GamepadList.length') | 25491 @DomName('GamepadList.length') |
| 25492 @DocsEditable | 25492 @DocsEditable() |
| 25493 int get length => JS("int", "#.length", this); | 25493 int get length => JS("int", "#.length", this); |
| 25494 | 25494 |
| 25495 Gamepad operator[](int index) { | 25495 Gamepad operator[](int index) { |
| 25496 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 25496 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 25497 index, index, length)) | 25497 index, index, length)) |
| 25498 throw new RangeError.range(index, 0, length); | 25498 throw new RangeError.range(index, 0, length); |
| 25499 return JS("Gamepad", "#[#]", this, index); | 25499 return JS("Gamepad", "#[#]", this, index); |
| 25500 } | 25500 } |
| 25501 void operator[]=(int index, Gamepad value) { | 25501 void operator[]=(int index, Gamepad value) { |
| 25502 throw new UnsupportedError("Cannot assign element of immutable List."); | 25502 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 25530 return JS('Gamepad', '#[0]', this); | 25530 return JS('Gamepad', '#[0]', this); |
| 25531 } | 25531 } |
| 25532 if (len == 0) throw new StateError("No elements"); | 25532 if (len == 0) throw new StateError("No elements"); |
| 25533 throw new StateError("More than one element"); | 25533 throw new StateError("More than one element"); |
| 25534 } | 25534 } |
| 25535 | 25535 |
| 25536 Gamepad elementAt(int index) => this[index]; | 25536 Gamepad elementAt(int index) => this[index]; |
| 25537 // -- end List<Gamepad> mixins. | 25537 // -- end List<Gamepad> mixins. |
| 25538 | 25538 |
| 25539 @DomName('GamepadList.item') | 25539 @DomName('GamepadList.item') |
| 25540 @DocsEditable | 25540 @DocsEditable() |
| 25541 Gamepad item(int index) native; | 25541 Gamepad item(int index) native; |
| 25542 } | 25542 } |
| 25543 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25543 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25544 // for details. All rights reserved. Use of this source code is governed by a | 25544 // for details. All rights reserved. Use of this source code is governed by a |
| 25545 // BSD-style license that can be found in the LICENSE file. | 25545 // BSD-style license that can be found in the LICENSE file. |
| 25546 | 25546 |
| 25547 | 25547 |
| 25548 @DocsEditable | 25548 @DocsEditable() |
| 25549 @DomName('HTMLAppletElement') | 25549 @DomName('HTMLAppletElement') |
| 25550 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#the
-applet-element | 25550 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#the
-applet-element |
| 25551 @deprecated // deprecated | 25551 @deprecated // deprecated |
| 25552 abstract class _HTMLAppletElement extends _HTMLElement native "HTMLAppletElement
" { | 25552 abstract class _HTMLAppletElement extends _HTMLElement native "HTMLAppletElement
" { |
| 25553 // To suppress missing implicit constructor warnings. | 25553 // To suppress missing implicit constructor warnings. |
| 25554 factory _HTMLAppletElement._() { throw new UnsupportedError("Not supported");
} | 25554 factory _HTMLAppletElement._() { throw new UnsupportedError("Not supported");
} |
| 25555 } | 25555 } |
| 25556 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25556 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25557 // for details. All rights reserved. Use of this source code is governed by a | 25557 // for details. All rights reserved. Use of this source code is governed by a |
| 25558 // BSD-style license that can be found in the LICENSE file. | 25558 // BSD-style license that can be found in the LICENSE file. |
| 25559 | 25559 |
| 25560 | 25560 |
| 25561 @DocsEditable | 25561 @DocsEditable() |
| 25562 @DomName('HTMLBaseFontElement') | 25562 @DomName('HTMLBaseFontElement') |
| 25563 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#bas
efont | 25563 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#bas
efont |
| 25564 @deprecated // deprecated | 25564 @deprecated // deprecated |
| 25565 abstract class _HTMLBaseFontElement extends _HTMLElement native "HTMLBaseFontEle
ment" { | 25565 abstract class _HTMLBaseFontElement extends _HTMLElement native "HTMLBaseFontEle
ment" { |
| 25566 // To suppress missing implicit constructor warnings. | 25566 // To suppress missing implicit constructor warnings. |
| 25567 factory _HTMLBaseFontElement._() { throw new UnsupportedError("Not supported")
; } | 25567 factory _HTMLBaseFontElement._() { throw new UnsupportedError("Not supported")
; } |
| 25568 } | 25568 } |
| 25569 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25569 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25570 // for details. All rights reserved. Use of this source code is governed by a | 25570 // for details. All rights reserved. Use of this source code is governed by a |
| 25571 // BSD-style license that can be found in the LICENSE file. | 25571 // BSD-style license that can be found in the LICENSE file. |
| 25572 | 25572 |
| 25573 | 25573 |
| 25574 @DocsEditable | 25574 @DocsEditable() |
| 25575 @DomName('HTMLDirectoryElement') | 25575 @DomName('HTMLDirectoryElement') |
| 25576 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#dir | 25576 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#dir |
| 25577 @deprecated // deprecated | 25577 @deprecated // deprecated |
| 25578 abstract class _HTMLDirectoryElement extends _HTMLElement native "HTMLDirectoryE
lement" { | 25578 abstract class _HTMLDirectoryElement extends _HTMLElement native "HTMLDirectoryE
lement" { |
| 25579 // To suppress missing implicit constructor warnings. | 25579 // To suppress missing implicit constructor warnings. |
| 25580 factory _HTMLDirectoryElement._() { throw new UnsupportedError("Not supported"
); } | 25580 factory _HTMLDirectoryElement._() { throw new UnsupportedError("Not supported"
); } |
| 25581 } | 25581 } |
| 25582 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25582 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25583 // for details. All rights reserved. Use of this source code is governed by a | 25583 // for details. All rights reserved. Use of this source code is governed by a |
| 25584 // BSD-style license that can be found in the LICENSE file. | 25584 // BSD-style license that can be found in the LICENSE file. |
| 25585 | 25585 |
| 25586 | 25586 |
| 25587 @DocsEditable | 25587 @DocsEditable() |
| 25588 @DomName('HTMLFontElement') | 25588 @DomName('HTMLFontElement') |
| 25589 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#htm
lfontelement | 25589 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#htm
lfontelement |
| 25590 @deprecated // deprecated | 25590 @deprecated // deprecated |
| 25591 abstract class _HTMLFontElement extends _HTMLElement native "HTMLFontElement" { | 25591 abstract class _HTMLFontElement extends _HTMLElement native "HTMLFontElement" { |
| 25592 // To suppress missing implicit constructor warnings. | 25592 // To suppress missing implicit constructor warnings. |
| 25593 factory _HTMLFontElement._() { throw new UnsupportedError("Not supported"); } | 25593 factory _HTMLFontElement._() { throw new UnsupportedError("Not supported"); } |
| 25594 } | 25594 } |
| 25595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25595 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25596 // for details. All rights reserved. Use of this source code is governed by a | 25596 // for details. All rights reserved. Use of this source code is governed by a |
| 25597 // BSD-style license that can be found in the LICENSE file. | 25597 // BSD-style license that can be found in the LICENSE file. |
| 25598 | 25598 |
| 25599 | 25599 |
| 25600 @DocsEditable | 25600 @DocsEditable() |
| 25601 @DomName('HTMLFrameElement') | 25601 @DomName('HTMLFrameElement') |
| 25602 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#htm
lframeelement | 25602 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#htm
lframeelement |
| 25603 @deprecated // deprecated | 25603 @deprecated // deprecated |
| 25604 abstract class _HTMLFrameElement extends _HTMLElement native "HTMLFrameElement"
{ | 25604 abstract class _HTMLFrameElement extends _HTMLElement native "HTMLFrameElement"
{ |
| 25605 // To suppress missing implicit constructor warnings. | 25605 // To suppress missing implicit constructor warnings. |
| 25606 factory _HTMLFrameElement._() { throw new UnsupportedError("Not supported"); } | 25606 factory _HTMLFrameElement._() { throw new UnsupportedError("Not supported"); } |
| 25607 } | 25607 } |
| 25608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25608 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25609 // for details. All rights reserved. Use of this source code is governed by a | 25609 // for details. All rights reserved. Use of this source code is governed by a |
| 25610 // BSD-style license that can be found in the LICENSE file. | 25610 // BSD-style license that can be found in the LICENSE file. |
| 25611 | 25611 |
| 25612 | 25612 |
| 25613 @DocsEditable | 25613 @DocsEditable() |
| 25614 @DomName('HTMLFrameSetElement') | 25614 @DomName('HTMLFrameSetElement') |
| 25615 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#fra
meset | 25615 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#fra
meset |
| 25616 @deprecated // deprecated | 25616 @deprecated // deprecated |
| 25617 abstract class _HTMLFrameSetElement extends _HTMLElement native "HTMLFrameSetEle
ment" { | 25617 abstract class _HTMLFrameSetElement extends _HTMLElement native "HTMLFrameSetEle
ment" { |
| 25618 // To suppress missing implicit constructor warnings. | 25618 // To suppress missing implicit constructor warnings. |
| 25619 factory _HTMLFrameSetElement._() { throw new UnsupportedError("Not supported")
; } | 25619 factory _HTMLFrameSetElement._() { throw new UnsupportedError("Not supported")
; } |
| 25620 } | 25620 } |
| 25621 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25621 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25622 // for details. All rights reserved. Use of this source code is governed by a | 25622 // for details. All rights reserved. Use of this source code is governed by a |
| 25623 // BSD-style license that can be found in the LICENSE file. | 25623 // BSD-style license that can be found in the LICENSE file. |
| 25624 | 25624 |
| 25625 | 25625 |
| 25626 @DocsEditable | 25626 @DocsEditable() |
| 25627 @DomName('HTMLMarqueeElement') | 25627 @DomName('HTMLMarqueeElement') |
| 25628 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#the
-marquee-element | 25628 // http://www.whatwg.org/specs/web-apps/current-work/multipage/obsolete.html#the
-marquee-element |
| 25629 @deprecated // deprecated | 25629 @deprecated // deprecated |
| 25630 abstract class _HTMLMarqueeElement extends _HTMLElement native "HTMLMarqueeEleme
nt" { | 25630 abstract class _HTMLMarqueeElement extends _HTMLElement native "HTMLMarqueeEleme
nt" { |
| 25631 // To suppress missing implicit constructor warnings. | 25631 // To suppress missing implicit constructor warnings. |
| 25632 factory _HTMLMarqueeElement._() { throw new UnsupportedError("Not supported");
} | 25632 factory _HTMLMarqueeElement._() { throw new UnsupportedError("Not supported");
} |
| 25633 } | 25633 } |
| 25634 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25634 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25635 // for details. All rights reserved. Use of this source code is governed by a | 25635 // for details. All rights reserved. Use of this source code is governed by a |
| 25636 // BSD-style license that can be found in the LICENSE file. | 25636 // BSD-style license that can be found in the LICENSE file. |
| 25637 | 25637 |
| 25638 | 25638 |
| 25639 @DocsEditable | 25639 @DocsEditable() |
| 25640 @DomName('NamedNodeMap') | 25640 @DomName('NamedNodeMap') |
| 25641 // http://dom.spec.whatwg.org/#namednodemap | 25641 // http://dom.spec.whatwg.org/#namednodemap |
| 25642 @deprecated // deprecated | 25642 @deprecated // deprecated |
| 25643 class _NamedNodeMap extends Interceptor with ListMixin<Node>, ImmutableListMixin
<Node> implements JavaScriptIndexingBehavior, List<Node> native "NamedNodeMap" { | 25643 class _NamedNodeMap extends Interceptor with ListMixin<Node>, ImmutableListMixin
<Node> implements JavaScriptIndexingBehavior, List<Node> native "NamedNodeMap" { |
| 25644 | 25644 |
| 25645 @DomName('NamedNodeMap.length') | 25645 @DomName('NamedNodeMap.length') |
| 25646 @DocsEditable | 25646 @DocsEditable() |
| 25647 int get length => JS("int", "#.length", this); | 25647 int get length => JS("int", "#.length", this); |
| 25648 | 25648 |
| 25649 Node operator[](int index) { | 25649 Node operator[](int index) { |
| 25650 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 25650 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 25651 index, index, length)) | 25651 index, index, length)) |
| 25652 throw new RangeError.range(index, 0, length); | 25652 throw new RangeError.range(index, 0, length); |
| 25653 return JS("Node", "#[#]", this, index); | 25653 return JS("Node", "#[#]", this, index); |
| 25654 } | 25654 } |
| 25655 void operator[]=(int index, Node value) { | 25655 void operator[]=(int index, Node value) { |
| 25656 throw new UnsupportedError("Cannot assign element of immutable List."); | 25656 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 25684 return JS('Node', '#[0]', this); | 25684 return JS('Node', '#[0]', this); |
| 25685 } | 25685 } |
| 25686 if (len == 0) throw new StateError("No elements"); | 25686 if (len == 0) throw new StateError("No elements"); |
| 25687 throw new StateError("More than one element"); | 25687 throw new StateError("More than one element"); |
| 25688 } | 25688 } |
| 25689 | 25689 |
| 25690 Node elementAt(int index) => this[index]; | 25690 Node elementAt(int index) => this[index]; |
| 25691 // -- end List<Node> mixins. | 25691 // -- end List<Node> mixins. |
| 25692 | 25692 |
| 25693 @DomName('NamedNodeMap.__getter__') | 25693 @DomName('NamedNodeMap.__getter__') |
| 25694 @DocsEditable | 25694 @DocsEditable() |
| 25695 Node __getter__(String name) native; | 25695 Node __getter__(String name) native; |
| 25696 | 25696 |
| 25697 @DomName('NamedNodeMap.getNamedItem') | 25697 @DomName('NamedNodeMap.getNamedItem') |
| 25698 @DocsEditable | 25698 @DocsEditable() |
| 25699 Node getNamedItem(String name) native; | 25699 Node getNamedItem(String name) native; |
| 25700 | 25700 |
| 25701 @DomName('NamedNodeMap.getNamedItemNS') | 25701 @DomName('NamedNodeMap.getNamedItemNS') |
| 25702 @DocsEditable | 25702 @DocsEditable() |
| 25703 Node getNamedItemNS(String namespaceURI, String localName) native; | 25703 Node getNamedItemNS(String namespaceURI, String localName) native; |
| 25704 | 25704 |
| 25705 @DomName('NamedNodeMap.item') | 25705 @DomName('NamedNodeMap.item') |
| 25706 @DocsEditable | 25706 @DocsEditable() |
| 25707 Node item(int index) native; | 25707 Node item(int index) native; |
| 25708 | 25708 |
| 25709 @DomName('NamedNodeMap.removeNamedItem') | 25709 @DomName('NamedNodeMap.removeNamedItem') |
| 25710 @DocsEditable | 25710 @DocsEditable() |
| 25711 Node removeNamedItem(String name) native; | 25711 Node removeNamedItem(String name) native; |
| 25712 | 25712 |
| 25713 @DomName('NamedNodeMap.removeNamedItemNS') | 25713 @DomName('NamedNodeMap.removeNamedItemNS') |
| 25714 @DocsEditable | 25714 @DocsEditable() |
| 25715 Node removeNamedItemNS(String namespaceURI, String localName) native; | 25715 Node removeNamedItemNS(String namespaceURI, String localName) native; |
| 25716 | 25716 |
| 25717 @DomName('NamedNodeMap.setNamedItem') | 25717 @DomName('NamedNodeMap.setNamedItem') |
| 25718 @DocsEditable | 25718 @DocsEditable() |
| 25719 Node setNamedItem(Node node) native; | 25719 Node setNamedItem(Node node) native; |
| 25720 | 25720 |
| 25721 @DomName('NamedNodeMap.setNamedItemNS') | 25721 @DomName('NamedNodeMap.setNamedItemNS') |
| 25722 @DocsEditable | 25722 @DocsEditable() |
| 25723 Node setNamedItemNS(Node node) native; | 25723 Node setNamedItemNS(Node node) native; |
| 25724 } | 25724 } |
| 25725 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25725 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25726 // for details. All rights reserved. Use of this source code is governed by a | 25726 // for details. All rights reserved. Use of this source code is governed by a |
| 25727 // BSD-style license that can be found in the LICENSE file. | 25727 // BSD-style license that can be found in the LICENSE file. |
| 25728 | 25728 |
| 25729 | 25729 |
| 25730 @DocsEditable | 25730 @DocsEditable() |
| 25731 @DomName('PagePopupController') | 25731 @DomName('PagePopupController') |
| 25732 @deprecated // nonstandard | 25732 @deprecated // nonstandard |
| 25733 abstract class _PagePopupController extends Interceptor native "PagePopupControl
ler" { | 25733 abstract class _PagePopupController extends Interceptor native "PagePopupControl
ler" { |
| 25734 } | 25734 } |
| 25735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25735 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25736 // for details. All rights reserved. Use of this source code is governed by a | 25736 // for details. All rights reserved. Use of this source code is governed by a |
| 25737 // BSD-style license that can be found in the LICENSE file. | 25737 // BSD-style license that can be found in the LICENSE file. |
| 25738 | 25738 |
| 25739 | 25739 |
| 25740 @DocsEditable | 25740 @DocsEditable() |
| 25741 @DomName('RGBColor') | 25741 @DomName('RGBColor') |
| 25742 // http://dev.w3.org/csswg/cssom/ | 25742 // http://dev.w3.org/csswg/cssom/ |
| 25743 @deprecated // deprecated | 25743 @deprecated // deprecated |
| 25744 abstract class _RGBColor extends Interceptor native "RGBColor" { | 25744 abstract class _RGBColor extends Interceptor native "RGBColor" { |
| 25745 } | 25745 } |
| 25746 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 25746 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file |
| 25747 // for details. All rights reserved. Use of this source code is governed by a | 25747 // for details. All rights reserved. Use of this source code is governed by a |
| 25748 // BSD-style license that can be found in the LICENSE file. | 25748 // BSD-style license that can be found in the LICENSE file. |
| 25749 | 25749 |
| 25750 | 25750 |
| 25751 // Omit RadioNodeList for dart2js. The Dart Form and FieldSet APIs don't | 25751 // Omit RadioNodeList for dart2js. The Dart Form and FieldSet APIs don't |
| 25752 // currently expose an API the returns RadioNodeList. The only use of a | 25752 // currently expose an API the returns RadioNodeList. The only use of a |
| 25753 // RadioNodeList is to get the selected value and it will be cleaner to | 25753 // RadioNodeList is to get the selected value and it will be cleaner to |
| 25754 // introduce a different API for that purpose. | 25754 // introduce a different API for that purpose. |
| 25755 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25755 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25756 // for details. All rights reserved. Use of this source code is governed by a | 25756 // for details. All rights reserved. Use of this source code is governed by a |
| 25757 // BSD-style license that can be found in the LICENSE file. | 25757 // BSD-style license that can be found in the LICENSE file. |
| 25758 | 25758 |
| 25759 | 25759 |
| 25760 @DocsEditable | 25760 @DocsEditable() |
| 25761 @DomName('Rect') | 25761 @DomName('Rect') |
| 25762 // http://dev.w3.org/csswg/cssom/ | 25762 // http://dev.w3.org/csswg/cssom/ |
| 25763 @deprecated // deprecated | 25763 @deprecated // deprecated |
| 25764 abstract class _Rect extends Interceptor native "Rect" { | 25764 abstract class _Rect extends Interceptor native "Rect" { |
| 25765 } | 25765 } |
| 25766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25766 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25767 // for details. All rights reserved. Use of this source code is governed by a | 25767 // for details. All rights reserved. Use of this source code is governed by a |
| 25768 // BSD-style license that can be found in the LICENSE file. | 25768 // BSD-style license that can be found in the LICENSE file. |
| 25769 | 25769 |
| 25770 | 25770 |
| 25771 @DocsEditable | 25771 @DocsEditable() |
| 25772 @DomName('SharedWorker') | 25772 @DomName('SharedWorker') |
| 25773 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#shar
ed-workers-and-the-sharedworker-interface | 25773 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#shar
ed-workers-and-the-sharedworker-interface |
| 25774 @Experimental | 25774 @Experimental() |
| 25775 abstract class _SharedWorker extends AbstractWorker native "SharedWorker" { | 25775 abstract class _SharedWorker extends AbstractWorker native "SharedWorker" { |
| 25776 // To suppress missing implicit constructor warnings. | 25776 // To suppress missing implicit constructor warnings. |
| 25777 factory _SharedWorker._() { throw new UnsupportedError("Not supported"); } | 25777 factory _SharedWorker._() { throw new UnsupportedError("Not supported"); } |
| 25778 | 25778 |
| 25779 @DomName('SharedWorker.SharedWorker') | 25779 @DomName('SharedWorker.SharedWorker') |
| 25780 @DocsEditable | 25780 @DocsEditable() |
| 25781 factory _SharedWorker(String scriptURL, [String name]) { | 25781 factory _SharedWorker(String scriptURL, [String name]) { |
| 25782 if (name != null) { | 25782 if (name != null) { |
| 25783 return _SharedWorker._create_1(scriptURL, name); | 25783 return _SharedWorker._create_1(scriptURL, name); |
| 25784 } | 25784 } |
| 25785 return _SharedWorker._create_2(scriptURL); | 25785 return _SharedWorker._create_2(scriptURL); |
| 25786 } | 25786 } |
| 25787 static _SharedWorker _create_1(scriptURL, name) => JS('_SharedWorker', 'new Sh
aredWorker(#,#)', scriptURL, name); | 25787 static _SharedWorker _create_1(scriptURL, name) => JS('_SharedWorker', 'new Sh
aredWorker(#,#)', scriptURL, name); |
| 25788 static _SharedWorker _create_2(scriptURL) => JS('_SharedWorker', 'new SharedWo
rker(#)', scriptURL); | 25788 static _SharedWorker _create_2(scriptURL) => JS('_SharedWorker', 'new SharedWo
rker(#)', scriptURL); |
| 25789 } | 25789 } |
| 25790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25790 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25791 // for details. All rights reserved. Use of this source code is governed by a | 25791 // for details. All rights reserved. Use of this source code is governed by a |
| 25792 // BSD-style license that can be found in the LICENSE file. | 25792 // BSD-style license that can be found in the LICENSE file. |
| 25793 | 25793 |
| 25794 | 25794 |
| 25795 @DocsEditable | 25795 @DocsEditable() |
| 25796 @DomName('SharedWorkerContext') | 25796 @DomName('SharedWorkerContext') |
| 25797 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#shar
ed-workers-and-the-sharedworkerglobalscope-interface | 25797 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#shar
ed-workers-and-the-sharedworkerglobalscope-interface |
| 25798 @Experimental // nonstandard | 25798 @Experimental() // nonstandard |
| 25799 abstract class _SharedWorkerContext extends _WorkerContext native "SharedWorkerC
ontext" { | 25799 abstract class _SharedWorkerContext extends _WorkerContext native "SharedWorkerC
ontext" { |
| 25800 // To suppress missing implicit constructor warnings. | 25800 // To suppress missing implicit constructor warnings. |
| 25801 factory _SharedWorkerContext._() { throw new UnsupportedError("Not supported")
; } | 25801 factory _SharedWorkerContext._() { throw new UnsupportedError("Not supported")
; } |
| 25802 } | 25802 } |
| 25803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25803 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25804 // for details. All rights reserved. Use of this source code is governed by a | 25804 // for details. All rights reserved. Use of this source code is governed by a |
| 25805 // BSD-style license that can be found in the LICENSE file. | 25805 // BSD-style license that can be found in the LICENSE file. |
| 25806 | 25806 |
| 25807 | 25807 |
| 25808 @DocsEditable | 25808 @DocsEditable() |
| 25809 @DomName('SpeechInputResultList') | 25809 @DomName('SpeechInputResultList') |
| 25810 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api
-draft.html#speech_input_result_list_interface | 25810 // http://lists.w3.org/Archives/Public/public-xg-htmlspeech/2011Feb/att-0020/api
-draft.html#speech_input_result_list_interface |
| 25811 @Experimental | 25811 @Experimental() |
| 25812 class _SpeechInputResultList extends Interceptor with ListMixin<SpeechInputResul
t>, ImmutableListMixin<SpeechInputResult> implements JavaScriptIndexingBehavior,
List<SpeechInputResult> native "SpeechInputResultList" { | 25812 class _SpeechInputResultList extends Interceptor with ListMixin<SpeechInputResul
t>, ImmutableListMixin<SpeechInputResult> implements JavaScriptIndexingBehavior,
List<SpeechInputResult> native "SpeechInputResultList" { |
| 25813 | 25813 |
| 25814 @DomName('SpeechInputResultList.length') | 25814 @DomName('SpeechInputResultList.length') |
| 25815 @DocsEditable | 25815 @DocsEditable() |
| 25816 int get length => JS("int", "#.length", this); | 25816 int get length => JS("int", "#.length", this); |
| 25817 | 25817 |
| 25818 SpeechInputResult operator[](int index) { | 25818 SpeechInputResult operator[](int index) { |
| 25819 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 25819 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 25820 index, index, length)) | 25820 index, index, length)) |
| 25821 throw new RangeError.range(index, 0, length); | 25821 throw new RangeError.range(index, 0, length); |
| 25822 return JS("SpeechInputResult", "#[#]", this, index); | 25822 return JS("SpeechInputResult", "#[#]", this, index); |
| 25823 } | 25823 } |
| 25824 void operator[]=(int index, SpeechInputResult value) { | 25824 void operator[]=(int index, SpeechInputResult value) { |
| 25825 throw new UnsupportedError("Cannot assign element of immutable List."); | 25825 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 25853 return JS('SpeechInputResult', '#[0]', this); | 25853 return JS('SpeechInputResult', '#[0]', this); |
| 25854 } | 25854 } |
| 25855 if (len == 0) throw new StateError("No elements"); | 25855 if (len == 0) throw new StateError("No elements"); |
| 25856 throw new StateError("More than one element"); | 25856 throw new StateError("More than one element"); |
| 25857 } | 25857 } |
| 25858 | 25858 |
| 25859 SpeechInputResult elementAt(int index) => this[index]; | 25859 SpeechInputResult elementAt(int index) => this[index]; |
| 25860 // -- end List<SpeechInputResult> mixins. | 25860 // -- end List<SpeechInputResult> mixins. |
| 25861 | 25861 |
| 25862 @DomName('SpeechInputResultList.item') | 25862 @DomName('SpeechInputResultList.item') |
| 25863 @DocsEditable | 25863 @DocsEditable() |
| 25864 SpeechInputResult item(int index) native; | 25864 SpeechInputResult item(int index) native; |
| 25865 } | 25865 } |
| 25866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25866 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25867 // for details. All rights reserved. Use of this source code is governed by a | 25867 // for details. All rights reserved. Use of this source code is governed by a |
| 25868 // BSD-style license that can be found in the LICENSE file. | 25868 // BSD-style license that can be found in the LICENSE file. |
| 25869 | 25869 |
| 25870 | 25870 |
| 25871 @DocsEditable | 25871 @DocsEditable() |
| 25872 @DomName('SpeechRecognitionResultList') | 25872 @DomName('SpeechRecognitionResultList') |
| 25873 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechrecogniti
onresultlist | 25873 // https://dvcs.w3.org/hg/speech-api/raw-file/tip/speechapi.html#speechrecogniti
onresultlist |
| 25874 @Experimental | 25874 @Experimental() |
| 25875 class _SpeechRecognitionResultList extends Interceptor with ListMixin<SpeechReco
gnitionResult>, ImmutableListMixin<SpeechRecognitionResult> implements JavaScrip
tIndexingBehavior, List<SpeechRecognitionResult> native "SpeechRecognitionResult
List" { | 25875 class _SpeechRecognitionResultList extends Interceptor with ListMixin<SpeechReco
gnitionResult>, ImmutableListMixin<SpeechRecognitionResult> implements JavaScrip
tIndexingBehavior, List<SpeechRecognitionResult> native "SpeechRecognitionResult
List" { |
| 25876 | 25876 |
| 25877 @DomName('SpeechRecognitionResultList.length') | 25877 @DomName('SpeechRecognitionResultList.length') |
| 25878 @DocsEditable | 25878 @DocsEditable() |
| 25879 int get length => JS("int", "#.length", this); | 25879 int get length => JS("int", "#.length", this); |
| 25880 | 25880 |
| 25881 SpeechRecognitionResult operator[](int index) { | 25881 SpeechRecognitionResult operator[](int index) { |
| 25882 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 25882 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 25883 index, index, length)) | 25883 index, index, length)) |
| 25884 throw new RangeError.range(index, 0, length); | 25884 throw new RangeError.range(index, 0, length); |
| 25885 return JS("SpeechRecognitionResult", "#[#]", this, index); | 25885 return JS("SpeechRecognitionResult", "#[#]", this, index); |
| 25886 } | 25886 } |
| 25887 void operator[]=(int index, SpeechRecognitionResult value) { | 25887 void operator[]=(int index, SpeechRecognitionResult value) { |
| 25888 throw new UnsupportedError("Cannot assign element of immutable List."); | 25888 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 25916 return JS('SpeechRecognitionResult', '#[0]', this); | 25916 return JS('SpeechRecognitionResult', '#[0]', this); |
| 25917 } | 25917 } |
| 25918 if (len == 0) throw new StateError("No elements"); | 25918 if (len == 0) throw new StateError("No elements"); |
| 25919 throw new StateError("More than one element"); | 25919 throw new StateError("More than one element"); |
| 25920 } | 25920 } |
| 25921 | 25921 |
| 25922 SpeechRecognitionResult elementAt(int index) => this[index]; | 25922 SpeechRecognitionResult elementAt(int index) => this[index]; |
| 25923 // -- end List<SpeechRecognitionResult> mixins. | 25923 // -- end List<SpeechRecognitionResult> mixins. |
| 25924 | 25924 |
| 25925 @DomName('SpeechRecognitionResultList.item') | 25925 @DomName('SpeechRecognitionResultList.item') |
| 25926 @DocsEditable | 25926 @DocsEditable() |
| 25927 SpeechRecognitionResult item(int index) native; | 25927 SpeechRecognitionResult item(int index) native; |
| 25928 } | 25928 } |
| 25929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25929 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25930 // for details. All rights reserved. Use of this source code is governed by a | 25930 // for details. All rights reserved. Use of this source code is governed by a |
| 25931 // BSD-style license that can be found in the LICENSE file. | 25931 // BSD-style license that can be found in the LICENSE file. |
| 25932 | 25932 |
| 25933 | 25933 |
| 25934 @DocsEditable | 25934 @DocsEditable() |
| 25935 @DomName('StyleSheetList') | 25935 @DomName('StyleSheetList') |
| 25936 class _StyleSheetList extends Interceptor with ListMixin<StyleSheet>, ImmutableL
istMixin<StyleSheet> implements JavaScriptIndexingBehavior, List<StyleSheet> nat
ive "StyleSheetList" { | 25936 class _StyleSheetList extends Interceptor with ListMixin<StyleSheet>, ImmutableL
istMixin<StyleSheet> implements JavaScriptIndexingBehavior, List<StyleSheet> nat
ive "StyleSheetList" { |
| 25937 | 25937 |
| 25938 @DomName('StyleSheetList.length') | 25938 @DomName('StyleSheetList.length') |
| 25939 @DocsEditable | 25939 @DocsEditable() |
| 25940 int get length => JS("int", "#.length", this); | 25940 int get length => JS("int", "#.length", this); |
| 25941 | 25941 |
| 25942 StyleSheet operator[](int index) { | 25942 StyleSheet operator[](int index) { |
| 25943 if (JS("bool", "# >>> 0 !== # || # >= #", index, | 25943 if (JS("bool", "# >>> 0 !== # || # >= #", index, |
| 25944 index, index, length)) | 25944 index, index, length)) |
| 25945 throw new RangeError.range(index, 0, length); | 25945 throw new RangeError.range(index, 0, length); |
| 25946 return JS("StyleSheet", "#[#]", this, index); | 25946 return JS("StyleSheet", "#[#]", this, index); |
| 25947 } | 25947 } |
| 25948 void operator[]=(int index, StyleSheet value) { | 25948 void operator[]=(int index, StyleSheet value) { |
| 25949 throw new UnsupportedError("Cannot assign element of immutable List."); | 25949 throw new UnsupportedError("Cannot assign element of immutable List."); |
| (...skipping 27 matching lines...) Expand all Loading... |
| 25977 return JS('StyleSheet', '#[0]', this); | 25977 return JS('StyleSheet', '#[0]', this); |
| 25978 } | 25978 } |
| 25979 if (len == 0) throw new StateError("No elements"); | 25979 if (len == 0) throw new StateError("No elements"); |
| 25980 throw new StateError("More than one element"); | 25980 throw new StateError("More than one element"); |
| 25981 } | 25981 } |
| 25982 | 25982 |
| 25983 StyleSheet elementAt(int index) => this[index]; | 25983 StyleSheet elementAt(int index) => this[index]; |
| 25984 // -- end List<StyleSheet> mixins. | 25984 // -- end List<StyleSheet> mixins. |
| 25985 | 25985 |
| 25986 @DomName('StyleSheetList.__getter__') | 25986 @DomName('StyleSheetList.__getter__') |
| 25987 @DocsEditable | 25987 @DocsEditable() |
| 25988 CssStyleSheet __getter__(String name) native; | 25988 CssStyleSheet __getter__(String name) native; |
| 25989 | 25989 |
| 25990 @DomName('StyleSheetList.item') | 25990 @DomName('StyleSheetList.item') |
| 25991 @DocsEditable | 25991 @DocsEditable() |
| 25992 StyleSheet item(int index) native; | 25992 StyleSheet item(int index) native; |
| 25993 } | 25993 } |
| 25994 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 25994 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 25995 // for details. All rights reserved. Use of this source code is governed by a | 25995 // for details. All rights reserved. Use of this source code is governed by a |
| 25996 // BSD-style license that can be found in the LICENSE file. | 25996 // BSD-style license that can be found in the LICENSE file. |
| 25997 | 25997 |
| 25998 | 25998 |
| 25999 @DocsEditable | 25999 @DocsEditable() |
| 26000 @DomName('WorkerContext') | 26000 @DomName('WorkerContext') |
| 26001 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#Work
erGlobalScope-partial | 26001 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#Work
erGlobalScope-partial |
| 26002 @Experimental // stable | 26002 @Experimental() // stable |
| 26003 abstract class _WorkerContext extends EventTarget native "WorkerContext" { | 26003 abstract class _WorkerContext extends EventTarget native "WorkerContext" { |
| 26004 // To suppress missing implicit constructor warnings. | 26004 // To suppress missing implicit constructor warnings. |
| 26005 factory _WorkerContext._() { throw new UnsupportedError("Not supported"); } | 26005 factory _WorkerContext._() { throw new UnsupportedError("Not supported"); } |
| 26006 } | 26006 } |
| 26007 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 26007 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 26008 // for details. All rights reserved. Use of this source code is governed by a | 26008 // for details. All rights reserved. Use of this source code is governed by a |
| 26009 // BSD-style license that can be found in the LICENSE file. | 26009 // BSD-style license that can be found in the LICENSE file. |
| 26010 | 26010 |
| 26011 | 26011 |
| 26012 @DocsEditable | 26012 @DocsEditable() |
| 26013 @DomName('WorkerLocation') | 26013 @DomName('WorkerLocation') |
| 26014 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#work
erlocation | 26014 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#work
erlocation |
| 26015 @Experimental | 26015 @Experimental() |
| 26016 abstract class _WorkerLocation extends Interceptor native "WorkerLocation" { | 26016 abstract class _WorkerLocation extends Interceptor native "WorkerLocation" { |
| 26017 } | 26017 } |
| 26018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 26018 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 26019 // for details. All rights reserved. Use of this source code is governed by a | 26019 // for details. All rights reserved. Use of this source code is governed by a |
| 26020 // BSD-style license that can be found in the LICENSE file. | 26020 // BSD-style license that can be found in the LICENSE file. |
| 26021 | 26021 |
| 26022 | 26022 |
| 26023 @DocsEditable | 26023 @DocsEditable() |
| 26024 @DomName('WorkerNavigator') | 26024 @DomName('WorkerNavigator') |
| 26025 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#work
ernavigator | 26025 // http://www.whatwg.org/specs/web-apps/current-work/multipage/workers.html#work
ernavigator |
| 26026 @Experimental | 26026 @Experimental() |
| 26027 abstract class _WorkerNavigator extends Interceptor native "WorkerNavigator" { | 26027 abstract class _WorkerNavigator extends Interceptor native "WorkerNavigator" { |
| 26028 } | 26028 } |
| 26029 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 26029 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 26030 // for details. All rights reserved. Use of this source code is governed by a | 26030 // for details. All rights reserved. Use of this source code is governed by a |
| 26031 // BSD-style license that can be found in the LICENSE file. | 26031 // BSD-style license that can be found in the LICENSE file. |
| 26032 | 26032 |
| 26033 | 26033 |
| 26034 abstract class _AttributeMap implements Map<String, String> { | 26034 abstract class _AttributeMap implements Map<String, String> { |
| 26035 final Element _element; | 26035 final Element _element; |
| 26036 | 26036 |
| (...skipping 3295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 29332 _position = nextPosition; | 29332 _position = nextPosition; |
| 29333 return true; | 29333 return true; |
| 29334 } | 29334 } |
| 29335 _current = null; | 29335 _current = null; |
| 29336 _position = _array.length; | 29336 _position = _array.length; |
| 29337 return false; | 29337 return false; |
| 29338 } | 29338 } |
| 29339 | 29339 |
| 29340 T get current => _current; | 29340 T get current => _current; |
| 29341 } | 29341 } |
| OLD | NEW |