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

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

Issue 1161783006: Populates sourceDevice attribute into TouchEvent (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Put touchevent in uievent layout test Created 5 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
« no previous file with comments | « Source/core/events/UIEvent.h ('k') | Source/core/events/UIEventWithKeyState.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/UIEvent.cpp
diff --git a/Source/core/events/UIEvent.cpp b/Source/core/events/UIEvent.cpp
index 3e563d6e067870d7fc68ccb22e1d3d76755a6cdd..7ec400e78f1de72f1d93e1205ad904e35e69bd1a 100644
--- a/Source/core/events/UIEvent.cpp
+++ b/Source/core/events/UIEvent.cpp
@@ -32,11 +32,12 @@ UIEvent::UIEvent()
{
}
-UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg)
+// TODO(lanwei): Will add sourceDevice to all the subclass of UIEvent later, see https://crbug.com/476530.
+UIEvent::UIEvent(const AtomicString& eventType, bool canBubbleArg, bool cancelableArg, PassRefPtrWillBeRawPtr<AbstractView> viewArg, int detailArg, InputDevice* sourceDeviceArg)
: Event(eventType, canBubbleArg, cancelableArg)
, m_view(viewArg)
, m_detail(detailArg)
- , m_sourceDevice(nullptr)
+ , m_sourceDevice(sourceDeviceArg)
{
}
« no previous file with comments | « Source/core/events/UIEvent.h ('k') | Source/core/events/UIEventWithKeyState.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698