| 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 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 5 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| (...skipping 1514 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1525 const std::string& id, | 1525 const std::string& id, |
| 1526 content::BrowserContext* context) { | 1526 content::BrowserContext* context) { |
| 1527 keyboard_listener_extension_id_ = id; | 1527 keyboard_listener_extension_id_ = id; |
| 1528 | 1528 |
| 1529 extensions::ExtensionRegistry* registry = | 1529 extensions::ExtensionRegistry* registry = |
| 1530 extensions::ExtensionRegistry::Get(context); | 1530 extensions::ExtensionRegistry::Get(context); |
| 1531 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) | 1531 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) |
| 1532 extension_registry_observer_.Add(registry); | 1532 extension_registry_observer_.Add(registry); |
| 1533 } | 1533 } |
| 1534 | 1534 |
| 1535 void AccessibilityManager::SetSwitchAccessKeys(const std::set<int>& key_codes) { |
| 1536 if (switch_access_enabled_) |
| 1537 switch_access_event_handler_->SetKeysToCapture(key_codes); |
| 1538 } |
| 1539 |
| 1535 } // namespace chromeos | 1540 } // namespace chromeos |
| OLD | NEW |