Chromium Code Reviews
DescriptionEnabled/disable touch screen in TabletPowerButtonController
By exposing several apis in input_device_settings.h and add new local pref for TouchScreenEnabled, we can disable touch screen events when backlights are forced off so that no screen UI events can be triggered and enable touch screen when stopping backlights forced off is called properly.
BUG=655388
BUG=633304
TEST=manual test on device, and add test coverage.
also test that this added behavior is compatible with toggle touchscreen shortcut
The shortcut induced in https://codereview.chromium.org/2467023004 is per user pref, backlights-forced-off related touch screen status is per device pref. The final hardware touchscreen status is determined by the rule: enabled_in_local_state && enabled_in_user_pref
Committed: https://crrev.com/4c8baedbf7a0b83ec7b5fd77dc1f5d5627fe6dd7
Cr-Commit-Position: refs/heads/master@{#436177}
Patch Set 1 #Patch Set 2 : touch_screen_status #
Total comments: 4
Patch Set 3 : add SetTouchscreenEnabled and OnLoginStateChanged #
Total comments: 16
Patch Set 4 : rebase #Patch Set 5 : add local pref for TouchScreenEnabled #
Total comments: 6
Patch Set 6 : incorporate comments from gab@ and afakhry@ #
Total comments: 23
Patch Set 7 : based on comments from derat@ #
Total comments: 16
Patch Set 8 : based on derat@'s comments #Patch Set 9 : style of pref name for local #
Total comments: 2
Patch Set 10 : nits #Messages
Total messages: 46 (28 generated)
|