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/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 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 content::WebUI* login_screen_web_ui = NULL; | 200 content::WebUI* login_screen_web_ui = NULL; |
201 chromeos::WebUILoginDisplayHost* host = | 201 chromeos::WebUILoginDisplayHost* host = |
202 static_cast<chromeos::WebUILoginDisplayHost*>( | 202 static_cast<chromeos::WebUILoginDisplayHost*>( |
203 chromeos::BaseLoginDisplayHost::default_host()); | 203 chromeos::BaseLoginDisplayHost::default_host()); |
204 if (host && host->GetOobeUI()) | 204 if (host && host->GetOobeUI()) |
205 login_screen_web_ui = host->GetOobeUI()->web_ui(); | 205 login_screen_web_ui = host->GetOobeUI()->web_ui(); |
206 chromeos::accessibility::ToggleSpokenFeedback(login_screen_web_ui); | 206 chromeos::accessibility::ToggleSpokenFeedback(login_screen_web_ui); |
207 #endif | 207 #endif |
208 } | 208 } |
209 | 209 |
| 210 bool ChromeShellDelegate::IsHighContrastEnabled() { |
| 211 #if defined(OS_CHROMEOS) |
| 212 return chromeos::accessibility::IsHighContrastEnabled(); |
| 213 #endif |
| 214 } |
| 215 |
210 ash::AppListViewDelegate* | 216 ash::AppListViewDelegate* |
211 ChromeShellDelegate::CreateAppListViewDelegate() { | 217 ChromeShellDelegate::CreateAppListViewDelegate() { |
212 // Shell will own the created delegate. | 218 // Shell will own the created delegate. |
213 return new AppListViewDelegate; | 219 return new AppListViewDelegate; |
214 } | 220 } |
215 | 221 |
216 void ChromeShellDelegate::StartPartialScreenshot( | 222 void ChromeShellDelegate::StartPartialScreenshot( |
217 ash::ScreenshotDelegate* screenshot_delegate) { | 223 ash::ScreenshotDelegate* screenshot_delegate) { |
218 ash::PartialScreenshotView::StartPartialScreenshot(screenshot_delegate); | 224 ash::PartialScreenshotView::StartPartialScreenshot(screenshot_delegate); |
219 } | 225 } |
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
252 ash::Shell::GetInstance()->CreateLauncher(); | 258 ash::Shell::GetInstance()->CreateLauncher(); |
253 break; | 259 break; |
254 default: | 260 default: |
255 NOTREACHED() << "Unexpected notification " << type; | 261 NOTREACHED() << "Unexpected notification " << type; |
256 } | 262 } |
257 #else | 263 #else |
258 // MSVC++ warns about switch statements without any cases. | 264 // MSVC++ warns about switch statements without any cases. |
259 NOTREACHED() << "Unexpected notification " << type; | 265 NOTREACHED() << "Unexpected notification " << type; |
260 #endif | 266 #endif |
261 } | 267 } |
OLD | NEW |