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

Unified Diff: client/html/src/UIEventWrappingImplementation.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/UIEventWrappingImplementation.dart
diff --git a/client/html/generated/src/wrapping/_UIEventWrappingImplementation.dart b/client/html/src/UIEventWrappingImplementation.dart
similarity index 72%
rename from client/html/generated/src/wrapping/_UIEventWrappingImplementation.dart
rename to client/html/src/UIEventWrappingImplementation.dart
index 91315e3f13d0b3ff27fcec86c6e5d0be38f0505a..04590b03282ea14d8aa8c91ea36c448291acb5dc 100644
--- a/client/html/generated/src/wrapping/_UIEventWrappingImplementation.dart
+++ b/client/html/src/UIEventWrappingImplementation.dart
@@ -2,11 +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 UIEventWrappingImplementation extends EventWrappingImplementation implements UIEvent {
UIEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
+ factory UIEventWrappingImplementation(String type, Window view, int detail,
+ [bool canBubble = false, bool cancelable = false]) {
+ var e = dom.document.createEvent("UIEvent");
+ e.initUIEvent(type, canBubble, cancelable, LevelDom.unwrap(view), detail);
+ return LevelDom.wrapUIEvent(e);
+ }
+
int get charCode() { return _ptr.charCode; }
int get detail() { return _ptr.detail; }
@@ -24,9 +29,4 @@ class UIEventWrappingImplementation extends EventWrappingImplementation implemen
Window get view() { return LevelDom.wrapWindow(_ptr.view); }
int get which() { return _ptr.which; }
-
- void initUIEvent(String type, bool canBubble, bool cancelable, Window view, int detail) {
- _ptr.initUIEvent(type, canBubble, cancelable, LevelDom.unwrap(view), detail);
- return;
- }
}

Powered by Google App Engine
This is Rietveld 408576698