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

Issue 12087124: Disable touch calibration on external touchscreen. (Closed)

Created:
7 years, 10 months ago by ynovikov
Modified:
7 years, 9 months ago
CC:
chromium-reviews, sadrul, yusukes+watch_chromium.org, derat+watch_chromium.org, ben+watch_chromium.org, tfarina, jam, joi+watch-content_chromium.org, darin-cc_chromium.org, jochen+watch_chromium.org, Mr4D (OOO till 08-26)
Base URL:
http://git.chromium.org/chromium/src.git@master
Visibility:
Public.

Description

Disable touch calibration on external touchscreen. Move CalibrateTouchCoordinates() code from events_x.cc into TouchEventCalibrate::Calibrate() and call it from RootWindowHostLinux::DispatchXI2Event() only on internal display. This changes the order in handling of a touch event. Used to be: 1. Calibrate, 2. Find matching window, 3. Relocate to window origin Now: 1. Find matching window, 2. Relocate, 3. Calibrate with matching window This change in order: a) Makes finding matching window simpler and faster. b) Makes calibration more correct, since matching window bounds are used. To make the calibration even more correct, calibration parameters have to be adjusted for non-native resolutions. BUG=171310, 147605 TEST=Make sure touches are positioned correctly on internal and external displays in single, extended desktop and mirror modes, and when switching primary display. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=189200

Patch Set 1 #

Patch Set 2 : Fix compilation #

Patch Set 3 : Fix Win compilation #

Patch Set 4 : Fix Win compilation take 2 + rebase #

Total comments: 8

Patch Set 5 : Review + Rebase on top of 12321086 #

Total comments: 12

Patch Set 6 : Review #

Total comments: 2

Patch Set 7 : Review #

Total comments: 2

Patch Set 8 : Nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+113 lines, -125 lines) Patch
M ui/aura/root_window_host_linux.cc View 1 2 3 4 5 6 7 5 chunks +111 lines, -29 lines 0 comments Download
M ui/base/x/events_x.cc View 1 2 3 4 4 chunks +2 lines, -96 lines 0 comments Download

Messages

Total messages: 22 (0 generated)
ynovikov
ben: Looks like you are the owner of most of this, either directly or indirectly, ...
7 years, 10 months ago (2013-02-01 23:34:36 UTC) #1
jochen (gone - plz use gerrit)
i defer to ben as the content shell change is purely mechanical
7 years, 10 months ago (2013-02-04 08:26:35 UTC) #2
Ben Goodger (Google)
sadrul, please take a first glance.
7 years, 10 months ago (2013-02-04 18:46:56 UTC) #3
sadrul
ui/base/, i.e. the change to move calibration code from events_x.cc into event.cc LGTM. For the ...
7 years, 10 months ago (2013-02-04 19:10:22 UTC) #4
oshima
https://codereview.chromium.org/12087124/diff/7005/ui/aura/root_window.h File ui/aura/root_window.h (right): https://codereview.chromium.org/12087124/diff/7005/ui/aura/root_window.h#newcode67 ui/aura/root_window.h:67: bool is_internal_display); internal display <-> root window mapping is ...
7 years, 10 months ago (2013-02-04 19:20:04 UTC) #5
oshima
On 2013/02/04 19:20:04, oshima wrote: > https://codereview.chromium.org/12087124/diff/7005/ui/aura/root_window.h > File ui/aura/root_window.h (right): > > https://codereview.chromium.org/12087124/diff/7005/ui/aura/root_window.h#newcode67 > ...
7 years, 10 months ago (2013-02-04 20:16:45 UTC) #6
ynovikov
https://codereview.chromium.org/12087124/diff/7005/ui/aura/root_window.h File ui/aura/root_window.h (right): https://codereview.chromium.org/12087124/diff/7005/ui/aura/root_window.h#newcode67 ui/aura/root_window.h:67: bool is_internal_display); On 2013/02/04 19:20:05, oshima wrote: > internal ...
7 years, 9 months ago (2013-03-13 23:34:21 UTC) #7
sadrul
SLGTM https://codereview.chromium.org/12087124/diff/31001/ui/base/events/event.cc File ui/base/events/event.cc (right): https://codereview.chromium.org/12087124/diff/31001/ui/base/events/event.cc#newcode441 ui/base/events/event.cc:441: DLOG(ERROR) << "Incorrect bottom border calibration value passed."; ...
7 years, 9 months ago (2013-03-14 00:20:12 UTC) #8
oshima
lgtm with nits https://codereview.chromium.org/12087124/diff/31001/ui/base/events/event.cc File ui/base/events/event.cc (right): https://codereview.chromium.org/12087124/diff/31001/ui/base/events/event.cc#newcode432 ui/base/events/event.cc:432: switches::kTouchCalibration), ',', &parts); please sync. This ...
7 years, 9 months ago (2013-03-14 01:23:27 UTC) #9
ynovikov
Ben, you are the only one left ... https://codereview.chromium.org/12087124/diff/31001/ui/base/events/event.cc File ui/base/events/event.cc (right): https://codereview.chromium.org/12087124/diff/31001/ui/base/events/event.cc#newcode432 ui/base/events/event.cc:432: switches::kTouchCalibration), ...
7 years, 9 months ago (2013-03-14 20:27:03 UTC) #10
Ben Goodger (Google)
https://codereview.chromium.org/12087124/diff/60001/ui/base/events/event.h File ui/base/events/event.h (right): https://codereview.chromium.org/12087124/diff/60001/ui/base/events/event.h#newcode453 ui/base/events/event.h:453: class TouchCoordinatesCalibrator { can this and the calibrate function ...
7 years, 9 months ago (2013-03-15 03:36:35 UTC) #11
ynovikov
https://codereview.chromium.org/12087124/diff/60001/ui/base/events/event.h File ui/base/events/event.h (right): https://codereview.chromium.org/12087124/diff/60001/ui/base/events/event.h#newcode453 ui/base/events/event.h:453: class TouchCoordinatesCalibrator { On 2013/03/15 03:36:35, Ben Goodger (Google) ...
7 years, 9 months ago (2013-03-15 18:34:33 UTC) #12
Ben Goodger (Google)
OK let me rephrase a different way - I don't like seeing a bunch of ...
7 years, 9 months ago (2013-03-15 19:11:52 UTC) #13
ynovikov
On 2013/03/15 19:11:52, Ben Goodger (Google) wrote: > OK let me rephrase a different way ...
7 years, 9 months ago (2013-03-15 19:17:44 UTC) #14
tfarina
On Fri, Mar 15, 2013 at 4:17 PM, <ynovikov@chromium.org> wrote: > Would RootWindowHostLinux be an ...
7 years, 9 months ago (2013-03-15 20:20:17 UTC) #15
ynovikov
On 2013/03/15 20:20:17, tfarina wrote: > On Fri, Mar 15, 2013 at 4:17 PM, <mailto:ynovikov@chromium.org> ...
7 years, 9 months ago (2013-03-15 23:31:43 UTC) #16
Ben Goodger (Google)
> Would RootWindowHostLinux be an appropriate place for this then? It seems to > have ...
7 years, 9 months ago (2013-03-18 17:31:14 UTC) #17
ynovikov
On 2013/03/18 17:31:14, Ben Goodger (Google) wrote: > > Would RootWindowHostLinux be an appropriate place ...
7 years, 9 months ago (2013-03-18 20:58:42 UTC) #18
Ben Goodger (Google)
lgtm https://codereview.chromium.org/12087124/diff/72001/ui/aura/root_window_host_linux.cc File ui/aura/root_window_host_linux.cc (right): https://codereview.chromium.org/12087124/diff/72001/ui/aura/root_window_host_linux.cc#newcode287 ui/aura/root_window_host_linux.cc:287: // The calibration values for the four border ...
7 years, 9 months ago (2013-03-18 22:21:33 UTC) #19
ynovikov
Thanks for the review. https://codereview.chromium.org/12087124/diff/72001/ui/aura/root_window_host_linux.cc File ui/aura/root_window_host_linux.cc (right): https://codereview.chromium.org/12087124/diff/72001/ui/aura/root_window_host_linux.cc#newcode287 ui/aura/root_window_host_linux.cc:287: // The calibration values for ...
7 years, 9 months ago (2013-03-19 19:35:16 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/ynovikov@chromium.org/12087124/87001
7 years, 9 months ago (2013-03-19 19:53:04 UTC) #21
commit-bot: I haz the power
7 years, 9 months ago (2013-03-20 02:12:49 UTC) #22
Message was sent while issue was closed.
Change committed as 189200

Powered by Google App Engine
This is Rietveld 408576698