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
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
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
6 years, 8 months ago
(2014-03-28 22:22:55 UTC)
#14
On 2014/03/28 17:59:11, sadrul wrote:
>
https://codereview.chromium.org/212603005/diff/100001/ui/events/x/device_data...
> File ui/events/x/device_data_manager.cc (right):
>
>
https://codereview.chromium.org/212603005/diff/100001/ui/events/x/device_data...
> ui/events/x/device_data_manager.cc:458: *x_offset = -data[DT_CMT_SCROLL_X];
> This is fairly confusing. Why do we need to unconditionally - the values? Why
> not send the -ed values in the valuators from the driver?
That's true. It only has historic reasons as we have always inverted the values
when using traditional scrolling, not the other way round.
This will require another change to the driver, can I suggest to do this in a
separate CL?
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
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...
> > File ui/events/x/device_data_manager.cc (right):
> >
> >
>
https://codereview.chromium.org/212603005/diff/100001/ui/events/x/device_data...
> > ui/events/x/device_data_manager.cc:458: *x_offset = -data[DT_CMT_SCROLL_X];
> > This is fairly confusing. Why do we need to unconditionally - the values?
Why
> > not send the -ed values in the valuators from the driver?
>
> That's true. It only has historic reasons as we have always inverted the
values
> when using traditional scrolling, not the other way round.
>
> This will require another change to the driver, can I suggest to do this in a
> separate CL?
Re-review please.
I will run some tests to check if all events still have the proper sign with
this CL and the driver side change applied.
sadrul
Thanks! ui/events/ lgtm
6 years, 8 months ago
(2014-03-31 19:50:25 UTC)
#16
Thanks! ui/events/ lgtm
achuithb
lgtm still assuming the inverse works.
6 years, 8 months ago
(2014-03-31 19:52:02 UTC)
#17
lgtm still assuming the inverse works.
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
On 2014/03/31 19:52:02, achuithb wrote:
> lgtm still assuming the inverse works.
Tested and compared to a stable-channel chromebook. Everything works well. This
will go hand in hand with the following two CLs on the driver side.
https://chromium-review.googlesource.com/#/c/192401/https://chromium-review.googlesource.com/#/c/192402/
As it takes a while for chrome changes to arrive in chrome os, I will submit
this first. then the CLs on the driver side. As soon as this CL is in I will
send out an email explaining that todays builds might have inverted scrolling
but should be fixed by end of today.
denniskempin (chromium)
The CQ bit was checked by denniskempin@chromium.org
6 years, 8 months ago
(2014-03-31 20:15:00 UTC)
#19
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
Try jobs failed on following builders:
tryserver.chromium on linux_chromium_chromeos_rel
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
On 2014/04/01 00:13:38, I haz the power (commit-bot) wrote:
> Try jobs failed on following builders:
> tryserver.chromium on linux_chromium_chromeos_rel
Can someone help me figure out why the build is failing? The telemetry tests are
apparently failing, but I cannot find any test failures in the log:
http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chrome...
However the log abruptly ends with the test:
[ RUN ] ClickElementActionTest.testClickWithXPathWaitForRefChange
which apparently never finishes.
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
On 2014/04/01 00:29:10, denniskempin wrote:
> On 2014/04/01 00:13:38, I haz the power (commit-bot) wrote:
> > Try jobs failed on following builders:
> > tryserver.chromium on linux_chromium_chromeos_rel
>
> Can someone help me figure out why the build is failing? The telemetry tests
are
> apparently failing, but I cannot find any test failures in the log:
>
http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chrome...
>
> However the log abruptly ends with the test:
> [ RUN ] ClickElementActionTest.testClickWithXPathWaitForRefChange
>
> which apparently never finishes.
Probably flake/unrelated: I see some other tries failing here (e.g.
http://build.chromium.org/p/tryserver.chromium/builders/linux_chromium_chrome...
)
denniskempin (chromium)
The CQ bit was checked by denniskempin@chromium.org
6 years, 8 months ago
(2014-04-01 17:24:41 UTC)
#30
6 years, 8 months ago
(2014-04-01 19:37:19 UTC)
#32
Message was sent while issue was closed.
Change committed as 260926
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
Message was sent while issue was closed.
A revert of this CL has been created in
https://codereview.chromium.org/221363002/ by rlarocque@chromium.org.
The reason for reverting is: Has caused many compile failures. We think the
trybots didn't catch it because they didn't build ash_unittests.
Example:
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%2...
../../ash/sticky_keys/sticky_keys_unittest.cc: In member function 'virtual void
ash::StickyKeysTest_ScrollEventOneshot_Test::TestBody()':
../../ash/sticky_keys/sticky_keys_unittest.cc:622:41:error: 'class
ui::DeviceDataManager' has no member named 'set_natural_scroll_enabled'
../../ash/sticky_keys/sticky_keys_unittest.cc: In member function 'virtual void
ash::StickyKeysTest_ScrollDirectionChanged_Test::TestBody()':
../../ash/sticky_keys/sticky_keys_unittest.cc:674:41:error: 'class
ui::DeviceDataManager' has no member named 'set_natural_scroll_enabled'
../../ash/sticky_keys/sticky_keys_unittest.cc: In member function 'virtual void
ash::StickyKeysTest_ScrollEventLocked_Test::TestBody()':
../../ash/sticky_keys/sticky_keys_unittest.cc:711:41:error: 'class
ui::DeviceDataManager' has no member named 'set_natural_scroll_enabled'
ninja: build stopped: subcommand failed.
.
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
Message was sent while issue was closed.
On 2014/04/01 20:08:04, rlarocque wrote:
> A revert of this CL has been created in
> https://codereview.chromium.org/221363002/ by mailto:rlarocque@chromium.org.
>
> The reason for reverting is: Has caused many compile failures. We think the
> trybots didn't catch it because they didn't build ash_unittests.
>
> Example:
>
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%2...
>
> ../../ash/sticky_keys/sticky_keys_unittest.cc: In member function 'virtual
void
> ash::StickyKeysTest_ScrollEventOneshot_Test::TestBody()':
> ../../ash/sticky_keys/sticky_keys_unittest.cc:622:41:error: 'class
> ui::DeviceDataManager' has no member named 'set_natural_scroll_enabled'
> ../../ash/sticky_keys/sticky_keys_unittest.cc: In member function 'virtual
void
> ash::StickyKeysTest_ScrollDirectionChanged_Test::TestBody()':
> ../../ash/sticky_keys/sticky_keys_unittest.cc:674:41:error: 'class
> ui::DeviceDataManager' has no member named 'set_natural_scroll_enabled'
> ../../ash/sticky_keys/sticky_keys_unittest.cc: In member function 'virtual
void
> ash::StickyKeysTest_ScrollEventLocked_Test::TestBody()':
> ../../ash/sticky_keys/sticky_keys_unittest.cc:711:41:error: 'class
> ui::DeviceDataManager' has no member named 'set_natural_scroll_enabled'
> ninja: build stopped: subcommand failed.
> .
Hm. How did the CQ land this CL? Does it not build/run ash_unittests anymore?
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
Message was sent while issue was closed.
On 2014/04/01 20:12:47, sadrul wrote:
> On 2014/04/01 20:08:04, rlarocque wrote:
> > A revert of this CL has been created in
> > https://codereview.chromium.org/221363002/ by mailto:rlarocque@chromium.org.
> >
> > The reason for reverting is: Has caused many compile failures. We think the
> > trybots didn't catch it because they didn't build ash_unittests.
> >
> > Example:
> >
>
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%2...
> >
> > ../../ash/sticky_keys/sticky_keys_unittest.cc: In member function 'virtual
> void
> > ash::StickyKeysTest_ScrollEventOneshot_Test::TestBody()':
> > ../../ash/sticky_keys/sticky_keys_unittest.cc:622:41:error: 'class
> > ui::DeviceDataManager' has no member named 'set_natural_scroll_enabled'
> > ../../ash/sticky_keys/sticky_keys_unittest.cc: In member function 'virtual
> void
> > ash::StickyKeysTest_ScrollDirectionChanged_Test::TestBody()':
> > ../../ash/sticky_keys/sticky_keys_unittest.cc:674:41:error: 'class
> > ui::DeviceDataManager' has no member named 'set_natural_scroll_enabled'
> > ../../ash/sticky_keys/sticky_keys_unittest.cc: In member function 'virtual
> void
> > ash::StickyKeysTest_ScrollEventLocked_Test::TestBody()':
> > ../../ash/sticky_keys/sticky_keys_unittest.cc:711:41:error: 'class
> > ui::DeviceDataManager' has no member named 'set_natural_scroll_enabled'
> > ninja: build stopped: subcommand failed.
> > .
>
> Hm. How did the CQ land this CL? Does it not build/run ash_unittests anymore?
I'll build ash_unittests and fix the errors. Then resubmit this CL.
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
On 2014/04/01 20:23:51, denniskempin wrote:
> On 2014/04/01 20:12:47, sadrul wrote:
> > On 2014/04/01 20:08:04, rlarocque wrote:
> > > A revert of this CL has been created in
> > > https://codereview.chromium.org/221363002/ by
mailto:rlarocque@chromium.org.
> > >
> > > The reason for reverting is: Has caused many compile failures. We think
the
> > > trybots didn't catch it because they didn't build ash_unittests.
> > >
> > > Example:
> > >
> >
>
http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%2...
> > >
> > > ../../ash/sticky_keys/sticky_keys_unittest.cc: In member function 'virtual
> > void
> > > ash::StickyKeysTest_ScrollEventOneshot_Test::TestBody()':
> > > ../../ash/sticky_keys/sticky_keys_unittest.cc:622:41:error: 'class
> > > ui::DeviceDataManager' has no member named 'set_natural_scroll_enabled'
> > > ../../ash/sticky_keys/sticky_keys_unittest.cc: In member function 'virtual
> > void
> > > ash::StickyKeysTest_ScrollDirectionChanged_Test::TestBody()':
> > > ../../ash/sticky_keys/sticky_keys_unittest.cc:674:41:error: 'class
> > > ui::DeviceDataManager' has no member named 'set_natural_scroll_enabled'
> > > ../../ash/sticky_keys/sticky_keys_unittest.cc: In member function 'virtual
> > void
> > > ash::StickyKeysTest_ScrollEventLocked_Test::TestBody()':
> > > ../../ash/sticky_keys/sticky_keys_unittest.cc:711:41:error: 'class
> > > ui::DeviceDataManager' has no member named 'set_natural_scroll_enabled'
> > > ninja: build stopped: subcommand failed.
> > > .
> >
> > Hm. How did the CQ land this CL? Does it not build/run ash_unittests
anymore?
>
> I'll build ash_unittests and fix the errors. Then resubmit this CL.
I fixed the ash unit tests. However I cannot run them due do missing libraries.
They compile and "should" also pass.
denniskempin (chromium)
The CQ bit was checked by denniskempin@chromium.org
6 years, 8 months ago
(2014-04-02 17:24:54 UTC)
#37
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
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
ash_unittests are not running for you? Which libraries are missing?
Could you post the errors you are seeing here or file a bug in crbug.com?
Which config are you building it on? Aura, ChromeOS?
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
On 2014/04/03 00:26:08, tfarina wrote:
> ash_unittests are not running for you? Which libraries are missing?
>
> Could you post the errors you are seeing here or file a bug in crbug.com?
>
> Which config are you building it on? Aura, ChromeOS?
I am building for chrome os for the link platform. I've filed a bug at:
https://code.google.com/p/chromium/issues/detail?id=359646
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
On 2014/04/03 00:26:08, tfarina wrote:
> ash_unittests are not running for you? Which libraries are missing?
>
> Could you post the errors you are seeing here or file a bug in crbug.com?
>
> Which config are you building it on? Aura, ChromeOS?
I am building for chrome os for the link platform. I've filed a bug at:
https://code.google.com/p/chromium/issues/detail?id=359646
denniskempin (chromium)
The CQ bit was checked by denniskempin@chromium.org
6 years, 8 months ago
(2014-04-03 17:26:10 UTC)
#44
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: achuithb, sky, sadrul, tfarina
Base URL: svn://svn.chromium.org/chrome/trunk/src
Comments: 4