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

Unified Diff: client/html/src/KeyboardEvent.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/KeyboardEvent.dart
diff --git a/client/html/generated/src/interface/KeyboardEvent.dart b/client/html/src/KeyboardEvent.dart
similarity index 98%
rename from client/html/generated/src/interface/KeyboardEvent.dart
rename to client/html/src/KeyboardEvent.dart
index 843e74067efa2da7dcbca839490661a25db1177d..57389085eda29a5694671d38df73c4244b9fa6b5 100644
--- a/client/html/generated/src/interface/KeyboardEvent.dart
+++ b/client/html/src/KeyboardEvent.dart
@@ -2,9 +2,7 @@
// 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.
-
-interface KeyboardEvent extends UIEvent {
+interface KeyboardEvent extends UIEvent factory KeyboardEventWrappingImplementation {
static final int KEY_LOCATION_LEFT = 0x01;
@@ -14,6 +12,10 @@ interface KeyboardEvent extends UIEvent {
static final int KEY_LOCATION_STANDARD = 0x00;
+ KeyboardEvent(String type, Window view, String keyIdentifier, int keyLocation,
+ [bool canBubble, bool cancelable, bool ctrlKey, bool altKey,
+ bool shiftKey, bool metaKey, bool altGraphKey]);
+
bool get altGraphKey();
bool get altKey();
@@ -29,8 +31,6 @@ interface KeyboardEvent extends UIEvent {
bool get shiftKey();
bool getModifierState(String keyIdentifierArg);
-
- void initKeyboardEvent(String type, bool canBubble, bool cancelable, Window view, String keyIdentifier, int keyLocation, bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool altGraphKey);
}
// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file

Powered by Google App Engine
This is Rietveld 408576698