Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(215)

Side by Side Diff: third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.cpp

Issue 1818223002: Introduce PaintWorkletGlobalScope, rename renderWorklet attribute to paintWorklet. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix interface listing order. Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698