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

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

Issue 743273002: 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: Rebase 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"
26 #include "chrome/browser/ui/ash/chrome_new_window_delegate_chromeos.h" 27 #include "chrome/browser/ui/ash/chrome_new_window_delegate_chromeos.h"
27 #include "chrome/browser/ui/ash/media_delegate_chromeos.h" 28 #include "chrome/browser/ui/ash/media_delegate_chromeos.h"
28 #include "chrome/browser/ui/ash/session_state_delegate_chromeos.h" 29 #include "chrome/browser/ui/ash/session_state_delegate_chromeos.h"
29 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h" 30 #include "chrome/browser/ui/ash/system_tray_delegate_chromeos.h"
30 #include "chrome/browser/ui/browser.h" 31 #include "chrome/browser/ui/browser.h"
31 #include "chrome/browser/ui/browser_finder.h" 32 #include "chrome/browser/ui/browser_finder.h"
32 #include "chrome/browser/ui/browser_window.h" 33 #include "chrome/browser/ui/browser_window.h"
33 #include "chrome/grit/generated_resources.h" 34 #include "chrome/grit/generated_resources.h"
34 #include "chromeos/chromeos_switches.h" 35 #include "chromeos/chromeos_switches.h"
35 #include "content/public/browser/notification_service.h" 36 #include "content/public/browser/notification_service.h"
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 virtual void TriggerAccessibilityAlert( 176 virtual void TriggerAccessibilityAlert(
176 ui::AccessibilityAlert alert) override { 177 ui::AccessibilityAlert alert) override {
177 Profile* profile = ProfileManager::GetActiveUserProfile(); 178 Profile* profile = ProfileManager::GetActiveUserProfile();
178 if (profile) { 179 if (profile) {
179 switch (alert) { 180 switch (alert) {
180 case ui::A11Y_ALERT_WINDOW_NEEDED: { 181 case ui::A11Y_ALERT_WINDOW_NEEDED: {
181 AccessibilityAlertInfo event( 182 AccessibilityAlertInfo event(
182 profile, l10n_util::GetStringUTF8(IDS_A11Y_ALERT_WINDOW_NEEDED)); 183 profile, l10n_util::GetStringUTF8(IDS_A11Y_ALERT_WINDOW_NEEDED));
183 SendControlAccessibilityNotification( 184 SendControlAccessibilityNotification(
184 ui::AX_EVENT_ALERT, &event); 185 ui::AX_EVENT_ALERT, &event);
186 AutomationManagerAsh::GetInstance()->HandleAlert(
187 profile, l10n_util::GetStringUTF8(IDS_A11Y_ALERT_WINDOW_NEEDED));
185 break; 188 break;
186 } 189 }
187 case ui::A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED: { 190 case ui::A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED: {
188 AccessibilityAlertInfo event( 191 AccessibilityAlertInfo event(
189 profile, l10n_util::GetStringUTF8( 192 profile, l10n_util::GetStringUTF8(
190 IDS_A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED)); 193 IDS_A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED));
191 SendControlAccessibilityNotification( 194 SendControlAccessibilityNotification(
192 ui::AX_EVENT_ALERT, &event); 195 ui::AX_EVENT_ALERT, &event);
196 AutomationManagerAsh::GetInstance()->HandleAlert(
197 profile, l10n_util::GetStringUTF8(
198 IDS_A11Y_ALERT_WINDOW_OVERVIEW_MODE_ENTERED));
193 break; 199 break;
194 } 200 }
195 case ui::A11Y_ALERT_NONE: 201 case ui::A11Y_ALERT_NONE:
196 break; 202 break;
197 } 203 }
198 } 204 }
199 } 205 }
200 206
201 virtual ui::AccessibilityAlert GetLastAccessibilityAlert() override { 207 virtual ui::AccessibilityAlert GetLastAccessibilityAlert() override {
202 return ui::A11Y_ALERT_NONE; 208 return ui::A11Y_ALERT_NONE;
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 } 298 }
293 299
294 void ChromeShellDelegate::PlatformInit() { 300 void ChromeShellDelegate::PlatformInit() {
295 registrar_.Add(this, 301 registrar_.Add(this,
296 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, 302 chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED,
297 content::NotificationService::AllSources()); 303 content::NotificationService::AllSources());
298 registrar_.Add(this, 304 registrar_.Add(this,
299 chrome::NOTIFICATION_SESSION_STARTED, 305 chrome::NOTIFICATION_SESSION_STARTED,
300 content::NotificationService::AllSources()); 306 content::NotificationService::AllSources());
301 } 307 }
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