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

Unified Diff: ash/sticky_keys/sticky_keys_controller.h

Issue 118543002: Move sticky keys files to their own directory and rename to StickyKeysController. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update ash.gyp Created 7 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 | « ash/sticky_keys/OWNERS ('k') | ash/sticky_keys/sticky_keys_controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/sticky_keys/sticky_keys_controller.h
diff --git a/ash/wm/sticky_keys.h b/ash/sticky_keys/sticky_keys_controller.h
similarity index 91%
rename from ash/wm/sticky_keys.h
rename to ash/sticky_keys/sticky_keys_controller.h
index 1a2789214bbfb46af8ec4b1a3bf2e7cd662c36c1..7ab3c69bc5b5a822569f9b766920f2dc3e32cd4a 100644
--- a/ash/wm/sticky_keys.h
+++ b/ash/sticky_keys/sticky_keys_controller.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef ASH_WM_STICKY_KEYS_H_
-#define ASH_WM_STICKY_KEYS_H_
+#ifndef ASH_WM_STICKY_KEYS_CONTROLLER_H_
+#define ASH_WM_STICKY_KEYS_CONTROLLER_H_
#include "ash/ash_export.h"
#include "base/memory/scoped_ptr.h"
@@ -24,10 +24,10 @@ namespace ash {
class StickyKeysHandler;
-// StickyKeys is an accessibility feature for users to be able to compose key
-// and mouse event with modifier keys without simultaneous key press event.
-// Instead they can compose events separately pressing each of the modifier
-// keys involved.
+// StickyKeysController is an accessibility feature for users to be able to
+// compose key and mouse event with modifier keys without simultaneous key
+// press event. Instead they can compose events separately pressing each of the
+// modifier keys involved.
// e.g. Composing Ctrl + T
// User Action : The KeyEvent widget will receives
// ----------------------------------------------------------
@@ -53,14 +53,14 @@ class StickyKeysHandler;
// 9. Press Ctrl key : No event
// 10. Release Ctrl key: Ctrl Keyup
//
-// In the case of Chrome OS, StickyKeys supports Shift,Alt,Ctrl modifiers. Each
-// handling or state is performed independently.
+// In the case of Chrome OS, StickyKeysController supports Shift,Alt,Ctrl
+// modifiers. Each handling or state is performed independently.
//
-// StickyKeys is disabled by default.
-class ASH_EXPORT StickyKeys : public ui::EventHandler {
+// StickyKeysController is disabled by default.
+class ASH_EXPORT StickyKeysController : public ui::EventHandler {
public:
- StickyKeys();
- virtual ~StickyKeys();
+ StickyKeysController();
+ virtual ~StickyKeysController();
// Activate sticky keys to intercept and modify incoming events.
void Enable(bool enabled);
@@ -88,10 +88,10 @@ class ASH_EXPORT StickyKeys : public ui::EventHandler {
scoped_ptr<StickyKeysHandler> alt_sticky_key_;
scoped_ptr<StickyKeysHandler> ctrl_sticky_key_;
- DISALLOW_COPY_AND_ASSIGN(StickyKeys);
+ DISALLOW_COPY_AND_ASSIGN(StickyKeysController);
};
-// StickyKeysHandler handles key event and performs StickyKeys for specific
+// StickyKeysHandler handles key event and controls sticky keysfor specific
// modifier keys. If monitored keyboard events are recieved, StickyKeysHandler
// changes internal state. If non modifier keyboard events or mouse events are
// received, StickyKeysHandler will append modifier based on internal state.
@@ -237,4 +237,4 @@ class ASH_EXPORT StickyKeysHandler {
} // namespace ash
-#endif // ASH_WM_STICKY_KEYS_H_
+#endif // ASH_WM_STICKY_KEYS_CONTROLLER_H_
« no previous file with comments | « ash/sticky_keys/OWNERS ('k') | ash/sticky_keys/sticky_keys_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698