| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/ui/ash/chrome_shell_delegate.h" | 5 #include "chrome/browser/ui/ash/chrome_shell_delegate.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 | 10 |
| (...skipping 17 matching lines...) Expand all Loading... |
| 28 #include "chrome/browser/app_mode/app_mode_utils.h" | 28 #include "chrome/browser/app_mode/app_mode_utils.h" |
| 29 #include "chrome/browser/chrome_notification_types.h" | 29 #include "chrome/browser/chrome_notification_types.h" |
| 30 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" | 30 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" |
| 31 #include "chrome/browser/chromeos/accessibility/magnification_manager.h" | 31 #include "chrome/browser/chromeos/accessibility/magnification_manager.h" |
| 32 #include "chrome/browser/chromeos/background/ash_wallpaper_delegate.h" | 32 #include "chrome/browser/chromeos/background/ash_wallpaper_delegate.h" |
| 33 #include "chrome/browser/chromeos/display/display_configuration_observer.h" | 33 #include "chrome/browser/chromeos/display/display_configuration_observer.h" |
| 34 #include "chrome/browser/chromeos/display/display_preferences.h" | 34 #include "chrome/browser/chromeos/display/display_preferences.h" |
| 35 #include "chrome/browser/chromeos/policy/display_rotation_default_handler.h" | 35 #include "chrome/browser/chromeos/policy/display_rotation_default_handler.h" |
| 36 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 36 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 37 #include "chrome/browser/chromeos/system/input_device_settings.h" | 37 #include "chrome/browser/chromeos/system/input_device_settings.h" |
| 38 #include "chrome/browser/chromeos/ui/accessibility_focus_ring_controller.h" |
| 38 #include "chrome/browser/lifetime/application_lifetime.h" | 39 #include "chrome/browser/lifetime/application_lifetime.h" |
| 39 #include "chrome/browser/profiles/profile.h" | 40 #include "chrome/browser/profiles/profile.h" |
| 40 #include "chrome/browser/profiles/profile_manager.h" | 41 #include "chrome/browser/profiles/profile_manager.h" |
| 41 #include "chrome/browser/profiles/profiles_state.h" | 42 #include "chrome/browser/profiles/profiles_state.h" |
| 42 #include "chrome/browser/signin/signin_error_notifier_factory_ash.h" | 43 #include "chrome/browser/signin/signin_error_notifier_factory_ash.h" |
| 43 #include "chrome/browser/speech/tts_controller.h" | 44 #include "chrome/browser/speech/tts_controller.h" |
| 44 #include "chrome/browser/sync/sync_error_notifier_factory_ash.h" | 45 #include "chrome/browser/sync/sync_error_notifier_factory_ash.h" |
| 45 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" | 46 #include "chrome/browser/ui/app_list/app_list_view_delegate.h" |
| 46 #include "chrome/browser/ui/ash/app_list/app_list_service_ash.h" | 47 #include "chrome/browser/ui/ash/app_list/app_list_service_ash.h" |
| 47 #include "chrome/browser/ui/ash/chrome_keyboard_ui.h" | 48 #include "chrome/browser/ui/ash/chrome_keyboard_ui.h" |
| (...skipping 204 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 252 | 253 |
| 253 bool IsBrailleDisplayConnected() const override { | 254 bool IsBrailleDisplayConnected() const override { |
| 254 DCHECK(AccessibilityManager::Get()); | 255 DCHECK(AccessibilityManager::Get()); |
| 255 return AccessibilityManager::Get()->IsBrailleDisplayConnected(); | 256 return AccessibilityManager::Get()->IsBrailleDisplayConnected(); |
| 256 } | 257 } |
| 257 | 258 |
| 258 void SilenceSpokenFeedback() const override { | 259 void SilenceSpokenFeedback() const override { |
| 259 TtsController::GetInstance()->Stop(); | 260 TtsController::GetInstance()->Stop(); |
| 260 } | 261 } |
| 261 | 262 |
| 263 void ClearFocusHighlight() const override { |
| 264 chromeos::AccessibilityFocusRingController::GetInstance()->SetFocusRing( |
| 265 std::vector<gfx::Rect>(), |
| 266 chromeos::AccessibilityFocusRingController::PERSIST_FOCUS_RING); |
| 267 } |
| 268 |
| 262 void SaveScreenMagnifierScale(double scale) override { | 269 void SaveScreenMagnifierScale(double scale) override { |
| 263 if (chromeos::MagnificationManager::Get()) | 270 if (chromeos::MagnificationManager::Get()) |
| 264 chromeos::MagnificationManager::Get()->SaveScreenMagnifierScale(scale); | 271 chromeos::MagnificationManager::Get()->SaveScreenMagnifierScale(scale); |
| 265 } | 272 } |
| 266 | 273 |
| 267 double GetSavedScreenMagnifierScale() override { | 274 double GetSavedScreenMagnifierScale() override { |
| 268 if (chromeos::MagnificationManager::Get()) { | 275 if (chromeos::MagnificationManager::Get()) { |
| 269 return chromeos::MagnificationManager::Get() | 276 return chromeos::MagnificationManager::Get() |
| 270 ->GetSavedScreenMagnifierScale(); | 277 ->GetSavedScreenMagnifierScale(); |
| 271 } | 278 } |
| (...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 549 NOTREACHED() << "Unexpected notification " << type; | 556 NOTREACHED() << "Unexpected notification " << type; |
| 550 } | 557 } |
| 551 } | 558 } |
| 552 | 559 |
| 553 void ChromeShellDelegate::PlatformInit() { | 560 void ChromeShellDelegate::PlatformInit() { |
| 554 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, | 561 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, |
| 555 content::NotificationService::AllSources()); | 562 content::NotificationService::AllSources()); |
| 556 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED, | 563 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED, |
| 557 content::NotificationService::AllSources()); | 564 content::NotificationService::AllSources()); |
| 558 } | 565 } |
| OLD | NEW |