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

Issue 250923005: Touch emulator: overwrite timestamps from mouse event with current time. (Closed)

Created:
6 years, 8 months ago by dgozman
Modified:
6 years, 7 months ago
Reviewers:
jdduke (slow)
CC:
chromium-reviews, jam, jdduke+watch_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Touch emulator: overwrite timestamps from mouse event with current time. On some platfroms, mouse events come with a bad timestamp, which leads to awkward time-dependent gestures. For example, fling animation may be almost instant. Using base::TimeTicks::Now() is good enough for emulation purposes, because emulator spawns new events itself. BUG=367156 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266548

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fixed jdduke's comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -5 lines) Patch
M content/browser/renderer_host/input/touch_emulator.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/browser/renderer_host/input/touch_emulator.cc View 1 2 chunks +11 lines, -1 line 0 comments Download
M content/browser/renderer_host/input/touch_emulator_unittest.cc View 2 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
dgozman
Take a look please. This works on linux, and I will test canary on Mac ...
6 years, 8 months ago (2014-04-25 16:52:18 UTC) #1
jdduke (slow)
lgtm with nit, thanks. https://codereview.chromium.org/250923005/diff/1/content/browser/renderer_host/input/touch_emulator.cc File content/browser/renderer_host/input/touch_emulator.cc (right): https://codereview.chromium.org/250923005/diff/1/content/browser/renderer_host/input/touch_emulator.cc#newcode319 content/browser/renderer_host/input/touch_emulator.cc:319: void TouchEmulator::FillPinchEvent(const WebInputEvent& event) { ...
6 years, 8 months ago (2014-04-25 16:56:05 UTC) #2
dgozman
https://codereview.chromium.org/250923005/diff/1/content/browser/renderer_host/input/touch_emulator.cc File content/browser/renderer_host/input/touch_emulator.cc (right): https://codereview.chromium.org/250923005/diff/1/content/browser/renderer_host/input/touch_emulator.cc#newcode319 content/browser/renderer_host/input/touch_emulator.cc:319: void TouchEmulator::FillPinchEvent(const WebInputEvent& event) { On 2014/04/25 16:56:05, jdduke ...
6 years, 8 months ago (2014-04-28 09:34:21 UTC) #3
dgozman
The CQ bit was checked by dgozman@chromium.org
6 years, 8 months ago (2014-04-28 09:34:26 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/250923005/20001
6 years, 8 months ago (2014-04-28 09:35:01 UTC) #5
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-28 09:43:19 UTC) #6
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on ios_dbg_simulator
6 years, 8 months ago (2014-04-28 09:43:19 UTC) #7
dgozman
The CQ bit was checked by dgozman@chromium.org
6 years, 8 months ago (2014-04-28 11:03:51 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dgozman@chromium.org/250923005/20001
6 years, 8 months ago (2014-04-28 11:04:27 UTC) #9
commit-bot: I haz the power
Change committed as 266548
6 years, 7 months ago (2014-04-28 13:52:01 UTC) #10
Nico
6 years, 7 months ago (2014-04-28 18:26:36 UTC) #11
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/252963002/ by thakis@chromium.org.

The reason for reverting is: Somewhat speculative; looks like this caused
TouchEmulatorTest failures on valgrind:

http://build.chromium.org/p/chromium.memory.fyi/builders/Linux%20Tests%20%28t...

TouchEmulatorTest.Pinch:
../../content/browser/renderer_host/input/touch_emulator_unittest.cc:254:
Failure
Value of: ExpectedEvents()
Actual: "TouchEnd GestureFlingStart"
Expected: "TouchEnd GestureScrollEnd"

etc.

Powered by Google App Engine
This is Rietveld 408576698