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

Issue 394063004: Associate internal touchscreen to internal display (Closed)

Created:
6 years, 5 months ago by Yufeng Shen (Slow to review)
Modified:
6 years, 5 months ago
Reviewers:
dnicoara, Daniel Erat
CC:
chromium-reviews, stevenjb+watch_chromium.org, oshima+watch_chromium.org
Project:
chromium
Visibility:
Public.

Description

Associate internal touchscreen to internal display Currently we associate touchscreen to display based on matching resolution. But there could be cases the internal touchscreen reports a resolution that does not match any display resolution, or the internal display and external display have the same resolution so we don't know which display to match the touchscreen to. This patch adds a logic that if we have internal touchscreen and internal display, we should match them first regardless of the resolution. We already have the information about which display is internal display. For deciding internal touchscreen, we query X to get the touchscreen's /dev/input/eventX node, and call a script is_touchscreen_internal (which checks if the device is a I2C device) to decide whether the touchscreen is internal or not. BUG=chrome-os-partner:29398 TEST=touch position is correctly mapped on Blaze in extending mode, with external monitor having 1920x1280 resolution. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=283641

Patch Set 1 #

Patch Set 2 : re-formatting #

Total comments: 18

Patch Set 3 : remove using external script is_touchscreen_internal #

Total comments: 10

Patch Set 4 : address comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+149 lines, -14 lines) Patch
M ui/display/chromeos/touchscreen_delegate_impl.cc View 1 2 1 chunk +31 lines, -0 lines 0 comments Download
M ui/display/chromeos/touchscreen_delegate_impl_unittest.cc View 1 2 6 chunks +26 lines, -9 lines 0 comments Download
M ui/display/chromeos/x11/touchscreen_device_manager_x11.cc View 1 2 3 2 chunks +83 lines, -2 lines 0 comments Download
M ui/display/types/chromeos/touchscreen_device.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M ui/display/types/chromeos/touchscreen_device.cc View 1 chunk +5 lines, -2 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Yufeng Shen (Slow to review)
Danial, please help to take a look. The is_touchscreen_internal script is from here https://chromium-review.googlesource.com/#/c/208260/
6 years, 5 months ago (2014-07-16 02:41:18 UTC) #1
Daniel Erat
https://codereview.chromium.org/394063004/diff/20001/ui/display/chromeos/touchscreen_delegate_impl.cc File ui/display/chromeos/touchscreen_delegate_impl.cc (right): https://codereview.chromium.org/394063004/diff/20001/ui/display/chromeos/touchscreen_delegate_impl.cc#newcode27 ui/display/chromeos/touchscreen_delegate_impl.cc:27: int internal_ts = -1; s/ts/touchscreen/ https://codereview.chromium.org/394063004/diff/20001/ui/display/chromeos/touchscreen_delegate_impl.cc#newcode35 ui/display/chromeos/touchscreen_delegate_impl.cc:35: DisplayConfigurator::DisplayState* internal_dpy_state ...
6 years, 5 months ago (2014-07-16 02:59:46 UTC) #2
dnicoara
https://codereview.chromium.org/394063004/diff/20001/ui/display/chromeos/touchscreen_delegate_impl_unittest.cc File ui/display/chromeos/touchscreen_delegate_impl_unittest.cc (right): https://codereview.chromium.org/394063004/diff/20001/ui/display/chromeos/touchscreen_delegate_impl_unittest.cc#newcode51 ui/display/chromeos/touchscreen_delegate_impl_unittest.cc:51: // Internal display. Must not be matched to a ...
6 years, 5 months ago (2014-07-16 13:42:35 UTC) #3
Yufeng Shen (Slow to review)
https://codereview.chromium.org/394063004/diff/20001/ui/display/chromeos/touchscreen_delegate_impl.cc File ui/display/chromeos/touchscreen_delegate_impl.cc (right): https://codereview.chromium.org/394063004/diff/20001/ui/display/chromeos/touchscreen_delegate_impl.cc#newcode27 ui/display/chromeos/touchscreen_delegate_impl.cc:27: int internal_ts = -1; On 2014/07/16 02:59:46, Daniel Erat ...
6 years, 5 months ago (2014-07-16 20:20:28 UTC) #4
Daniel Erat
lgtm with a few comments https://codereview.chromium.org/394063004/diff/40001/ui/display/chromeos/x11/touchscreen_device_manager_x11.cc File ui/display/chromeos/x11/touchscreen_device_manager_x11.cc (right): https://codereview.chromium.org/394063004/diff/40001/ui/display/chromeos/x11/touchscreen_device_manager_x11.cc#newcode25 ui/display/chromeos/x11/touchscreen_device_manager_x11.cc:25: // We consider the ...
6 years, 5 months ago (2014-07-16 20:31:24 UTC) #5
Yufeng Shen (Slow to review)
The CQ bit was checked by miletus@chromium.org
6 years, 5 months ago (2014-07-16 20:42:07 UTC) #6
Yufeng Shen (Slow to review)
https://codereview.chromium.org/394063004/diff/40001/ui/display/chromeos/x11/touchscreen_device_manager_x11.cc File ui/display/chromeos/x11/touchscreen_device_manager_x11.cc (right): https://codereview.chromium.org/394063004/diff/40001/ui/display/chromeos/x11/touchscreen_device_manager_x11.cc#newcode25 ui/display/chromeos/x11/touchscreen_device_manager_x11.cc:25: // We consider the touchscreen is internal if it ...
6 years, 5 months ago (2014-07-16 20:42:24 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/miletus@chromium.org/394063004/60001
6 years, 5 months ago (2014-07-16 20:48:18 UTC) #8
commit-bot: I haz the power
6 years, 5 months ago (2014-07-17 04:26:22 UTC) #9
Message was sent while issue was closed.
Change committed as 283641

Powered by Google App Engine
This is Rietveld 408576698