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

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

Issue 1003713002: [bindings] Rename IDBBindingUtilities.cpp to V8BindingForModules.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 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 side-by-side diff with in-line comments
Download patch
Index: Source/bindings/core/v8/V8Binding.h
diff --git a/Source/bindings/core/v8/V8Binding.h b/Source/bindings/core/v8/V8Binding.h
index 170c48bf19c394b3b7d9881dae81306670ba41cf..db8fc68643b97cad011490e3b32ba8b42c3597db 100644
--- a/Source/bindings/core/v8/V8Binding.h
+++ b/Source/bindings/core/v8/V8Binding.h
@@ -803,6 +803,12 @@ inline bool toV8Sequence(v8::Handle<v8::Value> value, uint32_t& length, v8::Isol
return true;
}
+template <typename T>
+T script_value_cast(const ScriptValue& value, v8::Isolate* isolate, ExceptionState& exceptionState)
+{
+ return NativeValueTraits<T>::nativeValue(value.v8Value(), isolate, exceptionState);
+}
+
template<>
struct NativeValueTraits<String> {
static inline String nativeValue(const v8::Local<v8::Value>& value, v8::Isolate* isolate, ExceptionState& exceptionState)
« no previous file with comments | « no previous file | Source/bindings/modules/v8/IDBBindingUtilities.h » ('j') | Source/bindings/modules/v8/V8BindingForModules.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698