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

Unified Diff: client/html/src/CompositionEventWrappingImplementation.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/CompositionEvent.dart ('k') | client/html/src/CustomEvent.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/html/src/CompositionEventWrappingImplementation.dart
diff --git a/client/html/generated/src/wrapping/_CompositionEventWrappingImplementation.dart b/client/html/src/CompositionEventWrappingImplementation.dart
similarity index 51%
rename from client/html/generated/src/wrapping/_CompositionEventWrappingImplementation.dart
rename to client/html/src/CompositionEventWrappingImplementation.dart
index 6a8e4ae0540e677a43be8041e7f215ee6c38100e..765f02238b1097e0a2283f4b9216ce50c41a70e6 100644
--- a/client/html/generated/src/wrapping/_CompositionEventWrappingImplementation.dart
+++ b/client/html/src/CompositionEventWrappingImplementation.dart
@@ -2,15 +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 CompositionEventWrappingImplementation extends UIEventWrappingImplementation implements CompositionEvent {
- CompositionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
-
- String get data() { return _ptr.data; }
+ CompositionEventWrappingImplementation._wrap(ptr) : super._wrap(ptr);
- void initCompositionEvent(String typeArg, bool canBubbleArg, bool cancelableArg, Window viewArg, String dataArg) {
- _ptr.initCompositionEvent(typeArg, canBubbleArg, cancelableArg, LevelDom.unwrap(viewArg), dataArg);
- return;
+ factory CompositionEventWrappingImplementation(String type, Window view,
+ String data, [bool canBubble = true, bool cancelable = true]) {
+ final e = dom.document.createEvent("CompositionEvent");
+ e.initCompositionEvent(type, canBubble, cancelable, LevelDom.unwrap(view),
+ data);
+ return LevelDom.wrapCompositionEvent(e);
}
+
+ String get data() => _ptr.data;
}
« no previous file with comments | « client/html/src/CompositionEvent.dart ('k') | client/html/src/CustomEvent.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698