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

Side by Side Diff: ash/audio/sounds.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 unified diff | Download patch
« no previous file with comments | « ash/ash_touch_exploration_manager_chromeos.cc ('k') | ash/audio/sounds.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef ASH_AUDIO_SOUNDS_H_
6 #define ASH_AUDIO_SOUNDS_H_
7
8 #include "ash/ash_export.h"
9 #include "media/audio/sounds/sounds_manager.h"
10
11 namespace ash {
12
13 // A wrapper around media::SoundsManager::Play() method, which plays sound
14 // identified by |key|. Returns true when sound is successfully played.
15 ASH_EXPORT bool PlaySystemSoundAlways(media::SoundsManager::SoundKey key);
16
17 // A wrapper around media::SoundsManager::Play() method, which plays
18 // sound identified by |key| iff at least one of the following
19 // conditions is true:
20 // * ash::switches::kAshEnableSystemSounds flag is set
21 // * spoken feedback is enabled
22 // Returns true when sound is successfully played.
23 ASH_EXPORT bool PlaySystemSoundIfSpokenFeedback(
24 media::SoundsManager::SoundKey key);
25
26 } // namespace ash
27
28 #endif // ASH_AUDIO_SOUNDS_H_
OLDNEW
« no previous file with comments | « ash/ash_touch_exploration_manager_chromeos.cc ('k') | ash/audio/sounds.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698