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

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: Rebase 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..307663c0048e857ad1be3e50979422598e197fc9 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,10 @@ class CORE_EXPORT TouchEvent final : public UIEventWithKeyState {
bool m_causesScrollingIfUncanceled;
bool m_firstTouchMoveOrStart;
bool m_defaultPreventedBeforeCurrentTarget;
+
+ // The current effective touch action computed before each
+ // touchstart event is generated. It is used for UMA histograms.
+ TouchAction m_currentTouchAction;
};
class TouchEventDispatchMediator final : public EventDispatchMediator {
« no previous file with comments | « third_party/WebKit/Source/core/events/RegisteredEventListener.h ('k') | third_party/WebKit/Source/core/events/TouchEvent.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698