| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ash/ash_touch_exploration_manager_chromeos.h" | 5 #include "ash/ash_touch_exploration_manager_chromeos.h" |
| 6 | 6 |
| 7 #include "ash/accessibility_delegate.h" | 7 #include "ash/accessibility_delegate.h" |
| 8 #include "ash/keyboard/keyboard_observer_register.h" | 8 #include "ash/keyboard/keyboard_observer_register.h" |
| 9 #include "ash/root_window_controller.h" | 9 #include "ash/root_window_controller.h" |
| 10 #include "ash/shared/app_types.h" | 10 #include "ash/shared/app_types.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 UpdateTouchExplorationState(); | 110 UpdateTouchExplorationState(); |
| 111 } | 111 } |
| 112 | 112 |
| 113 void AshTouchExplorationManager::OnTwoFingerTouchStart() { | 113 void AshTouchExplorationManager::OnTwoFingerTouchStart() { |
| 114 AccessibilityDelegate* delegate = Shell::Get()->accessibility_delegate(); | 114 AccessibilityDelegate* delegate = Shell::Get()->accessibility_delegate(); |
| 115 delegate->OnTwoFingerTouchStart(); | 115 delegate->OnTwoFingerTouchStart(); |
| 116 } | 116 } |
| 117 | 117 |
| 118 void AshTouchExplorationManager::OnTwoFingerTouchStop() { | 118 void AshTouchExplorationManager::OnTwoFingerTouchStop() { |
| 119 AccessibilityDelegate* delegate = Shell::Get()->accessibility_delegate(); | 119 AccessibilityDelegate* delegate = Shell::Get()->accessibility_delegate(); |
| 120 delegate->OnTwoFingerTouchStart(); | 120 delegate->OnTwoFingerTouchStop(); |
| 121 } | 121 } |
| 122 | 122 |
| 123 void AshTouchExplorationManager::PlaySpokenFeedbackToggleCountdown( | 123 void AshTouchExplorationManager::PlaySpokenFeedbackToggleCountdown( |
| 124 int tick_count) { | 124 int tick_count) { |
| 125 AccessibilityDelegate* delegate = Shell::Get()->accessibility_delegate(); | 125 AccessibilityDelegate* delegate = Shell::Get()->accessibility_delegate(); |
| 126 if (delegate->ShouldToggleSpokenFeedbackViaTouch()) | 126 if (delegate->ShouldToggleSpokenFeedbackViaTouch()) |
| 127 delegate->PlaySpokenFeedbackToggleCountdown(tick_count); | 127 delegate->PlaySpokenFeedbackToggleCountdown(tick_count); |
| 128 } | 128 } |
| 129 | 129 |
| 130 void AshTouchExplorationManager::ToggleSpokenFeedback() { | 130 void AshTouchExplorationManager::ToggleSpokenFeedback() { |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 213 touch_exploration_controller_.reset(); | 213 touch_exploration_controller_.reset(); |
| 214 } | 214 } |
| 215 } | 215 } |
| 216 | 216 |
| 217 bool AshTouchExplorationManager::VolumeAdjustSoundEnabled() { | 217 bool AshTouchExplorationManager::VolumeAdjustSoundEnabled() { |
| 218 return !base::CommandLine::ForCurrentProcess()->HasSwitch( | 218 return !base::CommandLine::ForCurrentProcess()->HasSwitch( |
| 219 chromeos::switches::kDisableVolumeAdjustSound); | 219 chromeos::switches::kDisableVolumeAdjustSound); |
| 220 } | 220 } |
| 221 | 221 |
| 222 } // namespace ash | 222 } // namespace ash |
| OLD | NEW |