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

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

Issue 779103002: Revert of Various changes required to support ChromeVox Next to read Views and Windows. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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 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/accelerators/magnifier_key_scroller.h" 7 #include "ash/accelerators/magnifier_key_scroller.h"
8 #include "ash/accelerators/spoken_feedback_toggler.h" 8 #include "ash/accelerators/spoken_feedback_toggler.h"
9 #include "ash/accessibility_delegate.h" 9 #include "ash/accessibility_delegate.h"
10 #include "ash/wm/mru_window_tracker.h" 10 #include "ash/wm/mru_window_tracker.h"
11 #include "ash/wm/window_util.h" 11 #include "ash/wm/window_util.h"
12 #include "base/command_line.h" 12 #include "base/command_line.h"
13 #include "base/prefs/pref_service.h" 13 #include "base/prefs/pref_service.h"
14 #include "chrome/browser/accessibility/accessibility_events.h" 14 #include "chrome/browser/accessibility/accessibility_events.h"
15 #include "chrome/browser/app_mode/app_mode_utils.h" 15 #include "chrome/browser/app_mode/app_mode_utils.h"
16 #include "chrome/browser/chrome_notification_types.h" 16 #include "chrome/browser/chrome_notification_types.h"
17 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h" 17 #include "chrome/browser/chromeos/accessibility/accessibility_manager.h"
18 #include "chrome/browser/chromeos/display/display_configuration_observer.h" 18 #include "chrome/browser/chromeos/display/display_configuration_observer.h"
19 #include "chrome/browser/chromeos/display/display_preferences.h" 19 #include "chrome/browser/chromeos/display/display_preferences.h"
20 #include "chrome/browser/chromeos/profiles/profile_helper.h" 20 #include "chrome/browser/chromeos/profiles/profile_helper.h"
21 #include "chrome/browser/profiles/profile.h" 21 #include "chrome/browser/profiles/profile.h"
22 #include "chrome/browser/profiles/profile_manager.h" 22 #include "chrome/browser/profiles/profile_manager.h"
23 #include "chrome/browser/signin/signin_error_notifier_factory_ash.h" 23 #include "chrome/browser/signin/signin_error_notifier_factory_ash.h"
24 #include "chrome/browser/speech/tts_controller.h" 24 #include "chrome/browser/speech/tts_controller.h"
25 #include "chrome/browser/sync/sync_error_notifier_factory_ash.h" 25 #include "chrome/browser/sync/sync_error_notifier_factory_ash.h"
26 #include "chrome/browser/ui/ash/accessibility/automation_manager_ash.h"
27 #include "chrome/browser/ui/ash/chrome_new_window_delegate_chromeos.h" 26 #include "chrome/browser/ui/ash/chrome_new_window_delegate_chromeos.h"
28 #include "chrome/browser/ui/ash/media_delegate_chromeos.h" 27 #include "chrome/browser/ui/ash/media_delegate_chromeos.h"
29 #include "chrome/browser/ui/ash/session_state_delegate_chromeos.h" 28 #include "chrome/browser/ui/ash/session_state_delegate_chromeos.h"
30 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" 29 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h"
31 #include "chrome/browser/ui/browser.h" 30 #include "chrome/browser/ui/browser.h"
32 #include "chrome/browser/ui/browser_finder.h" 31 #include "chrome/browser/ui/browser_finder.h"
33 #include "chrome/browser/ui/browser_window.h" 32 #include "chrome/browser/ui/browser_window.h"
34 #include "chrome/grit/generated_resources.h" 33 #include "chrome/grit/generated_resources.h"
35 #include "chromeos/chromeos_switches.h" 34 #include "chromeos/chromeos_switches.h"
36 #include "content/public/browser/notification_service.h" 35 #include "content/public/browser/notification_service.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 virtual void TriggerAccessibilityAlert( 175 virtual void TriggerAccessibilityAlert(
177 ui::AccessibilityAlert alert) override { 176 ui::AccessibilityAlert alert) override {
178 Profile* profile = ProfileManager::GetActiveUserProfile(); 177 Profile* profile = ProfileManager::GetActiveUserProfile();
179 if (profile) { 178 if (profile) {
180 switch (alert) { 179 switch (alert) {
181 case ui::A11Y_ALERT_WINDOW_NEEDED: { 180 case ui::A11Y_ALERT_WINDOW_NEEDED: {
182 AccessibilityAlertInfo event( 181 AccessibilityAlertInfo event(
183 profile, l10n_util::GetStringUTF8(IDS_A11Y_ALERT_WINDOW_NEEDED)); 182 profile, l10n_util::GetStringUTF8(IDS_A11Y_ALERT_WINDOW_NEEDED));
184 SendControlAccessibilityNotification( 183 SendControlAccessibilityNotification(
185 ui::AX_EVENT_ALERT, &event); 184 ui::AX_EVENT_ALERT, &event);
186 AutomationManagerAsh::GetInstance()->HandleAlert(
187 profile, l10n_util::GetStringUTF8(IDS_A11Y_ALERT_WINDOW_NEEDED));
188 break; 185 break;
189 } 186 }
190 case ui::A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED: { 187 case ui::A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED: {
191 AccessibilityAlertInfo event( 188 AccessibilityAlertInfo event(
192 profile, l10n_util::GetStringUTF8( 189 profile, l10n_util::GetStringUTF8(
193 IDS_A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED)); 190 IDS_A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED));
194 SendControlAccessibilityNotification( 191 SendControlAccessibilityNotification(
195 ui::AX_EVENT_ALERT, &event); 192 ui::AX_EVENT_ALERT, &event);
196 AutomationManagerAsh::GetInstance()->HandleAlert(
197 profile, l10n_util::GetStringUTF8(
198 IDS_A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED));
199 break; 193 break;
200 } 194 }
201 case ui::A11Y_ALERT_NONE: 195 case ui::A11Y_ALERT_NONE:
202 break; 196 break;
203 } 197 }
204 } 198 }
205 } 199 }
206 200
207 virtual ui::AccessibilityAlert GetLastAccessibilityAlert() override { 201 virtual ui::AccessibilityAlert GetLastAccessibilityAlert() override {
208 return ui::A11Y_ALERT_NONE; 202 return ui::A11Y_ALERT_NONE;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 } 292 }
299 293
300 void ChromeShellDelegate::PlatformInit() { 294 void ChromeShellDelegate::PlatformInit() {
301 registrar_.Add(this, 295 registrar_.Add(this,
302 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, 296 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED,
303 content::NotificationService::AllSources()); 297 content::NotificationService::AllSources());
304 registrar_.Add(this, 298 registrar_.Add(this,
305 chrome::NOTIFICATION_SESSION_STARTED, 299 chrome::NOTIFICATION_SESSION_STARTED,
306 content::NotificationService::AllSources()); 300 content::NotificationService::AllSources());
307 } 301 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/accessibility/ax_root_obj_wrapper.cc ('k') | chrome/common/extensions/api/_manifest_features.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698