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

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: esprehn CR tweaks Created 7 years 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 | « public/web/WebTouchAction.h ('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 653611b93ef1a9814eeaf4a621a6f7f81d445951..0e455838e12612206d0389ceafc15d7979bc3492 100644
--- a/public/web/WebWidgetClient.h
+++ b/public/web/WebWidgetClient.h
@@ -36,6 +36,7 @@
#include "public/platform/WebLayerTreeView.h"
#include "public/platform/WebRect.h"
#include "public/platform/WebScreenInfo.h"
+#include "public/web/WebTouchAction.h"
namespace blink {
@@ -172,6 +173,10 @@ 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.
+ virtual void setTouchAction(WebTouchAction touchAction) { }
+
protected:
~WebWidgetClient() { }
};
« no previous file with comments | « public/web/WebTouchAction.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698