| 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 813c1677ddd92031a26bfb52344181031183a1b6..fbe134eec511b2c13d1c86439cc935a397d40dc9 100644
|
| --- a/sdk/lib/html/dartium/html_dartium.dart
|
| +++ b/sdk/lib/html/dartium/html_dartium.dart
|
| @@ -33424,6 +33424,17 @@ class EventStreamProvider<T extends Event> {
|
| Stream<T> forTarget(EventTarget e, {bool useCapture: false}) {
|
| return new _EventStream(e, _eventType, useCapture);
|
| }
|
| +
|
| + /**
|
| + * Gets the type of the event which this would listen for on the specified
|
| + * event target.
|
| + *
|
| + * The target is necessary because some browsers may use different event names
|
| + * for the same purpose and the target allows differentiating browser support.
|
| + */
|
| + String getEventType(EventTarget target) {
|
| + return _eventType;
|
| + }
|
| }
|
|
|
| /**
|
| @@ -33439,6 +33450,10 @@ class _CustomEventStreamProvider<T extends Event>
|
| Stream<T> forTarget(EventTarget e, {bool useCapture: false}) {
|
| return new _EventStream(e, _eventTypeGetter(e), useCapture);
|
| }
|
| +
|
| + String getEventType(EventTarget target) {
|
| + return _eventTypeGetter(target);
|
| + }
|
| }
|
| // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
|
| // for details. All rights reserved. Use of this source code is governed by a
|
|
|