/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.idl | 29 [CallWith=ExecutionContext] readonly attribute any keyPath; 42 [CallWith=ExecutionContext, RaisesException] IDBIndex createIndex(DOMString name, sequence<DOMString> keyPath, optional Dictionary options); 43 [CallWith=ExecutionContext, RaisesException] IDBIndex createIndex(DOMString name, DOMString keyPath, optional Dictionary options);
|
IDBObjectStore.h | 62 ScriptValue keyPath(ExecutionContext*) const; 75 PassRefPtr<IDBIndex> createIndex(ExecutionContext* context, const String& name, const String& keyPath, const Dictionary& options, ExceptionState& exceptionState) { return createIndex(context, name, IDBKeyPath(keyPath), options, exceptionState); } 76 PassRefPtr<IDBIndex> createIndex(ExecutionContext* context, const String& name, const Vector<String>& keyPath, const Dictionary& options, ExceptionState& exceptionState) { return createIndex(context, name, IDBKeyPath(keyPath), options, exceptionState); }
|
IDBAny.h | 73 static PassRefPtr<IDBAny> create(PassRefPtr<SharedBuffer> value, PassRefPtr<IDBKey> key, const IDBKeyPath& keyPath) 75 return adoptRef(new IDBAny(value, key, keyPath)); 110 const IDBKeyPath& keyPath() const;
|
IDBDatabase.cpp | 174 IDBKeyPath keyPath; 179 if (options.get("keyPath", keyPathArray)) 180 keyPath = IDBKeyPath(keyPathArray); 181 else if (options.getWithUndefinedOrNullCheck("keyPath", keyPathString)) 182 keyPath = IDBKeyPath(keyPathString); 187 return createObjectStore(name, keyPath, autoIncrement, exceptionState); 190 PassRefPtr<IDBObjectStore> IDBDatabase::createObjectStore(const String& name, const IDBKeyPath& keyPath, bool autoIncrement, ExceptionState& exceptionState) 212 if (!keyPath.isNull() && !keyPath.isValid()) { 213 exceptionState.throwDOMException(SyntaxError, "The keyPath option is not a valid key path.") [all...] |
IDBKeyPath.cpp | 125 bool IDBIsValidKeyPath(const String& keyPath) 129 IDBParseKeyPath(keyPath, keyPathElements, error); 133 void IDBParseKeyPath(const String& keyPath, Vector<String>& elements, IDBKeyPathParseError& error) 143 IDBKeyPathLexer lexer(keyPath);
|
IDBIndex.idl | 30 [CallWith=ExecutionContext] readonly attribute any keyPath;
|
IDBAny.cpp | 113 const IDBKeyPath& IDBAny::keyPath() const 186 IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, PassRefPtr<IDBKey> key, const IDBKeyPath& keyPath) 189 , m_idbKeyPath(keyPath)
|
WebIDBCallbacksImpl.cpp | 101 void WebIDBCallbacksImpl::onSuccess(const WebData& value, const WebIDBKey& key, const WebIDBKeyPath& keyPath) 103 m_request->onSuccess(value, key, keyPath);
|
IDBIndex.h | 56 ScriptValue keyPath(ExecutionContext*) const;
|
IDBCursor.cpp | 129 const IDBKeyPath& keyPath = objectStore->metadata().keyPath; 130 const bool usesInLineKeys = !keyPath.isNull(); 132 RefPtr<IDBKey> keyPathKey = createIDBKeyFromScriptValueAndKeyPath(m_request->requestState(), value, keyPath); 334 if (metadata.autoIncrement && !metadata.keyPath.isNull()) { 335 value = IDBAny::create(m_value, m_primaryKey, metadata.keyPath); 337 assertPrimaryKeyValidOrInjectable(&requestState, m_value, m_primaryKey, metadata.keyPath);
|
IDBObjectStore.cpp | 63 ScriptValue IDBObjectStore::keyPath(ExecutionContext* context) const 66 return idbAnyToScriptValue(&requestState, IDBAny::create(m_metadata.keyPath)); 110 RefPtr<IDBKey> indexKey = createIDBKeyFromScriptValueAndKeyPath(requestState, objectValue, indexMetadata.keyPath); 182 const IDBKeyPath& keyPath = m_metadata.keyPath; 183 const bool usesInLineKeys = !keyPath.isNull(); 198 RefPtr<IDBKey> keyPathKey = createIDBKeyFromScriptValueAndKeyPath(&requestState, value, keyPath); 208 if (!canInjectIDBKeyIntoScriptValue(&requestState, value, keyPath)) { 366 PassRefPtr<IDBIndex> IDBObjectStore::createIndex(ExecutionContext* context, const String& name, const IDBKeyPath& keyPath, const Dictionary& options, ExceptionState& exceptionState) 374 return createIndex(context, name, keyPath, unique, multiEntry, exceptionState) [all...] |
/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);
|
/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); 63 void checkInjection(PassRefPtr<IDBKey> prpKey, ScriptValue& value, const String& keyPath) 66 bool result = injectKey(key, value, keyPath); 68 RefPtr<IDBKey> extractedKey = checkKeyFromValueAndKeyPathInternal(value, keyPath); 72 void checkInjectionFails(PassRefPtr<IDBKey> key, ScriptValue& value, const String& keyPath) [all...] |
IDBBindingUtilities.cpp | 140 return toV8(impl->keyPath(), creationContext, isolate); 144 bool injected = injectV8KeyIntoV8Value(key, value, impl->keyPath(), isolate); 286 static PassRefPtr<IDBKey> createIDBKeyFromScriptValueAndKeyPath(const ScriptValue& value, const String& keyPath, v8::Isolate* isolate) 290 IDBParseKeyPath(keyPath, keyPathElements, error); 302 PassRefPtr<IDBKey> createIDBKeyFromScriptValueAndKeyPath(DOMRequestState* state, const ScriptValue& value, const IDBKeyPath& keyPath) 305 ASSERT(!keyPath.isNull()); 309 if (keyPath.type() == IDBKeyPath::ArrayType) { 311 const Vector<String>& array = keyPath.array(); 321 ASSERT(keyPath.type() == IDBKeyPath::StringType); 322 return createIDBKeyFromScriptValueAndKeyPath(value, keyPath.string(), isolate) [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') {
|
/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; 309 var objectStoreIDBKeyPath = WebInspector.IndexedDBModel.idbKeyPathFromKeyPath(objectStore.keyPath); 313 var indexIDBKeyPath = WebInspector.IndexedDBModel.idbKeyPathFromKeyPath(index.keyPath); 446 * @param {*} keyPath 448 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...] |