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 2028593004: Add new InputDeviceManager interface. (Closed)

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

Description

Add new InputDeviceManager interface. This interface contains the methods from DeviceDataManager that we want to expose in multiple processes for mash. A different implementation of the interface will be required to mirror input device state. This will come in a follow up CL. InputDeviceManager holds a non-owning static pointer to an implementation. This allows client code to be agnostic to which implementation they are using. Update client code that uses DeviceDataManager to get information about input-devices to use InputDeviceManager instead. This should have identical functionality in cash and be suitable for use with mash. There is client code where DeviceDataManager is used for information about touch transforms or where DeviceDataManager state is manipulated in tests. These cases are beyond the scope of InputDeviceManager and client code was not updated here. BUG=601981 Committed: https://crrev.com/e223f03206a1f3a34141f36c39ad6f77557bea0d Cr-Commit-Position: refs/heads/master@{#397707}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Rebase/naming/GYP. #

Patch Set 3 : Fix windows compile error. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+191 lines, -81 lines) Patch
M ash/display/display_change_observer_chromeos.cc View 1 3 chunks +5 lines, -4 lines 0 comments Download
M ash/touch/touch_transformer_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ash/virtual_keyboard_controller.cc View 1 3 chunks +7 lines, -7 lines 0 comments Download
M ash/wm/maximize_mode/scoped_disable_internal_mouse_and_keyboard_x11.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/events/event_rewriter.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/system/pointer_device_observer.cc View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/metrics/chrome_browser_main_extra_parts_metrics.cc View 1 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/ui/webui/options/chromeos/keyboard_handler.cc View 1 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/device_keyboard_handler.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/ui/webui/settings/chromeos/device_keyboard_handler.cc View 1 2 chunks +3 lines, -3 lines 0 comments Download
M ui/base/material_design/material_design_controller.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/base/touch/touch_device_linux.cc View 1 2 chunks +6 lines, -6 lines 0 comments Download
M ui/events/devices/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M ui/events/devices/device_data_manager.h View 1 3 chunks +13 lines, -22 lines 0 comments Download
M ui/events/devices/device_data_manager.cc View 1 2 chunks +27 lines, -2 lines 0 comments Download
M ui/events/devices/events_devices.gyp View 1 1 chunk +2 lines, -0 lines 0 comments Download
A ui/events/devices/input_device_manager.h View 1 2 1 chunk +57 lines, -0 lines 0 comments Download
A ui/events/devices/input_device_manager.cc View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
M ui/events/devices/x11/device_data_manager_x11.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M ui/events/devices/x11/device_data_manager_x11_unittest.cc View 1 5 chunks +11 lines, -11 lines 0 comments Download
M ui/events/devices/x11/touch_factory_x11.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ui/events/x/events_x_utils.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M ui/ozone/platform/egltest/ozone_platform_egltest.cc View 1 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 22 (10 generated)
kylechar
sadrul@ for ui/* and general structure. It's missing the GYP file, I will add that ...
4 years, 6 months ago (2016-05-31 20:54:35 UTC) #2
sadrul
lgtm https://codereview.chromium.org/2028593004/diff/1/ui/events/devices/input_device_manager.h File ui/events/devices/input_device_manager.h (right): https://codereview.chromium.org/2028593004/diff/1/ui/events/devices/input_device_manager.h#newcode33 ui/events/devices/input_device_manager.h:33: virtual bool device_lists_complete() const = 0; I believe ...
4 years, 6 months ago (2016-06-02 15:04:39 UTC) #3
kylechar
I've updated the names of the virtual methods. Adding sky@ for ash/* and chrome/*. https://codereview.chromium.org/2028593004/diff/1/ui/events/devices/input_device_manager.h ...
4 years, 6 months ago (2016-06-02 15:23:50 UTC) #5
sky
LGTM
4 years, 6 months ago (2016-06-02 17:56:28 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2028593004/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2028593004/20001
4 years, 6 months ago (2016-06-02 17:58:47 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/240081)
4 years, 6 months ago (2016-06-02 19:29:39 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2028593004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2028593004/40001
4 years, 6 months ago (2016-06-02 21:02:42 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/240295)
4 years, 6 months ago (2016-06-03 00:14:15 UTC) #16
kylechar
Looks like the last CQ failure was just a flake, will try it again.
4 years, 6 months ago (2016-06-03 14:20:41 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/2028593004/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/2028593004/40001
4 years, 6 months ago (2016-06-03 14:21:04 UTC) #19
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 6 months ago (2016-06-03 15:03:06 UTC) #20
commit-bot: I haz the power
4 years, 6 months ago (2016-06-03 15:05:50 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/e223f03206a1f3a34141f36c39ad6f77557bea0d
Cr-Commit-Position: refs/heads/master@{#397707}

Powered by Google App Engine
This is Rietveld 408576698