| 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 <limits> | 9 #include <limits> |
| 10 | 10 |
| (...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 333 if (alert == ash::A11Y_ALERT_SCREEN_OFF) | 333 if (alert == ash::A11Y_ALERT_SCREEN_OFF) |
| 334 SetAutomationManagerEnabled(profile, false); | 334 SetAutomationManagerEnabled(profile, false); |
| 335 } | 335 } |
| 336 } | 336 } |
| 337 } | 337 } |
| 338 | 338 |
| 339 ash::AccessibilityAlert GetLastAccessibilityAlert() override { | 339 ash::AccessibilityAlert GetLastAccessibilityAlert() override { |
| 340 return ash::A11Y_ALERT_NONE; | 340 return ash::A11Y_ALERT_NONE; |
| 341 } | 341 } |
| 342 | 342 |
| 343 void OnTwoFingerTouchStart() override { |
| 344 DCHECK(AccessibilityManager::Get()); |
| 345 AccessibilityManager::Get()->OnTwoFingerTouchStart(); |
| 346 } |
| 347 |
| 348 void OnTwoFingerTouchStop() override { |
| 349 DCHECK(AccessibilityManager::Get()); |
| 350 AccessibilityManager::Get()->OnTwoFingerTouchStop(); |
| 351 } |
| 352 |
| 343 bool ShouldToggleSpokenFeedbackViaTouch() override { | 353 bool ShouldToggleSpokenFeedbackViaTouch() override { |
| 344 DCHECK(AccessibilityManager::Get()); | 354 DCHECK(AccessibilityManager::Get()); |
| 345 return AccessibilityManager::Get()->ShouldToggleSpokenFeedbackViaTouch(); | 355 return AccessibilityManager::Get()->ShouldToggleSpokenFeedbackViaTouch(); |
| 346 } | 356 } |
| 347 | 357 |
| 348 void PlaySpokenFeedbackToggleCountdown(int tick_count) override { | 358 void PlaySpokenFeedbackToggleCountdown(int tick_count) override { |
| 349 DCHECK(AccessibilityManager::Get()); | 359 DCHECK(AccessibilityManager::Get()); |
| 350 AccessibilityManager::Get()->PlaySpokenFeedbackToggleCountdown(tick_count); | 360 AccessibilityManager::Get()->PlaySpokenFeedbackToggleCountdown(tick_count); |
| 351 } | 361 } |
| 352 | 362 |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 623 NOTREACHED() << "Unexpected notification " << type; | 633 NOTREACHED() << "Unexpected notification " << type; |
| 624 } | 634 } |
| 625 } | 635 } |
| 626 | 636 |
| 627 void ChromeShellDelegate::PlatformInit() { | 637 void ChromeShellDelegate::PlatformInit() { |
| 628 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, | 638 registrar_.Add(this, chrome::NOTIFICATION_LOGIN_USER_PROFILE_PREPARED, |
| 629 content::NotificationService::AllSources()); | 639 content::NotificationService::AllSources()); |
| 630 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED, | 640 registrar_.Add(this, chrome::NOTIFICATION_SESSION_STARTED, |
| 631 content::NotificationService::AllSources()); | 641 content::NotificationService::AllSources()); |
| 632 } | 642 } |
| OLD | NEW |