/src/mozilla-central/dom/media/webaudio/AudioParamMap.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=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 |
5 | | * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ |
6 | | |
7 | | #ifndef AudioParamMap_h_ |
8 | | #define AudioParamMap_h_ |
9 | | |
10 | | #include "nsWrapperCache.h" |
11 | | #include "nsCOMPtr.h" |
12 | | |
13 | | class nsPIDOMWindowInner; |
14 | | |
15 | | namespace mozilla { |
16 | | namespace dom { |
17 | | |
18 | | class AudioParamMap final : public nsWrapperCache |
19 | | { |
20 | | public: |
21 | | NS_INLINE_DECL_CYCLE_COLLECTING_NATIVE_REFCOUNTING(AudioParamMap) |
22 | | NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_NATIVE_CLASS(AudioParamMap) |
23 | | |
24 | | explicit AudioParamMap(nsPIDOMWindowInner* aParent); |
25 | | |
26 | | nsPIDOMWindowInner* GetParentObject() const { return mParent; } |
27 | | |
28 | | JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override; |
29 | | |
30 | | private: |
31 | 0 | ~AudioParamMap() = default; |
32 | | nsCOMPtr<nsPIDOMWindowInner> mParent; |
33 | | }; |
34 | | |
35 | | } // namespace dom |
36 | | } // namespace mozilla |
37 | | |
38 | | #endif // AudioParamMap_h_ |