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

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: Created 5 years, 7 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: Source/core/events/TouchEvent.h
diff --git a/Source/core/events/TouchEvent.h b/Source/core/events/TouchEvent.h
index c5df36dbc98695f209762292fa4261550d79817b..688adc5c943a873990f14e880a69bc708ff04a5b 100644
--- a/Source/core/events/TouchEvent.h
+++ b/Source/core/events/TouchEvent.h
@@ -45,11 +45,11 @@ public:
}
static PassRefPtrWillBeRawPtr<TouchEvent> create(TouchList* touches,
TouchList* targetTouches, TouchList* changedTouches,
- const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView> view,
+ const AtomicString& type, PassRefPtrWillBeRawPtr<AbstractView> view, PassRefPtrWillBeRawPtr<InputDevice> sourceDevice,
bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancelable, bool causesScrollingIfUncanceled,
double uiCreateTime = 0)
{
- return adoptRefWillBeNoop(new TouchEvent(touches, targetTouches, changedTouches, type, view,
+ return adoptRefWillBeNoop(new TouchEvent(touches, targetTouches, changedTouches, type, view, sourceDevice,
ctrlKey, altKey, shiftKey, metaKey, cancelable, causesScrollingIfUncanceled, uiCreateTime));
}
@@ -80,10 +80,11 @@ public:
private:
TouchEvent();
TouchEvent(TouchList* touches, TouchList* targetTouches,
- TouchList* changedTouches, const AtomicString& type,
- PassRefPtrWillBeRawPtr<AbstractView>,
- bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancelable, bool causesScrollingIfUncanceled,
- double uiCreateTime = 0);
+ TouchList* changedTouches, const AtomicString& type,
+ PassRefPtrWillBeRawPtr<AbstractView>,
+ PassRefPtrWillBeRawPtr<InputDevice> sourceDevice,
+ bool ctrlKey, bool altKey, bool shiftKey, bool metaKey, bool cancelable, bool causesScrollingIfUncanceled,
+ double uiCreateTime = 0);
RefPtrWillBeMember<TouchList> m_touches;
RefPtrWillBeMember<TouchList> m_targetTouches;

Powered by Google App Engine
This is Rietveld 408576698