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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8Binding.h

Issue 1883663005: Remove remaining binding layer RawPtr<>s. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 side-by-side diff with in-line comments
Download patch
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 6a452c684164affb82d1a4bf15d57a853ebafc3c..f7129e14ff587a7c611a2736dd32672d78341d3a 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8Binding.h
@@ -241,12 +241,6 @@ inline void v8SetReturnValue(const CallbackInfo& callbackInfo, PassRefPtr<T> imp
v8SetReturnValue(callbackInfo, impl.get());
}
-template<typename CallbackInfo, typename T>
-inline void v8SetReturnValue(const CallbackInfo& callbackInfo, RawPtr<T> impl)
-{
- v8SetReturnValue(callbackInfo, impl.get());
-}
-
template<typename CallbackInfo>
inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, ScriptWrappable* impl)
{
@@ -311,12 +305,6 @@ inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, PassR
v8SetReturnValueForMainWorld(callbackInfo, impl.get());
}
-template<typename CallbackInfo, typename T>
-inline void v8SetReturnValueForMainWorld(const CallbackInfo& callbackInfo, RawPtr<T> impl)
-{
- v8SetReturnValueForMainWorld(callbackInfo, impl.get());
-}
-
template<typename CallbackInfo>
inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, ScriptWrappable* impl, const ScriptWrappable* wrappable)
{
@@ -369,12 +357,6 @@ inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, PassRefPtr<T>
v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
}
-template<typename CallbackInfo, typename T, typename Wrappable>
-inline void v8SetReturnValueFast(const CallbackInfo& callbackInfo, RawPtr<T> impl, const Wrappable* wrappable)
-{
- v8SetReturnValueFast(callbackInfo, impl.get(), wrappable);
-}
-
// Convert v8::String to a WTF::String. If the V8 string is not already
// an external string then it is transformed into an external string at this
// point to avoid repeated conversions.
@@ -592,7 +574,7 @@ inline v8::MaybeLocal<v8::Value> v8DateOrNaN(v8::Isolate* isolate, double value)
}
// FIXME: Remove the special casing for NodeFilter and XPathNSResolver.
-RawPtr<NodeFilter> toNodeFilter(v8::Local<v8::Value>, v8::Local<v8::Object>, ScriptState*);
+NodeFilter* toNodeFilter(v8::Local<v8::Value>, v8::Local<v8::Object>, ScriptState*);
XPathNSResolver* toXPathNSResolver(ScriptState*, v8::Local<v8::Value>);
bool toV8Sequence(v8::Local<v8::Value>, uint32_t& length, v8::Isolate*, ExceptionState&);
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/ToV8Test.cpp ('k') | third_party/WebKit/Source/bindings/core/v8/V8Binding.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698