/work/obj-fuzz/dist/include/mozilla/dom/MIDIInputMap.h
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim:set ts=2 sw=2 sts=2 et cindent: */ |
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 http://mozilla.org/MPL/2.0/. */ |
6 | | |
7 | | #ifndef mozilla_dom_MIDIInputMap_h |
8 | | #define mozilla_dom_MIDIInputMap_h |
9 | | |
10 | | #include "nsWrapperCache.h" |
11 | | |
12 | | class nsPIDOMWindowInner; |
13 | | |
14 | | namespace mozilla { |
15 | | namespace dom { |
16 | | |
17 | | /** |
18 | | * Maplike DOM object that holds a list of all MIDI input ports available for |
19 | | * access. Almost all functions are implemented automatically by WebIDL. |
20 | | */ |
21 | | class MIDIInputMap final : public nsISupports, |
22 | | public nsWrapperCache |
23 | | { |
24 | | public: |
25 | | NS_DECL_CYCLE_COLLECTING_ISUPPORTS |
26 | | NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(MIDIInputMap) |
27 | | nsPIDOMWindowInner* |
28 | | GetParentObject() const |
29 | 0 | { |
30 | 0 | return mParent; |
31 | 0 | } |
32 | | |
33 | | explicit MIDIInputMap(nsPIDOMWindowInner* aParent); |
34 | | JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override; |
35 | | private: |
36 | 0 | ~MIDIInputMap() = default; |
37 | | nsCOMPtr<nsPIDOMWindowInner> mParent; |
38 | | }; |
39 | | |
40 | | } // namespace dom |
41 | | } // namespace mozilla |
42 | | |
43 | | #endif // mozilla_dom_MIDIInputMap_h |