Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(161)

Unified Diff: ash/ash_touch_exploration_manager_chromeos.cc

Issue 410783002: Corner Passthrough for Accessibility (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@side-gestures
Patch Set: Removed extra comment Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/ash_touch_exploration_manager_chromeos.h ('k') | ash/default_accessibility_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « ash/ash_touch_exploration_manager_chromeos.h ('k') | ash/default_accessibility_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698