/src/mozilla-central/dom/media/eme/MediaKeyError.cpp
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 | | #include "MediaKeyError.h" |
8 | | #include "mozilla/dom/MediaKeyErrorBinding.h" |
9 | | #include "nsContentUtils.h" |
10 | | |
11 | | namespace mozilla { |
12 | | namespace dom { |
13 | | |
14 | | MediaKeyError::MediaKeyError(EventTarget* aOwner, uint32_t aSystemCode) |
15 | | : Event(aOwner, nullptr, nullptr) |
16 | | , mSystemCode(aSystemCode) |
17 | 0 | { |
18 | 0 | InitEvent(NS_LITERAL_STRING("error"), CanBubble::eNo, Cancelable::eNo); |
19 | 0 | } |
20 | | |
21 | | MediaKeyError::~MediaKeyError() |
22 | 0 | { |
23 | 0 | } |
24 | | |
25 | | uint32_t |
26 | | MediaKeyError::SystemCode() const |
27 | 0 | { |
28 | 0 | return mSystemCode; |
29 | 0 | } |
30 | | |
31 | | JSObject* |
32 | | MediaKeyError::WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) |
33 | 0 | { |
34 | 0 | return MediaKeyError_Binding::Wrap(aCx, this, aGivenProto); |
35 | 0 | } |
36 | | |
37 | | |
38 | | } // namespace dom |
39 | | } // namespace mozilla |