diff options
author | tkent@chromium.org <tkent@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2013-08-30 02:09:49 +0000 |
---|---|---|
committer | tkent@chromium.org <tkent@chromium.org@bbb929c8-8fbe-4397-9dbb-9b2b20218538> | 2013-08-30 02:09:49 +0000 |
commit | f3aa39934f8a1e0b19ce0a2f82bd083d68f79520 (patch) | |
tree | 9368d9db49ab1e5fa05167d09cc7335d9c5db86d /third_party/WebKit/Source/modules/indexeddb | |
parent | 47efada1670781d342502aa75bca58337fdf4b0d (diff) | |
download | chromium_src-f3aa39934f8a1e0b19ce0a2f82bd083d68f79520.zip chromium_src-f3aa39934f8a1e0b19ce0a2f82bd083d68f79520.tar.gz chromium_src-f3aa39934f8a1e0b19ce0a2f82bd083d68f79520.tar.bz2 |
Refactoring: Remove Event::create(const AtomicString&, bool, bool).
Add Event::createCancelableBubble(), and replace all of existing call
sites of Event::create with bool arguments with new factory functions.
BUG=none
TEST=none; no behavior changes.
Review URL: https://chromiumcodereview.appspot.com/23490016
git-svn-id: svn://svn.chromium.org/blink/trunk@156949 bbb929c8-8fbe-4397-9dbb-9b2b20218538
Diffstat (limited to 'third_party/WebKit/Source/modules/indexeddb')
4 files changed, 5 insertions, 5 deletions
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp index 2701a24..c36692e 100644 --- a/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp +++ b/third_party/WebKit/Source/modules/indexeddb/IDBDatabase.cpp @@ -307,7 +307,7 @@ void IDBDatabase::forceClose() for (TransactionMap::const_iterator::Values it = m_transactions.begin().values(), end = m_transactions.end().values(); it != end; ++it) (*it)->abort(IGNORE_EXCEPTION); this->close(); - enqueueEvent(Event::create(eventNames().closeEvent, false, false)); + enqueueEvent(Event::create(eventNames().closeEvent)); } void IDBDatabase::close() diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.cpp index 407062d..5e97675 100644 --- a/third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.cpp +++ b/third_party/WebKit/Source/modules/indexeddb/IDBOpenDBRequest.cpp @@ -132,7 +132,7 @@ void IDBOpenDBRequest::onSuccess(PassRefPtr<IDBDatabaseBackendInterface> prpBack m_result = IDBAny::create(idbDatabase.get()); } idbDatabase->setMetadata(metadata); - enqueueEvent(Event::create(eventNames().successEvent, false, false)); + enqueueEvent(Event::create(eventNames().successEvent)); } bool IDBOpenDBRequest::shouldEnqueueEvent() const diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp index 795e157..2ae6069 100644 --- a/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp +++ b/third_party/WebKit/Source/modules/indexeddb/IDBRequest.cpp @@ -244,12 +244,12 @@ void IDBRequest::onError(PassRefPtr<DOMError> error) m_error = error; m_pendingCursor.clear(); - enqueueEvent(Event::create(eventNames().errorEvent, true, true)); + enqueueEvent(Event::createCancelableBubble(eventNames().errorEvent)); } static PassRefPtr<Event> createSuccessEvent() { - return Event::create(eventNames().successEvent, false, false); + return Event::create(eventNames().successEvent); } void IDBRequest::onSuccess(const Vector<String>& stringList) diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp index e492423..bcbb4be 100644 --- a/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp +++ b/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp @@ -319,7 +319,7 @@ void IDBTransaction::onComplete() closeOpenCursors(); // Enqueue events before notifying database, as database may close which enqueues more events and order matters. - enqueueEvent(Event::create(eventNames().completeEvent, false, false)); + enqueueEvent(Event::create(eventNames().completeEvent)); m_database->transactionFinished(this); } |