Index: Source/bindings/modules/v8/ScriptValueUtilities.h |
diff --git a/Source/bindings/modules/v8/ScriptValueUtilities.h b/Source/bindings/modules/v8/ScriptValueUtilities.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..215b785ca5a82d4c83bd627a8149dd9699f6b42b |
--- /dev/null |
+++ b/Source/bindings/modules/v8/ScriptValueUtilities.h |
@@ -0,0 +1,23 @@ |
+// Copyright (c) 2015 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef ScriptValueUtilities_h |
+#define ScriptValueUtilities_h |
+ |
+#include "bindings/core/v8/ScriptValue.h" |
+#include "bindings/core/v8/ToV8.h" |
+#include "bindings/modules/v8/ToV8Utilities.h" |
+#include "modules/webdatabase/sqlite/SQLValue.h" |
+ |
+namespace blink { |
+ |
+inline ScriptValue toScriptValue(ScriptState* scriptState, const Vector<std::pair<String, SQLValue>>& value) |
haraken
2015/03/05 09:03:13
Sorry, I'm probably missing what you've discussed,
vivekg
2015/03/05 09:13:53
The reason we have put this under the binding/modu
haraken
2015/03/05 09:24:48
ah, understood.
Can we put this function to SQLVa
Yuki
2015/03/05 09:25:20
We can have the following template function:
temp
|
+{ |
+ RELEASE_ASSERT(scriptState); |
haraken
2015/03/05 09:03:13
Remove this. We normally don't check this and we d
vivekg
2015/03/05 09:13:53
Sure.
|
+ return ScriptValue(scriptState, toV8(value, scriptState->context()->Global(), scriptState->isolate())); |
+} |
+ |
+} // namespace blink |
+ |
+#endif // ScriptValueUtilities_h |