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

Unified Diff: content/renderer/render_widget.h

Issue 67383002: Initial browser-side implementation for touch-action (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Tweaks from sadrul/jdduke CR 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
Index: content/renderer/render_widget.h
diff --git a/content/renderer/render_widget.h b/content/renderer/render_widget.h
index 9a260470721c121759982b09b36c78f14b340c69..4dbce4d24724b567353988dd6a9ec9c85563d59b 100644
--- a/content/renderer/render_widget.h
+++ b/content/renderer/render_widget.h
@@ -26,6 +26,7 @@
#include "third_party/WebKit/public/web/WebPopupType.h"
#include "third_party/WebKit/public/web/WebTextDirection.h"
#include "third_party/WebKit/public/web/WebTextInputInfo.h"
+#include "third_party/WebKit/public/web/WebTouchAction.h"
#include "third_party/WebKit/public/web/WebWidget.h"
#include "third_party/WebKit/public/web/WebWidgetClient.h"
#include "third_party/skia/include/core/SkBitmap.h"
@@ -543,6 +544,9 @@ class CONTENT_EXPORT RenderWidget
// Check whether the WebWidget has any touch event handlers registered.
virtual void hasTouchEventHandlers(bool has_handlers);
+ // Tell the browser about the actions permitted for a new touch point.
+ virtual void setTouchAction(blink::WebTouchAction touch_action);
+
// Creates a 3D context associated with this view.
scoped_ptr<WebGraphicsContext3DCommandBufferImpl> CreateGraphicsContext3D(
const blink::WebGraphicsContext3D::Attributes& attributes);
@@ -657,6 +661,9 @@ class CONTENT_EXPORT RenderWidget
// Are we currently handling an ime event?
bool handling_ime_event_;
+ // Are we currently handling a touchstart event?
+ bool handling_touchstart_event_;
+
// True if we have requested this widget be closed. No more messages will
// be sent, except for a Close.
bool closing_;

Powered by Google App Engine
This is Rietveld 408576698