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

Unified Diff: sdk/lib/html/dart2js/html_dart2js.dart

Side-by-side diff isn't available for this file because of its large size.
Issue 12041053: Adding supported flag to HashChangeEvent. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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:
Download patch
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | tools/dom/scripts/htmleventgenerator.py » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/html/dart2js/html_dart2js.dart
diff --git a/sdk/lib/html/dart2js/html_dart2js.dart b/sdk/lib/html/dart2js/html_dart2js.dart
index c193a77204c6576d82e20d30a3c7414d9e1e6f04..18829188a31a77a667b16623e190d713295a7872 100644
--- a/sdk/lib/html/dart2js/html_dart2js.dart
+++ b/sdk/lib/html/dart2js/html_dart2js.dart
@@ -759,7 +759,7 @@ class BodyElement extends Element native "*HTMLBodyElement" {
@DomName('HTMLBodyElement.hashchange')
@DocsEditable
- static const EventStreamProvider<HashChangeEvent> hashChangeEvent = const EventStreamProvider<HashChangeEvent>('hashchange');
+ static const EventStreamProvider<Event> hashChangeEvent = const EventStreamProvider<Event>('hashchange');
@DomName('HTMLBodyElement.load')
@DocsEditable
@@ -819,7 +819,7 @@ class BodyElement extends Element native "*HTMLBodyElement" {
@DomName('HTMLBodyElement.hashchange')
@DocsEditable
- Stream<HashChangeEvent> get onHashChange => hashChangeEvent.forTarget(this);
+ Stream<Event> get onHashChange => hashChangeEvent.forTarget(this);
@DomName('HTMLBodyElement.load')
@DocsEditable
@@ -11765,6 +11765,9 @@ class HRElement extends Element native "*HTMLHRElement" {
// WARNING: Do not edit - generated code.
@DomName('HashChangeEvent')
+@SupportedBrowser(SupportedBrowser.CHROME)
+@SupportedBrowser(SupportedBrowser.FIREFOX)
+@SupportedBrowser(SupportedBrowser.SAFARI)
class HashChangeEvent extends Event native "*HashChangeEvent" {
factory HashChangeEvent(String type,
@@ -11775,6 +11778,9 @@ class HashChangeEvent extends Event native "*HashChangeEvent" {
return event;
}
+ /// Checks if this type is supported on the current platform.
+ static bool get supported => Event._isTypeSupported('HashChangeEvent');
+
@JSName('newURL')
@DomName('HashChangeEvent.newURL')
@DocsEditable
@@ -25688,7 +25694,7 @@ class Window extends EventTarget implements WindowBase native "@*DOMWindow" {
@DomName('DOMWindow.hashchange')
@DocsEditable
- static const EventStreamProvider<HashChangeEvent> hashChangeEvent = const EventStreamProvider<HashChangeEvent>('hashchange');
+ static const EventStreamProvider<Event> hashChangeEvent = const EventStreamProvider<Event>('hashchange');
@DomName('DOMWindow.message')
@DocsEditable
@@ -26198,7 +26204,7 @@ class Window extends EventTarget implements WindowBase native "@*DOMWindow" {
@DomName('DOMWindow.hashchange')
@DocsEditable
- Stream<HashChangeEvent> get onHashChange => hashChangeEvent.forTarget(this);
+ Stream<Event> get onHashChange => hashChangeEvent.forTarget(this);
@DomName('DOMWindow.input')
@DocsEditable
« no previous file with comments | « no previous file | sdk/lib/html/dartium/html_dartium.dart » ('j') | tools/dom/scripts/htmleventgenerator.py » ('J')

Powered by Google App Engine
This is Rietveld 408576698