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

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

Issue 14674002: Support Shift+Search+Arrows to navigate and Control to silence speech everywhere (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 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 | 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/system/chromeos/network/network_observer.h" 8 #include "ash/system/chromeos/network/network_observer.h"
9 #include "ash/system/tray/system_tray_notifier.h" 9 #include "ash/system/tray/system_tray_notifier.h"
10 #include "ash/wm/window_util.h" 10 #include "ash/wm/window_util.h"
11 #include "base/command_line.h" 11 #include "base/command_line.h"
12 #include "base/prefs/pref_service.h" 12 #include "base/prefs/pref_service.h"
13 #include "base/utf_string_conversions.h" 13 #include "base/utf_string_conversions.h"
14 #include "chrome/browser/chromeos/accessibility/accessibility_util.h" 14 #include "chrome/browser/chromeos/accessibility/accessibility_util.h"
15 #include "chrome/browser/chromeos/accessibility/magnification_manager.h" 15 #include "chrome/browser/chromeos/accessibility/magnification_manager.h"
16 #include "chrome/browser/chromeos/background/ash_user_wallpaper_delegate.h" 16 #include "chrome/browser/chromeos/background/ash_user_wallpaper_delegate.h"
17 #include "chrome/browser/chromeos/cros/cros_library.h" 17 #include "chrome/browser/chromeos/cros/cros_library.h"
18 #include "chrome/browser/chromeos/cros/network_library.h" 18 #include "chrome/browser/chromeos/cros/network_library.h"
19 #include "chrome/browser/chromeos/display/display_preferences.h" 19 #include "chrome/browser/chromeos/display/display_preferences.h"
20 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_util.h" 20 #include "chrome/browser/chromeos/extensions/file_manager/file_manager_util.h"
21 #include "chrome/browser/chromeos/extensions/media_player_api.h" 21 #include "chrome/browser/chromeos/extensions/media_player_api.h"
22 #include "chrome/browser/chromeos/extensions/media_player_event_router.h" 22 #include "chrome/browser/chromeos/extensions/media_player_event_router.h"
23 #include "chrome/browser/chromeos/input_method/input_method_configuration.h" 23 #include "chrome/browser/chromeos/input_method/input_method_configuration.h"
24 #include "chrome/browser/chromeos/login/login_display_host_impl.h" 24 #include "chrome/browser/chromeos/login/login_display_host_impl.h"
25 #include "chrome/browser/chromeos/login/screen_locker.h" 25 #include "chrome/browser/chromeos/login/screen_locker.h"
26 #include "chrome/browser/chromeos/system/ash_system_tray_delegate.h" 26 #include "chrome/browser/chromeos/system/ash_system_tray_delegate.h"
27 #include "chrome/browser/extensions/api/terminal/terminal_extension_helper.h" 27 #include "chrome/browser/extensions/api/terminal/terminal_extension_helper.h"
28 #include "chrome/browser/profiles/profile_manager.h" 28 #include "chrome/browser/profiles/profile_manager.h"
29 #include "chrome/browser/speech/tts_controller.h"
29 #include "chrome/browser/ui/ash/caps_lock_delegate_chromeos.h" 30 #include "chrome/browser/ui/ash/caps_lock_delegate_chromeos.h"
30 #include "chrome/browser/ui/ash/window_positioner.h" 31 #include "chrome/browser/ui/ash/window_positioner.h"
31 #include "chrome/browser/ui/browser.h" 32 #include "chrome/browser/ui/browser.h"
32 #include "chrome/browser/ui/browser_finder.h" 33 #include "chrome/browser/ui/browser_finder.h"
33 #include "chrome/browser/ui/browser_window.h" 34 #include "chrome/browser/ui/browser_window.h"
34 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h" 35 #include "chrome/browser/ui/webui/chrome_web_contents_handler.h"
35 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h" 36 #include "chrome/browser/ui/webui/chromeos/login/oobe_ui.h"
36 #include "chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h" 37 #include "chrome/browser/ui/webui/chromeos/mobile_setup_dialog.h"
37 #include "chrome/common/chrome_switches.h" 38 #include "chrome/common/chrome_switches.h"
38 #include "chrome/common/pref_names.h" 39 #include "chrome/common/pref_names.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
204 bool ChromeShellDelegate::ShouldAlwaysShowAccessibilityMenu() const { 205 bool ChromeShellDelegate::ShouldAlwaysShowAccessibilityMenu() const {
205 Profile* profile = ProfileManager::GetDefaultProfile(); 206 Profile* profile = ProfileManager::GetDefaultProfile();
206 if (!profile) 207 if (!profile)
207 return false; 208 return false;
208 209
209 PrefService* user_pref_service = profile->GetPrefs(); 210 PrefService* user_pref_service = profile->GetPrefs();
210 return user_pref_service && 211 return user_pref_service &&
211 user_pref_service->GetBoolean(prefs::kShouldAlwaysShowAccessibilityMenu); 212 user_pref_service->GetBoolean(prefs::kShouldAlwaysShowAccessibilityMenu);
212 } 213 }
213 214
215 void ChromeShellDelegate::SilenceSpokenFeedback() const {
216 TtsController::GetInstance()->Stop();
217 }
218
214 ash::SystemTrayDelegate* ChromeShellDelegate::CreateSystemTrayDelegate() { 219 ash::SystemTrayDelegate* ChromeShellDelegate::CreateSystemTrayDelegate() {
215 return chromeos::CreateSystemTrayDelegate(); 220 return chromeos::CreateSystemTrayDelegate();
216 } 221 }
217 222
218 ash::UserWallpaperDelegate* ChromeShellDelegate::CreateUserWallpaperDelegate() { 223 ash::UserWallpaperDelegate* ChromeShellDelegate::CreateUserWallpaperDelegate() {
219 return chromeos::CreateUserWallpaperDelegate(); 224 return chromeos::CreateUserWallpaperDelegate();
220 } 225 }
221 226
222 void ChromeShellDelegate::HandleMediaNextTrack() { 227 void ChromeShellDelegate::HandleMediaNextTrack() {
223 extensions::MediaPlayerAPI::Get( 228 extensions::MediaPlayerAPI::Get(
(...skipping 29 matching lines...) Expand all
253 } 258 }
254 259
255 void ChromeShellDelegate::PlatformInit() { 260 void ChromeShellDelegate::PlatformInit() {
256 registrar_.Add(this, 261 registrar_.Add(this,
257 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, 262 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED,
258 content::NotificationService::AllSources()); 263 content::NotificationService::AllSources());
259 registrar_.Add(this, 264 registrar_.Add(this,
260 chrome::NOTIFICATION_SESSION_STARTED, 265 chrome::NOTIFICATION_SESSION_STARTED,
261 content::NotificationService::AllSources()); 266 content::NotificationService::AllSources());
262 } 267 }
OLDNEW
« ash/accelerators/accelerator_table.h ('K') | « chrome/browser/ui/ash/chrome_shell_delegate.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698