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/. */
7 #ifndef mozilla_dom_MediaKeyError_h
8 #define mozilla_dom_MediaKeyError_h
10 #include "mozilla/Attributes.h"
11 #include "nsWrapperCache.h"
12 #include "mozilla/dom/Event.h"
13 #include "js/TypeDecls.h"
15 namespace mozilla::dom
{
17 class MediaKeyError final
: public Event
{
19 MediaKeyError(EventTarget
* aOwner
, uint32_t aSystemCode
);
22 JSObject
* WrapObjectInternal(JSContext
* aCx
,
23 JS::Handle
<JSObject
*> aGivenProto
) override
;
25 uint32_t SystemCode() const;
31 } // namespace mozilla::dom