DescriptionMake Interaction Media Features MQ dynamic on Linux.
With the new convertible and detachable form factors for
laptops it is important to make sure the interaction media
features are updated whenever the keyboard/trackpad combo is
flipped (so inactive) or detached. This will allow content
author to react to media query changes to adapt the user
interface to better suit the new interaction method (often
touch vs trackpad).
The patch make sure that the detection works by verifying the
touchpads and mouses from the input manager then make sure to
update the input device change whenever the platforms detect
changes. In order to propagate the changes a new "enabled"
property has been added to InputDevice. The reason for that
is because on ChromeOS even when the laptop is flipped the
trackpad is not removed from the list of devices, it just
doesn't propagate inputs to the UI (ASH turn it off).
BUG=442418, 495634
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_site_isolation
Review-Url: https://codereview.chromium.org/2827803002
Cr-Commit-Position: refs/heads/master@{#472536}
Committed: https://chromium.googlesource.com/chromium/src/+/83f1b6d5641a294f5b1fb8d52e37e0a1f9ff08d5
Patch Set 1 : Make Interaction Media Features MQ dynamic on Linux. #Patch Set 2 : Fix build + test #
Total comments: 2
Patch Set 3 : Fix comments by mustaq #Patch Set 4 : Fix mac build #Patch Set 5 : Rebase and fix test failures #
Total comments: 8
Patch Set 6 : Review feedback #Patch Set 7 : Updated version #
Total comments: 4
Patch Set 8 : Patch for landing, added the mojo bits #Messages
Total messages: 74 (54 generated)
|