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

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

Issue 972153002: [bindings] Remove custom binding usage in SQLResultSetRowList. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@test
Patch Set: Patch for landing Created 5 years, 10 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/ToV8.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/core/v8/ScriptValue.h
diff --git a/Source/bindings/core/v8/ScriptValue.h b/Source/bindings/core/v8/ScriptValue.h
index e1e43094974dee935c6fd87052f4472dd38d9234..6c4845b928196546a4a99a6761630caaccb28691 100644
--- a/Source/bindings/core/v8/ScriptValue.h
+++ b/Source/bindings/core/v8/ScriptValue.h
@@ -44,6 +44,12 @@ class JSONValue;
class ScriptValue final {
public:
+ template<typename T>
+ static ScriptValue from(ScriptState* scriptState, T value)
+ {
+ return ScriptValue(scriptState, toV8(value, scriptState->context()->Global(), scriptState->isolate()));
+ }
+
ScriptValue() { }
ScriptValue(ScriptState* scriptState, v8::Handle<v8::Value> value)
« no previous file with comments | « no previous file | Source/bindings/core/v8/ToV8.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698