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/ash/chrome_shell_delegate.h" | 5 #include "chrome/browser/ui/ash/chrome_shell_delegate.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include "ash/accelerators/magnifier_key_scroller.h" | 9 #include "ash/accelerators/magnifier_key_scroller.h" |
10 #include "ash/accelerators/spoken_feedback_toggler.h" | 10 #include "ash/accelerators/spoken_feedback_toggler.h" |
(...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 | 294 |
295 void PlayEarcon(int sound_key) override { | 295 void PlayEarcon(int sound_key) override { |
296 DCHECK(chromeos::AccessibilityManager::Get()); | 296 DCHECK(chromeos::AccessibilityManager::Get()); |
297 return chromeos::AccessibilityManager::Get()->PlayEarcon(sound_key); | 297 return chromeos::AccessibilityManager::Get()->PlayEarcon(sound_key); |
298 } | 298 } |
299 | 299 |
300 base::TimeDelta PlayShutdownSound() const override { | 300 base::TimeDelta PlayShutdownSound() const override { |
301 return chromeos::AccessibilityManager::Get()->PlayShutdownSound(); | 301 return chromeos::AccessibilityManager::Get()->PlayShutdownSound(); |
302 } | 302 } |
303 | 303 |
| 304 void HandleAccessibilityGesture(ui::AXGesture gesture) override { |
| 305 chromeos::AccessibilityManager::Get()->HandleAccessibilityGesture(gesture); |
| 306 } |
| 307 |
304 private: | 308 private: |
305 DISALLOW_COPY_AND_ASSIGN(AccessibilityDelegateImpl); | 309 DISALLOW_COPY_AND_ASSIGN(AccessibilityDelegateImpl); |
306 }; | 310 }; |
307 | 311 |
308 } // namespace | 312 } // namespace |
309 | 313 |
310 ChromeShellDelegate::ChromeShellDelegate() | 314 ChromeShellDelegate::ChromeShellDelegate() |
311 : shelf_delegate_(NULL) { | 315 : shelf_delegate_(NULL) { |
312 PlatformInit(); | 316 PlatformInit(); |
313 } | 317 } |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
555 NOTREACHED() << "Unexpected notification " << type; | 559 NOTREACHED() << "Unexpected notification " << type; |
556 } | 560 } |
557 } | 561 } |
558 | 562 |
559 void ChromeShellDelegate::PlatformInit() { | 563 void ChromeShellDelegate::PlatformInit() { |
560 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, | 564 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, |
561 content::NotificationService::AllSources()); | 565 content::NotificationService::AllSources()); |
562 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED, | 566 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED, |
563 content::NotificationService::AllSources()); | 567 content::NotificationService::AllSources()); |
564 } | 568 } |
OLD | NEW |