HomeSort by relevance Sort by last modified time
    Searched refs:keyPath (Results 1 - 25 of 46) 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.idl 32 [CallWith=ScriptState] readonly attribute any keyPath;
45 [CallWith=ScriptState, RaisesException] IDBIndex createIndex(DOMString name, DOMString keyPath, optional Dictionary options);
46 [CallWith=ScriptState, RaisesException] IDBIndex createIndex(DOMString name, sequence<DOMString> keyPath, optional Dictionary options);
IDBObjectStore.h 64 ScriptValue keyPath(ScriptState*) const;
77 IDBIndex* createIndex(ScriptState* scriptState, const String& name, const String& keyPath, const Dictionary& options, ExceptionState& exceptionState)
79 return createIndex(scriptState, name, IDBKeyPath(keyPath), options, exceptionState);
81 IDBIndex* createIndex(ScriptState* scriptState, const String& name, const Vector<String>& keyPath, const Dictionary& options, ExceptionState& exceptionState)
83 return createIndex(scriptState, name, IDBKeyPath(keyPath), options, exceptionState);
IDBAny.h 83 static IDBAny* create(PassRefPtr<SharedBuffer> value, const Vector<blink::WebBlobInfo>* blobInfo, IDBKey* key, const IDBKeyPath& keyPath)
85 return new IDBAny(value, blobInfo, key, keyPath);
123 const IDBKeyPath& keyPath() const;
IDBDatabase.cpp 201 IDBKeyPath keyPath;
206 if (options.get("keyPath", keyPathArray))
207 keyPath = IDBKeyPath(keyPathArray);
208 else if (options.getWithUndefinedOrNullCheck("keyPath", keyPathString))
209 keyPath = IDBKeyPath(keyPathString);
214 return createObjectStore(name, keyPath, autoIncrement, exceptionState);
217 IDBObjectStore* IDBDatabase::createObjectStore(const String& name, const IDBKeyPath& keyPath, bool autoIncrement, ExceptionState& exceptionState)
239 if (!keyPath.isNull() && !keyPath.isValid()) {
240 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 31 [CallWith=ScriptState] readonly attribute any keyPath;
IDBAny.cpp 119 const IDBKeyPath& IDBAny::keyPath() const
199 IDBAny::IDBAny(PassRefPtr<SharedBuffer> value, const Vector<blink::WebBlobInfo>* blobInfo, IDBKey* key, const IDBKeyPath& keyPath)
202 , m_idbKeyPath(keyPath)
WebIDBCallbacksImpl.cpp 112 void WebIDBCallbacksImpl::onSuccess(const WebData& value, const WebVector<WebBlobInfo>& webBlobInfo, const WebIDBKey& key, const WebIDBKeyPath& keyPath)
114 m_request->onSuccess(value, ConvertBlobInfo(webBlobInfo), key, keyPath);
IDBIndex.h 58 ScriptValue keyPath(ScriptState*) const;
IDBCursor.cpp 142 const IDBKeyPath& keyPath = objectStore->metadata().keyPath;
143 const bool usesInLineKeys = !keyPath.isNull();
145 IDBKey* keyPathKey = createIDBKeyFromScriptValueAndKeyPath(scriptState->isolate(), value, keyPath);
331 if (metadata.autoIncrement && !metadata.keyPath.isNull()) {
332 value = IDBAny::create(m_value, m_blobInfo.get(), m_primaryKey, metadata.keyPath);
334 assertPrimaryKeyValidOrInjectable(scriptState, m_value, m_blobInfo.get(), m_primaryKey, metadata.keyPath);
IDBObjectStore.cpp 73 ScriptValue IDBObjectStore::keyPath(ScriptState* scriptState) const
75 return idbAnyToScriptValue(scriptState, IDBAny::create(m_metadata.keyPath));
123 IDBKey* indexKey = createIDBKeyFromScriptValueAndKeyPath(isolate, objectValue, indexMetadata.keyPath);
185 const IDBKeyPath& keyPath = m_metadata.keyPath;
186 const bool usesInLineKeys = !keyPath.isNull();
198 IDBKey* keyPathKey = createIDBKeyFromScriptValueAndKeyPath(scriptState->isolate(), value, keyPath);
208 if (!canInjectIDBKeyIntoScriptValue(scriptState->isolate(), value, keyPath)) {
386 IDBIndex* IDBObjectStore::createIndex(ScriptState* scriptState, const String& name, const IDBKeyPath& keyPath, const Dictionary& options, ExceptionState& exceptionState)
394 return createIndex(scriptState, 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 39 IDBKey* checkKeyFromValueAndKeyPathInternal(v8::Isolate* isolate, const ScriptValue& value, const String& keyPath)
41 IDBKeyPath idbKeyPath(keyPath);
47 void checkKeyPathNullValue(v8::Isolate* isolate, const ScriptValue& value, const String& keyPath)
49 ASSERT_FALSE(checkKeyFromValueAndKeyPathInternal(isolate, value, keyPath));
52 bool injectKey(ScriptState* scriptState, IDBKey* key, ScriptValue& value, const String& keyPath)
54 IDBKeyPath idbKeyPath(keyPath);
60 void checkInjection(ScriptState* scriptState, IDBKey* key, ScriptValue& value, const String& keyPath)
62 bool result = injectKey(scriptState, key, value, keyPath);
64 IDBKey* extractedKey = checkKeyFromValueAndKeyPathInternal(scriptState->isolate(), value, keyPath);
68 void checkInjectionFails(ScriptState* scriptState, IDBKey* key, ScriptValue& value, const String& keyPath)
    [all...]
IDBBindingUtilities.cpp 154 return toV8(impl->keyPath(), creationContext, isolate);
158 bool injected = injectV8KeyIntoV8Value(isolate, key, value, impl->keyPath());
307 static IDBKey* createIDBKeyFromScriptValueAndKeyPathInternal(v8::Isolate* isolate, const ScriptValue& value, const String& keyPath, bool allowExperimentalTypes)
311 IDBParseKeyPath(keyPath, keyPathElements, error);
323 static IDBKey* createIDBKeyFromScriptValueAndKeyPathInternal(v8::Isolate* isolate, const ScriptValue& value, const IDBKeyPath& keyPath, bool allowExperimentalTypes = false)
325 ASSERT(!keyPath.isNull());
327 if (keyPath.type() == IDBKeyPath::ArrayType) {
329 const Vector<String>& array = keyPath.array();
339 ASSERT(keyPath.type() == IDBKeyPath::StringType);
340 return createIDBKeyFromScriptValueAndKeyPathInternal(isolate, value, keyPath.string(), allowExperimentalTypes)
    [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 89 static bool getSystemRegistryString(const char *keyPath, const char *valueName,
102 if (strncmp(keyPath, "HKEY_CLASSES_ROOT\\", 18) == 0) {
104 subKey = keyPath + 18;
105 } else if (strncmp(keyPath, "HKEY_USERS\\", 11) == 0) {
107 subKey = keyPath + 11;
108 } else if (strncmp(keyPath, "HKEY_LOCAL_MACHINE\\", 19) == 0) {
110 subKey = keyPath + 19;
111 } else if (strncmp(keyPath, "HKEY_CURRENT_USER\\", 18) == 0) {
113 subKey = keyPath + 18;
  /external/chromium_org/third_party/WebKit/Source/devtools/front_end/sdk/
IndexedDBModel.js 118 * @param {!IndexedDBAgent.KeyPath} keyPath
121 WebInspector.IndexedDBModel.idbKeyPathFromKeyPath = function(keyPath)
124 switch (keyPath.type) {
129 idbKeyPath = keyPath.string;
132 idbKeyPath = keyPath.array;
323 var objectStoreIDBKeyPath = WebInspector.IndexedDBModel.idbKeyPathFromKeyPath(objectStore.keyPath);
327 var indexIDBKeyPath = WebInspector.IndexedDBModel.idbKeyPathFromKeyPath(index.keyPath);
462 * @param {*} keyPath
465 WebInspector.IndexedDBModel.ObjectStore = function(name, keyPath, autoIncrement
    [all...]
  /external/chromium_org/third_party/WebKit/Source/devtools/front_end/resources/
IndexedDBViews.js 145 var keyPath = this._isIndex ? this._index.keyPath : this._objectStore.keyPath;
149 columns.push({id: "key", titleDOMFragment: this._keyColumnHeaderFragment(WebInspector.UIString("Key"), keyPath)});
151 columns.push({id: "primaryKey", titleDOMFragment: this._keyColumnHeaderFragment(WebInspector.UIString("Primary key"), this._objectStore.keyPath)});
160 * @param {*} keyPath
163 _keyColumnHeaderFragment: function(prefix, keyPath)
167 if (keyPath === null)
171 if (keyPath instanceof Array) {
173 for (var i = 0; i < keyPath.length; ++i)
    [all...]

Completed in 361 milliseconds

1 2