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

Unified Diff: client/html/src/PageTransitionEventWrappingImplementation.dart

Issue 8404013: Add constructors to all the event classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Regenerate release/html. Created 9 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « client/html/src/PageTransitionEvent.dart ('k') | client/html/src/PopStateEvent.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/src/PageTransitionEventWrappingImplementation.dart
diff --git a/client/html/generated/src/wrapping/_PageTransitionEventWrappingImplementation.dart b/client/html/src/PageTransitionEventWrappingImplementation.dart
similarity index 51%
rename from client/html/generated/src/wrapping/_PageTransitionEventWrappingImplementation.dart
rename to client/html/src/PageTransitionEventWrappingImplementation.dart
index 1a3e7eb4e206277ecb1ff7f4b9dda706778e71f1..4e9eff2876225a33558a8def7e2d7706e9b2b22b 100644
--- a/client/html/generated/src/wrapping/_PageTransitionEventWrappingImplementation.dart
+++ b/client/html/src/PageTransitionEventWrappingImplementation.dart
@@ -2,15 +2,16 @@
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.
-// WARNING: Do not edit - generated code.
-
class PageTransitionEventWrappingImplementation extends EventWrappingImplementation implements PageTransitionEvent {
- PageTransitionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
-
- bool get persisted() { return _ptr.persisted; }
+ PageTransitionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
- void initPageTransitionEvent(String typeArg, bool canBubbleArg, bool cancelableArg, bool persisted) {
- _ptr.initPageTransitionEvent(typeArg, canBubbleArg, cancelableArg, persisted);
- return;
+ factory PageTransitionEventWrappingImplementation(String type,
+ [bool canBubble = true, bool cancelable = true,
+ bool persisted = false]) {
+ final e = dom.document.createEvent("PageTransitionEvent");
+ e.initPageTransitionEvent(type, canBubble, cancelable, persisted);
+ return LevelDom.wrapPageTransitionEvent(e);
}
+
+ bool get persisted() => _ptr.persisted;
}
« no previous file with comments | « client/html/src/PageTransitionEvent.dart ('k') | client/html/src/PopStateEvent.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698