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

Unified Diff: third_party/WebKit/Source/core/events/EventDispatcher.h

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: Fix typo Created 4 years, 10 months 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/core/events/EventDispatcher.h
diff --git a/third_party/WebKit/Source/core/events/EventDispatcher.h b/third_party/WebKit/Source/core/events/EventDispatcher.h
index f2a4455dae9891d9c823bac9292fd9d85196e31c..972fa2146008d01f36a73bbfa3e18c1045720502 100644
--- a/third_party/WebKit/Source/core/events/EventDispatcher.h
+++ b/third_party/WebKit/Source/core/events/EventDispatcher.h
@@ -27,6 +27,7 @@
#define EventDispatcher_h
#include "core/dom/SimulatedClickOptions.h"
+#include "core/events/EventDispatchResult.h"
#include "platform/heap/Handle.h"
#include "wtf/PassRefPtr.h"
#include "wtf/RefPtr.h"
@@ -48,12 +49,12 @@ enum EventDispatchContinuation {
class EventDispatcher {
STACK_ALLOCATED();
public:
- static bool dispatchEvent(Node&, PassRefPtrWillBeRawPtr<EventDispatchMediator>);
+ static DispatchEventResult dispatchEvent(Node&, PassRefPtrWillBeRawPtr<EventDispatchMediator>);
static void dispatchScopedEvent(Node&, PassRefPtrWillBeRawPtr<EventDispatchMediator>);
static void dispatchSimulatedClick(Node&, Event* underlyingEvent, SimulatedClickMouseEventOptions, SimulatedClickCreationScope);
- bool dispatch();
+ DispatchEventResult dispatch();
Node& node() const { return *m_node; }
Event& event() const { return *m_event; }
« no previous file with comments | « third_party/WebKit/Source/core/events/EventDispatchResult.h ('k') | third_party/WebKit/Source/core/events/EventDispatcher.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698