Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/MIDIOutputMap.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_MIDIOutputMap_h
8
#define mozilla_dom_MIDIOutputMap_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 output ports available for
19
 * access. Almost all functions are implemented automatically by WebIDL.
20
 *
21
 */
22
class MIDIOutputMap final : public nsISupports,
23
                            public nsWrapperCache
24
{
25
public:
26
  NS_DECL_CYCLE_COLLECTING_ISUPPORTS
27
  NS_DECL_CYCLE_COLLECTION_SCRIPT_HOLDER_CLASS(MIDIOutputMap)
28
29
  explicit MIDIOutputMap(nsPIDOMWindowInner* aParent);
30
31
  nsPIDOMWindowInner*
32
  GetParentObject() const
33
0
  {
34
0
    return mParent;
35
0
  }
36
37
  JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
38
private:
39
0
  ~MIDIOutputMap() = default;
40
  nsCOMPtr<nsPIDOMWindowInner> mParent;
41
};
42
43
} // namespace dom
44
} // namespace mozilla
45
46
#endif // mozilla_dom_MIDIOutputMap_h