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

Unified Diff: third_party/WebKit/Source/core/events/UIEvent.cpp

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/UIEvent.cpp
diff --git a/third_party/WebKit/Source/core/events/UIEvent.cpp b/third_party/WebKit/Source/core/events/UIEvent.cpp
index 6e5bb554480f430e0ef292a0b159469e9f60cf1c..734c4042783a45dd4a53c506a86b09f3cd39d5f8 100644
--- a/third_party/WebKit/Source/core/events/UIEvent.cpp
+++ b/third_party/WebKit/Source/core/events/UIEvent.cpp
@@ -32,16 +32,16 @@ UIEvent::UIEvent()
}
// TODO(lanwei): Will add sourceCapabilities to all the subclass of UIEvent later, see https://crbug.com/476530.
-UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, AbstractView* viewArg, int detailArg, InputDeviceCapabilities* sourceCapabilitiesArg)
- : Event(eventType, canBubbleArg, cancelableArg)
+UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, ComposedMode composedMode, AbstractView* viewArg, int detailArg, InputDeviceCapabilities* sourceCapabilitiesArg)
+ : Event(eventType, canBubbleArg, cancelableArg, composedMode)
, m_view(viewArg)
, m_detail(detailArg)
, m_sourceCapabilities(sourceCapabilitiesArg)
{
}
-UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, double platformTimeStamp, AbstractView* viewArg, int detailArg, InputDeviceCapabilities* sourceCapabilitiesArg)
- : Event(eventType, canBubbleArg, cancelableArg, platformTimeStamp)
+UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, ComposedMode composedMode, double platformTimeStamp, AbstractView* viewArg, int detailArg, InputDeviceCapabilities* sourceCapabilitiesArg)
+ : Event(eventType, canBubbleArg, cancelableArg, composedMode, platformTimeStamp)
, m_view(viewArg)
, m_detail(detailArg)
, m_sourceCapabilities(sourceCapabilitiesArg)
« no previous file with comments | « third_party/WebKit/Source/core/events/UIEvent.h ('k') | third_party/WebKit/Source/core/events/UIEventWithKeyState.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698