Index: third_party/WebKit/Source/core/events/Event.h |
diff --git a/third_party/WebKit/Source/core/events/Event.h b/third_party/WebKit/Source/core/events/Event.h |
index 262ce668a3069fdbaa6a9c2a416eecc767ca5b6f..2f934fac8cd1724e47946b621fe73626eea755dc 100644 |
--- a/third_party/WebKit/Source/core/events/Event.h |
+++ b/third_party/WebKit/Source/core/events/Event.h |
@@ -200,6 +200,15 @@ public: |
void setHandlingPassive(bool value) { m_handlingPassive = value; } |
+ EventTarget::DispatchEventResult eventResult() const |
+ { |
+ if (defaultPrevented()) |
+ return EventTarget::DispatchEventResult::HandledApplication; |
+ if (defaultHandled()) |
+ return EventTarget::DispatchEventResult::HandledSystem; |
+ return EventTarget::DispatchEventResult::NotHandled; |
+ } |
+ |
DECLARE_VIRTUAL_TRACE(); |
protected: |