Line data Source code
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 "mozilla/dom/PaintWorkletGlobalScopeBinding.h"
9 : #include "mozilla/dom/FunctionBinding.h"
10 :
11 : namespace mozilla {
12 : namespace dom {
13 :
14 0 : PaintWorkletGlobalScope::PaintWorkletGlobalScope(nsPIDOMWindowInner* aWindow)
15 0 : : WorkletGlobalScope(aWindow)
16 : {
17 0 : }
18 :
19 0 : PaintWorkletGlobalScope::~PaintWorkletGlobalScope()
20 : {
21 0 : }
22 :
23 : bool
24 0 : PaintWorkletGlobalScope::WrapGlobalObject(JSContext* aCx,
25 : nsIPrincipal* aPrincipal,
26 : JS::MutableHandle<JSObject*> aReflector)
27 : {
28 0 : JS::CompartmentOptions options;
29 0 : return PaintWorkletGlobalScopeBinding::Wrap(aCx, this, this,
30 : options,
31 0 : nsJSPrincipals::get(aPrincipal),
32 0 : true, aReflector);
33 : }
34 :
35 : void
36 0 : PaintWorkletGlobalScope::RegisterPaint(const nsAString& aType,
37 : VoidFunction& aProcessorCtor)
38 : {
39 : // Nothing to do here, yet.
40 0 : }
41 :
42 : } // dom namespace
43 : } // mozilla namespace
|