Coverage Report

Created: 2018-09-25 14:53

/src/mozilla-central/widget/headless/HeadlessSound.cpp
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 http://mozilla.org/MPL/2.0/. */
6
7
#include "HeadlessSound.h"
8
9
namespace mozilla {
10
namespace widget {
11
12
NS_IMPL_ISUPPORTS(HeadlessSound, nsISound, nsIStreamLoaderObserver)
13
14
HeadlessSound::HeadlessSound()
15
0
{
16
0
}
17
18
HeadlessSound::~HeadlessSound()
19
0
{
20
0
}
21
22
NS_IMETHODIMP
23
HeadlessSound::Init()
24
0
{
25
0
  return NS_OK;
26
0
}
27
28
NS_IMETHODIMP HeadlessSound::OnStreamComplete(nsIStreamLoader *aLoader,
29
                                              nsISupports *context,
30
                                              nsresult aStatus,
31
                                              uint32_t dataLen,
32
                                              const uint8_t *data)
33
0
{
34
0
  return NS_OK;
35
0
}
36
37
NS_IMETHODIMP HeadlessSound::Beep()
38
0
{
39
0
  return NS_OK;
40
0
}
41
42
NS_IMETHODIMP HeadlessSound::Play(nsIURL *aURL)
43
0
{
44
0
  return NS_OK;
45
0
}
46
47
NS_IMETHODIMP HeadlessSound::PlayEventSound(uint32_t aEventId)
48
0
{
49
0
  return NS_OK;
50
0
}
51
52
} // namespace widget
53
} // namespace mozilla