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

Side by Side Diff: third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.h

Issue 1834843002: [WIP] Plumbing for paint Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: \o/\o/ Created 4 years, 8 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
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef WorkletGlobalScope_h 5 #ifndef WorkletGlobalScope_h
6 #define WorkletGlobalScope_h 6 #define WorkletGlobalScope_h
7 7
8 #include "bindings/core/v8/ScriptCallStack.h" 8 #include "bindings/core/v8/ScriptCallStack.h"
9 #include "bindings/core/v8/ScriptWrappable.h" 9 #include "bindings/core/v8/ScriptWrappable.h"
10 #include "core/dom/ExecutionContext.h" 10 #include "core/dom/ExecutionContext.h"
(...skipping 16 matching lines...) Expand all
27 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkletGlobalScope); 27 WILL_BE_USING_GARBAGE_COLLECTED_MIXIN(WorkletGlobalScope);
28 public: 28 public:
29 #if !ENABLE(OILPAN) 29 #if !ENABLE(OILPAN)
30 using RefCounted<WorkletGlobalScope>::ref; 30 using RefCounted<WorkletGlobalScope>::ref;
31 using RefCounted<WorkletGlobalScope>::deref; 31 using RefCounted<WorkletGlobalScope>::deref;
32 #endif 32 #endif
33 33
34 ~WorkletGlobalScope() override; 34 ~WorkletGlobalScope() override;
35 35
36 bool isWorkletGlobalScope() const final { return true; } 36 bool isWorkletGlobalScope() const final { return true; }
37 v8::Isolate* isolate() const { return m_isolate; }
37 38
38 // WorkletGlobalScope 39 // WorkletGlobalScope
39 WorkletConsole* console(); 40 WorkletConsole* console();
40 41
41 // WorkerOrWorkletGlobalScope 42 // WorkerOrWorkletGlobalScope
42 ScriptWrappable* getScriptWrappable() const final { return const_cast<Workle tGlobalScope*>(this); } 43 ScriptWrappable* getScriptWrappable() const final { return const_cast<Workle tGlobalScope*>(this); }
43 WorkerOrWorkletScriptController* scriptController() final { return m_scriptC ontroller.get(); } 44 WorkerOrWorkletScriptController* scriptController() final { return m_scriptC ontroller.get(); }
44 45
45 // ScriptWrappable 46 // ScriptWrappable
46 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte xt) final; 47 v8::Local<v8::Object> wrap(v8::Isolate*, v8::Local<v8::Object> creationConte xt) final;
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
84 KURL virtualCompleteURL(const String&) const final; 85 KURL virtualCompleteURL(const String&) const final;
85 86
86 EventTarget* errorEventTarget() final { return nullptr; } 87 EventTarget* errorEventTarget() final { return nullptr; }
87 void didUpdateSecurityOrigin() final { } 88 void didUpdateSecurityOrigin() final { }
88 89
89 mutable PersistentWillBeMember<WorkletConsole> m_console; 90 mutable PersistentWillBeMember<WorkletConsole> m_console;
90 91
91 KURL m_url; 92 KURL m_url;
92 String m_userAgent; 93 String m_userAgent;
93 OwnPtrWillBeMember<WorkerOrWorkletScriptController> m_scriptController; 94 OwnPtrWillBeMember<WorkerOrWorkletScriptController> m_scriptController;
95 v8::Isolate* m_isolate;
94 }; 96 };
95 97
96 DEFINE_TYPE_CASTS(WorkletGlobalScope, ExecutionContext, context, context->isWork letGlobalScope(), context.isWorkletGlobalScope()); 98 DEFINE_TYPE_CASTS(WorkletGlobalScope, ExecutionContext, context, context->isWork letGlobalScope(), context.isWorkletGlobalScope());
97 99
98 } // namespace blink 100 } // namespace blink
99 101
100 #endif // WorkletGlobalScope_h 102 #endif // WorkletGlobalScope_h
OLDNEW
« no previous file with comments | « third_party/WebKit/Source/modules/modules.gypi ('k') | third_party/WebKit/Source/modules/worklet/WorkletGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698