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

Unified Diff: public/web/WebWidgetClient.h

Issue 16507017: Initial touch-action main thread implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Don't add delay param to public API just yet Created 7 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
« Source/web/tests/TouchActionTest.cpp ('K') | « Source/web/web.gypi ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: public/web/WebWidgetClient.h
diff --git a/public/web/WebWidgetClient.h b/public/web/WebWidgetClient.h
index ad7069908713d9cd9fe5c74b662cc90a4bbda46f..f8cd43be4868a22f42814d46eeb2f9d266eda599 100644
--- a/public/web/WebWidgetClient.h
+++ b/public/web/WebWidgetClient.h
@@ -172,6 +172,14 @@ public:
// Called to update if touch events should be sent.
virtual void hasTouchEventHandlers(bool) { }
+ // Called during WebWidget::HandleInputEvent for a TouchStart event to inform the embedder
+ // of the touch actions that are permitted for this touch.
+ enum TouchAction {
+ TouchActionNone = 0,
+ TouchActionAuto = 1
+ };
+ virtual void setTouchAction(int touchId, TouchAction touchAction) { }
abarth-chromium 2013/11/18 21:16:59 Why a touchId? Is there some sort of more structu
Rick Byers 2013/11/19 21:24:21 The touchid is the minimal data the embedder needs
+
protected:
~WebWidgetClient() { }
};
« Source/web/tests/TouchActionTest.cpp ('K') | « Source/web/web.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698