OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 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/ui/ash/chrome_shell_delegate.h" | 5 #include "chrome/browser/ui/ash/chrome_shell_delegate.h" |
6 | 6 |
7 #include "ash/keyboard_overlay/keyboard_overlay_view.h" | 7 #include "ash/keyboard_overlay/keyboard_overlay_view.h" |
8 #include "ash/wm/window_util.h" | 8 #include "ash/wm/window_util.h" |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
(...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 } | 174 } |
175 | 175 |
176 double ChromeShellDelegate::GetSavedScreenMagnifierScale() { | 176 double ChromeShellDelegate::GetSavedScreenMagnifierScale() { |
177 if (chromeos::MagnificationManager::Get()) { | 177 if (chromeos::MagnificationManager::Get()) { |
178 return chromeos::MagnificationManager::Get()-> | 178 return chromeos::MagnificationManager::Get()-> |
179 GetSavedScreenMagnifierScale(); | 179 GetSavedScreenMagnifierScale(); |
180 } | 180 } |
181 return std::numeric_limits<double>::min(); | 181 return std::numeric_limits<double>::min(); |
182 } | 182 } |
183 | 183 |
| 184 void ChromeShellDelegate::SetLargeCursorEnabled(bool enabled) { |
| 185 DCHECK(chromeos::AccessibilityManager::Get()); |
| 186 return chromeos::AccessibilityManager::Get()->EnableLargeCursor(enabled); |
| 187 } |
| 188 |
| 189 bool ChromeShellDelegate::IsLargeCursorEnabled() const { |
| 190 DCHECK(chromeos::AccessibilityManager::Get()); |
| 191 return chromeos::AccessibilityManager::Get()->IsLargeCursorEnabled(); |
| 192 } |
| 193 |
184 ash::CapsLockDelegate* ChromeShellDelegate::CreateCapsLockDelegate() { | 194 ash::CapsLockDelegate* ChromeShellDelegate::CreateCapsLockDelegate() { |
185 chromeos::input_method::XKeyboard* xkeyboard = | 195 chromeos::input_method::XKeyboard* xkeyboard = |
186 chromeos::input_method::InputMethodManager::Get()->GetXKeyboard(); | 196 chromeos::input_method::InputMethodManager::Get()->GetXKeyboard(); |
187 return new CapsLockDelegate(xkeyboard); | 197 return new CapsLockDelegate(xkeyboard); |
188 } | 198 } |
189 | 199 |
190 ash::SessionStateDelegate* ChromeShellDelegate::CreateSessionStateDelegate() { | 200 ash::SessionStateDelegate* ChromeShellDelegate::CreateSessionStateDelegate() { |
191 return new SessionStateDelegateChromeos; | 201 return new SessionStateDelegateChromeos; |
192 } | 202 } |
193 | 203 |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
256 } | 266 } |
257 | 267 |
258 void ChromeShellDelegate::PlatformInit() { | 268 void ChromeShellDelegate::PlatformInit() { |
259 registrar_.Add(this, | 269 registrar_.Add(this, |
260 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, | 270 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, |
261 content::NotificationService::AllSources()); | 271 content::NotificationService::AllSources()); |
262 registrar_.Add(this, | 272 registrar_.Add(this, |
263 chrome::NOTIFICATION_SESSION_STARTED, | 273 chrome::NOTIFICATION_SESSION_STARTED, |
264 content::NotificationService::AllSources()); | 274 content::NotificationService::AllSources()); |
265 } | 275 } |
OLD | NEW |