New issue
Advanced search Search tips

Issue 779118 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: Nov 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Chrome
Pri: 2
Type: Bug

Blocking:
issue 731255



Sign in to add a comment

Fix touch screen calibrator for mus and mash

Project Member Reported by jamescook@chromium.org, Oct 27 2017

Issue description

Forked from  issue 734812 .

These ash_unittests are disabled under mus and mash:
-TouchCalibratorControllerTest.CustomCalibration
-TouchCalibratorControllerTest.CustomCalibrationInvalidTouchId
-TouchCalibratorControllerTest.TouchDeviceIdIsSet

This is some sort of "calibrate your touchscreen" UI. It has an overlay view that lives in ash:
https://cs.chromium.org/chromium/src/ash/display/touch_calibrator_view.h

Sadrul mentioned that some of the calibration stuff should live in the ui service. I'm guessing stuff like this?

Shell::Get()->display_manager()->SetTouchCalibrationData(
      target_display_.id(), pairs, display_size, touch_device_identifier);

 

Comment 1 by sadrul@chromium.org, Oct 27 2017

Cc: osh...@chromium.org kylec...@chromium.org
Pretty much, yes.

Relevant: https://bugs.chromium.org/p/chromium/issues/detail?id=676513

Comment 2 by sky@chromium.org, Oct 30 2017

Blocking: 731255

Comment 3 by sky@chromium.org, Oct 30 2017

Owner: jamescook@chromium.org
Status: Assigned (was: Untriaged)
James said he would look into this.
Status: Started (was: Assigned)
Project Member

Comment 5 by bugdroid1@chromium.org, Nov 3 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/f00f74feef559540a7ff68a7da56200b86ba7eea

commit f00f74feef559540a7ff68a7da56200b86ba7eea
Author: James Cook <jamescook@chromium.org>
Date: Fri Nov 03 15:22:36 2017

cros: Fix TouchCalibrationController for --mus and --mash

For go/mustash management of touchscreens under ozone is moving into
the "mus" window server mojo service. When running chrome --mus (or
chrome --mash) code in //ash cannot use DeviceDataManager, since it
may live in another process.

Convert TouchCalibrationController and its unit tests to use
InputDeviceManager, which has an implementation that works with mus
and mash. Re-enable the tests and clean up DEPS.

Bug:  779118 
Test: ash_unittests --mus and ash_unittests --mash
Change-Id: I533f9ea4146f37d1173ddeb9d2c480c64d0b445c
Reviewed-on: https://chromium-review.googlesource.com/748917
Reviewed-by: Scott Violet <sky@chromium.org>
Reviewed-by: Malay Keshav <malaykeshav@chromium.org>
Commit-Queue: James Cook <jamescook@chromium.org>
Cr-Commit-Position: refs/heads/master@{#513783}
[modify] https://crrev.com/f00f74feef559540a7ff68a7da56200b86ba7eea/ash/display/DEPS
[modify] https://crrev.com/f00f74feef559540a7ff68a7da56200b86ba7eea/ash/display/touch_calibrator_controller.cc
[modify] https://crrev.com/f00f74feef559540a7ff68a7da56200b86ba7eea/ash/display/touch_calibrator_controller_unittest.cc
[modify] https://crrev.com/f00f74feef559540a7ff68a7da56200b86ba7eea/testing/buildbot/filters/ash_unittests_mash.filter
[modify] https://crrev.com/f00f74feef559540a7ff68a7da56200b86ba7eea/testing/buildbot/filters/ash_unittests_mus.filter
[modify] https://crrev.com/f00f74feef559540a7ff68a7da56200b86ba7eea/ui/display/BUILD.gn
[modify] https://crrev.com/f00f74feef559540a7ff68a7da56200b86ba7eea/ui/display/manager/chromeos/touch_transform_controller.cc
[modify] https://crrev.com/f00f74feef559540a7ff68a7da56200b86ba7eea/ui/display/manager/chromeos/touch_transform_controller.h
[add] https://crrev.com/f00f74feef559540a7ff68a7da56200b86ba7eea/ui/display/manager/chromeos/touch_transform_controller_test_api.cc
[add] https://crrev.com/f00f74feef559540a7ff68a7da56200b86ba7eea/ui/display/manager/chromeos/touch_transform_controller_test_api.h

Verified that it works with a MIMO external touch display (like the GVC units) after turning on "enable-touchscreen-calibration" in about:flags.

Status: Fixed (was: Started)

Comment 8 by dchan@chromium.org, Jan 22 2018

Status: Archived (was: Fixed)

Comment 9 by dchan@chromium.org, Jan 23 2018

Status: Fixed (was: Archived)
Components: -Internals>MUS Internals>Services>WindowService

Sign in to add a comment