commit | ae5352b91ee09c54feb9bd91fc915eef5fb29e9f | [log] [tgz] |
---|---|---|
author | Lan Wei <[email protected]> | Mon Sep 17 18:18:59 2018 |
committer | Commit Bot <[email protected]> | Mon Sep 17 18:18:59 2018 |
tree | 2b006d12ca1142e15f88cee209e3410bd0346d58 | |
parent | fdbdd6f3b9060527a4d10118cd55b23bac06ec2b [diff] [blame] |
Add id in GpuBenchmarking.PointerActionSequence's input In order to match with Webdriver's Actions API, we need to add an id for each pointer. The format is for each action: {id, type of the pointer, action type, target or x/y, duration} Bug: 877507 Change-Id: I507326882de92777485c425f87b7e614ac6ac363 Reviewed-on: https://chromium-review.googlesource.com/1188428 Reviewed-by: Nasko Oskov <[email protected]> Reviewed-by: Navid Zolghadr <[email protected]> Reviewed-by: Dave Tapuska <[email protected]> Commit-Queue: Lan Wei <[email protected]> Cr-Commit-Position: refs/heads/master@{#591743}
diff --git a/content/browser/renderer_host/input/synthetic_touch_driver.h b/content/browser/renderer_host/input/synthetic_touch_driver.h index 3f8102a..bd2e8ec 100644 --- a/content/browser/renderer_host/input/synthetic_touch_driver.h +++ b/content/browser/renderer_host/input/synthetic_touch_driver.h
@@ -37,13 +37,13 @@ const SyntheticPointerActionParams& params) const override; private: - using IndexMap = std::array<int, blink::WebTouchEvent::kTouchesLengthCap>; + using PointerIdIndexMap = std::map<int, int>; - void ResetIndexMap(); + void ResetPointerIdIndexMap(); int GetIndexFromMap(int value) const; SyntheticWebTouchEvent touch_event_; - IndexMap index_map_; + PointerIdIndexMap pointer_id_map_; DISALLOW_COPY_AND_ASSIGN(SyntheticTouchDriver); };