2010-08-05 Marcus Bulach <bulach@chromium.org>
Reviewed by Jeremy Orlow.
Initial bindings and plumbing for IDBCursor.
https://bugs.webkit.org/show_bug.cgi?id=41888
Test: storage/indexeddb/idb-opencursor.html
* storage/indexeddb/open-cursor-expected.txt: Added.
* storage/indexeddb/open-cursor.html: Added.
* storage/indexeddb/script-tests/open-cursor.js: Added.
(cursorSuccess):
(openCursor):
(populateObjectStore):
(createObjectStoreSuccess):
(openSuccess):
(test):
2010-08-05 Marcus Bulach <bulach@chromium.org>
Reviewed by Jeremy Orlow.
Initial bindings and plumbing for IDBCursor.
https://bugs.webkit.org/show_bug.cgi?id=41888
Test: storage/indexeddb/idb-opencursor.html
* Android.derived.jscbindings.mk:
* Android.derived.v8bindings.mk:
* Android.mk:
* CMakeLists.txt:
* DerivedSources.cpp:
* DerivedSources.make:
* GNUmakefile.am:
* WebCore.gypi:
* WebCore.pri:
* WebCore.pro:
* WebCore.vcproj/WebCore.vcproj:
* WebCore.xcodeproj/project.pbxproj:
* bindings/v8/custom/V8IDBAnyCustom.cpp:
(WebCore::toV8):
* storage/IDBAny.cpp:
(WebCore::IDBAny::idbCursor):
(WebCore::IDBAny::set):
* storage/IDBAny.h:
(WebCore::IDBAny::):
* storage/IDBCallbacks.h:
* storage/IDBCursor.cpp: Added.
(WebCore::IDBCursor::IDBCursor):
(WebCore::IDBCursor::~IDBCursor):
(WebCore::IDBCursor::direction):
(WebCore::IDBCursor::key):
(WebCore::IDBCursor::value):
(WebCore::IDBCursor::update):
(WebCore::IDBCursor::continueFunction):
(WebCore::IDBCursor::remove):
* storage/IDBCursor.h: Added.
(WebCore::IDBCursor::):
(WebCore::IDBCursor::create):
* storage/IDBCursor.idl: Added.
* storage/IDBCursorBackendImpl.cpp: Added.
(WebCore::IDBCursorBackendImpl::IDBCursorBackendImpl):
(WebCore::IDBCursorBackendImpl::~IDBCursorBackendImpl):
(WebCore::IDBCursorBackendImpl::direction):
(WebCore::IDBCursorBackendImpl::key):
(WebCore::IDBCursorBackendImpl::value):
(WebCore::IDBCursorBackendImpl::update):
(WebCore::IDBCursorBackendImpl::continueFunction):
(WebCore::IDBCursorBackendImpl::remove):
* storage/IDBCursorBackendImpl.h: Added.
(WebCore::IDBCursorBackendImpl::create):
* storage/IDBCursorBackendInterface.h: Added.
(WebCore::IDBCursorBackendInterface::~IDBCursorBackendInterface):
* storage/IDBObjectStore.cpp:
(WebCore::IDBObjectStore::openCursor):
* storage/IDBObjectStore.h:
* storage/IDBObjectStore.idl:
* storage/IDBObjectStoreBackendImpl.cpp:
(WebCore::IDBObjectStoreBackendImpl::openCursor):
* storage/IDBObjectStoreBackendImpl.h:
* storage/IDBObjectStoreBackendInterface.h:
* storage/IDBRequest.cpp:
(WebCore::IDBRequest::onSuccess):
(WebCore::IDBRequest::timerFired):
* storage/IDBRequest.h:
2010-08-05 Marcus Bulach <bulach@chromium.org>
Reviewed by Jeremy Orlow.
Initial bindings and plumbing for IDBCursor.
https://bugs.webkit.org/show_bug.cgi?id=41888
Test: storage/indexeddb/idb-opencursor.html
* WebKit.gyp:
* public/WebIDBCallbacks.h:
(WebKit::WebIDBCallbacks::onSuccess):
* public/WebIDBCursor.h: Added.
(WebKit::WebIDBCursor::~WebIDBCursor):
(WebKit::WebIDBCursor::direction):
(WebKit::WebIDBCursor::key):
(WebKit::WebIDBCursor::value):
(WebKit::WebIDBCursor::update):
(WebKit::WebIDBCursor::continueFunction):
(WebKit::WebIDBCursor::remove):
* public/WebIDBKeyRange.h: Added.
(WebKit::WebIDBKeyRange::~WebIDBKeyRange):
(WebKit::WebIDBKeyRange::WebIDBKeyRange):
* public/WebIDBObjectStore.h:
(WebKit::WebIDBObjectStore::openCursor):
* src/IDBCallbacksProxy.cpp:
(WebCore::IDBCallbacksProxy::onSuccess):
* src/IDBCallbacksProxy.h:
* src/IDBCursorBackendProxy.cpp: Added.
(WebCore::IDBCursorBackendProxy::create):
(WebCore::IDBCursorBackendProxy::IDBCursorBackendProxy):
(WebCore::IDBCursorBackendProxy::~IDBCursorBackendProxy):
(WebCore::IDBCursorBackendProxy::direction):
(WebCore::IDBCursorBackendProxy::key):
(WebCore::IDBCursorBackendProxy::value):
(WebCore::IDBCursorBackendProxy::update):
(WebCore::IDBCursorBackendProxy::continueFunction):
(WebCore::IDBCursorBackendProxy::remove):
* src/IDBCursorBackendProxy.h: Added.
* src/IDBObjectStoreProxy.cpp:
(WebCore::IDBObjectStoreProxy::openCursor):
* src/IDBObjectStoreProxy.h:
* src/WebIDBCallbacksImpl.cpp:
(WebCore::WebIDBCallbacksImpl::onSuccess):
* src/WebIDBCallbacksImpl.h:
* src/WebIDBCursorImpl.cpp: Added.
(WebKit::WebIDBCursorImpl::WebIDBCursorImpl):
(WebKit::WebIDBCursorImpl::~WebIDBCursorImpl):
(WebKit::WebIDBCursorImpl::direction):
(WebKit::WebIDBCursorImpl::key):
(WebKit::WebIDBCursorImpl::value):
(WebKit::WebIDBCursorImpl::update):
(WebKit::WebIDBCursorImpl::continueFunction):
(WebKit::WebIDBCursorImpl::remove):
* src/WebIDBCursorImpl.h: Added.
* src/WebIDBKeyRange.cpp: Added.
(WebKit::WebIDBKeyRange::WebIDBKeyRange):
(WebKit::WebIDBKeyRange::assign):
(WebKit::WebIDBKeyRange::reset):
(WebKit::WebIDBKeyRange::left):
(WebKit::WebIDBKeyRange::right):
(WebKit::WebIDBKeyRange::flags):
* src/WebIDBObjectStoreImpl.cpp:
(WebKit::WebIDBObjectStoreImpl::openCursor):
* src/WebIDBObjectStoreImpl.h:
git-svn-id: http://svn.webkit.org/repository/webkit/trunk@64828 268f45cc-cd09-0410-ab3c-d52691b4dbfc
54 files changed