michael@0: /* -*- Mode: c++; c-basic-offset: 2; indent-tabs-mode: nil; tab-width: 40 -*- */ michael@0: /* vim: set ts=2 et sw=2 tw=80: */ michael@0: /* This Source Code Form is subject to the terms of the Mozilla Public michael@0: * License, v. 2.0. If a copy of the MPL was not distributed with this file, michael@0: * You can obtain one at http://mozilla.org/MPL/2.0/. */ michael@0: michael@0: #ifndef mozilla_dom_SpeakerManagerServicechild_h__ michael@0: #define mozilla_dom_SpeakerManagerServicechild_h__ michael@0: michael@0: #include "nsAutoPtr.h" michael@0: #include "nsISupports.h" michael@0: #include "SpeakerManagerService.h" michael@0: michael@0: namespace mozilla { michael@0: namespace dom { michael@0: /* This class is used to do the IPC to enable/disable speaker status michael@0: Also handle the application speaker competition problem michael@0: */ michael@0: class SpeakerManagerServiceChild : public SpeakerManagerService michael@0: { michael@0: public: michael@0: static SpeakerManagerService* GetSpeakerManagerService(); michael@0: static void Shutdown(); michael@0: virtual void ForceSpeaker(bool aEnable, bool aVisible) MOZ_OVERRIDE; michael@0: virtual bool GetSpeakerStatus() MOZ_OVERRIDE; michael@0: virtual void SetAudioChannelActive(bool aIsActive) MOZ_OVERRIDE; michael@0: virtual void Notify() MOZ_OVERRIDE; michael@0: protected: michael@0: SpeakerManagerServiceChild(); michael@0: virtual ~SpeakerManagerServiceChild(); michael@0: }; michael@0: michael@0: } // namespace dom michael@0: } // namespace mozilla michael@0: michael@0: #endif michael@0: