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

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

Issue 440243003: Add NativeValueTraits for ScriptValue to V8Bindings. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
« no previous file with comments | « no previous file | Source/bindings/core/v8/V8BindingTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/V8Binding.h
diff --git a/Source/bindings/core/v8/V8Binding.h b/Source/bindings/core/v8/V8Binding.h
index a17bb95f781cb271fc6be12bf9d5d08b6768b52e..6a05dbfffe326fffb368e351f350d895d1defbef 100644
--- a/Source/bindings/core/v8/V8Binding.h
+++ b/Source/bindings/core/v8/V8Binding.h
@@ -609,6 +609,14 @@ struct NativeValueTraits<v8::Handle<v8::Value> > {
}
};
+template<>
+struct NativeValueTraits<ScriptValue> {
+ static inline ScriptValue nativeValue(const v8::Handle<v8::Value>& value, v8::Isolate* isolate)
+ {
+ return ScriptValue(ScriptState::current(isolate), value);
haraken 2014/08/06 00:55:10 I'm a bit concerned about this. In order to call S
+ }
+};
+
v8::Handle<v8::Value> toV8Sequence(v8::Handle<v8::Value>, uint32_t& length, v8::Isolate*);
// Converts a JavaScript value to an array as per the Web IDL specification:
« no previous file with comments | « no previous file | Source/bindings/core/v8/V8BindingTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698