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

Unified Diff: Source/bindings/modules/v8/V8BindingForModules.cpp

Issue 1009503003: [bindings] Introduce ScriptValue.to<T> to convert to native values. (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/modules/v8/V8BindingForModules.cpp
diff --git a/Source/bindings/modules/v8/V8BindingForModules.cpp b/Source/bindings/modules/v8/V8BindingForModules.cpp
index 8ed2e087afe6efc8d54a7e8efd68bd3327f31aff..6c9f34e0513233dd0555e4eab32346dfa9577cb7 100644
--- a/Source/bindings/modules/v8/V8BindingForModules.cpp
+++ b/Source/bindings/modules/v8/V8BindingForModules.cpp
@@ -399,21 +399,6 @@ bool canInjectIDBKeyIntoScriptValue(v8::Isolate* isolate, const ScriptValue& scr
return canInjectNthValueOnKeyPath(isolate, v8Value, keyPathElements, keyPathElements.size() - 1);
}
-IDBKey* scriptValueToIDBKey(v8::Isolate* isolate, const ScriptValue& scriptValue)
-{
- ASSERT(isolate->InContext());
- v8::HandleScope handleScope(isolate);
- v8::Local<v8::Value> v8Value(scriptValue.v8Value());
- return createIDBKeyFromValue(isolate, v8Value);
-}
-
-IDBKeyRange* scriptValueToIDBKeyRange(v8::Isolate* isolate, const ScriptValue& scriptValue)
-{
- v8::HandleScope handleScope(isolate);
- v8::Local<v8::Value> value(scriptValue.v8Value());
- return V8IDBKeyRange::toImplWithTypeCheck(isolate, value);
-}
-
ScriptValue deserializeScriptValue(ScriptState* scriptState, SerializedScriptValue* serializedValue, const Vector<blink::WebBlobInfo>* blobInfo)
{
v8::Isolate* isolate = scriptState->isolate();

Powered by Google App Engine
This is Rietveld 408576698