Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(893)

Unified Diff: third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp

Issue 1479923002: Enumerate the return value of dispatchEvent so it is clear. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master_passive_uma_add
Patch Set: sed -i s/DispatchEventResult/WebInputEventResult/g Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp
diff --git a/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp b/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp
index c4e4763dac2eb248f49f451e9e9de7a491764998..5da1bf593e67fd860d4ac51048b907cfca2e9aa7 100644
--- a/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp
+++ b/third_party/WebKit/Source/modules/indexeddb/IDBTransaction.cpp
@@ -346,12 +346,12 @@ ExecutionContext* IDBTransaction::executionContext() const
return ActiveDOMObject::executionContext();
}
-bool IDBTransaction::dispatchEventInternal(PassRefPtrWillBeRawPtr<Event> event)
+WebInputEventResult IDBTransaction::dispatchEventInternal(PassRefPtrWillBeRawPtr<Event> event)
{
IDB_TRACE("IDBTransaction::dispatchEvent");
if (m_contextStopped || !executionContext()) {
m_state = Finished;
- return false;
+ return WebInputEventResult::HandledSuppressed;
}
ASSERT(m_state != Finished);
ASSERT(m_hasPendingActivity);
@@ -373,7 +373,7 @@ bool IDBTransaction::dispatchEventInternal(PassRefPtrWillBeRawPtr<Event> event)
// FIXME: When we allow custom event dispatching, this will probably need to change.
ASSERT(event->type() == EventTypeNames::complete || event->type() == EventTypeNames::abort);
- bool returnValue = IDBEventDispatcher::dispatch(event.get(), targets);
+ WebInputEventResult returnValue = IDBEventDispatcher::dispatch(event.get(), targets);
// FIXME: Try to construct a test where |this| outlives openDBRequest and we
// get a crash.
if (m_openDBRequest) {

Powered by Google App Engine
This is Rietveld 408576698