| Index: sdk/lib/html/dartium/html_dartium.dart
|
| diff --git a/sdk/lib/html/dartium/html_dartium.dart b/sdk/lib/html/dartium/html_dartium.dart
|
| index 66a501427367b8ac2d10028bb755ba41faf862d1..2fd03075ed50deb452e1bff53eac5b5b5c0bd7f9 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -10699,8 +10699,25 @@ class Event extends NativeFieldWrapperClass1 {
|
| //
|
| // Contrary to JS, we default canBubble and cancelable to true, since that's
|
| // what people want most of the time anyway.
|
| - factory Event(String type, [bool canBubble = true, bool cancelable = true]) =>
|
| - _EventFactoryProvider.createEvent(type, canBubble, cancelable);
|
| + factory Event(String type,
|
| + [bool canBubble = true, bool cancelable = true]) {
|
| + return new Event.eventType('Event', type, canBubble, cancelable);
|
| + }
|
| +
|
| + /**
|
| + * Creates a new Event object of the specified type.
|
| + *
|
| + * This is analogous to document.createEvent.
|
| + * Normally events should be created via their constructors, if available.
|
| + *
|
| + * var e = new Event.type('MouseEvent', 'mousedown', true, true);
|
| + */
|
| + factory Event.eventType(String type, String name, [bool canBubble = true,
|
| + bool cancelable = true]) {
|
| + final Event e = document.$dom_createEvent(type);
|
| + e.$dom_initEvent(name, canBubble, cancelable);
|
| + return e;
|
| + }
|
| Event.internal();
|
|
|
| static const int AT_TARGET = 2;
|
| @@ -22062,6 +22079,8 @@ class SpeechInputResult extends NativeFieldWrapperClass1 {
|
|
|
| @DocsEditable
|
| @DomName('SpeechRecognition')
|
| +@SupportedBrowser(SupportedBrowser.CHROME, '25')
|
| +@Experimental()
|
| class SpeechRecognition extends EventTarget {
|
| SpeechRecognition.internal() : super.internal();
|
|
|
| @@ -22113,6 +22132,9 @@ class SpeechRecognition extends EventTarget {
|
| factory SpeechRecognition() => SpeechRecognition._create();
|
| static SpeechRecognition _create() native "SpeechRecognition_constructor_Callback";
|
|
|
| + /// Checks if this type is supported on the current platform.
|
| + static bool get supported => true;
|
| +
|
| @DocsEditable
|
| @DomName('EventTarget.addEventListener, EventTarget.removeEventListener, EventTarget.dispatchEvent')
|
| SpeechRecognitionEvents get on =>
|
| @@ -22275,6 +22297,8 @@ class SpeechRecognitionEvents extends Events {
|
|
|
| @DocsEditable
|
| @DomName('SpeechRecognitionAlternative')
|
| +@SupportedBrowser(SupportedBrowser.CHROME, '25')
|
| +@Experimental()
|
| class SpeechRecognitionAlternative extends NativeFieldWrapperClass1 {
|
| SpeechRecognitionAlternative.internal();
|
|
|
| @@ -22296,6 +22320,8 @@ class SpeechRecognitionAlternative extends NativeFieldWrapperClass1 {
|
|
|
| @DocsEditable
|
| @DomName('SpeechRecognitionError')
|
| +@SupportedBrowser(SupportedBrowser.CHROME, '25')
|
| +@Experimental()
|
| class SpeechRecognitionError extends Event {
|
| SpeechRecognitionError.internal() : super.internal();
|
|
|
| @@ -22317,6 +22343,8 @@ class SpeechRecognitionError extends Event {
|
|
|
| @DocsEditable
|
| @DomName('SpeechRecognitionEvent')
|
| +@SupportedBrowser(SupportedBrowser.CHROME, '25')
|
| +@Experimental()
|
| class SpeechRecognitionEvent extends Event {
|
| SpeechRecognitionEvent.internal() : super.internal();
|
|
|
| @@ -22346,6 +22374,8 @@ class SpeechRecognitionEvent extends Event {
|
|
|
| @DocsEditable
|
| @DomName('SpeechRecognitionResult')
|
| +@SupportedBrowser(SupportedBrowser.CHROME, '25')
|
| +@Experimental()
|
| class SpeechRecognitionResult extends NativeFieldWrapperClass1 {
|
| SpeechRecognitionResult.internal();
|
|
|
|
|