Home
last modified time | relevance | path

Searched refs:keyPath (Results 1 – 25 of 41) sorted by relevance

12

/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/
DIDBKeyPathTest.cpp40 void checkKeyPath(const String& keyPath, const Vector<String>& expected, int parserError) in checkKeyPath() argument
42 IDBKeyPath idbKeyPath(keyPath); in checkKeyPath()
48 IDBParseKeyPath(keyPath, keyPathElements, error); in checkKeyPath()
60 String keyPath(""); in TEST() local
61 checkKeyPath(keyPath, expected, 0); in TEST()
67 String keyPath("foo"); in TEST() local
69 checkKeyPath(keyPath, expected, 0); in TEST()
75 String keyPath("foo.bar.baz"); in TEST() local
79 checkKeyPath(keyPath, expected, 0); in TEST()
85 String keyPath(" "); in TEST() local
[all …]
DIDBMetadata.h41 …IDBIndexMetadata(const String& name, int64_t id, const IDBKeyPath& keyPath, bool unique, bool mult… in IDBIndexMetadata()
44 , keyPath(keyPath) in IDBIndexMetadata()
49 IDBKeyPath keyPath; member
58 …IDBObjectStoreMetadata(const String& name, int64_t id, const IDBKeyPath& keyPath, bool autoIncreme… in IDBObjectStoreMetadata()
61 , keyPath(keyPath) in IDBObjectStoreMetadata()
68 IDBKeyPath keyPath; member
DIDBDatabase.cpp174 IDBKeyPath keyPath; in createObjectStore() local
180 keyPath = IDBKeyPath(keyPathArray); in createObjectStore()
182 keyPath = IDBKeyPath(keyPathString); in createObjectStore()
187 return createObjectStore(name, keyPath, autoIncrement, exceptionState); in createObjectStore()
190 …re> IDBDatabase::createObjectStore(const String& name, const IDBKeyPath& keyPath, bool autoIncreme… in createObjectStore() argument
212 if (!keyPath.isNull() && !keyPath.isValid()) { in createObjectStore()
217 …if (autoIncrement && ((keyPath.type() == IDBKeyPath::StringType && keyPath.string().isEmpty()) || in createObjectStore()
223 …m_backend->createObjectStore(m_versionChangeTransaction->id(), objectStoreId, name, keyPath, autoI… in createObjectStore()
225 …IDBObjectStoreMetadata metadata(name, objectStoreId, keyPath, autoIncrement, WebIDBDatabase::minim… in createObjectStore()
DIDBObjectStore.h62 ScriptValue keyPath(ExecutionContext*) const;
75 … const String& keyPath, const Dictionary& options, ExceptionState& exceptionState) { return create… in createIndex() argument
76 …ector<String>& keyPath, const Dictionary& options, ExceptionState& exceptionState) { return create… in createIndex() argument
DIDBObjectStore.cpp63 ScriptValue IDBObjectStore::keyPath(ExecutionContext* context) const in keyPath() function in WebCore::IDBObjectStore
66 return idbAnyToScriptValue(&requestState, IDBAny::create(m_metadata.keyPath)); in keyPath()
110 …indexKey = createIDBKeyFromScriptValueAndKeyPath(requestState, objectValue, indexMetadata.keyPath); in generateIndexKeysForValue()
182 const IDBKeyPath& keyPath = m_metadata.keyPath; in put() local
183 const bool usesInLineKeys = !keyPath.isNull(); in put()
198 … RefPtr<IDBKey> keyPathKey = createIDBKeyFromScriptValueAndKeyPath(&requestState, value, keyPath); in put()
208 if (!canInjectIDBKeyIntoScriptValue(&requestState, value, keyPath)) { in put()
366 …teIndex(ExecutionContext* context, const String& name, const IDBKeyPath& keyPath, const Dictionary… in createIndex() argument
374 return createIndex(context, name, keyPath, unique, multiEntry, exceptionState); in createIndex()
377 …teIndex(ExecutionContext* context, const String& name, const IDBKeyPath& keyPath, bool unique, boo… in createIndex() argument
[all …]
DIDBKeyPath.cpp125 bool IDBIsValidKeyPath(const String& keyPath) in IDBIsValidKeyPath() argument
129 IDBParseKeyPath(keyPath, keyPathElements, error); in IDBIsValidKeyPath()
133 void IDBParseKeyPath(const String& keyPath, Vector<String>& elements, IDBKeyPathParseError& error) in IDBParseKeyPath() argument
143 IDBKeyPathLexer lexer(keyPath); in IDBParseKeyPath()
DIDBCursor.cpp129 const IDBKeyPath& keyPath = objectStore->metadata().keyPath; in update() local
130 const bool usesInLineKeys = !keyPath.isNull(); in update()
132 …Key> keyPathKey = createIDBKeyFromScriptValueAndKeyPath(m_request->requestState(), value, keyPath); in update()
334 if (metadata.autoIncrement && !metadata.keyPath.isNull()) { in value()
335 value = IDBAny::create(m_value, m_primaryKey, metadata.keyPath); in value()
337 assertPrimaryKeyValidOrInjectable(&requestState, m_value, m_primaryKey, metadata.keyPath); in value()
DIDBAny.h73 …r<IDBAny> create(PassRefPtr<SharedBuffer> value, PassRefPtr<IDBKey> key, const IDBKeyPath& keyPath) in create() argument
75 return adoptRef(new IDBAny(value, key, keyPath)); in create()
110 const IDBKeyPath& keyPath() const;
DIDBAny.cpp113 const IDBKeyPath& IDBAny::keyPath() const in keyPath() function in WebCore::IDBAny
186 IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, PassRefPtr<IDBKey> key, const IDBKeyPath& keyPath) in IDBAny() argument
189 , m_idbKeyPath(keyPath) in IDBAny()
DIDBObjectStore.idl29 [CallWith=ExecutionContext] readonly attribute any keyPath;
42 …aisesException] IDBIndex createIndex(DOMString name, sequence<DOMString> keyPath, optional Diction…
43 …Context, RaisesException] IDBIndex createIndex(DOMString name, DOMString keyPath, optional Diction…
DWebIDBCallbacksImpl.cpp101 …BCallbacksImpl::onSuccess(const WebData& value, const WebIDBKey& key, const WebIDBKeyPath& keyPath) in onSuccess() argument
103 m_request->onSuccess(value, key, keyPath); in onSuccess()
DIDBRequest.cpp297 …ssRefPtr<SharedBuffer> prpValueBuffer, PassRefPtr<IDBKey> prpPrimaryKey, const IDBKeyPath& keyPath) in onSuccess() argument
304 ASSERT(keyPath == effectiveObjectStore(m_source)->metadata().keyPath); in onSuccess()
311 assertPrimaryKeyValidOrInjectable(&m_requestState, valueBuffer, primaryKey, keyPath); in onSuccess()
314 onSuccessInternal(IDBAny::create(valueBuffer, primaryKey, keyPath)); in onSuccess()
/external/chromium_org/third_party/WebKit/Source/web/
DWebIDBKeyPath.cpp38 WebIDBKeyPath WebIDBKeyPath::create(const WebString& keyPath) in create() argument
40 return WebIDBKeyPath(IDBKeyPath(keyPath)); in create()
43 WebIDBKeyPath WebIDBKeyPath::create(const WebVector<WebString>& keyPath) in create() argument
46 for (size_t i = 0; i < keyPath.size(); ++i) in create()
47 strings.append(keyPath[i]); in create()
56 void WebIDBKeyPath::assign(const WebIDBKeyPath& keyPath) in assign() argument
58 ASSERT(keyPath.m_private.get()); in assign()
59 m_private.reset(new IDBKeyPath(keyPath)); in assign()
DWebIDBMetadata.cpp52 webObjectStore.keyPath = objectStore.keyPath; in WebIDBMetadata()
63 webIndex.keyPath = index.keyPath; in WebIDBMetadata()
77 …adata objectStore(webObjectStore.name, webObjectStore.id, webObjectStore.keyPath, webObjectStore.a… in operator IDBDatabaseMetadata()
81 …IDBIndexMetadata index(webIndex.name, webIndex.id, webIndex.keyPath, webIndex.unique, webIndex.mul… in operator IDBDatabaseMetadata()
/external/chromium_org/third_party/WebKit/Source/bindings/v8/
DIDBBindingUtilitiesTest.cpp41 …RefPtr<IDBKey> checkKeyFromValueAndKeyPathInternal(const ScriptValue& value, const String& keyPath) in checkKeyFromValueAndKeyPathInternal() argument
43 IDBKeyPath idbKeyPath(keyPath); in checkKeyFromValueAndKeyPathInternal()
49 void checkKeyPathNullValue(const ScriptValue& value, const String& keyPath) in checkKeyPathNullValue() argument
51 RefPtr<IDBKey> idbKey = checkKeyFromValueAndKeyPathInternal(value, keyPath); in checkKeyPathNullValue()
55 bool injectKey(PassRefPtr<IDBKey> key, ScriptValue& value, const String& keyPath) in injectKey() argument
57 IDBKeyPath idbKeyPath(keyPath); in injectKey()
63 void checkInjection(PassRefPtr<IDBKey> prpKey, ScriptValue& value, const String& keyPath) in checkInjection() argument
66 bool result = injectKey(key, value, keyPath); in checkInjection()
68 RefPtr<IDBKey> extractedKey = checkKeyFromValueAndKeyPathInternal(value, keyPath); in checkInjection()
72 void checkInjectionFails(PassRefPtr<IDBKey> key, ScriptValue& value, const String& keyPath) in checkInjectionFails() argument
[all …]
DIDBBindingUtilities.cpp140 return toV8(impl->keyPath(), creationContext, isolate); in toV8()
144 bool injected = injectV8KeyIntoV8Value(key, value, impl->keyPath(), isolate); in toV8()
286 …eIDBKeyFromScriptValueAndKeyPath(const ScriptValue& value, const String& keyPath, v8::Isolate* iso… in createIDBKeyFromScriptValueAndKeyPath() argument
290 IDBParseKeyPath(keyPath, keyPathElements, error); in createIDBKeyFromScriptValueAndKeyPath()
302 …mScriptValueAndKeyPath(DOMRequestState* state, const ScriptValue& value, const IDBKeyPath& keyPath) in createIDBKeyFromScriptValueAndKeyPath() argument
305 ASSERT(!keyPath.isNull()); in createIDBKeyFromScriptValueAndKeyPath()
309 if (keyPath.type() == IDBKeyPath::ArrayType) { in createIDBKeyFromScriptValueAndKeyPath()
311 const Vector<String>& array = keyPath.array(); in createIDBKeyFromScriptValueAndKeyPath()
321 ASSERT(keyPath.type() == IDBKeyPath::StringType); in createIDBKeyFromScriptValueAndKeyPath()
322 return createIDBKeyFromScriptValueAndKeyPath(value, keyPath.string(), isolate); in createIDBKeyFromScriptValueAndKeyPath()
[all …]
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/
DIndexedDBModel.js111 WebInspector.IndexedDBModel.idbKeyPathFromKeyPath = function(keyPath) argument
114 switch (keyPath.type) {
119 idbKeyPath = keyPath.string;
122 idbKeyPath = keyPath.array;
309 …var objectStoreIDBKeyPath = WebInspector.IndexedDBModel.idbKeyPathFromKeyPath(objectStore.keyPath);
313 … var indexIDBKeyPath = WebInspector.IndexedDBModel.idbKeyPathFromKeyPath(index.keyPath);
448 WebInspector.IndexedDBModel.ObjectStore = function(name, keyPath, autoIncrement) argument
451 this.keyPath = keyPath;
462 return WebInspector.IndexedDBModel.keyPathStringFromIDBKeyPath(this.keyPath);
471 WebInspector.IndexedDBModel.Index = function(name, keyPath, unique, multiEntry) argument
[all …]
DIndexedDBViews.js146 var keyPath = this._isIndex ? this._index.keyPath : this._objectStore.keyPath;
150 …d: "key", titleDOMFragment: this._keyColumnHeaderFragment(WebInspector.UIString("Key"), keyPath)});
152 …: this._keyColumnHeaderFragment(WebInspector.UIString("Primary key"), this._objectStore.keyPath)});
164 _keyColumnHeaderFragment: function(prefix, keyPath) argument
168 if (keyPath === null)
172 if (keyPath instanceof Array) {
174 for (var i = 0; i < keyPath.length; ++i) {
177 keyColumnHeaderFragment.appendChild(this._keyPathStringFragment(keyPath[i]));
181 var keyPathString = /** @type {string} */ (keyPath);
/external/chromium_org/content/test/data/indexeddb/
Dbug_90635.js30 db.createObjectStore('store2', {keyPath: ''}); property
31 db.createObjectStore('store3', {keyPath: 'some_path'}); property
55 if (store1.keyPath !== null ||
56 store2.keyPath !== '' ||
57 store3.keyPath !== 'some_path') {
/external/chromium_org/third_party/WebKit/public/platform/
DWebIDBMetadata.h61 WebIDBKeyPath keyPath; member
67 : keyPath(WebIDBKeyPath::createNull()) in ObjectStore()
73 WebIDBKeyPath keyPath; member
78 : keyPath(WebIDBKeyPath::createNull()) in Index()
DWebIDBKeyPath.h45 WebIDBKeyPath(const WebIDBKeyPath& keyPath) { assign(keyPath); } in WebIDBKeyPath() argument
47 WebIDBKeyPath& operator=(const WebIDBKeyPath& keyPath)
49 assign(keyPath);
/external/clang/lib/Driver/
DWindowsToolChain.cpp83 static bool getSystemRegistryString(const char *keyPath, const char *valueName, in getSystemRegistryString() argument
93 if (strncmp(keyPath, "HKEY_CLASSES_ROOT\\", 18) == 0) { in getSystemRegistryString()
95 subKey = keyPath + 18; in getSystemRegistryString()
96 } else if (strncmp(keyPath, "HKEY_USERS\\", 11) == 0) { in getSystemRegistryString()
98 subKey = keyPath + 11; in getSystemRegistryString()
99 } else if (strncmp(keyPath, "HKEY_LOCAL_MACHINE\\", 19) == 0) { in getSystemRegistryString()
101 subKey = keyPath + 19; in getSystemRegistryString()
102 } else if (strncmp(keyPath, "HKEY_CURRENT_USER\\", 18) == 0) { in getSystemRegistryString()
104 subKey = keyPath + 18; in getSystemRegistryString()
/external/chromium_org/tools/perf/page_sets/endure/
Dindexeddb_app.js68 'sync-chunks', {keyPath: 'sequence', autoIncrement: true}); property
72 'docs', {keyPath: 'docid'}); property
77 'user-events', {keyPath: 'sequence', autoIncrement: true}); property
/external/clang/test/SemaObjC/
Dproperty-8.m33 - (void)observeValueForKeyPath:(NSString *)keyPath ofObject:(id)object change:(NSDictionary *)chang…
34 - (void)removeObserver:(NSObject *)observer forKeyPath:(NSString *)keyPath;
/external/chromium_org/third_party/WebKit/Source/core/inspector/
DInspectorIndexedDBAgent.cpp229 RefPtr<KeyPath> keyPath; in keyPathFromIDBKeyPath() local
232 keyPath = KeyPath::create().setType(KeyPath::Type::Null); in keyPathFromIDBKeyPath()
235 keyPath = KeyPath::create().setType(KeyPath::Type::String); in keyPathFromIDBKeyPath()
236 keyPath->setString(idbKeyPath.string()); in keyPathFromIDBKeyPath()
239 keyPath = KeyPath::create().setType(KeyPath::Type::Array); in keyPathFromIDBKeyPath()
244 keyPath->setArray(array); in keyPathFromIDBKeyPath()
251 return keyPath.release(); in keyPathFromIDBKeyPath()
283 .setKeyPath(keyPathFromIDBKeyPath(indexMetadata.keyPath)) in execute()
291 .setKeyPath(keyPathFromIDBKeyPath(objectStoreMetadata.keyPath)) in execute()

12