Home
last modified time | relevance | path

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

12

/external/chromium_org/third_party/WebKit/Source/modules/indexeddb/
DIDBKeyPathTest.cpp39 void checkKeyPath(const String& keyPath, const Vector<String>& expected, int parserError) in checkKeyPath() argument
41 IDBKeyPath idbKeyPath(keyPath); in checkKeyPath()
47 IDBParseKeyPath(keyPath, keyPathElements, error); in checkKeyPath()
59 String keyPath(""); in TEST() local
60 checkKeyPath(keyPath, expected, 0); in TEST()
66 String keyPath("foo"); in TEST() local
68 checkKeyPath(keyPath, expected, 0); in TEST()
74 String keyPath("foo.bar.baz"); in TEST() local
78 checkKeyPath(keyPath, expected, 0); in TEST()
84 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
DIDBObjectStore.h65 ScriptValue keyPath(ScriptState*) const;
78 …IDBIndex* createIndex(ScriptState* scriptState, const String& name, const String& keyPath, const I… in createIndex() argument
80 return createIndex(scriptState, name, IDBKeyPath(keyPath), options, exceptionState); in createIndex()
82 …ndex(ScriptState* scriptState, const String& name, const Vector<String>& keyPath, const IDBIndexPa… in createIndex() argument
84 return createIndex(scriptState, name, IDBKeyPath(keyPath), options, exceptionState); in createIndex()
DIDBDatabase.cpp200 IDBKeyPath keyPath; in createObjectStore() local
206 keyPath = IDBKeyPath(keyPathArray); in createObjectStore()
208 keyPath = IDBKeyPath(keyPathString); in createObjectStore()
213 return createObjectStore(name, keyPath, autoIncrement, exceptionState); in createObjectStore()
216 IDBObjectStore* IDBDatabase::createObjectStore(const String& name, const IDBKeyPath& keyPath, bool … in createObjectStore() argument
238 if (!keyPath.isNull() && !keyPath.isValid()) { in createObjectStore()
243 …if (autoIncrement && ((keyPath.type() == IDBKeyPath::StringType && keyPath.string().isEmpty()) || in createObjectStore()
254 …m_backend->createObjectStore(m_versionChangeTransaction->id(), objectStoreId, name, keyPath, autoI… in createObjectStore()
256 …IDBObjectStoreMetadata metadata(name, objectStoreId, keyPath, autoIncrement, WebIDBDatabase::minim… in createObjectStore()
DIDBObjectStore.cpp72 ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const in keyPath() function in blink::IDBObjectStore
74 return idbAnyToScriptValue(scriptState, IDBAny::create(m_metadata.keyPath)); in keyPath()
122 …Key* indexKey = createIDBKeyFromScriptValueAndKeyPath(isolate, objectValue, indexMetadata.keyPath); in generateIndexKeysForValue()
189 const IDBKeyPath& keyPath = m_metadata.keyPath; in put() local
190 const bool usesInLineKeys = !keyPath.isNull(); in put()
203 …IDBKey* keyPathKey = createIDBKeyFromScriptValueAndKeyPath(scriptState->isolate(), clone, keyPath); in put()
217 …IDBKey* keyPathKey = createIDBKeyFromScriptValueAndKeyPath(scriptState->isolate(), clone, keyPath); in put()
227 if (!canInjectIDBKeyIntoScriptValue(scriptState->isolate(), clone, keyPath)) { in put()
407 …ateIndex(ScriptState* scriptState, const String& name, const IDBKeyPath& keyPath, const IDBIndexPa… in createIndex() argument
426 if (!keyPath.isValid()) { in createIndex()
[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()
DIDBAny.h76 …r<SharedBuffer> value, const Vector<WebBlobInfo>* blobInfo, IDBKey* key, const IDBKeyPath& keyPath) in create() argument
78 return new IDBAny(value, blobInfo, key, keyPath); in create()
116 const IDBKeyPath& keyPath() const;
DIDBAny.cpp119 const IDBKeyPath& IDBAny::keyPath() const in keyPath() function in blink::IDBAny
199 …r<SharedBuffer> value, const Vector<WebBlobInfo>* blobInfo, IDBKey* key, const IDBKeyPath& keyPath) in IDBAny() argument
202 , m_idbKeyPath(keyPath) in IDBAny()
DIDBObjectStore.idl40 [CallWith=ScriptState] readonly attribute any keyPath;
53 …[CallWith=ScriptState, RaisesException] IDBIndex createIndex(DOMString name, DOMString keyPath, op…
54 …aisesException] IDBIndex createIndex(DOMString name, sequence<DOMString> keyPath, optional IDBInde…
DInspectorIndexedDBAgent.cpp233 RefPtr<KeyPath> keyPath; in keyPathFromIDBKeyPath() local
236 keyPath = KeyPath::create().setType(KeyPath::Type::Null); in keyPathFromIDBKeyPath()
239 keyPath = KeyPath::create().setType(KeyPath::Type::String); in keyPathFromIDBKeyPath()
240 keyPath->setString(idbKeyPath.string()); in keyPathFromIDBKeyPath()
243 keyPath = KeyPath::create().setType(KeyPath::Type::Array); in keyPathFromIDBKeyPath()
248 keyPath->setArray(array); in keyPathFromIDBKeyPath()
255 return keyPath.release(); in keyPathFromIDBKeyPath()
286 .setKeyPath(keyPathFromIDBKeyPath(indexMetadata.keyPath)) in execute()
294 .setKeyPath(keyPathFromIDBKeyPath(objectStoreMetadata.keyPath)) in execute()
DIDBRequest.cpp330 …uffer, PassOwnPtr<Vector<WebBlobInfo> > blobInfo, IDBKey* prpPrimaryKey, const IDBKeyPath& keyPath) in onSuccess() argument
336 ASSERT(keyPath == effectiveObjectStore(m_source)->metadata().keyPath); in onSuccess()
343 …imaryKeyValidOrInjectable(m_scriptState.get(), valueBuffer, m_blobInfo.get(), primaryKey, keyPath); in onSuccess()
346 onSuccessInternal(IDBAny::create(valueBuffer, m_blobInfo.get(), primaryKey, keyPath)); in onSuccess()
/external/chromium_org/third_party/WebKit/Source/bindings/modules/v8/
DIDBBindingUtilitiesTest.cpp39 …yFromValueAndKeyPathInternal(v8::Isolate* isolate, const ScriptValue& value, const String& keyPath) in checkKeyFromValueAndKeyPathInternal() argument
41 IDBKeyPath idbKeyPath(keyPath); in checkKeyFromValueAndKeyPathInternal()
47 void checkKeyPathNullValue(v8::Isolate* isolate, const ScriptValue& value, const String& keyPath) in checkKeyPathNullValue() argument
49 ASSERT_FALSE(checkKeyFromValueAndKeyPathInternal(isolate, value, keyPath)); in checkKeyPathNullValue()
52 bool injectKey(ScriptState* scriptState, IDBKey* key, ScriptValue& value, const String& keyPath) in injectKey() argument
54 IDBKeyPath idbKeyPath(keyPath); in injectKey()
60 …id checkInjection(ScriptState* scriptState, IDBKey* key, ScriptValue& value, const String& keyPath) in checkInjection() argument
62 bool result = injectKey(scriptState, key, value, keyPath); in checkInjection()
64 …IDBKey* extractedKey = checkKeyFromValueAndKeyPathInternal(scriptState->isolate(), value, keyPath); in checkInjection()
68 …eckInjectionFails(ScriptState* scriptState, IDBKey* key, ScriptValue& value, const String& keyPath) in checkInjectionFails() argument
[all …]
DIDBBindingUtilities.cpp154 return toV8(impl->keyPath(), creationContext, isolate); in toV8()
158 bool injected = injectV8KeyIntoV8Value(isolate, key, value, impl->keyPath()); in toV8()
307 …thInternal(v8::Isolate* isolate, const ScriptValue& value, const String& keyPath, bool allowExperi… in createIDBKeyFromScriptValueAndKeyPathInternal() argument
311 IDBParseKeyPath(keyPath, keyPathElements, error); in createIDBKeyFromScriptValueAndKeyPathInternal()
323 …ternal(v8::Isolate* isolate, const ScriptValue& value, const IDBKeyPath& keyPath, bool allowExperi… in createIDBKeyFromScriptValueAndKeyPathInternal() argument
325 ASSERT(!keyPath.isNull()); in createIDBKeyFromScriptValueAndKeyPathInternal()
327 if (keyPath.type() == IDBKeyPath::ArrayType) { in createIDBKeyFromScriptValueAndKeyPathInternal()
329 const Vector<String>& array = keyPath.array(); in createIDBKeyFromScriptValueAndKeyPathInternal()
339 ASSERT(keyPath.type() == IDBKeyPath::StringType); in createIDBKeyFromScriptValueAndKeyPathInternal()
340 …return createIDBKeyFromScriptValueAndKeyPathInternal(isolate, value, keyPath.string(), allowExperi… in createIDBKeyFromScriptValueAndKeyPathInternal()
[all …]
/external/chromium_org/third_party/WebKit/Source/web/
DWebIDBKeyPath.cpp36 WebIDBKeyPath WebIDBKeyPath::create(const WebString& keyPath) in create() argument
38 return WebIDBKeyPath(IDBKeyPath(keyPath)); in create()
41 WebIDBKeyPath WebIDBKeyPath::create(const WebVector<WebString>& keyPath) in create() argument
44 for (size_t i = 0; i < keyPath.size(); ++i) in create()
45 strings.append(keyPath[i]); in create()
54 void WebIDBKeyPath::assign(const WebIDBKeyPath& keyPath) in assign() argument
56 ASSERT(keyPath.m_private.get()); in assign()
57 m_private.reset(new IDBKeyPath(keyPath)); in assign()
DWebIDBMetadata.cpp50 webObjectStore.keyPath = objectStore.keyPath; in WebIDBMetadata()
61 webIndex.keyPath = index.keyPath; in WebIDBMetadata()
75 …adata objectStore(webObjectStore.name, webObjectStore.id, webObjectStore.keyPath, webObjectStore.a… in operator IDBDatabaseMetadata()
79 …IDBIndexMetadata index(webIndex.name, webIndex.id, webIndex.keyPath, webIndex.unique, webIndex.mul… in operator IDBDatabaseMetadata()
/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/Source/devtools/front_end/sdk/
DIndexedDBModel.js121 WebInspector.IndexedDBModel.idbKeyPathFromKeyPath = function(keyPath) argument
124 switch (keyPath.type) {
129 idbKeyPath = keyPath.string;
132 idbKeyPath = keyPath.array;
334 …var objectStoreIDBKeyPath = WebInspector.IndexedDBModel.idbKeyPathFromKeyPath(objectStore.keyPath);
338 … var indexIDBKeyPath = WebInspector.IndexedDBModel.idbKeyPathFromKeyPath(index.keyPath);
476 WebInspector.IndexedDBModel.ObjectStore = function(name, keyPath, autoIncrement) argument
479 this.keyPath = keyPath;
490 return WebInspector.IndexedDBModel.keyPathStringFromIDBKeyPath(this.keyPath);
501 WebInspector.IndexedDBModel.Index = function(name, keyPath, unique, multiEntry) argument
[all …]
/external/chromium_org/third_party/WebKit/public/platform/
DWebIDBMetadata.h59 WebIDBKeyPath keyPath; member
65 : keyPath(WebIDBKeyPath::createNull()) in ObjectStore()
71 WebIDBKeyPath keyPath; member
76 : 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.cpp89 static bool getSystemRegistryString(const char *keyPath, const char *valueName, in getSystemRegistryString() argument
102 if (strncmp(keyPath, "HKEY_CLASSES_ROOT\\", 18) == 0) { in getSystemRegistryString()
104 subKey = keyPath + 18; in getSystemRegistryString()
105 } else if (strncmp(keyPath, "HKEY_USERS\\", 11) == 0) { in getSystemRegistryString()
107 subKey = keyPath + 11; in getSystemRegistryString()
108 } else if (strncmp(keyPath, "HKEY_LOCAL_MACHINE\\", 19) == 0) { in getSystemRegistryString()
110 subKey = keyPath + 19; in getSystemRegistryString()
111 } else if (strncmp(keyPath, "HKEY_CURRENT_USER\\", 18) == 0) { in getSystemRegistryString()
113 subKey = keyPath + 18; in getSystemRegistryString()
/external/chromium_org/third_party/WebKit/Source/devtools/front_end/resources/
DIndexedDBViews.js145 var keyPath = this._isIndex ? this._index.keyPath : this._objectStore.keyPath;
149 …d: "key", titleDOMFragment: this._keyColumnHeaderFragment(WebInspector.UIString("Key"), keyPath)});
151 …: this._keyColumnHeaderFragment(WebInspector.UIString("Primary key"), this._objectStore.keyPath)});
163 _keyColumnHeaderFragment: function(prefix, keyPath) argument
167 if (keyPath === null)
171 if (keyPath instanceof Array) {
173 for (var i = 0; i < keyPath.length; ++i) {
176 keyColumnHeaderFragment.appendChild(this._keyPathStringFragment(keyPath[i]));
180 var keyPathString = /** @type {string} */ (keyPath);
/external/chromium_org/chrome/browser/ui/cocoa/
Dsprite_view.mm77 if ([imageLayer_ animationForKey:[spriteAnimation_ keyPath]] == nil)
79 forKey:[spriteAnimation_ keyPath]];
81 [imageLayer_ removeAnimationForKey:[spriteAnimation_ keyPath]];
90 [imageLayer_ removeAnimationForKey:[spriteAnimation_ keyPath]];
152 [CABasicAnimation animationWithKeyPath:[animation keyPath]];
/external/chromium_org/tools/perf/page_sets/endure/
Dindexeddb_app.js64 'sync-chunks', {keyPath: 'sequence', autoIncrement: true}); property
68 'docs', {keyPath: 'docid'}); property
73 '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/ui/file_manager/image_loader/
Dcache.js93 db.createObjectStore('metadata', {keyPath: 'key'}); property
94 db.createObjectStore('data', {keyPath: 'key'}); property
95 db.createObjectStore('settings', {keyPath: 'key'}); property

12