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

Side by Side Diff: chrome/browser/chromeos/accessibility/accessibility_manager.cc

Issue 2905373002: Set keys for SwitchAccessEventHandler to capture using accessibiltyPrivate API (Closed)
Patch Set: Responded to comment Created 3 years, 6 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698