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

Side by Side Diff: sdk/lib/html/dart2js/html_dart2js.dart

Issue 15434003: Exposing a number of new events. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /// The Dart HTML library. 1 /// The Dart HTML library.
2 library dart.dom.html; 2 library dart.dom.html;
3 3
4 import 'dart:async'; 4 import 'dart:async';
5 import 'dart:collection'; 5 import 'dart:collection';
6 import 'dart:_collection-dev' hide Symbol; 6 import 'dart:_collection-dev' hide Symbol;
7 import 'dart:html_common'; 7 import 'dart:html_common';
8 import 'dart:indexed_db'; 8 import 'dart:indexed_db';
9 import 'dart:isolate'; 9 import 'dart:isolate';
10 import 'dart:json' as json; 10 import 'dart:json' as json;
(...skipping 6092 matching lines...) Expand 10 before | Expand all | Expand 10 after
6103 */ 6103 */
6104 @DomName('Document') 6104 @DomName('Document')
6105 class Document extends Node native "Document" 6105 class Document extends Node native "Document"
6106 { 6106 {
6107 6107
6108 6108
6109 @DomName('Document.readystatechangeEvent') 6109 @DomName('Document.readystatechangeEvent')
6110 @DocsEditable 6110 @DocsEditable
6111 static const EventStreamProvider<Event> readyStateChangeEvent = const EventStr eamProvider<Event>('readystatechange'); 6111 static const EventStreamProvider<Event> readyStateChangeEvent = const EventStr eamProvider<Event>('readystatechange');
6112 6112
6113 @DomName('Document.securitypolicyviolationEvent')
6114 @DocsEditable
6115 static const EventStreamProvider<SecurityPolicyViolationEvent> securityPolicyV iolationEvent = const EventStreamProvider<SecurityPolicyViolationEvent>('securit ypolicyviolation');
6116
6113 @DomName('Document.selectionchangeEvent') 6117 @DomName('Document.selectionchangeEvent')
6114 @DocsEditable 6118 @DocsEditable
6115 static const EventStreamProvider<Event> selectionChangeEvent = const EventStre amProvider<Event>('selectionchange'); 6119 static const EventStreamProvider<Event> selectionChangeEvent = const EventStre amProvider<Event>('selectionchange');
6116 6120
6117 @DomName('Document.webkitpointerlockchangeEvent') 6121 @DomName('Document.webkitpointerlockchangeEvent')
6118 @DocsEditable 6122 @DocsEditable
6119 @SupportedBrowser(SupportedBrowser.CHROME) 6123 @SupportedBrowser(SupportedBrowser.CHROME)
6120 @SupportedBrowser(SupportedBrowser.SAFARI) 6124 @SupportedBrowser(SupportedBrowser.SAFARI)
6121 @Experimental 6125 @Experimental
6122 static const EventStreamProvider<Event> pointerLockChangeEvent = const EventSt reamProvider<Event>('webkitpointerlockchange'); 6126 static const EventStreamProvider<Event> pointerLockChangeEvent = const EventSt reamProvider<Event>('webkitpointerlockchange');
(...skipping 504 matching lines...) Expand 10 before | Expand all | Expand 10 after
6627 Stream<Event> get onReset => Element.resetEvent.forTarget(this); 6631 Stream<Event> get onReset => Element.resetEvent.forTarget(this);
6628 6632
6629 @DomName('Document.onscroll') 6633 @DomName('Document.onscroll')
6630 @DocsEditable 6634 @DocsEditable
6631 Stream<Event> get onScroll => Element.scrollEvent.forTarget(this); 6635 Stream<Event> get onScroll => Element.scrollEvent.forTarget(this);
6632 6636
6633 @DomName('Document.onsearch') 6637 @DomName('Document.onsearch')
6634 @DocsEditable 6638 @DocsEditable
6635 Stream<Event> get onSearch => Element.searchEvent.forTarget(this); 6639 Stream<Event> get onSearch => Element.searchEvent.forTarget(this);
6636 6640
6641 @DomName('Document.onsecuritypolicyviolation')
6642 @DocsEditable
6643 Stream<SecurityPolicyViolationEvent> get onSecurityPolicyViolation => security PolicyViolationEvent.forTarget(this);
6644
6637 @DomName('Document.onselect') 6645 @DomName('Document.onselect')
6638 @DocsEditable 6646 @DocsEditable
6639 Stream<Event> get onSelect => Element.selectEvent.forTarget(this); 6647 Stream<Event> get onSelect => Element.selectEvent.forTarget(this);
6640 6648
6641 @DomName('Document.onselectionchange') 6649 @DomName('Document.onselectionchange')
6642 @DocsEditable 6650 @DocsEditable
6643 Stream<Event> get onSelectionChange => selectionChangeEvent.forTarget(this); 6651 Stream<Event> get onSelectionChange => selectionChangeEvent.forTarget(this);
6644 6652
6645 @DomName('Document.onselectstart') 6653 @DomName('Document.onselectstart')
6646 @DocsEditable 6654 @DocsEditable
(...skipping 3385 matching lines...) Expand 10 before | Expand all | Expand 10 after
10032 @DocsEditable 10040 @DocsEditable
10033 @DomName('FontLoader') 10041 @DomName('FontLoader')
10034 class FontLoader extends EventTarget native "FontLoader" { 10042 class FontLoader extends EventTarget native "FontLoader" {
10035 10043
10036 @DomName('FontLoader.errorEvent') 10044 @DomName('FontLoader.errorEvent')
10037 @DocsEditable 10045 @DocsEditable
10038 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 10046 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
10039 10047
10040 @DomName('FontLoader.loadEvent') 10048 @DomName('FontLoader.loadEvent')
10041 @DocsEditable 10049 @DocsEditable
10042 static const EventStreamProvider<Event> loadEvent = const EventStreamProvider< Event>('load'); 10050 static const EventStreamProvider<CssFontFaceLoadEvent> loadEvent = const Event StreamProvider<CssFontFaceLoadEvent>('load');
10051
10052 @DomName('FontLoader.loadingEvent')
10053 @DocsEditable
10054 static const EventStreamProvider<CssFontFaceLoadEvent> loadingEvent = const Ev entStreamProvider<CssFontFaceLoadEvent>('loading');
10055
10056 @DomName('FontLoader.loadingdoneEvent')
10057 @DocsEditable
10058 static const EventStreamProvider<CssFontFaceLoadEvent> loadingDoneEvent = cons t EventStreamProvider<CssFontFaceLoadEvent>('loadingdone');
10059
10060 @DomName('FontLoader.loadstartEvent')
10061 @DocsEditable
10062 static const EventStreamProvider<CssFontFaceLoadEvent> loadStartEvent = const EventStreamProvider<CssFontFaceLoadEvent>('loadstart');
10043 10063
10044 @DomName('FontLoader.loading') 10064 @DomName('FontLoader.loading')
10045 @DocsEditable 10065 @DocsEditable
10046 final bool loading; 10066 final bool loading;
10047 10067
10048 @JSName('addEventListener') 10068 @JSName('addEventListener')
10049 @DomName('FontLoader.addEventListener') 10069 @DomName('FontLoader.addEventListener')
10050 @DocsEditable 10070 @DocsEditable
10051 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 10071 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
10052 10072
(...skipping 25 matching lines...) Expand all
10078 @DomName('FontLoader.removeEventListener') 10098 @DomName('FontLoader.removeEventListener')
10079 @DocsEditable 10099 @DocsEditable
10080 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 10100 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
10081 10101
10082 @DomName('FontLoader.onerror') 10102 @DomName('FontLoader.onerror')
10083 @DocsEditable 10103 @DocsEditable
10084 Stream<Event> get onError => errorEvent.forTarget(this); 10104 Stream<Event> get onError => errorEvent.forTarget(this);
10085 10105
10086 @DomName('FontLoader.onload') 10106 @DomName('FontLoader.onload')
10087 @DocsEditable 10107 @DocsEditable
10088 Stream<Event> get onLoad => loadEvent.forTarget(this); 10108 Stream<CssFontFaceLoadEvent> get onLoad => loadEvent.forTarget(this);
10109
10110 @DomName('FontLoader.onloading')
10111 @DocsEditable
10112 Stream<CssFontFaceLoadEvent> get onLoading => loadingEvent.forTarget(this);
10113
10114 @DomName('FontLoader.onloadingdone')
10115 @DocsEditable
10116 Stream<CssFontFaceLoadEvent> get onLoadingDone => loadingDoneEvent.forTarget(t his);
10117
10118 @DomName('FontLoader.onloadstart')
10119 @DocsEditable
10120 Stream<CssFontFaceLoadEvent> get onLoadStart => loadStartEvent.forTarget(this) ;
10089 } 10121 }
10090 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10122 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10091 // for details. All rights reserved. Use of this source code is governed by a 10123 // for details. All rights reserved. Use of this source code is governed by a
10092 // BSD-style license that can be found in the LICENSE file. 10124 // BSD-style license that can be found in the LICENSE file.
10093 10125
10094 10126
10095 @DocsEditable 10127 @DocsEditable
10096 @DomName('FormData') 10128 @DomName('FormData')
10097 @SupportedBrowser(SupportedBrowser.CHROME) 10129 @SupportedBrowser(SupportedBrowser.CHROME)
10098 @SupportedBrowser(SupportedBrowser.FIREFOX) 10130 @SupportedBrowser(SupportedBrowser.FIREFOX)
(...skipping 21 matching lines...) Expand all
10120 } 10152 }
10121 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10153 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10122 // for details. All rights reserved. Use of this source code is governed by a 10154 // for details. All rights reserved. Use of this source code is governed by a
10123 // BSD-style license that can be found in the LICENSE file. 10155 // BSD-style license that can be found in the LICENSE file.
10124 10156
10125 10157
10126 @DocsEditable 10158 @DocsEditable
10127 @DomName('HTMLFormElement') 10159 @DomName('HTMLFormElement')
10128 class FormElement extends Element native "HTMLFormElement" { 10160 class FormElement extends Element native "HTMLFormElement" {
10129 10161
10162 @DomName('HTMLFormElement.autocompleteEvent')
10163 @DocsEditable
10164 static const EventStreamProvider<Event> autocompleteEvent = const EventStreamP rovider<Event>('autocomplete');
10165
10166 @DomName('HTMLFormElement.autocompleteerrorEvent')
10167 @DocsEditable
10168 static const EventStreamProvider<AutocompleteErrorEvent> autocompleteErrorEven t = const EventStreamProvider<AutocompleteErrorEvent>('autocompleteerror');
10169
10130 @DomName('HTMLFormElement.HTMLFormElement') 10170 @DomName('HTMLFormElement.HTMLFormElement')
10131 @DocsEditable 10171 @DocsEditable
10132 factory FormElement() => document.$dom_createElement("form"); 10172 factory FormElement() => document.$dom_createElement("form");
10133 10173
10134 @DomName('HTMLFormElement.acceptCharset') 10174 @DomName('HTMLFormElement.acceptCharset')
10135 @DocsEditable 10175 @DocsEditable
10136 String acceptCharset; 10176 String acceptCharset;
10137 10177
10138 @DomName('HTMLFormElement.action') 10178 @DomName('HTMLFormElement.action')
10139 @DocsEditable 10179 @DocsEditable
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
10179 @DocsEditable 10219 @DocsEditable
10180 void requestAutocomplete() native; 10220 void requestAutocomplete() native;
10181 10221
10182 @DomName('HTMLFormElement.reset') 10222 @DomName('HTMLFormElement.reset')
10183 @DocsEditable 10223 @DocsEditable
10184 void reset() native; 10224 void reset() native;
10185 10225
10186 @DomName('HTMLFormElement.submit') 10226 @DomName('HTMLFormElement.submit')
10187 @DocsEditable 10227 @DocsEditable
10188 void submit() native; 10228 void submit() native;
10229
10230 @DomName('HTMLFormElement.onautocomplete')
10231 @DocsEditable
10232 Stream<Event> get onAutocomplete => autocompleteEvent.forTarget(this);
10233
10234 @DomName('HTMLFormElement.onautocompleteerror')
10235 @DocsEditable
10236 Stream<AutocompleteErrorEvent> get onAutocompleteError => autocompleteErrorEve nt.forTarget(this);
10189 } 10237 }
10190 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 10238 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
10191 // for details. All rights reserved. Use of this source code is governed by a 10239 // for details. All rights reserved. Use of this source code is governed by a
10192 // BSD-style license that can be found in the LICENSE file. 10240 // BSD-style license that can be found in the LICENSE file.
10193 10241
10194 10242
10195 @DocsEditable 10243 @DocsEditable
10196 @DomName('Gamepad') 10244 @DomName('Gamepad')
10197 class Gamepad native "Gamepad" { 10245 class Gamepad native "Gamepad" {
10198 10246
(...skipping 4067 matching lines...) Expand 10 before | Expand all | Expand 10 after
14266 } 14314 }
14267 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14315 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14268 // for details. All rights reserved. Use of this source code is governed by a 14316 // for details. All rights reserved. Use of this source code is governed by a
14269 // BSD-style license that can be found in the LICENSE file. 14317 // BSD-style license that can be found in the LICENSE file.
14270 14318
14271 14319
14272 @DocsEditable 14320 @DocsEditable
14273 @DomName('MIDIPort') 14321 @DomName('MIDIPort')
14274 class MidiPort extends EventTarget native "MIDIPort" { 14322 class MidiPort extends EventTarget native "MIDIPort" {
14275 14323
14324 @DomName('MIDIPort.disconnectEvent')
14325 @DocsEditable
14326 static const EventStreamProvider<MIDIConnectionEvent> disconnectEvent = const EventStreamProvider<MIDIConnectionEvent>('disconnect');
14327
14276 @DomName('MIDIPort.id') 14328 @DomName('MIDIPort.id')
14277 @DocsEditable 14329 @DocsEditable
14278 final String id; 14330 final String id;
14279 14331
14280 @DomName('MIDIPort.manufacturer') 14332 @DomName('MIDIPort.manufacturer')
14281 @DocsEditable 14333 @DocsEditable
14282 final String manufacturer; 14334 final String manufacturer;
14283 14335
14284 @DomName('MIDIPort.name') 14336 @DomName('MIDIPort.name')
14285 @DocsEditable 14337 @DocsEditable
(...skipping 13 matching lines...) Expand all
14299 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native; 14351 void $dom_addEventListener(String type, EventListener listener, [bool useCaptu re]) native;
14300 14352
14301 @DomName('MIDIPort.dispatchEvent') 14353 @DomName('MIDIPort.dispatchEvent')
14302 @DocsEditable 14354 @DocsEditable
14303 bool dispatchEvent(Event event) native; 14355 bool dispatchEvent(Event event) native;
14304 14356
14305 @JSName('removeEventListener') 14357 @JSName('removeEventListener')
14306 @DomName('MIDIPort.removeEventListener') 14358 @DomName('MIDIPort.removeEventListener')
14307 @DocsEditable 14359 @DocsEditable
14308 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native; 14360 void $dom_removeEventListener(String type, EventListener listener, [bool useCa pture]) native;
14361
14362 @DomName('MIDIPort.ondisconnect')
14363 @DocsEditable
14364 Stream<MIDIConnectionEvent> get onDisconnect => disconnectEvent.forTarget(this );
14309 } 14365 }
14310 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 14366 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
14311 // for details. All rights reserved. Use of this source code is governed by a 14367 // for details. All rights reserved. Use of this source code is governed by a
14312 // BSD-style license that can be found in the LICENSE file. 14368 // BSD-style license that can be found in the LICENSE file.
14313 14369
14314 14370
14315 @DocsEditable 14371 @DocsEditable
14316 @DomName('MimeType') 14372 @DomName('MimeType')
14317 class MimeType native "MimeType" { 14373 class MimeType native "MimeType" {
14318 14374
(...skipping 1961 matching lines...) Expand 10 before | Expand all | Expand 10 after
16280 // BSD-style license that can be found in the LICENSE file. 16336 // BSD-style license that can be found in the LICENSE file.
16281 16337
16282 16338
16283 @DocsEditable 16339 @DocsEditable
16284 @DomName('Performance') 16340 @DomName('Performance')
16285 @SupportedBrowser(SupportedBrowser.CHROME) 16341 @SupportedBrowser(SupportedBrowser.CHROME)
16286 @SupportedBrowser(SupportedBrowser.FIREFOX) 16342 @SupportedBrowser(SupportedBrowser.FIREFOX)
16287 @SupportedBrowser(SupportedBrowser.IE) 16343 @SupportedBrowser(SupportedBrowser.IE)
16288 class Performance extends EventTarget native "Performance" { 16344 class Performance extends EventTarget native "Performance" {
16289 16345
16346 @DomName('Performance.webkitresourcetimingbufferfullEvent')
16347 @DocsEditable
16348 @SupportedBrowser(SupportedBrowser.CHROME)
16349 @SupportedBrowser(SupportedBrowser.SAFARI)
16350 @Experimental
16351 static const EventStreamProvider<Event> resourceTimingBufferFullEvent = const EventStreamProvider<Event>('webkitresourcetimingbufferfull');
16352
16290 /// Checks if this type is supported on the current platform. 16353 /// Checks if this type is supported on the current platform.
16291 static bool get supported => JS('bool', '!!(window.performance)'); 16354 static bool get supported => JS('bool', '!!(window.performance)');
16292 16355
16293 @DomName('Performance.memory') 16356 @DomName('Performance.memory')
16294 @DocsEditable 16357 @DocsEditable
16295 final MemoryInfo memory; 16358 final MemoryInfo memory;
16296 16359
16297 @DomName('Performance.navigation') 16360 @DomName('Performance.navigation')
16298 @DocsEditable 16361 @DocsEditable
16299 final PerformanceNavigation navigation; 16362 final PerformanceNavigation navigation;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
16342 @Experimental 16405 @Experimental
16343 void clearResourceTimings() native; 16406 void clearResourceTimings() native;
16344 16407
16345 @JSName('webkitSetResourceTimingBufferSize') 16408 @JSName('webkitSetResourceTimingBufferSize')
16346 @DomName('Performance.webkitSetResourceTimingBufferSize') 16409 @DomName('Performance.webkitSetResourceTimingBufferSize')
16347 @DocsEditable 16410 @DocsEditable
16348 @SupportedBrowser(SupportedBrowser.CHROME) 16411 @SupportedBrowser(SupportedBrowser.CHROME)
16349 @SupportedBrowser(SupportedBrowser.SAFARI) 16412 @SupportedBrowser(SupportedBrowser.SAFARI)
16350 @Experimental 16413 @Experimental
16351 void setResourceTimingBufferSize(int maxSize) native; 16414 void setResourceTimingBufferSize(int maxSize) native;
16415
16416 @DomName('Performance.onwebkitresourcetimingbufferfull')
16417 @DocsEditable
16418 Stream<Event> get onResourceTimingBufferFull => resourceTimingBufferFullEvent. forTarget(this);
16352 } 16419 }
16353 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 16420 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
16354 // for details. All rights reserved. Use of this source code is governed by a 16421 // for details. All rights reserved. Use of this source code is governed by a
16355 // BSD-style license that can be found in the LICENSE file. 16422 // BSD-style license that can be found in the LICENSE file.
16356 16423
16357 16424
16358 @DocsEditable 16425 @DocsEditable
16359 @DomName('PerformanceEntry') 16426 @DomName('PerformanceEntry')
16360 class PerformanceEntry native "PerformanceEntry" { 16427 class PerformanceEntry native "PerformanceEntry" {
16361 16428
(...skipping 2512 matching lines...) Expand 10 before | Expand all | Expand 10 after
18874 } 18941 }
18875 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 18942 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18876 // for details. All rights reserved. Use of this source code is governed by a 18943 // for details. All rights reserved. Use of this source code is governed by a
18877 // BSD-style license that can be found in the LICENSE file. 18944 // BSD-style license that can be found in the LICENSE file.
18878 18945
18879 18946
18880 @DocsEditable 18947 @DocsEditable
18881 @DomName('SpeechSynthesisUtterance') 18948 @DomName('SpeechSynthesisUtterance')
18882 class SpeechSynthesisUtterance extends EventTarget native "SpeechSynthesisUttera nce" { 18949 class SpeechSynthesisUtterance extends EventTarget native "SpeechSynthesisUttera nce" {
18883 18950
18951 @DomName('SpeechSynthesisUtterance.boundaryEvent')
18952 @DocsEditable
18953 static const EventStreamProvider<SpeechSynthesisEvent> boundaryEvent = const E ventStreamProvider<SpeechSynthesisEvent>('boundary');
18954
18955 @DomName('SpeechSynthesisUtterance.endEvent')
18956 @DocsEditable
18957 static const EventStreamProvider<SpeechSynthesisEvent> endEvent = const EventS treamProvider<SpeechSynthesisEvent>('end');
18958
18884 @DomName('SpeechSynthesisUtterance.errorEvent') 18959 @DomName('SpeechSynthesisUtterance.errorEvent')
18885 @DocsEditable 18960 @DocsEditable
18886 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error'); 18961 static const EventStreamProvider<Event> errorEvent = const EventStreamProvider <Event>('error');
18887 18962
18963 @DomName('SpeechSynthesisUtterance.markEvent')
18964 @DocsEditable
18965 static const EventStreamProvider<SpeechSynthesisEvent> markEvent = const Event StreamProvider<SpeechSynthesisEvent>('mark');
18966
18888 @DomName('SpeechSynthesisUtterance.pauseEvent') 18967 @DomName('SpeechSynthesisUtterance.pauseEvent')
18889 @DocsEditable 18968 @DocsEditable
18890 static const EventStreamProvider<Event> pauseEvent = const EventStreamProvider <Event>('pause'); 18969 static const EventStreamProvider<Event> pauseEvent = const EventStreamProvider <Event>('pause');
18891 18970
18971 @DomName('SpeechSynthesisUtterance.resumeEvent')
18972 @DocsEditable
18973 static const EventStreamProvider<SpeechSynthesisEvent> resumeEvent = const Eve ntStreamProvider<SpeechSynthesisEvent>('resume');
18974
18975 @DomName('SpeechSynthesisUtterance.startEvent')
18976 @DocsEditable
18977 static const EventStreamProvider<SpeechSynthesisEvent> startEvent = const Even tStreamProvider<SpeechSynthesisEvent>('start');
18978
18892 @DomName('SpeechSynthesisUtterance.SpeechSynthesisUtterance') 18979 @DomName('SpeechSynthesisUtterance.SpeechSynthesisUtterance')
18893 @DocsEditable 18980 @DocsEditable
18894 factory SpeechSynthesisUtterance([String text]) { 18981 factory SpeechSynthesisUtterance([String text]) {
18895 if (?text) { 18982 if (?text) {
18896 return SpeechSynthesisUtterance._create_1(text); 18983 return SpeechSynthesisUtterance._create_1(text);
18897 } 18984 }
18898 return SpeechSynthesisUtterance._create_2(); 18985 return SpeechSynthesisUtterance._create_2();
18899 } 18986 }
18900 static SpeechSynthesisUtterance _create_1(text) => JS('SpeechSynthesisUtteranc e', 'new SpeechSynthesisUtterance(#)', text); 18987 static SpeechSynthesisUtterance _create_1(text) => JS('SpeechSynthesisUtteranc e', 'new SpeechSynthesisUtterance(#)', text);
18901 static SpeechSynthesisUtterance _create_2() => JS('SpeechSynthesisUtterance', 'new SpeechSynthesisUtterance()'); 18988 static SpeechSynthesisUtterance _create_2() => JS('SpeechSynthesisUtterance', 'new SpeechSynthesisUtterance()');
(...skipping 15 matching lines...) Expand all
18917 String text; 19004 String text;
18918 19005
18919 @DomName('SpeechSynthesisUtterance.voice') 19006 @DomName('SpeechSynthesisUtterance.voice')
18920 @DocsEditable 19007 @DocsEditable
18921 SpeechSynthesisVoice voice; 19008 SpeechSynthesisVoice voice;
18922 19009
18923 @DomName('SpeechSynthesisUtterance.volume') 19010 @DomName('SpeechSynthesisUtterance.volume')
18924 @DocsEditable 19011 @DocsEditable
18925 num volume; 19012 num volume;
18926 19013
19014 @DomName('SpeechSynthesisUtterance.onboundary')
19015 @DocsEditable
19016 Stream<SpeechSynthesisEvent> get onBoundary => boundaryEvent.forTarget(this);
19017
19018 @DomName('SpeechSynthesisUtterance.onend')
19019 @DocsEditable
19020 Stream<SpeechSynthesisEvent> get onEnd => endEvent.forTarget(this);
19021
18927 @DomName('SpeechSynthesisUtterance.onerror') 19022 @DomName('SpeechSynthesisUtterance.onerror')
18928 @DocsEditable 19023 @DocsEditable
18929 Stream<Event> get onError => errorEvent.forTarget(this); 19024 Stream<Event> get onError => errorEvent.forTarget(this);
18930 19025
19026 @DomName('SpeechSynthesisUtterance.onmark')
19027 @DocsEditable
19028 Stream<SpeechSynthesisEvent> get onMark => markEvent.forTarget(this);
19029
18931 @DomName('SpeechSynthesisUtterance.onpause') 19030 @DomName('SpeechSynthesisUtterance.onpause')
18932 @DocsEditable 19031 @DocsEditable
18933 Stream<Event> get onPause => pauseEvent.forTarget(this); 19032 Stream<Event> get onPause => pauseEvent.forTarget(this);
19033
19034 @DomName('SpeechSynthesisUtterance.onresume')
19035 @DocsEditable
19036 Stream<SpeechSynthesisEvent> get onResume => resumeEvent.forTarget(this);
19037
19038 @DomName('SpeechSynthesisUtterance.onstart')
19039 @DocsEditable
19040 Stream<SpeechSynthesisEvent> get onStart => startEvent.forTarget(this);
18934 } 19041 }
18935 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 19042 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
18936 // for details. All rights reserved. Use of this source code is governed by a 19043 // for details. All rights reserved. Use of this source code is governed by a
18937 // BSD-style license that can be found in the LICENSE file. 19044 // BSD-style license that can be found in the LICENSE file.
18938 19045
18939 19046
18940 @DocsEditable 19047 @DocsEditable
18941 @DomName('SpeechSynthesisVoice') 19048 @DomName('SpeechSynthesisVoice')
18942 class SpeechSynthesisVoice native "SpeechSynthesisVoice" { 19049 class SpeechSynthesisVoice native "SpeechSynthesisVoice" {
18943 19050
(...skipping 9352 matching lines...) Expand 10 before | Expand all | Expand 10 after
28296 _position = nextPosition; 28403 _position = nextPosition;
28297 return true; 28404 return true;
28298 } 28405 }
28299 _current = null; 28406 _current = null;
28300 _position = _array.length; 28407 _position = _array.length;
28301 return false; 28408 return false;
28302 } 28409 }
28303 28410
28304 T get current => _current; 28411 T get current => _current;
28305 } 28412 }
OLDNEW
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698