Chromium Code Reviews
[email protected] (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(282)

Issue 9963117: Fix InputEventTracker to track key events based on both VK- and USB-keycodes. (Closed)

Created:
8 years, 8 months ago by Wez
Modified:
8 years, 8 months ago
Reviewers:
Sergey Ulanov
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Fix InputEventTracker to track key events based on both VK- and USB-keycodes. This CL also fixes InputEventTracker to cope with events with missing fields, switches the tracker unit-tests to concentrate on USB-based key events, and adds some tests of handling VK-based, VK&USB-based and invalid key events. Previously the InputEventTracker required that all events have a VK-style keycode set, and used that to track the pressed keys. When switching to USB-style events, clients may not transmit a VK-style keycode, or may send a dummy value, which would result in events being incorrectly tracked. BUG=121696 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=130661

Patch Set 1 #

Total comments: 4

Patch Set 2 : Fix PressedKeysLessThan #

Patch Set 3 : Remove duplicate MockInputStub definition. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+182 lines, -49 lines) Patch
M remoting/protocol/input_event_tracker.h View 1 chunk +4 lines, -1 line 0 comments Download
M remoting/protocol/input_event_tracker.cc View 1 3 chunks +21 lines, -9 lines 0 comments Download
M remoting/protocol/input_event_tracker_unittest.cc View 1 2 7 chunks +157 lines, -39 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Wez
PTAL
8 years, 8 months ago (2012-04-03 18:12:35 UTC) #1
Sergey Ulanov
I think there is a bug in PressedKeysLessThan(). Other than that it LGTM. http://codereview.chromium.org/9963117/diff/1/remoting/protocol/input_event_tracker.cc File ...
8 years, 8 months ago (2012-04-03 19:58:19 UTC) #2
Wez
http://codereview.chromium.org/9963117/diff/1/remoting/protocol/input_event_tracker.cc File remoting/protocol/input_event_tracker.cc (right): http://codereview.chromium.org/9963117/diff/1/remoting/protocol/input_event_tracker.cc#newcode18 remoting/protocol/input_event_tracker.cc:18: return true; On 2012/04/03 19:58:19, sergeyu wrote: > I ...
8 years, 8 months ago (2012-04-03 20:18:11 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/9963117/5001
8 years, 8 months ago (2012-04-03 20:20:43 UTC) #4
commit-bot: I haz the power
Try job failure for 9963117-5001 (retry) on win_rel for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-03 21:19:45 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/9963117/6005
8 years, 8 months ago (2012-04-03 22:34:59 UTC) #6
commit-bot: I haz the power
Try job failure for 9963117-6005 (retry) on mac_rel for step "compile" (clobber build). It's a ...
8 years, 8 months ago (2012-04-03 23:28:53 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/9963117/6005
8 years, 8 months ago (2012-04-03 23:47:05 UTC) #8
commit-bot: I haz the power
Try job failure for 9963117-6005 (retry) (retry) on win_rel for step "browser_tests". It's a second ...
8 years, 8 months ago (2012-04-04 05:57:50 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/[email protected]/9963117/6005
8 years, 8 months ago (2012-04-04 06:05:20 UTC) #10
commit-bot: I haz the power
8 years, 8 months ago (2012-04-04 10:39:18 UTC) #11
Try job failure for 9963117-6005 (retry) (retry) on win_rel for step
"browser_tests".
It's a second try, previously, step "browser_tests" failed.
http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&nu...

Powered by Google App Engine
This is Rietveld 408576698