Bug 1560374 - Set testharness and reftest web-platform-tests to Tier-1; r=jmaher...
[gecko.git] / dom / webgpu / LogEntry.h
blobc96a732860f7f641b0da0501a554ecb0953bb08b
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"
12 namespace mozilla {
13 namespace dom {
14 enum class WebGPULogEntryType : uint8_t;
15 } // namespace dom
16 namespace webgpu {
18 class Device;
20 class LogEntry final : public ChildOf<Device> {
21 public:
22 WEBGPU_DECL_GOOP(LogEntry)
24 private:
25 LogEntry() = delete;
26 virtual ~LogEntry();
28 public:
29 dom::WebGPULogEntryType Type() const;
30 void GetObj(JSContext* cx, JS::MutableHandleValue out) const;
31 void GetReason(nsString& out) const;
34 } // namespace webgpu
35 } // namespace mozilla
37 #endif // WEBGPU_LogEntry_H_