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

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

Issue 2030243004: Set Event.composed flag correctly for some of UA UIEvents (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Created 4 years, 6 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 ef7e89b1a34794c016f5f3f063bb1baf2e44912b..84ac4da0393e1baacb92a55ae139c918587c9f25 100644
--- a/third_party/WebKit/Source/core/events/Event.h
+++ b/third_party/WebKit/Source/core/events/Event.h
@@ -74,6 +74,11 @@ public:
RailsModeVertical = 2
};
+ enum class ComposedMode {
+ Composed,
+ Scoped,
+ };
+
static Event* create()
{
return new Event;
@@ -215,8 +220,9 @@ public:
protected:
Event();
+ Event(const AtomicString& type, bool canBubble, bool cancelable, ComposedMode, double platformTimeStamp);
Event(const AtomicString& type, bool canBubble, bool cancelable, double platformTimeStamp);
- Event(const AtomicString& type, bool canBubble, bool cancelable);
+ Event(const AtomicString& type, bool canBubble, bool cancelable, ComposedMode = ComposedMode::Scoped);
Event(const AtomicString& type, const EventInit&);
virtual void receivedTarget();
@@ -224,7 +230,6 @@ protected:
void setCanBubble(bool bubble) { m_canBubble = bubble; }
private:
- Event(const AtomicString& type, bool canBubble, bool cancelable, bool composed, double platformTimeStamp);
enum EventPathMode {
EmptyAfterDispatch,
« no previous file with comments | « third_party/WebKit/Source/core/events/CompositionEvent.cpp ('k') | third_party/WebKit/Source/core/events/Event.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698