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

Unified Diff: ash/sticky_keys/sticky_keys_constants.h

Issue 137373003: Show overlay displaying the state of all sticky keys when it is enabled. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Unit tests for overlay Created 6 years, 11 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: ash/sticky_keys/sticky_keys_constants.h
diff --git a/ash/sticky_keys/sticky_keys_constants.h b/ash/sticky_keys/sticky_keys_constants.h
new file mode 100644
index 0000000000000000000000000000000000000000..182baefce4734358b4410fd49ccf051d21109060
--- /dev/null
+++ b/ash/sticky_keys/sticky_keys_constants.h
@@ -0,0 +1,33 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef ASH_STICKY_KEYS_STICKY_KEYS_CONSTANTS_H_
+#define ASH_STICKY_KEYS_STICKY_KEYS_CONSTANTS_H_
+
+namespace ash {
+
+// Modifiers supported for sticky keys.
+enum StickyKeyModifier {
+ STICKY_KEY_SHIFT,
+ STICKY_KEY_ALT,
+ STICKY_KEY_CONTROL,
+ STICKY_KEY_SEARCH
+};
+
+// State of an individual modifier key.
+enum StickyKeyState {
+ // The sticky key is disabled. Incoming non-modifier key events are not
+ // affected.
+ STICKY_KEY_STATE_DISABLED,
+ // The sticky key is enabled. Incoming non-modifier key down events are
+ // modified. After that, sticky key state becomes DISABLED.
+ STICKY_KEY_STATE_ENABLED,
+ // The sticky key is locked. All incoming non modifier key down events are
+ // modified.
+ STICKY_KEY_STATE_LOCKED,
+};
+
+} // ash
James Cook 2014/01/15 22:53:53 nit: "namespace ash"
Tim Song 2014/01/16 00:01:59 Done.
+
+#endif // ASH_WM_STICKY_KEYS_CONTROLLER_H_

Powered by Google App Engine
This is Rietveld 408576698