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

Unified Diff: content/browser/renderer_host/input/touch_action_filter.h

Issue 2863693003: Unify TouchAction classes (Closed)
Patch Set: add cstdlib Created 3 years, 7 months 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/browser/renderer_host/input/touch_action_filter.h
diff --git a/content/browser/renderer_host/input/touch_action_filter.h b/content/browser/renderer_host/input/touch_action_filter.h
index 7296c1fbc3a0815b7d17d0fa5b039acd019d7140..3fd52b996da79cfb775284acedbc521b2e6f4ce6 100644
--- a/content/browser/renderer_host/input/touch_action_filter.h
+++ b/content/browser/renderer_host/input/touch_action_filter.h
@@ -6,8 +6,8 @@
#define CONTENT_BROWSER_RENDERER_HOST_INPUT_TOUCH_ACTION_FILTER_H_
#include "base/macros.h"
+#include "cc/input/touch_action.h"
#include "content/common/content_export.h"
-#include "content/common/input/touch_action.h"
namespace blink {
class WebGestureEvent;
@@ -31,7 +31,7 @@ class CONTENT_EXPORT TouchActionFilter {
// Called when a set-touch-action message is received from the renderer
// for a touch start event that is currently in flight.
- void OnSetTouchAction(content::TouchAction touch_action);
+ void OnSetTouchAction(cc::TouchAction touch_action);
// Must be called at least once between when the last gesture events for the
// previous touch sequence have passed through the touch action filter and the
@@ -39,7 +39,7 @@ class CONTENT_EXPORT TouchActionFilter {
// renderer. It may be called multiple times during this interval.
void ResetTouchAction();
- TouchAction allowed_touch_action() const { return allowed_touch_action_; }
+ cc::TouchAction allowed_touch_action() const { return allowed_touch_action_; }
private:
bool ShouldSuppressManipulation(const blink::WebGestureEvent&);
@@ -59,7 +59,7 @@ class CONTENT_EXPORT TouchActionFilter {
bool allow_current_double_tap_event_;
// What touch actions are currently permitted.
- TouchAction allowed_touch_action_;
+ cc::TouchAction allowed_touch_action_;
DISALLOW_COPY_AND_ASSIGN(TouchActionFilter);
};

Powered by Google App Engine
This is Rietveld 408576698