Index: third_party/WebKit/Source/bindings/core/v8/V8Binding.h |
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h |
index 0f847a5a4f987c8ebe331f2e30de740ebcf46c97..b307d4247c450c9f56882b48bda31a2473e209ca 100644 |
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h |
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h |
@@ -63,6 +63,7 @@ class LocalDOMWindow; |
class LocalFrame; |
class NodeFilter; |
class WorkerGlobalScope; |
+class WorkletGlobalScope; |
class XPathNSResolver; |
template <typename T> |
@@ -245,6 +246,12 @@ inline void v8SetReturnValue(const CallbackInfo& callbackInfo, WorkerGlobalScope |
v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate())); |
} |
+template<typename CallbackInfo> |
+inline void v8SetReturnValue(const CallbackInfo& callbackInfo, WorkletGlobalScope* impl) |
+{ |
+ v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate())); |
+} |
+ |
template<typename CallbackInfo, typename T> |
inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<T> impl) |
{ |
@@ -315,6 +322,12 @@ inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, Worke |
v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate())); |
} |
+template<typename CallbackInfo> |
+inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, WorkletGlobalScope* impl) |
+{ |
+ v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate())); |
+} |
+ |
template<typename CallbackInfo, typename T> |
inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassRefPtr<T> impl) |
{ |
@@ -373,6 +386,12 @@ inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, WorkerGlobalS |
v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate())); |
} |
+template<typename CallbackInfo> |
+inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, WorkletGlobalScope* impl, const ScriptWrappable*) |
+{ |
+ v8SetReturnValue(callbackInfo, toV8(impl, callbackInfo.Holder(), callbackInfo.GetIsolate())); |
+} |
+ |
template<typename CallbackInfo, typename T, typename Wrappable> |
inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<T> impl, const Wrappable* wrappable) |
{ |