MediaKeyError.h (877B)
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 "js/TypeDecls.h" 11 #include "mozilla/dom/Event.h" 12 #include "nsWrapperCache.h" 13 14 namespace mozilla::dom { 15 16 class MediaKeyError final : public Event { 17 public: 18 MediaKeyError(EventTarget* aOwner, uint32_t aSystemCode); 19 ~MediaKeyError(); 20 21 JSObject* WrapObjectInternal(JSContext* aCx, 22 JS::Handle<JSObject*> aGivenProto) override; 23 24 uint32_t SystemCode() const; 25 26 private: 27 uint32_t mSystemCode; 28 }; 29 30 } // namespace mozilla::dom 31 32 #endif