|
1 /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ |
|
2 /* vim: set ts=2 et sw=2 tw=80: */ |
|
3 /* This Source Code Form is subject to the terms of the Mozilla Public |
|
4 * License, v. 2.0. If a copy of the MPL was not distributed with this file, |
|
5 * You can obtain one at http://mozilla.org/MPL/2.0/. */ |
|
6 |
|
7 #ifndef mozilla_dom_SpeakerManagerServicechild_h__ |
|
8 #define mozilla_dom_SpeakerManagerServicechild_h__ |
|
9 |
|
10 #include "nsAutoPtr.h" |
|
11 #include "nsISupports.h" |
|
12 #include "SpeakerManagerService.h" |
|
13 |
|
14 namespace mozilla { |
|
15 namespace dom { |
|
16 /* This class is used to do the IPC to enable/disable speaker status |
|
17 Also handle the application speaker competition problem |
|
18 */ |
|
19 class SpeakerManagerServiceChild : public SpeakerManagerService |
|
20 { |
|
21 public: |
|
22 static SpeakerManagerService* GetSpeakerManagerService(); |
|
23 static void Shutdown(); |
|
24 virtual void ForceSpeaker(bool aEnable, bool aVisible) MOZ_OVERRIDE; |
|
25 virtual bool GetSpeakerStatus() MOZ_OVERRIDE; |
|
26 virtual void SetAudioChannelActive(bool aIsActive) MOZ_OVERRIDE; |
|
27 virtual void Notify() MOZ_OVERRIDE; |
|
28 protected: |
|
29 SpeakerManagerServiceChild(); |
|
30 virtual ~SpeakerManagerServiceChild(); |
|
31 }; |
|
32 |
|
33 } // namespace dom |
|
34 } // namespace mozilla |
|
35 |
|
36 #endif |
|
37 |