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

Unified Diff: client/html/src/ErrorEventWrappingImplementation.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/ErrorEventWrappingImplementation.dart
diff --git a/client/html/generated/src/wrapping/_ErrorEventWrappingImplementation.dart b/client/html/src/ErrorEventWrappingImplementation.dart
similarity index 61%
rename from client/html/generated/src/wrapping/_ErrorEventWrappingImplementation.dart
rename to client/html/src/ErrorEventWrappingImplementation.dart
index 41a2317525d3e993cb046a4a7e374b53cb4ffab3..fd5267f4a9bfbb09d3705d76b0673f656e9484a4 100644
--- a/client/html/generated/src/wrapping/_ErrorEventWrappingImplementation.dart
+++ b/client/html/src/ErrorEventWrappingImplementation.dart
@@ -2,19 +2,20 @@
// 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 ErrorEventWrappingImplementation extends EventWrappingImplementation implements ErrorEvent {
ErrorEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
+ factory ErrorEventWrappingImplementation(String type, String message,
+ String filename, int lineNo, [bool canBubble = false,
+ bool cancelable = false]) {
+ var e = dom.document.createEvent("ErrorEvent");
+ e.initErrorEvent(type, canBubble, cancelable, message, filename, lineNo);
+ return LevelDom.wrapErrorEvent(e);
+ }
+
String get filename() { return _ptr.filename; }
int get lineno() { return _ptr.lineno; }
String get message() { return _ptr.message; }
-
- void initErrorEvent(String typeArg, bool canBubbleArg, bool cancelableArg, String messageArg, String filenameArg, int linenoArg) {
- _ptr.initErrorEvent(typeArg, canBubbleArg, cancelableArg, messageArg, filenameArg, linenoArg);
- return;
- }
}

Powered by Google App Engine
This is Rietveld 408576698