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

Issue 1403583003: Use standard DOM code definitions instead of custom. (Closed)

Created:
5 years, 2 months ago by Jamie
Modified:
5 years, 2 months ago
CC:
chromium-reviews, chromoting-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use standard DOM code definitions instead of custom. This turns out to be a bit more churn than I'd hoped because ui/events/keycodes/dom/dom_code.h declares a strongly-typed enum, which can't be compared to unsigned int without a cast. Overall, I like the safety of typed enums, so I added the casts rather than declaring our own untyped equivalent, but LMK if you would prefer that. Committed: https://crrev.com/aadc22f8398b451ed76da4183f05f72b0349f0bd Cr-Commit-Position: refs/heads/master@{#353626}

Patch Set 1 #

Patch Set 2 : Fix unit test compilation. #

Patch Set 3 : Fix Mac compile. #

Patch Set 4 : Pre-review clean-up. #

Patch Set 5 : Fix Windows compile. #

Total comments: 10

Patch Set 6 : Reviewer feedback. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+290 lines, -308 lines) Patch
M remoting/client/normalizing_input_filter_cros.cc View 1 2 3 4 5 1 chunk +13 lines, -14 lines 0 comments Download
M remoting/client/normalizing_input_filter_cros_unittest.cc View 1 2 3 4 5 11 chunks +84 lines, -87 lines 0 comments Download
M remoting/client/normalizing_input_filter_mac.cc View 2 chunks +15 lines, -11 lines 0 comments Download
M remoting/client/normalizing_input_filter_mac_unittest.cc View 1 2 3 4 5 8 chunks +105 lines, -90 lines 0 comments Download
M remoting/host/input_injector_x11.cc View 3 chunks +11 lines, -11 lines 0 comments Download
M remoting/host/win/session_input_injector.cc View 1 2 3 4 4 chunks +11 lines, -10 lines 0 comments Download
M remoting/protocol/DEPS View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M remoting/protocol/input_event_tracker.h View 3 chunks +3 lines, -2 lines 0 comments Download
M remoting/protocol/input_event_tracker.cc View 1 2 3 4 5 7 chunks +15 lines, -16 lines 0 comments Download
M remoting/protocol/input_event_tracker_unittest.cc View 1 3 chunks +12 lines, -12 lines 0 comments Download
D remoting/protocol/usb_key_codes.h View 1 chunk +0 lines, -33 lines 0 comments Download
M remoting/remoting_srcs.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M remoting/test/DEPS View 1 2 3 4 5 1 chunk +2 lines, -1 line 0 comments Download
M remoting/test/app_remoting_latency_test_fixture.h View 3 chunks +5 lines, -3 lines 0 comments Download
M remoting/test/app_remoting_latency_test_fixture.cc View 4 chunks +13 lines, -17 lines 0 comments Download

Messages

Total messages: 36 (15 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403583003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403583003/1
5 years, 2 months ago (2015-10-10 01:28:54 UTC) #2
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/108400)
5 years, 2 months ago (2015-10-10 01:39:34 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403583003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403583003/20001
5 years, 2 months ago (2015-10-12 17:22:49 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: linux_chromium_gn_chromeos_rel on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_chromeos_rel/builds/92690)
5 years, 2 months ago (2015-10-12 17:32:48 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403583003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403583003/40001
5 years, 2 months ago (2015-10-12 17:42:48 UTC) #10
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/108611)
5 years, 2 months ago (2015-10-12 17:57:17 UTC) #12
Jamie
Having our own copy of these defintions makes less and less sense the more we ...
5 years, 2 months ago (2015-10-12 18:05:58 UTC) #14
Jamie
+danakj for DEPS
5 years, 2 months ago (2015-10-12 18:12:44 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403583003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403583003/80001
5 years, 2 months ago (2015-10-12 18:13:55 UTC) #18
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/108621)
5 years, 2 months ago (2015-10-12 18:23:47 UTC) #20
danakj
I'm not a ui/events owner.
5 years, 2 months ago (2015-10-12 18:29:47 UTC) #21
Jamie
I think your LGTM is needed because the presubmit check thinks I've added ui/gfx (actually ...
5 years, 2 months ago (2015-10-12 21:10:02 UTC) #23
danakj
no change LGTM :p https://codereview.chromium.org/1403583003/diff/80001/remoting/test/DEPS File remoting/test/DEPS (right): https://codereview.chromium.org/1403583003/diff/80001/remoting/test/DEPS#newcode10 remoting/test/DEPS:10: "+ui/events/keycodes/dom" put a comma on ...
5 years, 2 months ago (2015-10-12 21:12:27 UTC) #24
Sergey Ulanov
lgtm, but please see my nits about uint32_t. https://codereview.chromium.org/1403583003/diff/80001/remoting/client/normalizing_input_filter_cros.cc File remoting/client/normalizing_input_filter_cros.cc (right): https://codereview.chromium.org/1403583003/diff/80001/remoting/client/normalizing_input_filter_cros.cc#newcode15 remoting/client/normalizing_input_filter_cros.cc:15: static ...
5 years, 2 months ago (2015-10-12 21:45:57 UTC) #25
Jamie
https://codereview.chromium.org/1403583003/diff/80001/remoting/client/normalizing_input_filter_cros.cc File remoting/client/normalizing_input_filter_cros.cc (right): https://codereview.chromium.org/1403583003/diff/80001/remoting/client/normalizing_input_filter_cros.cc#newcode15 remoting/client/normalizing_input_filter_cros.cc:15: static bool IsOsKey(unsigned int code) { On 2015/10/12 21:45:57, ...
5 years, 2 months ago (2015-10-12 22:26:09 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403583003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403583003/100001
5 years, 2 months ago (2015-10-12 22:26:25 UTC) #29
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/108707)
5 years, 2 months ago (2015-10-12 22:36:33 UTC) #31
garykac
lgtm
5 years, 2 months ago (2015-10-12 22:50:33 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1403583003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1403583003/100001
5 years, 2 months ago (2015-10-12 22:52:37 UTC) #34
commit-bot: I haz the power
Committed patchset #6 (id:100001)
5 years, 2 months ago (2015-10-12 23:26:04 UTC) #35
commit-bot: I haz the power
5 years, 2 months ago (2015-10-12 23:27:04 UTC) #36
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/aadc22f8398b451ed76da4183f05f72b0349f0bd
Cr-Commit-Position: refs/heads/master@{#353626}

Powered by Google App Engine
This is Rietveld 408576698