Line data Source code
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_MediaKeyError_h
8 : #define mozilla_dom_MediaKeyError_h
9 :
10 : #include "mozilla/Attributes.h"
11 : #include "mozilla/ErrorResult.h"
12 : #include "nsWrapperCache.h"
13 : #include "mozilla/dom/Event.h"
14 : #include "js/TypeDecls.h"
15 :
16 : namespace mozilla {
17 : namespace dom {
18 :
19 : class MediaKeyError final : public Event
20 : {
21 : public:
22 0 : NS_FORWARD_TO_EVENT
23 :
24 : MediaKeyError(EventTarget* aOwner, uint32_t aSystemCode);
25 : ~MediaKeyError();
26 :
27 : JSObject* WrapObjectInternal(JSContext* aCx, JS::Handle<JSObject*> aGivenProto) override;
28 :
29 : uint32_t SystemCode() const;
30 :
31 : private:
32 : uint32_t mSystemCode;
33 : };
34 :
35 : } // namespace dom
36 : } // namespace mozilla
37 :
38 : #endif
|