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

Side by Side Diff: chrome/browser/ui/ash/chrome_shell_delegate_chromeos.cc

Issue 16175004: Large Cursor: Add the toggle menuitem to a11y menu in uber tray (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix test failure on win Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
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
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
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 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.h ('k') | chrome/browser/ui/ash/chrome_shell_delegate_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698