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

Issue 1071193002: Change device IDs from unsigned to signed. (Closed)

Created:
5 years, 8 months ago by kpschoedel
Modified:
5 years, 8 months ago
Reviewers:
sadrul, Daniel Erat
CC:
chromium-reviews, kalyank, jdduke+watch_chromium.org, sadrul, tdresser+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Change device IDs from unsigned to signed. Change ui::InputDevice::id and ash::DisplayInfo::touch_device_id_ from 'unsigned int' to 'int' in accordance with the coding style guide. Committed: https://crrev.com/a824971547acc92c86a302e442c385f94d63a3fb Cr-Commit-Position: refs/heads/master@{#325042}

Patch Set 1 #

Total comments: 2

Patch Set 2 : more uses in ash_unittests and views_unittests #

Patch Set 3 : more test fixes #

Total comments: 2

Patch Set 4 : address review comments (derat@) #

Patch Set 5 : check for negative IDs #

Unified diffs Side-by-side diffs Delta from patch set Stats (+129 lines, -118 lines) Patch
M ash/display/display_info.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ash/host/ash_window_tree_host_x11_unittest.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ash/touch/touch_transformer_controller.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/touch/touchscreen_util_unittest.cc View 5 chunks +9 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/events/event_rewriter_unittest.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M ui/events/devices/device_data_manager.h View 2 chunks +6 lines, -6 lines 0 comments Download
M ui/events/devices/device_data_manager.cc View 3 chunks +6 lines, -6 lines 0 comments Download
M ui/events/devices/input_device.h View 1 chunk +3 lines, -3 lines 0 comments Download
M ui/events/devices/input_device.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/events/devices/touchscreen_device.h View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/devices/touchscreen_device.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/devices/x11/device_data_manager_x11.h View 3 chunks +8 lines, -8 lines 0 comments Download
M ui/events/devices/x11/device_data_manager_x11.cc View 1 2 3 4 13 chunks +21 lines, -15 lines 0 comments Download
M ui/events/devices/x11/device_data_manager_x11_unittest.cc View 6 chunks +15 lines, -15 lines 0 comments Download
M ui/events/devices/x11/touch_factory_x11.h View 1 2 3 2 chunks +8 lines, -5 lines 0 comments Download
M ui/events/devices/x11/touch_factory_x11.cc View 1 2 3 4 chunks +21 lines, -19 lines 0 comments Download
M ui/events/test/events_test_utils_x11.h View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/events/test/events_test_utils_x11.cc View 1 chunk +5 lines, -5 lines 0 comments Download
M ui/events/x/events_x_unittest.cc View 5 chunks +9 lines, -9 lines 0 comments Download
M ui/ozone/platform/egltest/ozone_platform_egltest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ui/views/controls/menu/menu_controller_unittest.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11_unittest.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 24 (10 generated)
kpschoedel
Split from https://codereview.chromium.org/1073573002/
5 years, 8 months ago (2015-04-09 16:07:07 UTC) #2
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1071193002/1
5 years, 8 months ago (2015-04-09 16:08:20 UTC) #4
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/55162)
5 years, 8 months ago (2015-04-09 16:19:22 UTC) #6
Daniel Erat
https://codereview.chromium.org/1071193002/diff/1/ui/events/devices/x11/touch_factory_x11.cc File ui/events/devices/x11/touch_factory_x11.cc (right): https://codereview.chromium.org/1071193002/diff/1/ui/events/devices/x11/touch_factory_x11.cc#newcode239 ui/events/devices/x11/touch_factory_x11.cc:239: return (deviceid > 0 && should this be >= ...
5 years, 8 months ago (2015-04-09 16:41:21 UTC) #7
kpschoedel
https://codereview.chromium.org/1071193002/diff/1/ui/events/devices/x11/touch_factory_x11.cc File ui/events/devices/x11/touch_factory_x11.cc (right): https://codereview.chromium.org/1071193002/diff/1/ui/events/devices/x11/touch_factory_x11.cc#newcode239 ui/events/devices/x11/touch_factory_x11.cc:239: return (deviceid > 0 && On 2015/04/09 16:41:21, Daniel ...
5 years, 8 months ago (2015-04-09 17:27:51 UTC) #8
Daniel Erat
lgtm with one suggestion, but sadrul probably needs to approve https://codereview.chromium.org/1071193002/diff/40001/ui/events/devices/x11/touch_factory_x11.cc File ui/events/devices/x11/touch_factory_x11.cc (right): https://codereview.chromium.org/1071193002/diff/40001/ui/events/devices/x11/touch_factory_x11.cc#newcode225 ...
5 years, 8 months ago (2015-04-09 19:55:27 UTC) #9
kpschoedel
https://codereview.chromium.org/1071193002/diff/40001/ui/events/devices/x11/touch_factory_x11.cc File ui/events/devices/x11/touch_factory_x11.cc (right): https://codereview.chromium.org/1071193002/diff/40001/ui/events/devices/x11/touch_factory_x11.cc#newcode225 ui/events/devices/x11/touch_factory_x11.cc:225: (static_cast<size_t>(*iter) < touch_device_lookup_.size())); On 2015/04/09 19:55:27, Daniel Erat wrote: ...
5 years, 8 months ago (2015-04-09 20:12:32 UTC) #10
sadrul
lgtm
5 years, 8 months ago (2015-04-09 20:19:19 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1071193002/60001
5 years, 8 months ago (2015-04-09 20:22:53 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1071193002/80001
5 years, 8 months ago (2015-04-13 22:35:00 UTC) #18
commit-bot: I haz the power
This issue passed the CQ dry run.
5 years, 8 months ago (2015-04-14 00:34:03 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1071193002/80001
5 years, 8 months ago (2015-04-14 14:35:37 UTC) #22
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 8 months ago (2015-04-14 14:36:37 UTC) #23
commit-bot: I haz the power
5 years, 8 months ago (2015-04-14 14:37:16 UTC) #24
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/a824971547acc92c86a302e442c385f94d63a3fb
Cr-Commit-Position: refs/heads/master@{#325042}

Powered by Google App Engine
This is Rietveld 408576698