/src/mozilla-central/dom/worklet/PaintWorkletGlobalScope.cpp
Line | Count | Source (jump to first uncovered line) |
1 | | /* -*- Mode: C++; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */ |
2 | | /* vim: set ts=8 sts=2 et sw=2 tw=80: */ |
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 | | #include "PaintWorkletGlobalScope.h" |
8 | | #include "WorkletPrincipal.h" |
9 | | #include "mozilla/dom/PaintWorkletGlobalScopeBinding.h" |
10 | | #include "mozilla/dom/FunctionBinding.h" |
11 | | |
12 | | namespace mozilla { |
13 | | namespace dom { |
14 | | |
15 | 0 | PaintWorkletGlobalScope::PaintWorkletGlobalScope() = default; |
16 | | |
17 | | bool |
18 | | PaintWorkletGlobalScope::WrapGlobalObject(JSContext* aCx, |
19 | | JS::MutableHandle<JSObject*> aReflector) |
20 | 0 | { |
21 | 0 | JS::RealmOptions options; |
22 | 0 | return PaintWorkletGlobalScope_Binding::Wrap(aCx, this, this, |
23 | 0 | options, |
24 | 0 | WorkletPrincipal::GetWorkletPrincipal(), |
25 | 0 | true, aReflector); |
26 | 0 | } |
27 | | |
28 | | void |
29 | | PaintWorkletGlobalScope::RegisterPaint(const nsAString& aType, |
30 | | VoidFunction& aProcessorCtor) |
31 | 0 | { |
32 | 0 | // Nothing to do here, yet. |
33 | 0 | } |
34 | | |
35 | | } // dom namespace |
36 | | } // mozilla namespace |