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

Issue 289283015: Extract touchscreen device management into a generic manager (Closed)

Created:
6 years, 7 months ago by dnicoara
Modified:
6 years, 6 months ago
Reviewers:
sadrul, sky
CC:
chromium-reviews, tdanderson+views_chromium.org, sadrul, nkostylev+watch_chromium.org, derat+watch_chromium.org, tdresser+watch_chromium.org, tfarina, ben+aura_chromium.org, ben+ash_chromium.org, oshima+watch_chromium.org, kalyank, ben+views_chromium.org, stevenjb+watch_chromium.org, davemoore+watch_chromium.org, yusukes+watch_chromium.org, kpschoedel
Visibility:
Public.

Description

Extract touchscreen device management into a generic manager DeviceDataManager is currently X11 specific, so CrOS code that is responsible for touchscreen management would only work under X11. This CL starts extracting device state as generic state that X11 and Ozone implementations can share. BUG=375848 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=279126

Patch Set 1 #

Patch Set 2 : . #

Total comments: 1

Patch Set 3 : . #

Total comments: 6

Patch Set 4 : . #

Patch Set 5 : . #

Patch Set 6 : . #

Patch Set 7 : Fixed unittests #

Patch Set 8 : Rebased #

Patch Set 9 : Rebased #

Patch Set 10 : . #

Patch Set 11 : . #

Patch Set 12 : Rebased #

Total comments: 15

Patch Set 13 : Updated #

Patch Set 14 : . #

Patch Set 15 : Rebased #

Total comments: 2

Patch Set 16 : Updated #

Total comments: 6

Patch Set 17 : Updated #

Patch Set 18 : Rebased #

Patch Set 19 : Rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+379 lines, -1227 lines) Patch
M ash/host/ash_window_tree_host_x11.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/sticky_keys/sticky_keys_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 18 1 chunk +0 lines, -1 line 0 comments Download
M ash/touch/touch_hud_debug.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +3 lines, -3 lines 0 comments Download
M ash/touch/touch_transformer_controller.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M ash/touch/touch_transformer_controller_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ash/wm/maximize_mode/internal_input_device_list_x11.cc View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/device_uma.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/metrics/chromeos_metrics_provider_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 2 chunks +8 lines, -0 lines 0 comments Download
M ui/aura/window_tree_host_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 3 chunks +3 lines, -3 lines 0 comments Download
M ui/base/x/x11_util.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 3 chunks +3 lines, -3 lines 0 comments Download
M ui/events/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 2 chunks +6 lines, -2 lines 0 comments Download
A ui/events/device_data_manager.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +54 lines, -0 lines 0 comments Download
A ui/events/device_data_manager.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +91 lines, -0 lines 0 comments Download
M ui/events/events.gyp View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +7 lines, -2 lines 0 comments Download
M ui/events/platform/x11/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/platform/x11/x11_event_source.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +2 lines, -0 lines 0 comments Download
M ui/events/platform/x11/x11_events_platform.gyp View 1 2 3 4 5 6 7 8 9 10 1 chunk +1 line, -0 lines 0 comments Download
M ui/events/test/events_test_utils_x11.h View 2 chunks +3 lines, -3 lines 0 comments Download
M ui/events/test/events_test_utils_x11.cc View 1 2 3 4 5 6 7 7 chunks +17 lines, -16 lines 0 comments Download
D ui/events/x/device_data_manager.h View 1 chunk +0 lines, -309 lines 0 comments Download
D ui/events/x/device_data_manager.cc View 1 chunk +0 lines, -693 lines 0 comments Download
A + ui/events/x/device_data_manager_x11.h View 1 2 3 4 5 6 7 8 9 10 11 12 7 chunks +12 lines, -29 lines 0 comments Download
A + ui/events/x/device_data_manager_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 25 chunks +77 lines, -100 lines 0 comments Download
M ui/events/x/device_list_cache_x.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ui/events/x/events_x.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 18 chunks +32 lines, -30 lines 0 comments Download
M ui/events/x/events_x_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 13 chunks +33 lines, -17 lines 0 comments Download
M ui/events/x/touch_factory_x11.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M ui/gfx/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +1 line, -0 lines 0 comments Download
M ui/ozone/ozone_platform.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 2 chunks +4 lines, -0 lines 0 comments Download
M ui/views/controls/menu/menu_controller_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 2 chunks +6 lines, -1 line 0 comments Download
M ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 25 (0 generated)
dnicoara
PTAL
6 years, 7 months ago (2014-05-21 20:54:09 UTC) #1
sadrul
I have one suggestion about GetInstance() implementation. The rest of the changes look good. https://codereview.chromium.org/289283015/diff/20001/ui/events/device_data_manager.cc ...
6 years, 6 months ago (2014-05-27 15:50:20 UTC) #2
dnicoara
Please take another look. There probably are other unittests that may need to be updated, ...
6 years, 6 months ago (2014-05-28 18:10:34 UTC) #3
sadrul
https://codereview.chromium.org/289283015/diff/40001/ui/events/device_data_manager.cc File ui/events/device_data_manager.cc (right): https://codereview.chromium.org/289283015/diff/40001/ui/events/device_data_manager.cc#newcode19 ui/events/device_data_manager.cc:19: base::AtExitManager::RegisterTask(base::Bind(&DeviceDataManager::OnExit, base::DeletePointer<>? https://codereview.chromium.org/289283015/diff/40001/ui/events/device_data_manager.cc#newcode31 ui/events/device_data_manager.cc:31: //static I am not a ...
6 years, 6 months ago (2014-05-30 09:44:30 UTC) #4
dnicoara
Sorry for the delay, I look a further look at how we could further centralize ...
6 years, 6 months ago (2014-06-10 20:25:03 UTC) #5
sadrul
https://codereview.chromium.org/289283015/diff/200001/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc File chrome/browser/metrics/chromeos_metrics_provider_unittest.cc (right): https://codereview.chromium.org/289283015/diff/200001/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc#newcode106 chrome/browser/metrics/chromeos_metrics_provider_unittest.cc:106: base::ShadowingAtExitManager at_exit_; Requiring all tests that use the DDMX11 ...
6 years, 6 months ago (2014-06-16 14:48:38 UTC) #6
sadrul
Also, please add some details in the CL description.
6 years, 6 months ago (2014-06-16 14:50:24 UTC) #7
dnicoara
https://codereview.chromium.org/289283015/diff/200001/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc File chrome/browser/metrics/chromeos_metrics_provider_unittest.cc (right): https://codereview.chromium.org/289283015/diff/200001/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc#newcode106 chrome/browser/metrics/chromeos_metrics_provider_unittest.cc:106: base::ShadowingAtExitManager at_exit_; On 2014/06/16 14:48:37, sadrul wrote: > Requiring ...
6 years, 6 months ago (2014-06-16 15:13:57 UTC) #8
dnicoara
https://codereview.chromium.org/289283015/diff/200001/ui/events/BUILD.gn File ui/events/BUILD.gn (right): https://codereview.chromium.org/289283015/diff/200001/ui/events/BUILD.gn#newcode69 ui/events/BUILD.gn:69: forward_dependent_configs_from = [ "//ui/gfx" ] On 2014/06/16 14:48:38, sadrul ...
6 years, 6 months ago (2014-06-16 15:16:00 UTC) #9
sadrul
https://codereview.chromium.org/289283015/diff/200001/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc File chrome/browser/metrics/chromeos_metrics_provider_unittest.cc (right): https://codereview.chromium.org/289283015/diff/200001/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc#newcode106 chrome/browser/metrics/chromeos_metrics_provider_unittest.cc:106: base::ShadowingAtExitManager at_exit_; On 2014/06/16 15:13:56, dnicoara wrote: > On ...
6 years, 6 months ago (2014-06-17 20:37:08 UTC) #10
dnicoara
https://codereview.chromium.org/289283015/diff/200001/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc File chrome/browser/metrics/chromeos_metrics_provider_unittest.cc (right): https://codereview.chromium.org/289283015/diff/200001/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc#newcode106 chrome/browser/metrics/chromeos_metrics_provider_unittest.cc:106: base::ShadowingAtExitManager at_exit_; On 2014/06/17 20:37:08, sadrul wrote: > On ...
6 years, 6 months ago (2014-06-18 14:04:29 UTC) #11
sadrul
https://codereview.chromium.org/289283015/diff/200001/ui/events/BUILD.gn File ui/events/BUILD.gn (right): https://codereview.chromium.org/289283015/diff/200001/ui/events/BUILD.gn#newcode69 ui/events/BUILD.gn:69: forward_dependent_configs_from = [ "//ui/gfx" ] On 2014/06/18 14:04:29, dnicoara ...
6 years, 6 months ago (2014-06-18 16:18:14 UTC) #12
dnicoara
https://codereview.chromium.org/289283015/diff/200001/ui/events/BUILD.gn File ui/events/BUILD.gn (right): https://codereview.chromium.org/289283015/diff/200001/ui/events/BUILD.gn#newcode69 ui/events/BUILD.gn:69: forward_dependent_configs_from = [ "//ui/gfx" ] On 2014/06/18 16:18:14, sadrul ...
6 years, 6 months ago (2014-06-18 17:28:02 UTC) #13
sadrul
lgtm https://codereview.chromium.org/289283015/diff/280001/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc File chrome/browser/metrics/chromeos_metrics_provider_unittest.cc (right): https://codereview.chromium.org/289283015/diff/280001/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc#newcode58 chrome/browser/metrics/chromeos_metrics_provider_unittest.cc:58: ui::DeviceDataManagerX11::CreateInstance(); Is this necessary? https://codereview.chromium.org/289283015/diff/280001/ui/events/device_data_manager.h File ui/events/device_data_manager.h (right): ...
6 years, 6 months ago (2014-06-20 13:37:52 UTC) #14
dnicoara
https://codereview.chromium.org/289283015/diff/280001/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc File chrome/browser/metrics/chromeos_metrics_provider_unittest.cc (right): https://codereview.chromium.org/289283015/diff/280001/chrome/browser/metrics/chromeos_metrics_provider_unittest.cc#newcode58 chrome/browser/metrics/chromeos_metrics_provider_unittest.cc:58: ui::DeviceDataManagerX11::CreateInstance(); On 2014/06/20 13:37:52, sadrul wrote: > Is this ...
6 years, 6 months ago (2014-06-20 14:48:00 UTC) #15
dnicoara
+sky@ for ash/ chrome/ ui/gfx/
6 years, 6 months ago (2014-06-20 16:18:27 UTC) #16
sky
Said files LGTM
6 years, 6 months ago (2014-06-20 19:57:15 UTC) #17
dnicoara
The CQ bit was checked by dnicoara@chromium.org
6 years, 6 months ago (2014-06-23 13:19:45 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dnicoara@chromium.org/289283015/320001
6 years, 6 months ago (2014-06-23 13:20:33 UTC) #19
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: android_aosp on tryserver.chromium ...
6 years, 6 months ago (2014-06-23 13:23:18 UTC) #20
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 6 months ago (2014-06-23 13:25:25 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: android_aosp on tryserver.chromium (http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/86683)
6 years, 6 months ago (2014-06-23 13:25:26 UTC) #22
dnicoara
The CQ bit was checked by dnicoara@chromium.org
6 years, 6 months ago (2014-06-23 14:04:49 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dnicoara@chromium.org/289283015/340001
6 years, 6 months ago (2014-06-23 14:05:07 UTC) #24
commit-bot: I haz the power
6 years, 6 months ago (2014-06-23 17:11:22 UTC) #25
Message was sent while issue was closed.
Change committed as 279126

Powered by Google App Engine
This is Rietveld 408576698