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

Unified Diff: Source/modules/indexeddb/IDBKeyRange.h

Issue 22893058: IndexedDB: Replace IDL operation overloading with ScriptValue handling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove assert, per review feedback Created 7 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 | « Source/modules/indexeddb/IDBIndex.idl ('k') | Source/modules/indexeddb/IDBKeyRange.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/indexeddb/IDBKeyRange.h
diff --git a/Source/modules/indexeddb/IDBKeyRange.h b/Source/modules/indexeddb/IDBKeyRange.h
index e102664cb6eefb74be81096f296bb1c86c350c5e..fe3f66970f2f187279eebaaf204d0395e7c18e32 100644
--- a/Source/modules/indexeddb/IDBKeyRange.h
+++ b/Source/modules/indexeddb/IDBKeyRange.h
@@ -52,6 +52,10 @@ public:
return adoptRef(new IDBKeyRange(lower, upper, lowerType, upperType));
}
static PassRefPtr<IDBKeyRange> create(PassRefPtr<IDBKey> prpKey);
+
+ // Null if the script value is null or undefined, the range if it is one, otherwise tries to convert to a key and throws if it fails.
+ static PassRefPtr<IDBKeyRange> fromScriptValue(ScriptExecutionContext*, const ScriptValue&, ExceptionState&);
+
~IDBKeyRange() { }
// Implement the IDBKeyRange IDL
« no previous file with comments | « Source/modules/indexeddb/IDBIndex.idl ('k') | Source/modules/indexeddb/IDBKeyRange.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698