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

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

Issue 2839373003: struct UnloadedExtensionInfo -> enum UnloadedExtensionInfoReason (Closed)
Patch Set: Rebase Created 3 years, 7 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 1411 matching lines...) Expand 10 before | Expand all | Expand 10 after
1422 input_method::InputMethodManager::Get() 1422 input_method::InputMethodManager::Get()
1423 ->GetActiveIMEState() 1423 ->GetActiveIMEState()
1424 ->ChangeInputMethod(extension_misc::kBrailleImeEngineId, 1424 ->ChangeInputMethod(extension_misc::kBrailleImeEngineId,
1425 false /* show_message */); 1425 false /* show_message */);
1426 } 1426 }
1427 } 1427 }
1428 1428
1429 void AccessibilityManager::OnExtensionUnloaded( 1429 void AccessibilityManager::OnExtensionUnloaded(
1430 content::BrowserContext* browser_context, 1430 content::BrowserContext* browser_context,
1431 const extensions::Extension* extension, 1431 const extensions::Extension* extension,
1432 extensions::UnloadedExtensionInfo::Reason reason) { 1432 extensions::UnloadedExtensionReason reason) {
1433 if (extension->id() == keyboard_listener_extension_id_) { 1433 if (extension->id() == keyboard_listener_extension_id_) {
1434 keyboard_listener_extension_id_ = std::string(); 1434 keyboard_listener_extension_id_ = std::string();
1435 keyboard_listener_capture_ = false; 1435 keyboard_listener_capture_ = false;
1436 } 1436 }
1437 } 1437 }
1438 1438
1439 void AccessibilityManager::OnShutdown(extensions::ExtensionRegistry* registry) { 1439 void AccessibilityManager::OnShutdown(extensions::ExtensionRegistry* registry) {
1440 extension_registry_observer_.Remove(registry); 1440 extension_registry_observer_.Remove(registry);
1441 } 1441 }
1442 1442
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
1530 content::BrowserContext* context) { 1530 content::BrowserContext* context) {
1531 keyboard_listener_extension_id_ = id; 1531 keyboard_listener_extension_id_ = id;
1532 1532
1533 extensions::ExtensionRegistry* registry = 1533 extensions::ExtensionRegistry* registry =
1534 extensions::ExtensionRegistry::Get(context); 1534 extensions::ExtensionRegistry::Get(context);
1535 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) 1535 if (!extension_registry_observer_.IsObserving(registry) && !id.empty())
1536 extension_registry_observer_.Add(registry); 1536 extension_registry_observer_.Add(registry);
1537 } 1537 }
1538 1538
1539 } // namespace chromeos 1539 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698