Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
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_fmradioparent_h__
8 #define mozilla_dom_fmradioparent_h__
10 #include "FMRadioCommon.h"
11 #include "mozilla/dom/PFMRadioParent.h"
12 #include "mozilla/HalTypes.h"
14 BEGIN_FMRADIO_NAMESPACE
16 class PFMRadioRequestParent;
18 class FMRadioParent MOZ_FINAL : public PFMRadioParent
19 , public FMRadioEventObserver
20 {
21 public:
22 FMRadioParent();
23 ~FMRadioParent();
25 virtual bool
26 RecvGetStatusInfo(StatusInfo* aStatusInfo) MOZ_OVERRIDE;
28 virtual PFMRadioRequestParent*
29 AllocPFMRadioRequestParent(const FMRadioRequestArgs& aArgs) MOZ_OVERRIDE;
31 virtual bool
32 DeallocPFMRadioRequestParent(PFMRadioRequestParent* aActor) MOZ_OVERRIDE;
34 /* FMRadioEventObserver */
35 virtual void Notify(const FMRadioEventType& aType) MOZ_OVERRIDE;
37 virtual bool
38 RecvEnableAudio(const bool& aAudioEnabled) MOZ_OVERRIDE;
39 };
41 END_FMRADIO_NAMESPACE
43 #endif // mozilla_dom_fmradioparent_h__