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

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

Issue 15786003: WIP don't review: Implement Future (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 7 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/v8/V8Binding.h
diff --git a/Source/bindings/v8/V8Binding.h b/Source/bindings/v8/V8Binding.h
index af429b86d8bbd8f76fab2a920ccea724ba062451..edfaa6183565cb2cffa1cd1c44ee01fd6fc68080 100644
--- a/Source/bindings/v8/V8Binding.h
+++ b/Source/bindings/v8/V8Binding.h
@@ -33,6 +33,7 @@
#define V8Binding_h
#include "bindings/v8/DOMWrapperWorld.h"
+#include "bindings/v8/ScriptValue.h"
#include "bindings/v8/V8BindingMacros.h"
#include "bindings/v8/V8PerIsolateData.h"
#include "bindings/v8/V8StringResource.h"
@@ -339,6 +340,14 @@ namespace WebCore {
}
};
+ template<>
+ struct NativeValueTraits<ScriptValue> {
+ static inline ScriptValue nativeValue(const v8::Handle<v8::Value>& value)
+ {
+ return ScriptValue(value);
+ }
+ };
+
template <class T, class V8T>
Vector<RefPtr<T> > toRefPtrNativeArray(v8::Handle<v8::Value> value, v8::Isolate* isolate)
{

Powered by Google App Engine
This is Rietveld 408576698