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

Unified Diff: client/dom/src/KeyLocation.dart

Issue 8872058: Add KeyName and KeyLocation to frog dom. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 9 years 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/dom/snippets/events/KeyboardEvent.dart.snippet ('k') | client/dom/src/KeyName.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: client/dom/src/KeyLocation.dart
diff --git a/client/dom/src/KeyLocation.dart b/client/dom/src/KeyLocation.dart
new file mode 100644
index 0000000000000000000000000000000000000000..9396b4fa3a40b64ca5c0328444f4ace1379c846b
--- /dev/null
+++ b/client/dom/src/KeyLocation.dart
@@ -0,0 +1,45 @@
+// Copyright (c) 2011, the Dart project authors. Please see the AUTHORS file
+// 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.
+
+/**
+ * Defines the standard key locations returned by
+ * KeyboardEvent.getKeyLocation.
+ */
+interface KeyLocation {
+
+ /**
+ * The event key is not distinguished as the left or right version
+ * of the key, and did not originate from the numeric keypad (or did not
+ * originate with a virtual key corresponding to the numeric keypad).
+ */
+ static final int STANDARD = 0;
+
+ /**
+ * The event key is in the left key location.
+ */
+ static final int LEFT = 1;
+
+ /**
+ * The event key is in the right key location.
+ */
+ static final int RIGHT = 2;
+
+ /**
+ * The event key originated on the numeric keypad or with a virtual key
+ * corresponding to the numeric keypad.
+ */
+ static final int NUMPAD = 3;
+
+ /**
+ * The event key originated on a mobile device, either on a physical
+ * keypad or a virtual keyboard.
+ */
+ static final int MOBILE = 4;
+
+ /**
+ * The event key originated on a game controller or a joystick on a mobile
+ * device.
+ */
+ static final int JOYSTICK = 5;
+}
« no previous file with comments | « client/dom/snippets/events/KeyboardEvent.dart.snippet ('k') | client/dom/src/KeyName.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698