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

Unified Diff: client/html/src/TextEventWrappingImplementation.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/TextEventWrappingImplementation.dart
diff --git a/client/html/generated/src/wrapping/_TextEventWrappingImplementation.dart b/client/html/src/TextEventWrappingImplementation.dart
similarity index 58%
rename from client/html/generated/src/wrapping/_TextEventWrappingImplementation.dart
rename to client/html/src/TextEventWrappingImplementation.dart
index f774cb7ac929b35607c3e785c3136df15a9911bc..141378b3698f552e55b3f93594e839764c23681a 100644
--- a/client/html/generated/src/wrapping/_TextEventWrappingImplementation.dart
+++ b/client/html/src/TextEventWrappingImplementation.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 TextEventWrappingImplementation extends UIEventWrappingImplementation implements TextEvent {
TextEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
- String get data() { return _ptr.data; }
-
- void initTextEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, String dataArg) {
- _ptr.initTextEvent(typeArg, canBubbleArg, cancelableArg, LevelDom.unwrap(viewArg), dataArg);
- return;
+ factory TextEventWrappingImplementation(String type, Window view, String data,
+ [bool canBubble = false, bool cancelable = false]) {
+ var e = dom.document.createEvent("TextEvent");
+ e.initTextEvent(type, canBubble, cancelable, LevelDom.unwrap(view), data);
+ return LevelDom.wrapTextEvent(e);
}
+
+ String get data() { return _ptr.data; }
}

Powered by Google App Engine
This is Rietveld 408576698