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

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

Issue 1817453002: Implement Event.relatedTargetScoped (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix layout test Created 4 years, 9 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 47bfb3b46de6477da94ececa89577bcc43b0bbfd..fac5087740068d3cdd957c6d2f3215c940250a7a 100644
--- a/third_party/WebKit/Source/core/events/UIEvent.cpp
+++ b/third_party/WebKit/Source/core/events/UIEvent.cpp
@@ -40,6 +40,14 @@ UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab
{
}
+UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, EventTarget* relatedTarget, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg, InputDeviceCapabilities* sourceCapabilitiesArg)
+ : Event(eventType, canBubbleArg, cancelableArg, relatedTarget)
+ , m_view(viewArg)
+ , m_detail(detailArg)
+ , m_sourceCapabilities(sourceCapabilitiesArg)
+{
+}
+
UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, double platformTimeStamp, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg, InputDeviceCapabilities* sourceCapabilitiesArg)
: Event(eventType, canBubbleArg, cancelableArg, platformTimeStamp)
, m_view(viewArg)
@@ -48,6 +56,14 @@ UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelab
{
}
+UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, EventTarget* relatedTarget, double platformTimeStamp, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg, InputDeviceCapabilities* sourceCapabilitiesArg)
+ : Event(eventType, canBubbleArg, cancelableArg, relatedTarget, platformTimeStamp)
+ , m_view(viewArg)
+ , m_detail(detailArg)
+ , m_sourceCapabilities(sourceCapabilitiesArg)
+{
+}
+
UIEvent::UIEvent(const AtomicString& eventType, const UIEventInit& initializer)
: Event(eventType, initializer)
, m_view(initializer.view())
« no previous file with comments | « third_party/WebKit/Source/core/events/UIEvent.h ('k') | third_party/WebKit/Source/core/events/UIEventWithKeyState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698