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 1262 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1273 } | 1273 } |
1274 | 1274 |
1275 void AccessibilityManager::ActiveUserChanged(const AccountId& account_id) { | 1275 void AccessibilityManager::ActiveUserChanged(const AccountId& account_id) { |
1276 SetProfile(ProfileManager::GetActiveUserProfile()); | 1276 SetProfile(ProfileManager::GetActiveUserProfile()); |
1277 } | 1277 } |
1278 | 1278 |
1279 void AccessibilityManager::OnAppTerminating() { | 1279 void AccessibilityManager::OnAppTerminating() { |
1280 session_state_observer_.reset(); | 1280 session_state_observer_.reset(); |
1281 } | 1281 } |
1282 | 1282 |
1283 void AccessibilityManager::OnFullscreenStateChanged(bool is_fullscreen, | 1283 void AccessibilityManager::OnFullscreenStateChanged( |
1284 aura::Window* root_window) { | 1284 bool is_fullscreen, |
| 1285 ash::WmWindow* root_window) { |
1285 if (chromevox_panel_) | 1286 if (chromevox_panel_) |
1286 chromevox_panel_->UpdateWidgetBounds(); | 1287 chromevox_panel_->UpdateWidgetBounds(); |
1287 } | 1288 } |
1288 | 1289 |
1289 void AccessibilityManager::SetProfileForTest(Profile* profile) { | 1290 void AccessibilityManager::SetProfileForTest(Profile* profile) { |
1290 SetProfile(profile); | 1291 SetProfile(profile); |
1291 } | 1292 } |
1292 | 1293 |
1293 void AccessibilityManager::SetBrailleControllerForTest( | 1294 void AccessibilityManager::SetBrailleControllerForTest( |
1294 BrailleController* controller) { | 1295 BrailleController* controller) { |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1527 content::BrowserContext* context) { | 1528 content::BrowserContext* context) { |
1528 keyboard_listener_extension_id_ = id; | 1529 keyboard_listener_extension_id_ = id; |
1529 | 1530 |
1530 extensions::ExtensionRegistry* registry = | 1531 extensions::ExtensionRegistry* registry = |
1531 extensions::ExtensionRegistry::Get(context); | 1532 extensions::ExtensionRegistry::Get(context); |
1532 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) | 1533 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) |
1533 extension_registry_observer_.Add(registry); | 1534 extension_registry_observer_.Add(registry); |
1534 } | 1535 } |
1535 | 1536 |
1536 } // namespace chromeos | 1537 } // namespace chromeos |
OLD | NEW |