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

Unified Diff: client/html/src/OverflowEventWrappingImplementation.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/OverflowEventWrappingImplementation.dart
diff --git a/client/html/generated/src/wrapping/_OverflowEventWrappingImplementation.dart b/client/html/src/OverflowEventWrappingImplementation.dart
similarity index 67%
rename from client/html/generated/src/wrapping/_OverflowEventWrappingImplementation.dart
rename to client/html/src/OverflowEventWrappingImplementation.dart
index e9f1ff66dde59e30b7f4908d92e4ac6ece4d8c80..295c051899fdfbeda0792c82d27ec4968d647c55 100644
--- a/client/html/generated/src/wrapping/_OverflowEventWrappingImplementation.dart
+++ b/client/html/src/OverflowEventWrappingImplementation.dart
@@ -2,19 +2,19 @@
// 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 OverflowEventWrappingImplementation extends EventWrappingImplementation implements OverflowEvent {
OverflowEventWrappingImplementation._wrap(ptr) : super._wrap(ptr) {}
+ factory OverflowEventWrappingImplementation(int orient,
+ bool horizontalOverflow, bool verticalOverflow) {
+ var e = dom.document.createEvent("OverflowEvent");
+ e.initOverflowEvent(orient, horizontalOverflow, verticalOverflow);
+ return LevelDom.wrapOverflowEvent(e);
+ }
+
bool get horizontalOverflow() { return _ptr.horizontalOverflow; }
int get orient() { return _ptr.orient; }
bool get verticalOverflow() { return _ptr.verticalOverflow; }
-
- void initOverflowEvent(int orient, bool horizontalOverflow, bool verticalOverflow) {
- _ptr.initOverflowEvent(orient, horizontalOverflow, verticalOverflow);
- return;
- }
}

Powered by Google App Engine
This is Rietveld 408576698