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

Issue 2754203005: touchpad swipe support added.

Created:
3 years, 9 months ago by sahel
Modified:
3 years, 7 months ago
CC:
catapult-reviews_chromium.org, telemetry-reviews_chromium.org
Target Ref:
refs/heads/master
Project:
catapult
Visibility:
Public.

Description

touchpad swipe support added. I also changed the swipe directions to be consistent with smoothScrollBy. 'down' direction with positive scroll pixels scrolls down the page. testSwipe is temprorarily disabled to land the chaning cl: https://codereview.chromium.org/2742473002/ BUG=catapult:#3415

Patch Set 1 #

Total comments: 4

Patch Set 2 : Comments on scroll and swipe directions. #

Total comments: 8

Patch Set 3 : comments modified and js new style violations fixed. #

Total comments: 5
Unified diffs Side-by-side diffs Delta from patch set Stats (+85 lines, -39 lines) Patch
M telemetry/telemetry/internal/actions/action_runner.py View 1 2 7 chunks +43 lines, -15 lines 1 comment Download
M telemetry/telemetry/internal/actions/action_runner_unittest.py View 1 2 chunks +6 lines, -3 lines 1 comment Download
M telemetry/telemetry/internal/actions/swipe.js View 1 2 3 chunks +14 lines, -10 lines 1 comment Download
M telemetry/telemetry/internal/actions/swipe.py View 4 chunks +22 lines, -11 lines 2 comments Download

Messages

Total messages: 48 (25 generated)
sahel
This is the catapult part of the cl for swipe touchpad support: https://codereview.chromium.org/2742473002/
3 years, 9 months ago (2017-03-17 18:55:51 UTC) #7
tdresser
LGTM, but you'll need to get a catapult reviewer with context in python too. https://codereview.chromium.org/2754203005/diff/1/telemetry/telemetry/internal/actions/action_runner_unittest.py ...
3 years, 9 months ago (2017-03-17 19:03:40 UTC) #8
dtapuska
On 2017/03/17 18:55:51, sahel wrote: > This is the catapult part of the cl for ...
3 years, 9 months ago (2017-03-17 19:05:14 UTC) #9
sahel
On 2017/03/17 19:05:14, dtapuska wrote: > On 2017/03/17 18:55:51, sahel wrote: > > This is ...
3 years, 9 months ago (2017-03-17 19:48:32 UTC) #10
sahel
https://codereview.chromium.org/2754203005/diff/1/telemetry/telemetry/internal/actions/action_runner_unittest.py File telemetry/telemetry/internal/actions/action_runner_unittest.py (right): https://codereview.chromium.org/2754203005/diff/1/telemetry/telemetry/internal/actions/action_runner_unittest.py#newcode380 telemetry/telemetry/internal/actions/action_runner_unittest.py:380: # https://github.com/catapult-project/catapult/issues/3415 On 2017/03/17 19:03:40, tdresser wrote: > Normally ...
3 years, 9 months ago (2017-03-17 19:48:41 UTC) #11
sahel
3 years, 9 months ago (2017-03-21 15:26:15 UTC) #17
bokan
https://codereview.chromium.org/2754203005/diff/20001/telemetry/telemetry/internal/actions/swipe.py File telemetry/telemetry/internal/actions/swipe.py (right): https://codereview.chromium.org/2754203005/diff/20001/telemetry/telemetry/internal/actions/swipe.py#newcode43 telemetry/telemetry/internal/actions/swipe.py:43: if self._synthetic_gesture_source == 'chrome.gpuBenchmarking.MOUSE_INPUT': Why is 0 velocity for ...
3 years, 9 months ago (2017-03-22 19:32:32 UTC) #18
sahel
https://codereview.chromium.org/2754203005/diff/20001/telemetry/telemetry/internal/actions/swipe.py File telemetry/telemetry/internal/actions/swipe.py (right): https://codereview.chromium.org/2754203005/diff/20001/telemetry/telemetry/internal/actions/swipe.py#newcode43 telemetry/telemetry/internal/actions/swipe.py:43: if self._synthetic_gesture_source == 'chrome.gpuBenchmarking.MOUSE_INPUT': On 2017/03/22 19:32:31, bokan wrote: ...
3 years, 9 months ago (2017-03-23 17:10:27 UTC) #19
bokan
Ok lgtm from me, just have a question for my own understanding. https://codereview.chromium.org/2754203005/diff/20001/telemetry/telemetry/internal/actions/swipe.py File telemetry/telemetry/internal/actions/swipe.py ...
3 years, 9 months ago (2017-03-23 21:36:47 UTC) #20
sahel
On 2017/03/23 21:36:47, bokan wrote: > Ok lgtm from me, just have a question for ...
3 years, 9 months ago (2017-03-24 15:13:12 UTC) #21
bokan
On 2017/03/24 15:13:12, sahel wrote: > On 2017/03/23 21:36:47, bokan wrote: > > Ok lgtm ...
3 years, 9 months ago (2017-03-24 17:57:32 UTC) #22
bokan
On 2017/03/24 15:13:12, sahel wrote: > On 2017/03/23 21:36:47, bokan wrote: > > Ok lgtm ...
3 years, 9 months ago (2017-03-24 17:57:33 UTC) #23
bokan
On 2017/03/24 15:13:12, sahel wrote: > On 2017/03/23 21:36:47, bokan wrote: > > Ok lgtm ...
3 years, 9 months ago (2017-03-24 17:57:49 UTC) #24
dtu
lgtm
3 years, 9 months ago (2017-03-24 18:13:01 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2754203005/20001
3 years, 9 months ago (2017-03-24 18:40:00 UTC) #28
commit-bot: I haz the power
Try jobs failed on following builders: Catapult Presubmit on master.tryserver.client.catapult (JOB_FAILED, https://build.chromium.org/p/tryserver.client.catapult/builders/Catapult%20Presubmit/builds/6665)
3 years, 9 months ago (2017-03-24 18:43:30 UTC) #30
sahel
This is the catapult part of the cl for swipe touchpad support: https://codereview.chromium.org/2742473002/
3 years, 9 months ago (2017-03-24 19:21:04 UTC) #32
sullivan
3 years, 9 months ago (2017-03-27 18:44:41 UTC) #34
nednguyen
On 2017/03/27 18:44:41, sullivan wrote: Randy: can you take a pass at reviewing this?
3 years, 9 months ago (2017-03-27 19:24:55 UTC) #36
rnephew (Reviews Here)
lgtm with a supernit. https://codereview.chromium.org/2754203005/diff/20001/telemetry/telemetry/internal/actions/action_runner.py File telemetry/telemetry/internal/actions/action_runner.py (right): https://codereview.chromium.org/2754203005/diff/20001/telemetry/telemetry/internal/actions/action_runner.py#newcode421 telemetry/telemetry/internal/actions/action_runner.py:421: Direction = 'down' with positive ...
3 years, 8 months ago (2017-03-28 20:04:19 UTC) #37
nednguyen
https://codereview.chromium.org/2754203005/diff/20001/telemetry/telemetry/internal/actions/action_runner.py File telemetry/telemetry/internal/actions/action_runner.py (right): https://codereview.chromium.org/2754203005/diff/20001/telemetry/telemetry/internal/actions/action_runner.py#newcode421 telemetry/telemetry/internal/actions/action_runner.py:421: Direction = 'down' with positive distance to scroll increases ...
3 years, 8 months ago (2017-03-28 21:15:16 UTC) #38
sahel
I had to remove the unused self alias for this in swipe.js due to js ...
3 years, 8 months ago (2017-04-25 18:03:54 UTC) #47
nednguyen
3 years, 8 months ago (2017-04-26 20:17:36 UTC) #48
https://codereview.chromium.org/2754203005/diff/40001/telemetry/telemetry/int...
File telemetry/telemetry/internal/actions/action_runner.py (right):

https://codereview.chromium.org/2754203005/diff/40001/telemetry/telemetry/int...
telemetry/telemetry/internal/actions/action_runner.py:650: velocity_x,
velocity_y: Fling velocities for touchpad swipe
Hmhh, could this cause conflict with speed_in_pixels_per_second? What happens to
speed_in_pixels_per_second when both of these are set?

Also please add units in the variable name as the convention in this file:
fling_speed_x_in_pixels_per_second, fling_speed_y_in_pixels_per_second

https://codereview.chromium.org/2754203005/diff/40001/telemetry/telemetry/int...
File telemetry/telemetry/internal/actions/action_runner_unittest.py (right):

https://codereview.chromium.org/2754203005/diff/40001/telemetry/telemetry/int...
telemetry/telemetry/internal/actions/action_runner_unittest.py:377: 
Please also add tests that exercise the new code path.

https://codereview.chromium.org/2754203005/diff/40001/telemetry/telemetry/int...
File telemetry/telemetry/internal/actions/swipe.js (right):

https://codereview.chromium.org/2754203005/diff/40001/telemetry/telemetry/int...
telemetry/telemetry/internal/actions/swipe.js:74: if (this.callback_) {
please don't change this in this CL. Style change should be consistent, so
should be applied to other files as well.

https://codereview.chromium.org/2754203005/diff/40001/telemetry/telemetry/int...
File telemetry/telemetry/internal/actions/swipe.py (right):

https://codereview.chromium.org/2754203005/diff/40001/telemetry/telemetry/int...
telemetry/telemetry/internal/actions/swipe.py:43: if
self._synthetic_gesture_source == 'chrome.gpuBenchmarking.MOUSE_INPUT':
Instead of "if a:; if b and c:", can you change this to "if a and b and c"?
Nested code usually make it harder to follow the flow.

https://codereview.chromium.org/2754203005/diff/40001/telemetry/telemetry/int...
telemetry/telemetry/internal/actions/swipe.py:46: 'Touchpad fling must have
non-zero velocity.')
If self._synthetic_gesture_source != 'chrome.gpuBenchmarking.MOUSE_INPUT, should
we raise exception if either of velocity_x or velocity_y is non zero?

Powered by Google App Engine
This is Rietveld 408576698