1 /* -*- Mode: C++; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* This Source Code Form is subject to the terms of the Mozilla Public
3 * License, v. 2.0. If a copy of the MPL was not distributed with this
4 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 #ifndef WEBGPU_LogEntry_H_
7 #define WEBGPU_LogEntry_H_
9 #include "nsWrapperCache.h"
10 #include "ObjectModel.h"
14 enum class WebGPULogEntryType
: uint8_t;
20 class LogEntry final
: public ChildOf
<Device
> {
22 WEBGPU_DECL_GOOP(LogEntry
)
29 dom::WebGPULogEntryType
Type() const;
30 void GetObj(JSContext
* cx
, JS::MutableHandleValue out
) const;
31 void GetReason(nsString
& out
) const;
35 } // namespace mozilla
37 #endif // WEBGPU_LogEntry_H_