| 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 0be18533489aa8d75c3b09fe6e496bf46fe56779..48bd7e7a9b8b5515ed4c0a102a92b97dbc3be7f2 100644
|
| --- a/third_party/WebKit/Source/core/events/Event.h
|
| +++ b/third_party/WebKit/Source/core/events/Event.h
|
| @@ -79,6 +79,12 @@ public:
|
| Scoped,
|
| };
|
|
|
| + enum class PassiveMode {
|
| + NotPassive,
|
| + Passive,
|
| + PassiveForcedDocumentLevel,
|
| + };
|
| +
|
| static Event* create()
|
| {
|
| return new Event;
|
| @@ -211,7 +217,7 @@ public:
|
| bool isTrusted() const { return m_isTrusted; }
|
| void setTrusted(bool value) { m_isTrusted = value; }
|
|
|
| - void setHandlingPassive(bool value);
|
| + void setHandlingPassive(PassiveMode);
|
|
|
| bool preventDefaultCalledDuringPassive() const { return m_preventDefaultCalledDuringPassive; }
|
|
|
| @@ -230,6 +236,8 @@ protected:
|
|
|
| void setCanBubble(bool bubble) { m_canBubble = bubble; }
|
|
|
| + PassiveMode handlingPassive() const { return m_handlingPassive; }
|
| +
|
| private:
|
|
|
| enum EventPathMode {
|
| @@ -252,7 +260,6 @@ private:
|
| unsigned m_cancelBubble:1;
|
| unsigned m_wasInitialized:1;
|
| unsigned m_isTrusted : 1;
|
| - unsigned m_handlingPassive : 1;
|
|
|
| // Whether preventDefault was called when |m_handlingPassive| is
|
| // true. This field is reset on each call to setHandlingPassive.
|
| @@ -260,6 +267,7 @@ private:
|
| // Whether preventDefault was called on uncancelable event.
|
| unsigned m_preventDefaultCalledOnUncancelableEvent : 1;
|
|
|
| + PassiveMode m_handlingPassive;
|
| unsigned short m_eventPhase;
|
| Member<EventTarget> m_currentTarget;
|
| Member<EventTarget> m_target;
|
|
|