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

Issue 508303002: Move touchscreen device caching to DeviceDataManager (Closed)

Created:
6 years, 3 months ago by dnicoara
Modified:
6 years, 3 months ago
Reviewers:
sadrul, Daniel Erat, spang
CC:
chromium-reviews, rjkroege, ozone-reviews_chromium.org, tdresser+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Move touchscreen device caching to DeviceDataManager Rather than poll for touchscreen devices in ui/display, centralize X11 hotplug handling into ui/events and have TouchscreenDelegateImpl reuse the cached device list. In addition, DeviceDataManager will now cache all the touchscreen devices and provides an observer pattern such that we can move input event hotplugging out of ui/display entirely (this will be done in a follow-up CL). BUG=381326 Committed: https://crrev.com/1e77a6b0a26aecd03e8512e91cdd93befb8a66c0 Cr-Commit-Position: refs/heads/master@{#294388}

Patch Set 1 #

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : Rebased #

Patch Set 5 : Remove PlatformEventObserver #

Total comments: 26

Patch Set 6 : Updated based on feedback #

Patch Set 7 : . #

Total comments: 4

Patch Set 8 : . #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+277 lines, -538 lines) Patch
M ui/display/BUILD.gn View 2 chunks +1 line, -2 lines 0 comments Download
A + ui/display/chromeos/DEPS View 0 chunks +-1 lines, --1 lines 0 comments Download
M ui/display/chromeos/display_configurator.h View 1 1 chunk +0 lines, -1 line 0 comments Download
M ui/display/chromeos/display_configurator.cc View 1 2 chunks +2 lines, -1 line 0 comments Download
M ui/display/chromeos/ozone/display_configurator_ozone.cc View 1 2 chunks +0 lines, -8 lines 0 comments Download
M ui/display/chromeos/touchscreen_delegate_impl.h View 1 2 3 4 5 2 chunks +1 line, -7 lines 0 comments Download
M ui/display/chromeos/touchscreen_delegate_impl.cc View 1 2 3 4 5 6 7 1 chunk +5 lines, -5 lines 0 comments Download
M ui/display/chromeos/touchscreen_delegate_impl_unittest.cc View 1 2 3 4 5 6 8 chunks +36 lines, -47 lines 0 comments Download
M ui/display/chromeos/x11/display_configurator_x11.cc View 1 2 chunks +0 lines, -9 lines 0 comments Download
M ui/display/chromeos/x11/native_display_delegate_x11.h View 1 2 3 4 3 chunks +2 lines, -2 lines 0 comments Download
M ui/display/chromeos/x11/native_display_delegate_x11.cc View 1 2 3 4 5 6 7 5 chunks +29 lines, -52 lines 0 comments Download
D ui/display/chromeos/x11/touchscreen_device_manager_x11.h View 1 chunk +0 lines, -32 lines 0 comments Download
D ui/display/chromeos/x11/touchscreen_device_manager_x11.cc View 1 chunk +0 lines, -163 lines 0 comments Download
M ui/display/display.gyp View 4 chunks +2 lines, -5 lines 0 comments Download
M ui/display/types/BUILD.gn View 1 chunk +0 lines, -3 lines 0 comments Download
D ui/display/types/chromeos/touchscreen_device.h View 1 chunk +0 lines, -31 lines 0 comments Download
D ui/display/types/chromeos/touchscreen_device.cc View 1 chunk +0 lines, -19 lines 0 comments Download
D ui/display/types/chromeos/touchscreen_device_manager.h View 1 chunk +0 lines, -27 lines 0 comments Download
M ui/events/BUILD.gn View 1 2 3 4 5 3 chunks +5 lines, -0 lines 0 comments Download
M ui/events/device_data_manager.h View 1 2 3 4 5 6 4 chunks +23 lines, -1 line 0 comments Download
M ui/events/device_data_manager.cc View 1 2 3 4 5 6 2 chunks +18 lines, -0 lines 0 comments Download
A ui/events/device_hotplug_event_observer.h View 1 2 3 4 5 6 1 chunk +25 lines, -0 lines 2 comments Download
M ui/events/events.gyp View 1 2 3 4 5 2 chunks +5 lines, -0 lines 0 comments Download
A ui/events/input_device_event_observer.h View 1 2 3 4 5 1 chunk +20 lines, -0 lines 0 comments Download
M ui/events/platform/x11/x11_event_source.h View 2 chunks +4 lines, -0 lines 0 comments Download
M ui/events/platform/x11/x11_event_source.cc View 3 chunks +7 lines, -0 lines 0 comments Download
A + ui/events/touchscreen_device.h View 2 chunks +5 lines, -5 lines 0 comments Download
A + ui/events/touchscreen_device.cc View 2 chunks +3 lines, -4 lines 0 comments Download
M ui/events/x/device_list_cache_x.h View 1 chunk +1 line, -0 lines 0 comments Download
A ui/events/x/hotplug_event_handler_x11.h View 1 2 3 4 5 1 chunk +34 lines, -0 lines 0 comments Download
A + ui/events/x/hotplug_event_handler_x11.cc View 1 2 3 4 5 6 8 chunks +50 lines, -31 lines 0 comments Download
M ui/ozone/BUILD.gn View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
D ui/ozone/common/chromeos/touchscreen_device_manager_ozone.h View 1 chunk +0 lines, -27 lines 0 comments Download
D ui/ozone/common/chromeos/touchscreen_device_manager_ozone.cc View 1 chunk +0 lines, -20 lines 0 comments Download
M ui/ozone/ozone.gyp View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M ui/ozone/platform/caca/ozone_platform_caca.cc View 2 chunks +0 lines, -6 lines 0 comments Download
M ui/ozone/platform/dri/ozone_platform_dri.cc View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M ui/ozone/platform/dri/ozone_platform_gbm.cc View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M ui/ozone/platform/egltest/ozone_platform_egltest.cc View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M ui/ozone/platform/test/ozone_platform_test.cc View 1 2 3 2 chunks +0 lines, -6 lines 0 comments Download
M ui/ozone/public/ozone_platform.h View 2 chunks +0 lines, -3 lines 0 comments Download

Messages

Total messages: 16 (2 generated)
dnicoara
dnicoara@chromium.org changed reviewers: + sadrul@chromium.org
6 years, 3 months ago (2014-08-27 22:39:31 UTC) #1
dnicoara
PTAL
6 years, 3 months ago (2014-08-27 22:39:31 UTC) #2
dnicoara
+ spang@ for ui/ozone + derat@ for ui/display
6 years, 3 months ago (2014-09-10 15:14:06 UTC) #4
Daniel Erat
generally looks fine to me for ui/display and ui/events with some comments https://codereview.chromium.org/508303002/diff/80001/ui/display/chromeos/touchscreen_delegate_impl.h File ui/display/chromeos/touchscreen_delegate_impl.h ...
6 years, 3 months ago (2014-09-10 16:51:25 UTC) #5
dnicoara
Thanks for the quick review! https://codereview.chromium.org/508303002/diff/80001/ui/display/chromeos/touchscreen_delegate_impl.h File ui/display/chromeos/touchscreen_delegate_impl.h (right): https://codereview.chromium.org/508303002/diff/80001/ui/display/chromeos/touchscreen_delegate_impl.h#newcode17 ui/display/chromeos/touchscreen_delegate_impl.h:17: explicit TouchscreenDelegateImpl(); On 2014/09/10 ...
6 years, 3 months ago (2014-09-10 18:05:37 UTC) #6
spang
ui/ozone lgtm
6 years, 3 months ago (2014-09-10 18:47:15 UTC) #7
Daniel Erat
lgtm https://codereview.chromium.org/508303002/diff/120001/ui/display/chromeos/touchscreen_delegate_impl.cc File ui/display/chromeos/touchscreen_delegate_impl.cc (right): https://codereview.chromium.org/508303002/diff/120001/ui/display/chromeos/touchscreen_delegate_impl.cc#newcode24 ui/display/chromeos/touchscreen_delegate_impl.cc:24: std::vector<TouchscreenDevice> devices = oh, and if you don't ...
6 years, 3 months ago (2014-09-10 19:12:50 UTC) #8
dnicoara
https://codereview.chromium.org/508303002/diff/120001/ui/display/chromeos/touchscreen_delegate_impl.cc File ui/display/chromeos/touchscreen_delegate_impl.cc (right): https://codereview.chromium.org/508303002/diff/120001/ui/display/chromeos/touchscreen_delegate_impl.cc#newcode24 ui/display/chromeos/touchscreen_delegate_impl.cc:24: std::vector<TouchscreenDevice> devices = On 2014/09/10 19:12:50, Daniel Erat wrote: ...
6 years, 3 months ago (2014-09-10 19:24:25 UTC) #9
sadrul
https://codereview.chromium.org/508303002/diff/140001/ui/events/device_hotplug_event_observer.h File ui/events/device_hotplug_event_observer.h (right): https://codereview.chromium.org/508303002/diff/140001/ui/events/device_hotplug_event_observer.h#newcode21 ui/events/device_hotplug_event_observer.h:21: }; Is the plan that this will grow to ...
6 years, 3 months ago (2014-09-10 19:31:12 UTC) #10
dnicoara
https://codereview.chromium.org/508303002/diff/140001/ui/events/device_hotplug_event_observer.h File ui/events/device_hotplug_event_observer.h (right): https://codereview.chromium.org/508303002/diff/140001/ui/events/device_hotplug_event_observer.h#newcode21 ui/events/device_hotplug_event_observer.h:21: }; On 2014/09/10 19:31:11, sadrul wrote: > Is the ...
6 years, 3 months ago (2014-09-10 19:35:37 UTC) #11
sadrul
On 2014/09/10 19:35:37, dnicoara wrote: > https://codereview.chromium.org/508303002/diff/140001/ui/events/device_hotplug_event_observer.h > File ui/events/device_hotplug_event_observer.h (right): > > https://codereview.chromium.org/508303002/diff/140001/ui/events/device_hotplug_event_observer.h#newcode21 > ...
6 years, 3 months ago (2014-09-10 19:44:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patchset/508303002/140001
6 years, 3 months ago (2014-09-11 13:49:51 UTC) #14
commit-bot: I haz the power
Committed patchset #8 (id:140001) as 16a99ba1c4da2f08fd61641e3e61e097be58dce1
6 years, 3 months ago (2014-09-11 15:09:33 UTC) #15
commit-bot: I haz the power
6 years, 3 months ago (2014-09-11 15:12:07 UTC) #16
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/1e77a6b0a26aecd03e8512e91cdd93befb8a66c0
Cr-Commit-Position: refs/heads/master@{#294388}

Powered by Google App Engine
This is Rietveld 408576698