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

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

Issue 2012423004: Rename Event.scoped to Event.composed and invert its meaning (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@event-composed-path
Patch Set: rebased Created 4 years, 7 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 f22444a65d97b60a202c1b34d1e93e9019618e72..1d71655f4a7bef1af2f82c067f078c0d03d8c962 100644
--- a/third_party/WebKit/Source/core/events/Event.h
+++ b/third_party/WebKit/Source/core/events/Event.h
@@ -129,7 +129,8 @@ public:
bool bubbles() const { return m_canBubble; }
bool cancelable() const { return m_cancelable; }
- bool scoped() const { return m_scoped; }
+ bool composed() const { return m_composed; }
+ bool isScopedInV0() const;
bool relatedTargetScoped() const { return m_relatedTargetScoped; }
// Event creation timestamp in milliseconds. If |HiResEventTimeStamp|
@@ -219,8 +220,8 @@ protected:
Event(const AtomicString& type, bool canBubble, bool cancelable, EventTarget* relatedTarget);
Event(const AtomicString& type, bool canBubble, bool cancelable, double platformTimeStamp);
Event(const AtomicString& type, bool canBubble, bool cancelable, EventTarget* relatedTarget, double platformTimeStamp);
- Event(const AtomicString& type, bool canBubble, bool cancelable, bool scoped);
- Event(const AtomicString& type, bool canBubble, bool cancelable, bool scoped, bool relatedTargetScoped, double platformTimeStamp);
+ Event(const AtomicString& type, bool canBubble, bool cancelable, bool composed);
+ Event(const AtomicString& type, bool canBubble, bool cancelable, bool composed, bool relatedTargetScoped, double platformTimeStamp);
Event(const AtomicString& type, const EventInit&);
virtual void receivedTarget();
@@ -238,7 +239,7 @@ private:
AtomicString m_type;
unsigned m_canBubble:1;
unsigned m_cancelable:1;
- unsigned m_scoped:1;
+ unsigned m_composed:1;
unsigned m_relatedTargetScoped:1;
unsigned m_propagationStopped:1;

Powered by Google App Engine
This is Rietveld 408576698