Bug 1936278 - Prevent search mode chiclet from being dismissed when clicking in page...
[gecko.git] / dom / webgpu / CompilationMessage.cpp
blob7aa4d016223dab48ac4dfa89a9f7333c5a3d756c
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 #include "CompilationMessage.h"
7 #include "CompilationInfo.h"
8 #include "mozilla/dom/WebGPUBinding.h"
10 namespace mozilla::webgpu {
12 GPU_IMPL_CYCLE_COLLECTION(CompilationMessage, mParent)
13 GPU_IMPL_JS_WRAP(CompilationMessage)
15 CompilationMessage::CompilationMessage(Device* const aParent,
16 dom::GPUCompilationMessageType aType,
17 uint64_t aLineNum, uint64_t aLinePos,
18 uint64_t aOffset, uint64_t aLength,
19 nsString&& aMessage)
20 : ChildOf(aParent),
21 mType(aType),
22 mLineNum(aLineNum),
23 mLinePos(aLinePos),
24 mOffset(aOffset),
25 mLength(aLength),
26 mMessage(std::move(aMessage)) {}
28 } // namespace mozilla::webgpu