sticky_keys_state.h 852 B

12345678910111213141516171819202122232425
  1. // Copyright 2014 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #ifndef ASH_ACCESSIBILITY_STICKY_KEYS_STICKY_KEYS_STATE_H_
  5. #define ASH_ACCESSIBILITY_STICKY_KEYS_STICKY_KEYS_STATE_H_
  6. namespace ash {
  7. // State of an individual modifier key.
  8. enum StickyKeyState {
  9. // The sticky key is disabled. Incoming non-modifier key events are not
  10. // affected.
  11. STICKY_KEY_STATE_DISABLED,
  12. // The sticky key is enabled. Incoming non-modifier key down events are
  13. // modified. After that, sticky key state becomes DISABLED.
  14. STICKY_KEY_STATE_ENABLED,
  15. // The sticky key is locked. All incoming non modifier key down events are
  16. // modified.
  17. STICKY_KEY_STATE_LOCKED,
  18. };
  19. } // namespace ash
  20. #endif // ASH_ACCESSIBILITY_STICKY_KEYS_STICKY_KEYS_STATE_H_