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

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

Issue 8404013: Add constructors to all the event classes. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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
Index: client/html/src/BeforeLoadEventWrappingImplementation.dart
diff --git a/client/html/generated/src/wrapping/_BeforeLoadEventWrappingImplementation.dart b/client/html/src/BeforeLoadEventWrappingImplementation.dart
similarity index 60%
rename from client/html/generated/src/wrapping/_BeforeLoadEventWrappingImplementation.dart
rename to client/html/src/BeforeLoadEventWrappingImplementation.dart
index 9b59d901e3bfb074236cc91b732c801bccaca449..4559cbe75abe528140ab22d988c135125a5d6846 100644
--- a/client/html/generated/src/wrapping/_BeforeLoadEventWrappingImplementation.dart
+++ b/client/html/src/BeforeLoadEventWrappingImplementation.dart
@@ -2,15 +2,15 @@
// 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 BeforeLoadEventWrappingImplementation extends EventWrappingImplementation implements BeforeLoadEvent {
BeforeLoadEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
- String get url() { return _ptr.url; }
-
- void initBeforeLoadEvent(String type, bool canBubble, bool cancelable, String url) {
- _ptr.initBeforeLoadEvent(type, canBubble, cancelable, url);
- return;
+ factory BeforeLoadEventWrappingImplementation(String type, String url,
Jacob 2011/10/27 21:23:05 I like that canBubble and cancelable are now alway
nweiz 2011/10/27 22:23:54 Well, they aren't, strictly; they're after all the
+ [bool canBubble = false, bool cancelable = false]) {
+ var e = dom.document.createEvent("BeforeLoadEvent");
+ e.initBeforeLoadEvent(type, canBubble, cancelable, url);
+ return LevelDom.wrapBeforeLoadEvent(e);
}
+
+ String get url() { return _ptr.url; }
}

Powered by Google App Engine
This is Rietveld 408576698