HomeSort by relevance Sort by last modified time
    Searched refs:keyPath (Results 1 - 25 of 44) sorted by null

1 2

  /external/chromium_org/third_party/WebKit/Source/modules/indexeddb/
IDBKeyPathTest.cpp 40 void checkKeyPath(const String& keyPath, const Vector<String>& expected, int parserError)
42 IDBKeyPath idbKeyPath(keyPath);
48 IDBParseKeyPath(keyPath, keyPathElements, error);
60 String keyPath("");
61 checkKeyPath(keyPath, expected, 0);
67 String keyPath("foo");
69 checkKeyPath(keyPath, expected, 0);
75 String keyPath("foo.bar.baz");
79 checkKeyPath(keyPath, expected, 0);
85 String keyPath(" ");
    [all...]
IDBMetadata.h 41 IDBIndexMetadata(const String& name, int64_t id, const IDBKeyPath& keyPath, bool unique, bool multiEntry)
44 , keyPath(keyPath)
49 IDBKeyPath keyPath;
58 IDBObjectStoreMetadata(const String& name, int64_t id, const IDBKeyPath& keyPath, bool autoIncrement, int64_t maxIndexId)
61 , keyPath(keyPath)
68 IDBKeyPath keyPath;
IDBObjectStore.h 61 PassRefPtr<IDBAny> keyPathAny() const { return IDBAny::create(m_metadata.keyPath); }
62 const IDBKeyPath keyPath() const { return m_metadata.keyPath; }
77 PassRefPtr<IDBIndex> createIndex(ScriptExecutionContext* context, const String& name, const String& keyPath, const Dictionary& options, ExceptionState& es) { return createIndex(context, name, IDBKeyPath(keyPath), options, es); }
78 PassRefPtr<IDBIndex> createIndex(ScriptExecutionContext* context, const String& name, const Vector<String>& keyPath, const Dictionary& options, ExceptionState& es) { return createIndex(context, name, IDBKeyPath(keyPath), options, es); }
IDBObjectStore.idl 29 [ImplementedAs=keyPathAny] readonly attribute IDBAny keyPath;
44 [CallWith=ScriptExecutionContext, RaisesException] IDBIndex createIndex(DOMString name, sequence<DOMString> keyPath, optional Dictionary options);
45 [CallWith=ScriptExecutionContext, RaisesException] IDBIndex createIndex(DOMString name, DOMString keyPath, optional Dictionary options);
IDBIndex.h 56 PassRefPtr<IDBAny> keyPathAny() const { return IDBAny::create(m_metadata.keyPath); }
57 const IDBKeyPath keyPath() const { return m_metadata.keyPath; }
IDBDatabase.cpp 170 IDBKeyPath keyPath;
175 if (options.get("keyPath", keyPathArray))
176 keyPath = IDBKeyPath(keyPathArray);
177 else if (options.getWithUndefinedOrNullCheck("keyPath", keyPathString))
178 keyPath = IDBKeyPath(keyPathString);
183 return createObjectStore(name, keyPath, autoIncrement, es);
186 PassRefPtr<IDBObjectStore> IDBDatabase::createObjectStore(const String& name, const IDBKeyPath& keyPath, bool autoIncrement, ExceptionState& es)
208 if (!keyPath.isNull() && !keyPath.isValid()) {
209 es.throwDOMException(SyntaxError, "The keyPath option is not a valid key path.")
    [all...]
IDBKeyPath.cpp 124 bool IDBIsValidKeyPath(const String& keyPath)
128 IDBParseKeyPath(keyPath, keyPathElements, error);
132 void IDBParseKeyPath(const String& keyPath, Vector<String>& elements, IDBKeyPathParseError& error)
142 IDBKeyPathLexer lexer(keyPath);
IDBCursor.cpp 126 const IDBKeyPath& keyPath = objectStore->metadata().keyPath;
127 const bool usesInLineKeys = !keyPath.isNull();
129 RefPtr<IDBKey> keyPathKey = createIDBKeyFromScriptValueAndKeyPath(m_request->requestState(), value, keyPath);
292 if (metadata.autoIncrement && !metadata.keyPath.isNull()) {
294 RefPtr<IDBKey> expectedKey = createIDBKeyFromScriptValueAndKeyPath(m_request->requestState(), value, metadata.keyPath);
297 bool injected = injectIDBKeyIntoScriptValue(m_request->requestState(), m_currentPrimaryKey, value, metadata.keyPath);
IDBObjectStore.cpp 108 RefPtr<IDBKey> indexKey = createIDBKeyFromScriptValueAndKeyPath(requestState, objectValue, indexMetadata.keyPath);
180 const IDBKeyPath& keyPath = m_metadata.keyPath;
181 const bool usesInLineKeys = !keyPath.isNull();
196 RefPtr<IDBKey> keyPathKey = createIDBKeyFromScriptValueAndKeyPath(&requestState, value, keyPath);
206 if (!canInjectIDBKeyIntoScriptValue(&requestState, value, keyPath)) {
368 PassRefPtr<IDBIndex> IDBObjectStore::createIndex(ScriptExecutionContext* context, const String& name, const IDBKeyPath& keyPath, const Dictionary& options, ExceptionState& es)
376 return createIndex(context, name, keyPath, unique, multiEntry, es);
379 PassRefPtr<IDBIndex> IDBObjectStore::createIndex(ScriptExecutionContext* context, const String& name, const IDBKeyPath& keyPath, bool unique, bool multiEntry, ExceptionState& es)
398 if (!keyPath.isValid())
    [all...]
IDBIndex.idl 30 [ImplementedAs=keyPathAny] readonly attribute IDBAny keyPath;
  /external/chromium_org/third_party/WebKit/Source/web/
WebIDBKeyPath.cpp 38 WebIDBKeyPath WebIDBKeyPath::create(const WebString& keyPath)
40 return WebIDBKeyPath(IDBKeyPath(keyPath));
43 WebIDBKeyPath WebIDBKeyPath::create(const WebVector<WebString>& keyPath)
46 for (size_t i = 0; i < keyPath.size(); ++i)
47 strings.append(keyPath[i]);
56 void WebIDBKeyPath::assign(const WebIDBKeyPath& keyPath)
58 ASSERT(keyPath.m_private.get());
59 m_private.reset(new IDBKeyPath(keyPath));
WebIDBMetadata.cpp 52 webObjectStore.keyPath = objectStore.keyPath;
63 webIndex.keyPath = index.keyPath;
77 IDBObjectStoreMetadata objectStore(webObjectStore.name, webObjectStore.id, webObjectStore.keyPath, webObjectStore.autoIncrement, webObjectStore.maxIndexId);
81 IDBIndexMetadata index(webIndex.name, webIndex.id, webIndex.keyPath, webIndex.unique, webIndex.multiEntry);
IDBDatabaseBackendProxy.cpp 61 void IDBDatabaseBackendProxy::createObjectStore(int64_t transactionId, int64_t objectStoreId, const String& name, const IDBKeyPath& keyPath, bool autoIncrement)
64 m_webIDBDatabase->createObjectStore(transactionId, objectStoreId, name, keyPath, autoIncrement);
137 void IDBDatabaseBackendProxy::createIndex(int64_t transactionId, int64_t objectStoreId, int64_t indexId, const String& name, const WebCore::IDBKeyPath& keyPath, bool unique, bool multiEntry)
140 m_webIDBDatabase->createIndex(transactionId, objectStoreId, indexId, name, keyPath, unique, multiEntry);
WebIDBCallbacksImpl.cpp 92 void WebIDBCallbacksImpl::onSuccess(const WebData& value, const WebIDBKey& key, const WebIDBKeyPath& keyPath)
94 m_callbacks->onSuccess(value, key, keyPath);
  /external/chromium_org/third_party/WebKit/public/platform/
WebIDBKeyPath.h 45 WebIDBKeyPath(const WebIDBKeyPath& keyPath) { assign(keyPath); }
47 WebIDBKeyPath& operator=(const WebIDBKeyPath& keyPath)
49 assign(keyPath);
WebIDBMetadata.h 61 WebIDBKeyPath keyPath;
67 : keyPath(WebIDBKeyPath::createNull())
73 WebIDBKeyPath keyPath;
78 : keyPath(WebIDBKeyPath::createNull())
  /external/chromium_org/third_party/WebKit/Source/bindings/v8/
IDBBindingUtilitiesTest.cpp 41 PassRefPtr<IDBKey> checkKeyFromValueAndKeyPathInternal(const ScriptValue& value, const String& keyPath)
43 IDBKeyPath idbKeyPath(keyPath);
49 void checkKeyPathNullValue(const ScriptValue& value, const String& keyPath)
51 RefPtr<IDBKey> idbKey = checkKeyFromValueAndKeyPathInternal(value, keyPath);
55 bool injectKey(PassRefPtr<IDBKey> key, ScriptValue& value, const String& keyPath)
57 IDBKeyPath idbKeyPath(keyPath);
62 void checkInjection(PassRefPtr<IDBKey> prpKey, ScriptValue& value, const String& keyPath)
65 bool result = injectKey(key, value, keyPath);
67 RefPtr<IDBKey> extractedKey = checkKeyFromValueAndKeyPathInternal(value, keyPath);
71 void checkInjectionFails(PassRefPtr<IDBKey> key, ScriptValue& value, const String& keyPath)
    [all...]
IDBBindingUtilities.cpp 205 static PassRefPtr<IDBKey> createIDBKeyFromScriptValueAndKeyPath(const ScriptValue& value, const String& keyPath, v8::Isolate* isolate)
209 IDBParseKeyPath(keyPath, keyPathElements, error);
221 PassRefPtr<IDBKey> createIDBKeyFromScriptValueAndKeyPath(DOMRequestState* state, const ScriptValue& value, const IDBKeyPath& keyPath)
224 ASSERT(!keyPath.isNull());
230 if (keyPath.type() == IDBKeyPath::ArrayType) {
232 const Vector<String>& array = keyPath.array();
242 ASSERT(keyPath.type() == IDBKeyPath::StringType);
243 return createIDBKeyFromScriptValueAndKeyPath(value, keyPath.string(), isolate);
273 bool injectIDBKeyIntoScriptValue(DOMRequestState* state, PassRefPtr<IDBKey> key, ScriptValue& value, const IDBKeyPath& keyPath)
278 ASSERT(keyPath.type() == IDBKeyPath::StringType)
    [all...]
  /external/chromium_org/content/test/data/indexeddb/
key_path_test.js 12 shouldBe("event.target.result.value.keyPath", "'myKey' + count");
32 obj = {'keyPath': 'myKey' + count, 'value': 'myValue' + count};
47 window.objectStore = db.createObjectStore('test', {keyPath: 'keyPath'});
database_test.js 13 window.objectStore = db.createObjectStore('employees', {keyPath: 'id'});
15 shouldBe("objectStore.keyPath", "'id'");
bug_90635.js 30 db.createObjectStore('store2', {keyPath: ''});
31 db.createObjectStore('store3', {keyPath: 'some_path'});
55 if (store1.keyPath !== null ||
56 store2.keyPath !== '' ||
57 store3.keyPath !== 'some_path') {
object_store_test.js 95 window.objectStore = db.createObjectStore('employees', {keyPath: 'id'});
97 shouldBe("objectStore.keyPath", "'id'");
  /external/clang/lib/Driver/
WindowsToolChain.cpp 83 static bool getSystemRegistryString(const char *keyPath, const char *valueName,
93 if (strncmp(keyPath, "HKEY_CLASSES_ROOT\\", 18) == 0) {
95 subKey = keyPath + 18;
96 } else if (strncmp(keyPath, "HKEY_USERS\\", 11) == 0) {
98 subKey = keyPath + 11;
99 } else if (strncmp(keyPath, "HKEY_LOCAL_MACHINE\\", 19) == 0) {
101 subKey = keyPath + 19;
102 } else if (strncmp(keyPath, "HKEY_CURRENT_USER\\", 18) == 0) {
104 subKey = keyPath + 18;
  /external/chromium_org/third_party/WebKit/Source/devtools/front_end/
IndexedDBModel.js 109 * @param {IndexedDBAgent.KeyPath} keyPath
111 WebInspector.IndexedDBModel.idbKeyPathFromKeyPath = function(keyPath)
114 switch (keyPath.type) {
119 idbKeyPath = keyPath.string;
122 idbKeyPath = keyPath.array;
307 var objectStoreIDBKeyPath = WebInspector.IndexedDBModel.idbKeyPathFromKeyPath(objectStore.keyPath);
311 var indexIDBKeyPath = WebInspector.IndexedDBModel.idbKeyPathFromKeyPath(index.keyPath);
443 * @param {*} keyPath
445 WebInspector.IndexedDBModel.ObjectStore = function(name, keyPath, autoIncrement
    [all...]
IndexedDBViews.js 146 var keyPath = this._isIndex ? this._index.keyPath : this._objectStore.keyPath;
150 columns.push({id: "key", titleDOMFragment: this._keyColumnHeaderFragment(WebInspector.UIString("Key"), keyPath)});
152 columns.push({id: "primaryKey", titleDOMFragment: this._keyColumnHeaderFragment(WebInspector.UIString("Primary key"), this._objectStore.keyPath)});
161 * @param {*} keyPath
164 _keyColumnHeaderFragment: function(prefix, keyPath)
168 if (keyPath === null)
172 if (keyPath instanceof Array) {
174 for (var i = 0; i < keyPath.length; ++i)
    [all...]

Completed in 384 milliseconds

1 2