Bug 1885602 - Part 2: Add a MozillaAccountMenuButton composable for the menu redesign...
[gecko.git] / dom / media / eme / MediaKeyError.h
blobef4ecf1375c15e9bd75126f72f0c0cb6a2cac19a
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 {
18 public:
19 MediaKeyError(EventTarget* aOwner, uint32_t aSystemCode);
20 ~MediaKeyError();
22 JSObject* WrapObjectInternal(JSContext* aCx,
23 JS::Handle<JSObject*> aGivenProto) override;
25 uint32_t SystemCode() const;
27 private:
28 uint32_t mSystemCode;
31 } // namespace mozilla::dom
33 #endif