Changeset 69123 in webkit
- Timestamp:
- Oct 5, 2010 10:17:36 AM (14 years ago)
- Location:
- trunk
- Files:
-
- 17 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/LayoutTests/ChangeLog
r69121 r69123 1 2010-10-04 Jeremy Orlow <jorlow@chromium.org> 2 3 Reviewed by Nate Chapin. 4 5 Rename get* and open*Cursor per the spec on IDBIndex 6 https://bugs.webkit.org/show_bug.cgi?id=46906 7 8 The spec changed so that: 9 IDBIndex.get -> getKey 10 IDBIndex.getObject -> get 11 IDBIndex.openCursor -> openKeyCursor 12 IDBIndex.openObjectCursor -> openCursor 13 14 * storage/indexeddb/index-basics-expected.txt: 15 * storage/indexeddb/index-basics.html: 16 * storage/indexeddb/index-cursor.html: 17 1 18 2010-10-04 Andrei Popescu <andreip@google.com> 2 19 -
trunk/LayoutTests/storage/indexeddb/index-basics-expected.txt
r69121 r69123 53 53 PASS 'unique' in indexObject is true 54 54 PASS indexObject.unique is false 55 PASS 'open ObjectCursor' in indexObject is true55 PASS 'openKeyCursor' in indexObject is true 56 56 PASS 'openCursor' in indexObject is true 57 PASS 'get Object' in indexObject is true57 PASS 'getKey' in indexObject is true 58 58 PASS 'get' in indexObject is true 59 59 store.add({x: 'value', y: 'zzz'}, 'key') … … 91 91 PASS event.target.readyState is event.target.DONE 92 92 93 indexObject.getKey('value') 94 PASS 'onsuccess' in result is true 95 PASS 'onerror' in result is true 96 PASS 'readyState' in result is true 97 An event should fire shortly... 98 99 Success event fired: 100 PASS 'result' in event is true 101 PASS 'code' in event is false 102 PASS 'message' in event is false 103 PASS 'source' in event is true 104 PASS event.source != null is true 105 PASS 'onsuccess' in event.target is true 106 PASS 'onerror' in event.target is true 107 PASS 'readyState' in event.target is true 108 PASS event.target.readyState is event.target.DONE 109 110 PASS event.result is "key" 93 111 indexObject.get('value') 94 PASS 'onsuccess' in result is true95 PASS 'onerror' in result is true96 PASS 'readyState' in result is true97 An event should fire shortly...98 99 Success event fired:100 PASS 'result' in event is true101 PASS 'code' in event is false102 PASS 'message' in event is false103 PASS 'source' in event is true104 PASS event.source != null is true105 PASS 'onsuccess' in event.target is true106 PASS 'onerror' in event.target is true107 PASS 'readyState' in event.target is true108 PASS event.target.readyState is event.target.DONE109 110 PASS event.result is "key"111 indexObject.getObject('value')112 112 PASS 'onsuccess' in result is true 113 113 PASS 'onerror' in result is true … … 128 128 PASS event.result.x is "value" 129 129 PASS event.result.y is "zzz" 130 indexObject.get ('does not exist')130 indexObject.getKey('does not exist') 131 131 PASS 'onsuccess' in result is true 132 132 PASS 'onerror' in result is true … … 146 146 147 147 PASS event.code is IDBDatabaseException.NOT_FOUND_ERR 148 indexObject.get Object('does not exist')148 indexObject.get('does not exist') 149 149 PASS 'onsuccess' in result is true 150 150 PASS 'onerror' in result is true … … 164 164 165 165 PASS event.code is IDBDatabaseException.NOT_FOUND_ERR 166 indexObject.open Cursor()166 indexObject.openKeyCursor() 167 167 PASS 'onsuccess' in result is true 168 168 PASS 'onerror' in result is true … … 222 222 223 223 PASS event.result === null is true 224 indexObject.open ObjectCursor()224 indexObject.openCursor() 225 225 PASS 'onsuccess' in result is true 226 226 PASS 'onerror' in result is true -
trunk/LayoutTests/storage/indexeddb/index-basics.html
r69121 r69123 62 62 shouldBeTrue("'unique' in indexObject"); 63 63 shouldBeFalse("indexObject.unique"); 64 shouldBeTrue("'open ObjectCursor' in indexObject");64 shouldBeTrue("'openKeyCursor' in indexObject"); 65 65 shouldBeTrue("'openCursor' in indexObject"); 66 shouldBeTrue("'get Object' in indexObject");66 shouldBeTrue("'getKey' in indexObject"); 67 67 shouldBeTrue("'get' in indexObject"); 68 68 … … 87 87 verifySuccessEvent(event); 88 88 89 result = evalAndLog("indexObject.getKey('value')"); 90 verifyResult(result); 91 result.onsuccess = getObjectData; 92 result.onerror = unexpectedErrorCallback; 93 } 94 95 function getObjectData() 96 { 97 verifySuccessEvent(event); 98 shouldBeEqualToString("event.result", "key"); 99 89 100 result = evalAndLog("indexObject.get('value')"); 90 verifyResult(result);91 result.onsuccess = getObjectData;92 result.onerror = unexpectedErrorCallback;93 }94 95 function getObjectData()96 {97 verifySuccessEvent(event);98 shouldBeEqualToString("event.result", "key");99 100 result = evalAndLog("indexObject.getObject('value')");101 101 verifyResult(result); 102 102 result.onsuccess = getDataFail; … … 110 110 shouldBeEqualToString("event.result.y", "zzz"); 111 111 112 result = evalAndLog("indexObject.get ('does not exist')");112 result = evalAndLog("indexObject.getKey('does not exist')"); 113 113 verifyResult(result); 114 114 result.onsuccess = unexpectedSuccessCallback; … … 121 121 shouldBe("event.code", "IDBDatabaseException.NOT_FOUND_ERR"); 122 122 123 result = evalAndLog("indexObject.get Object('does not exist')");123 result = evalAndLog("indexObject.get('does not exist')"); 124 124 verifyResult(result); 125 125 result.onsuccess = unexpectedSuccessCallback; 126 result.onerror = open Cursor;127 } 128 129 function open Cursor()126 result.onerror = openKeyCursor; 127 } 128 129 function openKeyCursor() 130 130 { 131 131 verifyErrorEvent(event); 132 132 shouldBe("event.code", "IDBDatabaseException.NOT_FOUND_ERR"); 133 133 134 window.result = evalAndLog("indexObject.open Cursor()");134 window.result = evalAndLog("indexObject.openKeyCursor()"); 135 135 verifyResult(result); 136 136 result.onsuccess = cursor1Continue; … … 169 169 shouldBeTrue("event.result === null"); 170 170 171 window.result = evalAndLog("indexObject.open ObjectCursor()");171 window.result = evalAndLog("indexObject.openCursor()"); 172 172 verifyResult(result); 173 173 result.onsuccess = cursor2Continue; -
trunk/LayoutTests/storage/indexeddb/index-cursor.html
r69121 r69123 187 187 keyRange = IDBKeyRange.rightBound(testData[upper], upperIsOpen); 188 188 189 var request = indexObject.open Cursor(keyRange, ascending ? IDBCursor.NEXT : IDBCursor.PREV);189 var request = indexObject.openKeyCursor(keyRange, ascending ? IDBCursor.NEXT : IDBCursor.PREV); 190 190 request.onsuccess = cursorIteration; 191 191 request.onerror = unexpectedErrorCallback; -
trunk/WebCore/ChangeLog
r69122 r69123 1 2010-10-04 Jeremy Orlow <jorlow@chromium.org> 2 3 Reviewed by Nate Chapin. 4 5 Rename get* and open*Cursor per the spec on IDBIndex 6 https://bugs.webkit.org/show_bug.cgi?id=46906 7 8 The spec changed so that: 9 IDBIndex.get -> getKey 10 IDBIndex.getObject -> get 11 IDBIndex.openCursor -> openKeyCursor 12 IDBIndex.openObjectCursor -> openCursor 13 14 Existing tests cover since this is just renaming stuff. 15 16 * storage/IDBIndex.cpp: 17 (WebCore::IDBIndex::openCursor): 18 (WebCore::IDBIndex::openKeyCursor): 19 (WebCore::IDBIndex::get): 20 (WebCore::IDBIndex::getKey): 21 * storage/IDBIndex.h: 22 * storage/IDBIndex.idl: 23 * storage/IDBIndexBackendImpl.cpp: 24 (WebCore::IDBIndexBackendImpl::openCursor): 25 (WebCore::IDBIndexBackendImpl::openKeyCursor): 26 (WebCore::IDBIndexBackendImpl::get): 27 (WebCore::IDBIndexBackendImpl::getKey): 28 * storage/IDBIndexBackendImpl.h: 29 * storage/IDBIndexBackendInterface.h: 30 1 31 2010-10-05 Keith Kyzivat <keith.kyzivat@nokia.com> 2 32 -
trunk/WebCore/storage/IDBIndex.cpp
r68795 r69123 50 50 } 51 51 52 PassRefPtr<IDBRequest> IDBIndex::openObjectCursor(ScriptExecutionContext* context, PassRefPtr<IDBKeyRange> keyRange, unsigned short direction)53 {54 RefPtr<IDBRequest> request = IDBRequest::create(context, IDBAny::create(this), m_transaction.get());55 m_backend->openObjectCursor(keyRange, direction, request, m_transaction.get());56 return request;57 }58 59 52 PassRefPtr<IDBRequest> IDBIndex::openCursor(ScriptExecutionContext* context, PassRefPtr<IDBKeyRange> keyRange, unsigned short direction) 60 53 { … … 64 57 } 65 58 66 PassRefPtr<IDBRequest> IDBIndex:: getObject(ScriptExecutionContext* context, PassRefPtr<IDBKey> key)59 PassRefPtr<IDBRequest> IDBIndex::openKeyCursor(ScriptExecutionContext* context, PassRefPtr<IDBKeyRange> keyRange, unsigned short direction) 67 60 { 68 61 RefPtr<IDBRequest> request = IDBRequest::create(context, IDBAny::create(this), m_transaction.get()); 69 m_backend-> getObject(key, request, m_transaction.get());62 m_backend->openKeyCursor(keyRange, direction, request, m_transaction.get()); 70 63 return request; 71 64 } … … 78 71 } 79 72 73 PassRefPtr<IDBRequest> IDBIndex::getKey(ScriptExecutionContext* context, PassRefPtr<IDBKey> key) 74 { 75 RefPtr<IDBRequest> request = IDBRequest::create(context, IDBAny::create(this), m_transaction.get()); 76 m_backend->getKey(key, request, m_transaction.get()); 77 return request; 78 } 79 80 80 } // namespace WebCore 81 81 -
trunk/WebCore/storage/IDBIndex.h
r68795 r69123 50 50 bool unique() const { return m_backend->unique(); } 51 51 52 PassRefPtr<IDBRequest> openObjectCursor(ScriptExecutionContext*, PassRefPtr<IDBKeyRange> = 0, unsigned short direction = IDBCursor::NEXT);53 52 PassRefPtr<IDBRequest> openCursor(ScriptExecutionContext*, PassRefPtr<IDBKeyRange> = 0, unsigned short direction = IDBCursor::NEXT); 54 PassRefPtr<IDBRequest> getObject(ScriptExecutionContext*, PassRefPtr<IDBKey>);53 PassRefPtr<IDBRequest> openKeyCursor(ScriptExecutionContext*, PassRefPtr<IDBKeyRange> = 0, unsigned short direction = IDBCursor::NEXT); 55 54 PassRefPtr<IDBRequest> get(ScriptExecutionContext*, PassRefPtr<IDBKey>); 55 PassRefPtr<IDBRequest> getKey(ScriptExecutionContext*, PassRefPtr<IDBKey>); 56 56 57 57 private: -
trunk/WebCore/storage/IDBIndex.idl
r67600 r69123 35 35 36 36 // FIXME: All of these should raise on certain errors. 37 [CallWith=ScriptExecutionContext] IDBRequest openObjectCursor(in [Optional] IDBKeyRange range, in [Optional] unsigned short direction);38 37 [CallWith=ScriptExecutionContext] IDBRequest openCursor(in [Optional] IDBKeyRange range, in [Optional] unsigned short direction); 39 [CallWith=ScriptExecutionContext] IDBRequest getObject(in IDBKey key);38 [CallWith=ScriptExecutionContext] IDBRequest openKeyCursor(in [Optional] IDBKeyRange range, in [Optional] unsigned short direction); 40 39 [CallWith=ScriptExecutionContext] IDBRequest get(in IDBKey key); 40 [CallWith=ScriptExecutionContext] IDBRequest getKey(in IDBKey key); 41 41 }; 42 42 -
trunk/WebCore/storage/IDBIndexBackendImpl.cpp
r69121 r69123 111 111 } 112 112 113 void IDBIndexBackendImpl::open ObjectCursor(PassRefPtr<IDBKeyRange> prpKeyRange, unsigned short direction, PassRefPtr<IDBCallbacks> prpCallbacks, IDBTransactionBackendInterface* transactionPtr)113 void IDBIndexBackendImpl::openCursor(PassRefPtr<IDBKeyRange> prpKeyRange, unsigned short direction, PassRefPtr<IDBCallbacks> prpCallbacks, IDBTransactionBackendInterface* transactionPtr) 114 114 { 115 115 RefPtr<IDBIndexBackendImpl> index = this; … … 121 121 } 122 122 123 void IDBIndexBackendImpl::open Cursor(PassRefPtr<IDBKeyRange> prpKeyRange, unsigned short direction, PassRefPtr<IDBCallbacks> prpCallbacks, IDBTransactionBackendInterface* transactionPtr)123 void IDBIndexBackendImpl::openKeyCursor(PassRefPtr<IDBKeyRange> prpKeyRange, unsigned short direction, PassRefPtr<IDBCallbacks> prpCallbacks, IDBTransactionBackendInterface* transactionPtr) 124 124 { 125 125 RefPtr<IDBIndexBackendImpl> index = this; … … 156 156 } 157 157 158 void IDBIndexBackendImpl::get Object(PassRefPtr<IDBKey> prpKey, PassRefPtr<IDBCallbacks> prpCallbacks, IDBTransactionBackendInterface* transaction)158 void IDBIndexBackendImpl::get(PassRefPtr<IDBKey> prpKey, PassRefPtr<IDBCallbacks> prpCallbacks, IDBTransactionBackendInterface* transaction) 159 159 { 160 160 RefPtr<IDBIndexBackendImpl> index = this; … … 165 165 } 166 166 167 void IDBIndexBackendImpl::get (PassRefPtr<IDBKey> prpKey, PassRefPtr<IDBCallbacks> prpCallbacks, IDBTransactionBackendInterface* transaction)167 void IDBIndexBackendImpl::getKey(PassRefPtr<IDBKey> prpKey, PassRefPtr<IDBCallbacks> prpCallbacks, IDBTransactionBackendInterface* transaction) 168 168 { 169 169 RefPtr<IDBIndexBackendImpl> index = this; -
trunk/WebCore/storage/IDBIndexBackendImpl.h
r69121 r69123 65 65 virtual bool unique() { return m_unique; } 66 66 67 virtual void openObjectCursor(PassRefPtr<IDBKeyRange>, unsigned short direction, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*);68 67 virtual void openCursor(PassRefPtr<IDBKeyRange>, unsigned short direction, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*); 69 virtual void getObject(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*);68 virtual void openKeyCursor(PassRefPtr<IDBKeyRange>, unsigned short direction, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*); 70 69 virtual void get(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*); 70 virtual void getKey(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*); 71 71 72 72 IDBObjectStoreBackendImpl* objectStore() const { return m_objectStore.get(); } -
trunk/WebCore/storage/IDBIndexBackendInterface.h
r68795 r69123 48 48 virtual bool unique() = 0; 49 49 50 virtual void openObjectCursor(PassRefPtr<IDBKeyRange>, unsigned short direction, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*) = 0;51 50 virtual void openCursor(PassRefPtr<IDBKeyRange>, unsigned short direction, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*) = 0; 52 virtual void getObject(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*) = 0;51 virtual void openKeyCursor(PassRefPtr<IDBKeyRange>, unsigned short direction, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*) = 0; 53 52 virtual void get(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*) = 0; 53 virtual void getKey(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*) = 0; 54 54 }; 55 55 -
trunk/WebKit/chromium/ChangeLog
r69121 r69123 1 2010-10-04 Jeremy Orlow <jorlow@chromium.org> 2 3 Reviewed by Nate Chapin. 4 5 Rename get* and open*Cursor per the spec on IDBIndex 6 https://bugs.webkit.org/show_bug.cgi?id=46906 7 8 The spec changed so that: 9 IDBIndex.get -> getKey 10 IDBIndex.getObject -> get 11 IDBIndex.openCursor -> openKeyCursor 12 IDBIndex.openObjectCursor -> openCursor 13 14 * public/WebIDBIndex.h: 15 (WebKit::WebIDBIndex::openCursor): 16 (WebKit::WebIDBIndex::openKeyCursor): 17 (WebKit::WebIDBIndex::get): 18 (WebKit::WebIDBIndex::getKey): 19 * src/IDBIndexBackendProxy.cpp: 20 (WebCore::IDBIndexBackendProxy::openCursor): 21 (WebCore::IDBIndexBackendProxy::openKeyCursor): 22 (WebCore::IDBIndexBackendProxy::get): 23 (WebCore::IDBIndexBackendProxy::getKey): 24 * src/IDBIndexBackendProxy.h: 25 * src/WebIDBIndexImpl.cpp: 26 (WebKit::WebIDBIndexImpl::openObjectCursor): 27 (WebKit::WebIDBIndexImpl::openKeyCursor): 28 (WebKit::WebIDBIndexImpl::getObject): 29 (WebKit::WebIDBIndexImpl::getKey): 30 * src/WebIDBIndexImpl.h: 31 1 32 2010-10-04 Andrei Popescu <andreip@google.com> 2 33 -
trunk/WebKit/chromium/public/WebIDBIndex.h
r68795 r69123 62 62 } 63 63 64 // FIXME: openObjectCursor -> openCursor and getObject -> get. 64 65 virtual void openObjectCursor(const WebIDBKeyRange&, unsigned short direction, WebIDBCallbacks*, const WebIDBTransaction&) { WEBKIT_ASSERT_NOT_REACHED(); } 65 virtual void openCursor(const WebIDBKeyRange&, unsigned short direction, WebIDBCallbacks*, const WebIDBTransaction&) { WEBKIT_ASSERT_NOT_REACHED(); } 66 virtual void openCursor(const WebIDBKeyRange& range, unsigned short direction, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction) 67 { 68 openKeyCursor(range, direction, callbacks, transaction); 69 } 70 virtual void openKeyCursor(const WebIDBKeyRange& range, unsigned short direction, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction) 71 { 72 openCursor(range, direction, callbacks, transaction); 73 } 66 74 virtual void getObject(const WebIDBKey&, WebIDBCallbacks*, const WebIDBTransaction&) { WEBKIT_ASSERT_NOT_REACHED(); } 67 virtual void get(const WebIDBKey&, WebIDBCallbacks*, const WebIDBTransaction&) { WEBKIT_ASSERT_NOT_REACHED(); } 75 virtual void get(const WebIDBKey& range, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction) 76 { 77 getKey(range, callbacks, transaction); 78 } 79 virtual void getKey(const WebIDBKey& range, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction) 80 { 81 get(range, callbacks, transaction); 82 } 68 83 }; 69 84 -
trunk/WebKit/chromium/src/IDBIndexBackendProxy.cpp
r68795 r69123 74 74 } 75 75 76 void IDBIndexBackendProxy::open ObjectCursor(PassRefPtr<IDBKeyRange> keyRange, unsigned short direction, PassRefPtr<IDBCallbacks> callbacks, IDBTransactionBackendInterface* transaction)76 void IDBIndexBackendProxy::openCursor(PassRefPtr<IDBKeyRange> keyRange, unsigned short direction, PassRefPtr<IDBCallbacks> callbacks, IDBTransactionBackendInterface* transaction) 77 77 { 78 78 // The transaction pointer is guaranteed to be a pointer to a proxy object as, in the renderer, … … 82 82 } 83 83 84 void IDBIndexBackendProxy::open Cursor(PassRefPtr<IDBKeyRange> keyRange, unsigned short direction, PassRefPtr<IDBCallbacks> callbacks, IDBTransactionBackendInterface* transaction)84 void IDBIndexBackendProxy::openKeyCursor(PassRefPtr<IDBKeyRange> keyRange, unsigned short direction, PassRefPtr<IDBCallbacks> callbacks, IDBTransactionBackendInterface* transaction) 85 85 { 86 86 // The transaction pointer is guaranteed to be a pointer to a proxy object as, in the renderer, 87 87 // all implementations of IDB interfaces are proxy objects. 88 88 IDBTransactionBackendProxy* transactionProxy = static_cast<IDBTransactionBackendProxy*>(transaction); 89 m_webIDBIndex->open Cursor(keyRange, direction, new WebIDBCallbacksImpl(callbacks), *transactionProxy->getWebIDBTransaction());89 m_webIDBIndex->openKeyCursor(keyRange, direction, new WebIDBCallbacksImpl(callbacks), *transactionProxy->getWebIDBTransaction()); 90 90 } 91 91 92 void IDBIndexBackendProxy::get Object(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks> callbacks, IDBTransactionBackendInterface* transaction)92 void IDBIndexBackendProxy::get(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks> callbacks, IDBTransactionBackendInterface* transaction) 93 93 { 94 94 // The transaction pointer is guaranteed to be a pointer to a proxy object as, in the renderer, … … 98 98 } 99 99 100 void IDBIndexBackendProxy::get (PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks> callbacks, IDBTransactionBackendInterface* transaction)100 void IDBIndexBackendProxy::getKey(PassRefPtr<IDBKey> key, PassRefPtr<IDBCallbacks> callbacks, IDBTransactionBackendInterface* transaction) 101 101 { 102 102 // The transaction pointer is guaranteed to be a pointer to a proxy object as, in the renderer, 103 103 // all implementations of IDB interfaces are proxy objects. 104 104 IDBTransactionBackendProxy* transactionProxy = static_cast<IDBTransactionBackendProxy*>(transaction); 105 m_webIDBIndex->get (key, new WebIDBCallbacksImpl(callbacks), *transactionProxy->getWebIDBTransaction());105 m_webIDBIndex->getKey(key, new WebIDBCallbacksImpl(callbacks), *transactionProxy->getWebIDBTransaction()); 106 106 } 107 107 -
trunk/WebKit/chromium/src/IDBIndexBackendProxy.h
r68795 r69123 47 47 virtual bool unique(); 48 48 49 virtual void openObjectCursor(PassRefPtr<IDBKeyRange>, unsigned short direction, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*);50 49 virtual void openCursor(PassRefPtr<IDBKeyRange>, unsigned short direction, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*); 51 virtual void getObject(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*);50 virtual void openKeyCursor(PassRefPtr<IDBKeyRange>, unsigned short direction, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*); 52 51 virtual void get(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*); 52 virtual void getKey(PassRefPtr<IDBKey>, PassRefPtr<IDBCallbacks>, IDBTransactionBackendInterface*); 53 53 54 54 private: -
trunk/WebKit/chromium/src/WebIDBIndexImpl.cpp
r68795 r69123 69 69 } 70 70 71 void WebIDBIndexImpl::open Cursor(const WebIDBKeyRange& keyRange, unsigned short direction, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction)71 void WebIDBIndexImpl::openObjectCursor(const WebIDBKeyRange& keyRange, unsigned short direction, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction) 72 72 { 73 73 m_backend->openCursor(keyRange, direction, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface()); 74 74 } 75 75 76 void WebIDBIndexImpl::open ObjectCursor(const WebIDBKeyRange& keyRange, unsigned short direction, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction)76 void WebIDBIndexImpl::openKeyCursor(const WebIDBKeyRange& keyRange, unsigned short direction, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction) 77 77 { 78 m_backend->open ObjectCursor(keyRange, direction, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface());78 m_backend->openKeyCursor(keyRange, direction, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface()); 79 79 } 80 80 81 81 void WebIDBIndexImpl::getObject(const WebIDBKey& keyRange, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction) 82 82 { 83 m_backend->get Object(keyRange, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface());83 m_backend->get(keyRange, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface()); 84 84 } 85 85 86 void WebIDBIndexImpl::get (const WebIDBKey& keyRange, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction)86 void WebIDBIndexImpl::getKey(const WebIDBKey& keyRange, WebIDBCallbacks* callbacks, const WebIDBTransaction& transaction) 87 87 { 88 m_backend->get (keyRange, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface());88 m_backend->getKey(keyRange, IDBCallbacksProxy::create(callbacks), transaction.getIDBTransactionBackendInterface()); 89 89 } 90 90 -
trunk/WebKit/chromium/src/WebIDBIndexImpl.h
r68795 r69123 48 48 49 49 virtual void openObjectCursor(const WebIDBKeyRange&, unsigned short direction, WebIDBCallbacks*, const WebIDBTransaction&); 50 virtual void open Cursor(const WebIDBKeyRange&, unsigned short direction, WebIDBCallbacks*, const WebIDBTransaction&);50 virtual void openKeyCursor(const WebIDBKeyRange&, unsigned short direction, WebIDBCallbacks*, const WebIDBTransaction&); 51 51 virtual void getObject(const WebIDBKey&, WebIDBCallbacks*, const WebIDBTransaction&); 52 virtual void get (const WebIDBKey&, WebIDBCallbacks*, const WebIDBTransaction&);52 virtual void getKey(const WebIDBKey&, WebIDBCallbacks*, const WebIDBTransaction&); 53 53 54 54 private:
Note: See TracChangeset
for help on using the changeset viewer.