Wed, 31 Dec 2014 06:09:35 +0100
Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.
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/. */
7 #ifndef mozilla_dom_SpeakerManagerServicechild_h__
8 #define mozilla_dom_SpeakerManagerServicechild_h__
10 #include "nsAutoPtr.h"
11 #include "nsISupports.h"
12 #include "SpeakerManagerService.h"
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 };
33 } // namespace dom
34 } // namespace mozilla
36 #endif