| Index: ash/ash_touch_exploration_manager_chromeos.cc
|
| diff --git a/ash/ash_touch_exploration_manager_chromeos.cc b/ash/ash_touch_exploration_manager_chromeos.cc
|
| index f57aedcae867eb7535ebb05717e1f395c2d6c428..e10d2e7e79585aead78d06b4f7d33d0455387a6d 100644
|
| --- a/ash/ash_touch_exploration_manager_chromeos.cc
|
| +++ b/ash/ash_touch_exploration_manager_chromeos.cc
|
| @@ -37,14 +37,6 @@ void AshTouchExplorationManager::OnAccessibilityModeChanged(
|
| UpdateTouchExplorationState();
|
| }
|
|
|
| -void AshTouchExplorationManager::PlayVolumeAdjustSound() {
|
| - if (!VolumeAdjustSoundEnabled())
|
| - return;
|
| - if ((!audio_handler_->IsOutputMuted()) ||
|
| - !(audio_handler_->GetOutputVolumePercent() == 100))
|
| - PlaySystemSoundIfSpokenFeedback(chromeos::SOUND_VOLUME_ADJUST);
|
| -}
|
| -
|
| void AshTouchExplorationManager::SetOutputLevel(int volume) {
|
| if (volume > 0) {
|
| if (audio_handler_->IsOutputMuted()) {
|
| @@ -65,6 +57,29 @@ void AshTouchExplorationManager::SilenceSpokenFeedback() {
|
| delegate->SilenceSpokenFeedback();
|
| }
|
|
|
| +void AshTouchExplorationManager::PlayVolumeAdjustEarcon() {
|
| + if (!VolumeAdjustSoundEnabled())
|
| + return;
|
| + if (!audio_handler_->IsOutputMuted() &&
|
| + audio_handler_->GetOutputVolumePercent() != 100)
|
| + PlaySystemSoundIfSpokenFeedback(chromeos::SOUND_VOLUME_ADJUST);
|
| +}
|
| +
|
| +void AshTouchExplorationManager::PlayPassthroughEarcon() {
|
| + Shell::GetInstance()->accessibility_delegate()->PlayEarcon(
|
| + chromeos::SOUND_PASSTHROUGH);
|
| +}
|
| +
|
| +void AshTouchExplorationManager::PlayExitScreenEarcon() {
|
| + Shell::GetInstance()->accessibility_delegate()->PlayEarcon(
|
| + chromeos::SOUND_EXIT_SCREEN);
|
| +}
|
| +
|
| +void AshTouchExplorationManager::PlayEnterScreenEarcon() {
|
| + Shell::GetInstance()->accessibility_delegate()->PlayEarcon(
|
| + chromeos::SOUND_ENTER_SCREEN);
|
| +}
|
| +
|
| void AshTouchExplorationManager::UpdateTouchExplorationState() {
|
| AccessibilityDelegate* delegate =
|
| Shell::GetInstance()->accessibility_delegate();
|
|
|