OLD | NEW |
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 6 #define CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
7 | 7 |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "ash/accessibility_types.h" | 10 #include "ash/accessibility_types.h" |
(...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 const std::string& keyboard_listener_extension_id() { | 304 const std::string& keyboard_listener_extension_id() { |
305 return keyboard_listener_extension_id_; | 305 return keyboard_listener_extension_id_; |
306 } | 306 } |
307 | 307 |
308 // Whether keyboard listener extension gets to capture keys. | 308 // Whether keyboard listener extension gets to capture keys. |
309 void set_keyboard_listener_capture(bool val) { | 309 void set_keyboard_listener_capture(bool val) { |
310 keyboard_listener_capture_ = val; | 310 keyboard_listener_capture_ = val; |
311 } | 311 } |
312 bool keyboard_listener_capture() { return keyboard_listener_capture_; } | 312 bool keyboard_listener_capture() { return keyboard_listener_capture_; } |
313 | 313 |
| 314 // Set the keys to be captured by Switch Access. |
| 315 void SetSwitchAccessKeys(const std::unordered_set<int>& key_codes); |
| 316 |
314 protected: | 317 protected: |
315 AccessibilityManager(); | 318 AccessibilityManager(); |
316 ~AccessibilityManager() override; | 319 ~AccessibilityManager() override; |
317 | 320 |
318 private: | 321 private: |
319 void PostLoadChromeVox(); | 322 void PostLoadChromeVox(); |
320 void PostUnloadChromeVox(); | 323 void PostUnloadChromeVox(); |
321 void PostSwitchChromeVoxProfile(); | 324 void PostSwitchChromeVoxProfile(); |
322 void ReloadChromeVoxPanel(); | 325 void ReloadChromeVoxPanel(); |
323 | 326 |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
454 switch_access_event_handler_; | 457 switch_access_event_handler_; |
455 | 458 |
456 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; | 459 base::WeakPtrFactory<AccessibilityManager> weak_ptr_factory_; |
457 | 460 |
458 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); | 461 DISALLOW_COPY_AND_ASSIGN(AccessibilityManager); |
459 }; | 462 }; |
460 | 463 |
461 } // namespace chromeos | 464 } // namespace chromeos |
462 | 465 |
463 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ | 466 #endif // CHROME_BROWSER_CHROMEOS_ACCESSIBILITY_ACCESSIBILITY_MANAGER_H_ |
OLD | NEW |