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

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

Issue 1586563005: Add Event.scoped (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Remove error from test case as it bubbles up and fails test\ Created 4 years, 11 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/Event.h
diff --git a/third_party/WebKit/Source/core/events/Event.h b/third_party/WebKit/Source/core/events/Event.h
index 49f4995aac7128336f63b8f3c8719e3057b541a8..262ce668a3069fdbaa6a9c2a416eecc767ca5b6f 100644
--- a/third_party/WebKit/Source/core/events/Event.h
+++ b/third_party/WebKit/Source/core/events/Event.h
@@ -123,6 +123,7 @@ public:
bool bubbles() const { return m_canBubble; }
bool cancelable() const { return m_cancelable; }
+ bool scoped() const { return m_scoped; }
// Event creation timestamp in milliseconds. If |HiResEventTimeStamp|
// runtime feature is enabled it returns a DOMHighResTimeStamp using the
@@ -205,6 +206,8 @@ protected:
Event();
Event(const AtomicString& type, bool canBubble, bool cancelable);
Event(const AtomicString& type, bool canBubble, bool cancelable, double platformTimeStamp);
+ Event(const AtomicString& type, bool canBubble, bool cancelable, bool scoped);
+ Event(const AtomicString& type, bool canBubble, bool cancelable, bool scoped, double platformTimeStamp);
Event(const AtomicString& type, const EventInit&);
virtual void receivedTarget();
@@ -216,6 +219,7 @@ private:
AtomicString m_type;
unsigned m_canBubble:1;
unsigned m_cancelable:1;
+ unsigned m_scoped:1;
unsigned m_propagationStopped:1;
unsigned m_immediatePropagationStopped:1;

Powered by Google App Engine
This is Rietveld 408576698