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

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

Issue 2336803003: Make SyntheticPointerAction to flush the pointer action sequence (Closed)
Patch Set: controller Created 4 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
Index: content/browser/renderer_host/input/synthetic_touch_driver.h
diff --git a/content/browser/renderer_host/input/synthetic_touch_driver.h b/content/browser/renderer_host/input/synthetic_touch_driver.h
index 5db84cf1b69a6b05d45f115970e854d35389ec6a..71d9674c3daba1b874290b2f609704dd17363ca5 100644
--- a/content/browser/renderer_host/input/synthetic_touch_driver.h
+++ b/content/browser/renderer_host/input/synthetic_touch_driver.h
@@ -22,7 +22,7 @@ class CONTENT_EXPORT SyntheticTouchDriver : public SyntheticPointerDriver {
void DispatchEvent(SyntheticGestureTarget* target,
const base::TimeTicks& timestamp) override;
- int Press(float x, float y) override;
+ void Press(float x, float y, int index) override;
void Move(float x, float y, int index) override;
void Release(int index) override;
@@ -30,7 +30,11 @@ class CONTENT_EXPORT SyntheticTouchDriver : public SyntheticPointerDriver {
const SyntheticPointerActionParams& params) const override;
private:
+ using IndexMap = std::array<int, blink::WebTouchEvent::kTouchesLengthCap>;
+
SyntheticWebTouchEvent touch_event_;
+ IndexMap index_map_;
+
DISALLOW_COPY_AND_ASSIGN(SyntheticTouchDriver);
};

Powered by Google App Engine
This is Rietveld 408576698