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

Side by Side Diff: chrome/browser/ui/views/ash/chrome_shell_delegate.cc

Issue 10201014: Implement High Contrast mode for Chrome OS (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Code review fix Created 8 years, 7 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
OLDNEW
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/views/ash/chrome_shell_delegate.h" 5 #include "chrome/browser/ui/views/ash/chrome_shell_delegate.h"
6 6
7 #include "ash/launcher/launcher_types.h" 7 #include "ash/launcher/launcher_types.h"
8 #include "ash/system/tray/system_tray_delegate.h" 8 #include "ash/system/tray/system_tray_delegate.h"
9 #include "ash/wm/partial_screenshot_view.h" 9 #include "ash/wm/partial_screenshot_view.h"
10 #include "ash/wm/window_util.h" 10 #include "ash/wm/window_util.h"
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 content::WebUI* login_screen_web_ui = NULL; 207 content::WebUI* login_screen_web_ui = NULL;
208 chromeos::WebUILoginDisplayHost* host = 208 chromeos::WebUILoginDisplayHost* host =
209 static_cast<chromeos::WebUILoginDisplayHost*>( 209 static_cast<chromeos::WebUILoginDisplayHost*>(
210 chromeos::BaseLoginDisplayHost::default_host()); 210 chromeos::BaseLoginDisplayHost::default_host());
211 if (host && host->GetOobeUI()) 211 if (host && host->GetOobeUI())
212 login_screen_web_ui = host->GetOobeUI()->web_ui(); 212 login_screen_web_ui = host->GetOobeUI()->web_ui();
213 chromeos::accessibility::ToggleSpokenFeedback(login_screen_web_ui); 213 chromeos::accessibility::ToggleSpokenFeedback(login_screen_web_ui);
214 #endif 214 #endif
215 } 215 }
216 216
217 bool ChromeShellDelegate::IsHighContrastEnabled() {
218 #if defined(OS_CHROMEOS)
219 return chromeos::accessibility::IsHighContrastEnabled();
220 #endif
221 }
222
217 app_list::AppListViewDelegate* 223 app_list::AppListViewDelegate*
218 ChromeShellDelegate::CreateAppListViewDelegate() { 224 ChromeShellDelegate::CreateAppListViewDelegate() {
219 // Shell will own the created delegate. 225 // Shell will own the created delegate.
220 return new AppListViewDelegate; 226 return new AppListViewDelegate;
221 } 227 }
222 228
223 void ChromeShellDelegate::StartPartialScreenshot( 229 void ChromeShellDelegate::StartPartialScreenshot(
224 ash::ScreenshotDelegate* screenshot_delegate) { 230 ash::ScreenshotDelegate* screenshot_delegate) {
225 ash::PartialScreenshotView::StartPartialScreenshot(screenshot_delegate); 231 ash::PartialScreenshotView::StartPartialScreenshot(screenshot_delegate);
226 } 232 }
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 ash::Shell::GetInstance()->CreateLauncher(); 265 ash::Shell::GetInstance()->CreateLauncher();
260 break; 266 break;
261 default: 267 default:
262 NOTREACHED() << "Unexpected notification " << type; 268 NOTREACHED() << "Unexpected notification " << type;
263 } 269 }
264 #else 270 #else
265 // MSVC++ warns about switch statements without any cases. 271 // MSVC++ warns about switch statements without any cases.
266 NOTREACHED() << "Unexpected notification " << type; 272 NOTREACHED() << "Unexpected notification " << type;
267 #endif 273 #endif
268 } 274 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698