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

Issue 2019413002: Remove KeyboardDevice class. (Closed)

Created:
4 years, 6 months ago by kylechar
Modified:
4 years, 6 months ago
Reviewers:
sky
CC:
chromium-reviews, dbeam+watch-options_chromium.org, ozone-reviews_chromium.org, michaelpg+watch-options_chromium.org, sadrul, yusukes+watch_chromium.org, tdresser+watch_chromium.org, michaelpg+watch-md-settings_chromium.org, shuchen+watch_chromium.org, nona+watch_chromium.org, oshima+watch_chromium.org, kalyank, dbeam+watch-settings_chromium.org, stevenjb+watch-md-settings_chromium.org, davemoore+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove KeyboardDevice class. The KeyboardDevice class is a subclass of InputDevice that adds no new functionality. This makes it unnecessary and adds additional burden when designing Mojo structs to move around input device information. Remove the KeyboardDevice class and replace all uses with InputDevice instead. BUG=601981 Committed: https://crrev.com/65cb32e4bac337419a78cc63fcd795567b130385 Cr-Commit-Position: refs/heads/master@{#396950}

Patch Set 1 #

Total comments: 10

Patch Set 2 : Fixes for comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+91 lines, -156 lines) Patch
M ash/test/virtual_keyboard_test_helper.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M ash/virtual_keyboard_controller.cc View 2 chunks +1 line, -2 lines 0 comments Download
M ash/virtual_keyboard_controller_unittest.cc View 1 13 chunks +31 lines, -32 lines 0 comments Download
M ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/chromeos/events/event_rewriter.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/device_keyboard_handler.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ui/events/devices/BUILD.gn View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/events/devices/device_data_manager.h View 4 chunks +3 lines, -4 lines 0 comments Download
M ui/events/devices/device_data_manager.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/devices/device_hotplug_event_observer.h View 2 chunks +1 line, -2 lines 0 comments Download
M ui/events/devices/events_devices.gyp View 1 chunk +0 lines, -2 lines 0 comments Download
D ui/events/devices/keyboard_device.h View 1 chunk +0 lines, -23 lines 0 comments Download
D ui/events/devices/keyboard_device.cc View 1 chunk +0 lines, -23 lines 0 comments Download
M ui/events/devices/x11/device_data_manager_x11.h View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/events/devices/x11/device_data_manager_x11.cc View 1 4 chunks +16 lines, -17 lines 0 comments Download
M ui/events/devices/x11/device_data_manager_x11_unittest.cc View 7 chunks +17 lines, -20 lines 0 comments Download
M ui/events/ozone/evdev/device_event_dispatcher_evdev.h View 2 chunks +1 line, -2 lines 0 comments Download
M ui/events/ozone/evdev/event_converter_test_util.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.h View 1 chunk +1 line, -2 lines 0 comments Download
M ui/events/ozone/evdev/event_factory_evdev.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/input_device_factory_evdev.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/events/ozone/evdev/touch_event_converter_evdev_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/events/platform/x11/x11_hotplug_event_handler.cc View 5 chunks +4 lines, -5 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 16 (8 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/2019413002/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2019413002/1
4 years, 6 months ago (2016-05-30 19:48:28 UTC) #4
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-05-30 21:09:46 UTC) #6
kylechar
4 years, 6 months ago (2016-05-30 21:15:54 UTC) #8
sky
LGTM https://codereview.chromium.org/2019413002/diff/1/ash/virtual_keyboard_controller_unittest.cc File ash/virtual_keyboard_controller_unittest.cc (right): https://codereview.chromium.org/2019413002/diff/1/ash/virtual_keyboard_controller_unittest.cc#newcode85 ash/virtual_keyboard_controller_unittest.cc:85: std::vector<ui::InputDevice> keyboards; input_devices or maybe keyboard_devices? https://codereview.chromium.org/2019413002/diff/1/ash/virtual_keyboard_controller_unittest.cc#newcode163 ash/virtual_keyboard_controller_unittest.cc:163: ...
4 years, 6 months ago (2016-05-31 18:13:45 UTC) #9
kylechar
Change the variable names as requested. Thanks for the review! https://codereview.chromium.org/2019413002/diff/1/ash/virtual_keyboard_controller_unittest.cc File ash/virtual_keyboard_controller_unittest.cc (right): https://codereview.chromium.org/2019413002/diff/1/ash/virtual_keyboard_controller_unittest.cc#newcode85 ...
4 years, 6 months ago (2016-05-31 19:31:12 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2019413002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2019413002/20001
4 years, 6 months ago (2016-05-31 19:33:14 UTC) #13
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 6 months ago (2016-05-31 22:19:59 UTC) #14
commit-bot: I haz the power
4 years, 6 months ago (2016-05-31 22:21:21 UTC) #16
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/65cb32e4bac337419a78cc63fcd795567b130385
Cr-Commit-Position: refs/heads/master@{#396950}

Powered by Google App Engine
This is Rietveld 408576698