| 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 1417 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1428 input_method::InputMethodManager::Get() | 1428 input_method::InputMethodManager::Get() |
| 1429 ->GetActiveIMEState() | 1429 ->GetActiveIMEState() |
| 1430 ->ChangeInputMethod(extension_misc::kBrailleImeEngineId, | 1430 ->ChangeInputMethod(extension_misc::kBrailleImeEngineId, |
| 1431 false /* show_message */); | 1431 false /* show_message */); |
| 1432 } | 1432 } |
| 1433 } | 1433 } |
| 1434 | 1434 |
| 1435 void AccessibilityManager::OnExtensionUnloaded( | 1435 void AccessibilityManager::OnExtensionUnloaded( |
| 1436 content::BrowserContext* browser_context, | 1436 content::BrowserContext* browser_context, |
| 1437 const extensions::Extension* extension, | 1437 const extensions::Extension* extension, |
| 1438 extensions::UnloadedExtensionInfo::Reason reason) { | 1438 extensions::UnloadedExtensionReason reason) { |
| 1439 if (extension->id() == keyboard_listener_extension_id_) { | 1439 if (extension->id() == keyboard_listener_extension_id_) { |
| 1440 keyboard_listener_extension_id_ = std::string(); | 1440 keyboard_listener_extension_id_ = std::string(); |
| 1441 keyboard_listener_capture_ = false; | 1441 keyboard_listener_capture_ = false; |
| 1442 } | 1442 } |
| 1443 } | 1443 } |
| 1444 | 1444 |
| 1445 void AccessibilityManager::OnShutdown(extensions::ExtensionRegistry* registry) { | 1445 void AccessibilityManager::OnShutdown(extensions::ExtensionRegistry* registry) { |
| 1446 extension_registry_observer_.Remove(registry); | 1446 extension_registry_observer_.Remove(registry); |
| 1447 } | 1447 } |
| 1448 | 1448 |
| (...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1536 content::BrowserContext* context) { | 1536 content::BrowserContext* context) { |
| 1537 keyboard_listener_extension_id_ = id; | 1537 keyboard_listener_extension_id_ = id; |
| 1538 | 1538 |
| 1539 extensions::ExtensionRegistry* registry = | 1539 extensions::ExtensionRegistry* registry = |
| 1540 extensions::ExtensionRegistry::Get(context); | 1540 extensions::ExtensionRegistry::Get(context); |
| 1541 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) | 1541 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) |
| 1542 extension_registry_observer_.Add(registry); | 1542 extension_registry_observer_.Add(registry); |
| 1543 } | 1543 } |
| 1544 | 1544 |
| 1545 } // namespace chromeos | 1545 } // namespace chromeos |
| OLD | NEW |