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

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

Issue 2475443004: Add use counter when touch-action isn't used when preventDefault'd. (Closed)
Patch Set: Whoops missed updating a file Created 4 years, 1 month 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/TouchEvent.h
diff --git a/third_party/WebKit/Source/core/events/TouchEvent.h b/third_party/WebKit/Source/core/events/TouchEvent.h
index 530ae237a98effaea9c74c90ac0b1ea5a1bcc07c..f934bb196575a1c385b850378b3df721eb25ab10 100644
--- a/third_party/WebKit/Source/core/events/TouchEvent.h
+++ b/third_party/WebKit/Source/core/events/TouchEvent.h
@@ -53,10 +53,12 @@ class CORE_EXPORT TouchEvent final : public UIEventWithKeyState {
bool cancelable,
bool causesScrollingIfUncanceled,
bool firstTouchMoveOrStart,
- double platformTimeStamp) {
+ double platformTimeStamp,
+ TouchAction currentTouchAction) {
return new TouchEvent(touches, targetTouches, changedTouches, type, view,
modifiers, cancelable, causesScrollingIfUncanceled,
- firstTouchMoveOrStart, platformTimeStamp);
+ firstTouchMoveOrStart, platformTimeStamp,
+ currentTouchAction);
}
static TouchEvent* create(const AtomicString& type,
@@ -103,7 +105,8 @@ class CORE_EXPORT TouchEvent final : public UIEventWithKeyState {
bool cancelable,
bool causesScrollingIfUncanceled,
bool firstTouchMoveOrStart,
- double platformTimeStamp);
+ double platformTimeStamp,
+ TouchAction currentTouchAction);
TouchEvent(const AtomicString&, const TouchEventInit&);
Member<TouchList> m_touches;
@@ -112,6 +115,7 @@ class CORE_EXPORT TouchEvent final : public UIEventWithKeyState {
bool m_causesScrollingIfUncanceled;
bool m_firstTouchMoveOrStart;
bool m_defaultPreventedBeforeCurrentTarget;
+ TouchAction m_currentTouchAction;
Rick Byers 2016/11/07 17:01:09 Define this precisely in a comment. Is it the tou
dtapuska 2016/11/07 18:51:40 Done.
};
class TouchEventDispatchMediator final : public EventDispatchMediator {

Powered by Google App Engine
This is Rietveld 408576698