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

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: 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/BeforeLoadEvent.dart ('k') | client/html/src/CloseEvent.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/src/BeforeLoadEventWrappingImplementation.dart
diff --git a/client/html/generated/src/wrapping/_BeforeLoadEventWrappingImplementation.dart b/client/html/src/BeforeLoadEventWrappingImplementation.dart
similarity index 54%
rename from client/html/generated/src/wrapping/_BeforeLoadEventWrappingImplementation.dart
rename to client/html/src/BeforeLoadEventWrappingImplementation.dart
index 9b59d901e3bfb074236cc91b732c801bccaca449..ec68f301090f48f6d2d365936f5ca837caabbc0d 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; }
+ BeforeLoadEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
- void initBeforeLoadEvent(String type, bool canBubble, bool cancelable, String url) {
- _ptr.initBeforeLoadEvent(type, canBubble, cancelable, url);
- return;
+ factory BeforeLoadEventWrappingImplementation(String type, String url,
+ [bool canBubble = true, bool cancelable = true]) {
+ final e = dom.document.createEvent("BeforeLoadEvent");
+ e.initBeforeLoadEvent(type, canBubble, cancelable, url);
+ return LevelDom.wrapBeforeLoadEvent(e);
}
+
+ String get url() => _ptr.url;
}
« no previous file with comments | « client/html/src/BeforeLoadEvent.dart ('k') | client/html/src/CloseEvent.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698