OLD | NEW |
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/accessibility_delegate.h" | 7 #include "ash/accessibility_delegate.h" |
8 #include "ash/magnifier/magnifier_constants.h" | 8 #include "ash/magnifier/magnifier_constants.h" |
9 #include "ash/media_delegate.h" | 9 #include "ash/media_delegate.h" |
10 #include "ash/system/tray/default_system_tray_delegate.h" | 10 #include "ash/system/tray/default_system_tray_delegate.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 "chrome/browser/accessibility/accessibility_events.h" |
13 #include "chrome/browser/chrome_notification_types.h" | 14 #include "chrome/browser/chrome_notification_types.h" |
14 #include "chrome/browser/prefs/session_startup_pref.h" | 15 #include "chrome/browser/prefs/session_startup_pref.h" |
15 #include "chrome/browser/profiles/profile_manager.h" | 16 #include "chrome/browser/profiles/profile_manager.h" |
16 #include "chrome/browser/ui/ash/caps_lock_delegate_views.h" | 17 #include "chrome/browser/ui/ash/caps_lock_delegate_views.h" |
17 #include "chrome/browser/ui/ash/chrome_new_window_delegate.h" | 18 #include "chrome/browser/ui/ash/chrome_new_window_delegate.h" |
18 #include "chrome/browser/ui/ash/session_state_delegate_views.h" | 19 #include "chrome/browser/ui/ash/session_state_delegate_views.h" |
19 #include "chrome/browser/ui/browser.h" | 20 #include "chrome/browser/ui/browser.h" |
20 #include "chrome/browser/ui/browser_finder.h" | 21 #include "chrome/browser/ui/browser_finder.h" |
21 #include "chrome/browser/ui/browser_list.h" | 22 #include "chrome/browser/ui/browser_list.h" |
22 #include "chrome/browser/ui/browser_tabstrip.h" | 23 #include "chrome/browser/ui/browser_tabstrip.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 return std::numeric_limits<double>::min(); | 116 return std::numeric_limits<double>::min(); |
116 } | 117 } |
117 | 118 |
118 virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE { | 119 virtual bool ShouldAlwaysShowAccessibilityMenu() const OVERRIDE { |
119 return false; | 120 return false; |
120 } | 121 } |
121 | 122 |
122 virtual void SilenceSpokenFeedback() const OVERRIDE { | 123 virtual void SilenceSpokenFeedback() const OVERRIDE { |
123 } | 124 } |
124 | 125 |
| 126 virtual void TriggerAccessibilityAlert( |
| 127 ash::AccessibilityAlert alert) OVERRIDE { |
| 128 } |
| 129 |
| 130 virtual ash::AccessibilityAlert GetLastAccessibilityAlert() OVERRIDE { |
| 131 return ash::A11Y_ALERT_NONE; |
| 132 } |
| 133 |
125 private: | 134 private: |
126 DISALLOW_COPY_AND_ASSIGN(EmptyAccessibilityDelegate); | 135 DISALLOW_COPY_AND_ASSIGN(EmptyAccessibilityDelegate); |
127 }; | 136 }; |
128 | 137 |
129 } // namespace | 138 } // namespace |
130 | 139 |
131 bool ChromeShellDelegate::IsFirstRunAfterBoot() const { | 140 bool ChromeShellDelegate::IsFirstRunAfterBoot() const { |
132 return false; | 141 return false; |
133 } | 142 } |
134 | 143 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 void ChromeShellDelegate::PlatformInit() { | 239 void ChromeShellDelegate::PlatformInit() { |
231 #if defined(OS_WIN) | 240 #if defined(OS_WIN) |
232 registrar_.Add(this, | 241 registrar_.Add(this, |
233 chrome::NOTIFICATION_ASH_SESSION_STARTED, | 242 chrome::NOTIFICATION_ASH_SESSION_STARTED, |
234 content::NotificationService::AllSources()); | 243 content::NotificationService::AllSources()); |
235 registrar_.Add(this, | 244 registrar_.Add(this, |
236 chrome::NOTIFICATION_ASH_SESSION_ENDED, | 245 chrome::NOTIFICATION_ASH_SESSION_ENDED, |
237 content::NotificationService::AllSources()); | 246 content::NotificationService::AllSources()); |
238 #endif | 247 #endif |
239 } | 248 } |
OLD | NEW |