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

Unified Diff: Source/core/events/TouchEvent.h

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 | « LayoutTests/fast/events/uievent-with-inputdevice-expected.txt ('k') | Source/core/events/TouchEvent.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/events/TouchEvent.h
diff --git a/Source/core/events/TouchEvent.h b/Source/core/events/TouchEvent.h
index c5df36dbc98695f209762292fa4261550d79817b..9ed5287a8a0346c650f397a54f03ab3146be37be 100644
--- a/Source/core/events/TouchEvent.h
+++ b/Source/core/events/TouchEvent.h
@@ -39,6 +39,7 @@ class CORE_EXPORT TouchEvent final : public UIEventWithKeyState {
public:
virtual ~TouchEvent();
+ // We only initialize sourceDevice when we create TouchEvent from EventHandler, null if it is from JavaScript.
static PassRefPtrWillBeRawPtr<TouchEvent> create()
{
return adoptRefWillBeNoop(new TouchEvent);
« no previous file with comments | « LayoutTests/fast/events/uievent-with-inputdevice-expected.txt ('k') | Source/core/events/TouchEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698