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

Unified Diff: chrome/browser/chromeos/accessibility/accessibility_manager.h

Issue 2142463002: ash: Remove media dependency from ash. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: oops Created 4 years, 5 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/wm/lock_state_controller.cc ('k') | chrome/browser/chromeos/accessibility/accessibility_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/accessibility/accessibility_manager.h
diff --git a/chrome/browser/chromeos/accessibility/accessibility_manager.h b/chrome/browser/chromeos/accessibility/accessibility_manager.h
index 10db2c84448344b698ac0611aa20727a065b9198..e35e5d37ae7e51986a83fb5417456e6afd9d2d32 100644
--- a/chrome/browser/chromeos/accessibility/accessibility_manager.h
+++ b/chrome/browser/chromeos/accessibility/accessibility_manager.h
@@ -76,6 +76,13 @@ typedef AccessibilityStatusCallbackList::Subscription
class ChromeVoxPanelWidgetObserver;
+enum class PlaySoundOption {
+ ALWAYS = 0, // The sound is always played.
+ SPOKEN_FEEDBACK_ENABLED, // The sound is played only if spoken feedback is
+ // enabled, or --ash-enable-system-sounds flag is
+ // used.
+};
+
// AccessibilityManager changes the statuses of accessibility features
// watching profile notifications and pref-changes.
// TODO(yoshiki): merge MagnificationManager with AccessibilityManager.
@@ -244,7 +251,7 @@ class AccessibilityManager
// Plays an earcon. Earcons are brief and distinctive sounds that indicate
// when their mapped event has occurred. The sound key enums can be found in
// chromeos/audio/chromeos_sounds.h.
- void PlayEarcon(int sound_key);
+ bool PlayEarcon(int sound_key, PlaySoundOption option);
// Forward an accessibility gesture from the touch exploration controller
// to ChromeVox.
« no previous file with comments | « ash/wm/lock_state_controller.cc ('k') | chrome/browser/chromeos/accessibility/accessibility_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698