Coverage Report

Created: 2018-09-25 14:53

/work/obj-fuzz/dist/include/mozilla/dom/AudioTrack.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 et tw=78: */
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_AudioTrack_h
8
#define mozilla_dom_AudioTrack_h
9
10
#include "MediaTrack.h"
11
12
namespace mozilla {
13
namespace dom {
14
15
class AudioTrack : public MediaTrack
16
{
17
public:
18
  AudioTrack(nsIGlobalObject* aOwnerGlobal,
19
             const nsAString& aId,
20
             const nsAString& aKind,
21
             const nsAString& aLabel,
22
             const nsAString& aLanguage,
23
             bool aEnabled);
24
25
  JSObject* WrapObject(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
26
27
  AudioTrack* AsAudioTrack() override
28
0
  {
29
0
    return this;
30
0
  }
31
32
  void SetEnabledInternal(bool aEnabled, int aFlags) override;
33
34
  // WebIDL
35
  bool Enabled() const
36
0
  {
37
0
    return mEnabled;
38
0
  }
39
40
  void SetEnabled(bool aEnabled);
41
42
private:
43
  bool mEnabled;
44
};
45
46
} // namespace dom
47
} // namespace mozilla
48
49
#endif // mozilla_dom_AudioTrack_h