OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "modules/csspaint/PaintWorkletGlobalScope.h" |
| 6 |
| 7 #include "bindings/core/v8/WorkerOrWorkletScriptController.h" |
| 8 #include "core/inspector/MainThreadDebugger.h" |
| 9 |
| 10 namespace blink { |
| 11 |
| 12 // static |
| 13 PassRefPtrWillBeRawPtr<PaintWorkletGlobalScope> PaintWorkletGlobalScope::create(
LocalFrame* frame, const KURL& url, const String& userAgent, PassRefPtr<Security
Origin> securityOrigin, v8::Isolate* isolate) |
| 14 { |
| 15 RefPtrWillBeRawPtr<PaintWorkletGlobalScope> paintWorkletGlobalScope = adoptR
efWillBeNoop(new PaintWorkletGlobalScope(frame, url, userAgent, securityOrigin,
isolate)); |
| 16 paintWorkletGlobalScope->scriptController()->initializeContextIfNeeded(); |
| 17 MainThreadDebugger::contextCreated(paintWorkletGlobalScope->scriptController
()->getScriptState(), paintWorkletGlobalScope->frame(), paintWorkletGlobalScope-
>getSecurityOrigin()); |
| 18 return paintWorkletGlobalScope.release(); |
| 19 } |
| 20 |
| 21 PaintWorkletGlobalScope::PaintWorkletGlobalScope(LocalFrame* frame, const KURL&
url, const String& userAgent, PassRefPtr<SecurityOrigin> securityOrigin, v8::Iso
late* isolate) |
| 22 : WorkletGlobalScope(frame, url, userAgent, securityOrigin, isolate) |
| 23 { |
| 24 } |
| 25 |
| 26 PaintWorkletGlobalScope::~PaintWorkletGlobalScope() |
| 27 { |
| 28 } |
| 29 |
| 30 } // namespace blink |
OLD | NEW |