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 1258 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1269 // changes, since the shelf layout manager doesn't exist in the login profile. | 1269 // changes, since the shelf layout manager doesn't exist in the login profile. |
1270 if (chromevox_panel_) | 1270 if (chromevox_panel_) |
1271 chromevox_panel_->UpdatePanelHeight(); | 1271 chromevox_panel_->UpdatePanelHeight(); |
1272 } | 1272 } |
1273 | 1273 |
1274 void AccessibilityManager::ActiveUserChanged( | 1274 void AccessibilityManager::ActiveUserChanged( |
1275 const user_manager::User* active_user) { | 1275 const user_manager::User* active_user) { |
1276 SetProfile(ProfileManager::GetActiveUserProfile()); | 1276 SetProfile(ProfileManager::GetActiveUserProfile()); |
1277 } | 1277 } |
1278 | 1278 |
1279 void AccessibilityManager::OnFullscreenStateChanged( | 1279 void AccessibilityManager::OnFullscreenStateChanged(bool is_fullscreen, |
1280 bool is_fullscreen, | 1280 aura::Window* root_window) { |
1281 ash::WmWindow* root_window) { | |
1282 if (chromevox_panel_) | 1281 if (chromevox_panel_) |
1283 chromevox_panel_->UpdateWidgetBounds(); | 1282 chromevox_panel_->UpdateWidgetBounds(); |
1284 } | 1283 } |
1285 | 1284 |
1286 void AccessibilityManager::SetProfileForTest(Profile* profile) { | 1285 void AccessibilityManager::SetProfileForTest(Profile* profile) { |
1287 SetProfile(profile); | 1286 SetProfile(profile); |
1288 } | 1287 } |
1289 | 1288 |
1290 void AccessibilityManager::SetBrailleControllerForTest( | 1289 void AccessibilityManager::SetBrailleControllerForTest( |
1291 BrailleController* controller) { | 1290 BrailleController* controller) { |
(...skipping 235 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1527 content::BrowserContext* context) { | 1526 content::BrowserContext* context) { |
1528 keyboard_listener_extension_id_ = id; | 1527 keyboard_listener_extension_id_ = id; |
1529 | 1528 |
1530 extensions::ExtensionRegistry* registry = | 1529 extensions::ExtensionRegistry* registry = |
1531 extensions::ExtensionRegistry::Get(context); | 1530 extensions::ExtensionRegistry::Get(context); |
1532 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) | 1531 if (!extension_registry_observer_.IsObserving(registry) && !id.empty()) |
1533 extension_registry_observer_.Add(registry); | 1532 extension_registry_observer_.Add(registry); |
1534 } | 1533 } |
1535 | 1534 |
1536 } // namespace chromeos | 1535 } // namespace chromeos |
OLD | NEW |