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

Issue 212603005: Don't handle NaturalScroll in Chrome but pass it to CMT instead (Closed)

Created:
6 years, 9 months ago by denniskempin (chromium)
Modified:
6 years, 8 months ago
Reviewers:
tfarina, achuithb, sadrul, sky
CC:
chromium-reviews, nkostylev+watch_chromium.org, tfarina, davemoore+watch_chromium.org, oshima+watch_chromium.org, kalyank, stevenjb+watch_chromium.org, ben+ash_chromium.org
Visibility:
Public.

Description

Don't handle NaturalScroll in Chrome but pass it to CMT instead In order to support mice via CMT (Project Cobra) we will have to do the natural scroll handling in the CMT driver instead of Chrome. BUG=chromium:285663 TEST=test with touchpads and traditional mice. Everything should work as before, touchpad should have natural scroll applied, scroll wheels should not. Test changing the natural scroll property and see if it's applied correctly. Also test if touch mice have natural scroll applied. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=260926 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=261478

Patch Set 1 #

Total comments: 3

Patch Set 2 : Rebase #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Patch Set 5 : Completed patch set #

Patch Set 6 : completed patch set. changed were missing after splitting up the cl. #

Patch Set 7 : added owners to review #

Total comments: 1

Patch Set 8 : Removed Inverse #

Patch Set 9 : Fixed unintended change in event_utils #

Patch Set 10 : #

Patch Set 11 : Fixed unit tests #

Patch Set 12 : Fixed Ash unit tests #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -66 lines) Patch
M ash/sticky_keys/sticky_keys_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +0 lines, -9 lines 0 comments Download
M chrome/browser/chromeos/chrome_browser_main_chromeos.cc View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/browser/chromeos/login/login_display_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/chromeos/preferences.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/chromeos/preferences_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/browser/chromeos/system/fake_input_device_settings.h View 1 2 3 4 5 6 7 8 9 10 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/fake_input_device_settings.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/input_device_settings.h View 3 chunks +7 lines, -0 lines 0 comments Download
M chrome/browser/chromeos/system/input_device_settings.cc View 1 2 3 4 5 chunks +22 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/ash/tab_scrubber.cc View 1 chunk +0 lines, -2 lines 0 comments Download
M ui/events/event_utils.h View 8 1 chunk +0 lines, -6 lines 0 comments Download
M ui/events/x/device_data_manager.h View 2 chunks +0 lines, -10 lines 0 comments Download
M ui/events/x/device_data_manager.cc View 1 2 3 4 6 7 4 chunks +9 lines, -24 lines 0 comments Download
M ui/events/x/events_x.cc View 8 9 1 chunk +0 lines, -8 lines 0 comments Download

Messages

Total messages: 46 (0 generated)
denniskempin (chromium)
6 years, 9 months ago (2014-03-26 22:32:34 UTC) #1
achuithb
https://chromiumcodereview.appspot.com/212603005/diff/1/ui/events/x/device_data_manager.cc File ui/events/x/device_data_manager.cc (right): https://chromiumcodereview.appspot.com/212603005/diff/1/ui/events/x/device_data_manager.cc#newcode179 ui/events/x/device_data_manager.cc:179: float DeviceDataManager::GetNaturalScrollFactor(int sourceid) const { Could you please also ...
6 years, 9 months ago (2014-03-27 00:15:18 UTC) #2
achuithb
https://codereview.chromium.org/212603005/diff/1/ui/events/event_utils.h File ui/events/event_utils.h (left): https://codereview.chromium.org/212603005/diff/1/ui/events/event_utils.h#oldcode133 ui/events/event_utils.h:133: EVENTS_EXPORT bool ShouldDefaultToNaturalScroll(); What about this? Shouldn't this be ...
6 years, 9 months ago (2014-03-27 00:54:26 UTC) #3
achuithb
https://codereview.chromium.org/212603005/diff/1/ui/events/event_utils.h File ui/events/event_utils.h (left): https://codereview.chromium.org/212603005/diff/1/ui/events/event_utils.h#oldcode133 ui/events/event_utils.h:133: EVENTS_EXPORT bool ShouldDefaultToNaturalScroll(); On 2014/03/27 00:54:27, achuithb wrote: > ...
6 years, 9 months ago (2014-03-27 00:59:02 UTC) #4
denniskempin (chromium)
please re-review. after splitting the CL up some lines were missing.
6 years, 9 months ago (2014-03-27 20:29:07 UTC) #5
achuithb
lgtm, thanks!
6 years, 9 months ago (2014-03-28 06:10:15 UTC) #6
denniskempin (chromium)
The CQ bit was checked by denniskempin@chromium.org
6 years, 9 months ago (2014-03-28 16:22:43 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/denniskempin@chromium.org/212603005/80001
6 years, 9 months ago (2014-03-28 16:26:36 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-28 17:17:06 UTC) #9
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=58287
6 years, 8 months ago (2014-03-28 17:17:07 UTC) #10
denniskempin (chromium)
Hi sky! Can I ask you to review the files you own?
6 years, 8 months ago (2014-03-28 17:43:43 UTC) #11
tfarina
+Sadrul, in case he wants to look at ui/events/!
6 years, 8 months ago (2014-03-28 17:54:45 UTC) #12
sadrul
https://codereview.chromium.org/212603005/diff/100001/ui/events/x/device_data_manager.cc File ui/events/x/device_data_manager.cc (right): https://codereview.chromium.org/212603005/diff/100001/ui/events/x/device_data_manager.cc#newcode458 ui/events/x/device_data_manager.cc:458: *x_offset = -data[DT_CMT_SCROLL_X]; This is fairly confusing. Why do ...
6 years, 8 months ago (2014-03-28 17:59:11 UTC) #13
denniskempin (chromium)
On 2014/03/28 17:59:11, sadrul wrote: > https://codereview.chromium.org/212603005/diff/100001/ui/events/x/device_data_manager.cc > File ui/events/x/device_data_manager.cc (right): > > https://codereview.chromium.org/212603005/diff/100001/ui/events/x/device_data_manager.cc#newcode458 > ...
6 years, 8 months ago (2014-03-28 22:22:55 UTC) #14
denniskempin (chromium)
On 2014/03/28 22:22:55, denniskempin wrote: > On 2014/03/28 17:59:11, sadrul wrote: > > > https://codereview.chromium.org/212603005/diff/100001/ui/events/x/device_data_manager.cc ...
6 years, 8 months ago (2014-03-31 19:47:23 UTC) #15
sadrul
Thanks! ui/events/ lgtm
6 years, 8 months ago (2014-03-31 19:50:25 UTC) #16
achuithb
lgtm still assuming the inverse works.
6 years, 8 months ago (2014-03-31 19:52:02 UTC) #17
denniskempin (chromium)
On 2014/03/31 19:52:02, achuithb wrote: > lgtm still assuming the inverse works. Tested and compared ...
6 years, 8 months ago (2014-03-31 20:14:06 UTC) #18
denniskempin (chromium)
The CQ bit was checked by denniskempin@chromium.org
6 years, 8 months ago (2014-03-31 20:15:00 UTC) #19
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/denniskempin@chromium.org/212603005/160001
6 years, 8 months ago (2014-03-31 20:16:24 UTC) #20
sky
LGTM
6 years, 8 months ago (2014-03-31 20:58:10 UTC) #21
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-03-31 21:30:17 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_clang_dbg tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-03-31 21:30:18 UTC) #23
denniskempin (chromium)
The CQ bit was checked by denniskempin@chromium.org
6 years, 8 months ago (2014-03-31 23:24:38 UTC) #24
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/denniskempin@chromium.org/212603005/180001
6 years, 8 months ago (2014-03-31 23:25:34 UTC) #25
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-01 00:13:38 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: tryserver.chromium on linux_chromium_chromeos_rel
6 years, 8 months ago (2014-04-01 00:13:38 UTC) #27
denniskempin (chromium)
On 2014/04/01 00:13:38, I haz the power (commit-bot) wrote: > Try jobs failed on following ...
6 years, 8 months ago (2014-04-01 00:29:10 UTC) #28
sadrul
On 2014/04/01 00:29:10, denniskempin wrote: > On 2014/04/01 00:13:38, I haz the power (commit-bot) wrote: ...
6 years, 8 months ago (2014-04-01 02:11:06 UTC) #29
denniskempin (chromium)
The CQ bit was checked by denniskempin@chromium.org
6 years, 8 months ago (2014-04-01 17:24:41 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/denniskempin@chromium.org/212603005/180001
6 years, 8 months ago (2014-04-01 17:25:25 UTC) #31
commit-bot: I haz the power
Change committed as 260926
6 years, 8 months ago (2014-04-01 19:37:19 UTC) #32
rlarocque
A revert of this CL has been created in https://codereview.chromium.org/221363002/ by rlarocque@chromium.org. The reason for ...
6 years, 8 months ago (2014-04-01 20:08:04 UTC) #33
sadrul
On 2014/04/01 20:08:04, rlarocque wrote: > A revert of this CL has been created in ...
6 years, 8 months ago (2014-04-01 20:12:47 UTC) #34
denniskempin (chromium)
On 2014/04/01 20:12:47, sadrul wrote: > On 2014/04/01 20:08:04, rlarocque wrote: > > A revert ...
6 years, 8 months ago (2014-04-01 20:23:51 UTC) #35
denniskempin (chromium)
On 2014/04/01 20:23:51, denniskempin wrote: > On 2014/04/01 20:12:47, sadrul wrote: > > On 2014/04/01 ...
6 years, 8 months ago (2014-04-02 17:24:47 UTC) #36
denniskempin (chromium)
The CQ bit was checked by denniskempin@chromium.org
6 years, 8 months ago (2014-04-02 17:24:54 UTC) #37
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/denniskempin@chromium.org/212603005/200001
6 years, 8 months ago (2014-04-02 17:25:23 UTC) #38
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 8 months ago (2014-04-03 00:17:45 UTC) #39
commit-bot: I haz the power
Retried try job too often on android_aosp for step(s) compile http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=android_aosp&number=60666
6 years, 8 months ago (2014-04-03 00:17:46 UTC) #40
tfarina
ash_unittests are not running for you? Which libraries are missing? Could you post the errors ...
6 years, 8 months ago (2014-04-03 00:26:08 UTC) #41
denniskempin (chromium)
On 2014/04/03 00:26:08, tfarina wrote: > ash_unittests are not running for you? Which libraries are ...
6 years, 8 months ago (2014-04-03 17:24:56 UTC) #42
denniskempin (chromium)
On 2014/04/03 00:26:08, tfarina wrote: > ash_unittests are not running for you? Which libraries are ...
6 years, 8 months ago (2014-04-03 17:24:57 UTC) #43
denniskempin (chromium)
The CQ bit was checked by denniskempin@chromium.org
6 years, 8 months ago (2014-04-03 17:26:10 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/denniskempin@chromium.org/212603005/200001
6 years, 8 months ago (2014-04-03 17:26:19 UTC) #45
commit-bot: I haz the power
6 years, 8 months ago (2014-04-03 18:16:03 UTC) #46
Message was sent while issue was closed.
Change committed as 261478

Powered by Google App Engine
This is Rietveld 408576698