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

Issue 2638903003: Updates touch calibration API and plumbs through the native touch calibration method (Closed)

Created:
3 years, 11 months ago by malaykeshav
Modified:
3 years, 11 months ago
CC:
chromium-apps-reviews_chromium.org, chromium-reviews, extensions-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

- Plumbs through native touch calibration from MD settings to display manager via the system display API. Modifications done to System Display API: - Renames API method. - Splits touchCalibrationSet() method into 2 separate methods. (Why? https://docs.google.com/document/d/1fFvSk35wWRoKspJRR1hYMqlfeyhYO4l7s92g-5m9vPo/) - Updates SystemDisplayAPI Test BUG=672990 COMPONENT=Display Info Provider, Chrome OS, System Display API, Touch Calibration CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:closure_compilation Review-Url: https://codereview.chromium.org/2638903003 Cr-Commit-Position: refs/heads/master@{#444950} Committed: https://chromium.googlesource.com/chromium/src/+/5f64df43034f52aea554ca764633c58a72f44831

Patch Set 1 #

Total comments: 14

Patch Set 2 : Adds a callback and renames StartNativeTouchCalibration to ShowNativeTouchCalibration #

Patch Set 3 : Resolving comments #

Total comments: 4

Patch Set 4 : Rename files #

Patch Set 5 : Resolving Comments #

Total comments: 23

Patch Set 6 : Resolve comments #

Total comments: 3

Patch Set 7 : Resolve comments #

Patch Set 8 : Update histogram.xml #

Unified diffs Side-by-side diffs Delta from patch set Stats (+443 lines, -141 lines) Patch
M chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h View 1 2 3 4 3 chunks +6 lines, -1 line 0 comments Download
M chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.cc View 1 2 3 4 5 6 chunks +18 lines, -1 line 0 comments Download
M chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller_unittest.cc View 1 2 3 4 5 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/extensions/display_info_provider_chromeos.h View 1 2 3 4 5 3 chunks +18 lines, -4 lines 0 comments Download
M chrome/browser/extensions/display_info_provider_chromeos.cc View 1 2 3 4 5 6 7 chunks +93 lines, -13 lines 0 comments Download
M chrome/browser/extensions/display_info_provider_chromeos_unittest.cc View 1 2 3 4 5 9 chunks +52 lines, -35 lines 0 comments Download
M chrome/browser/resources/settings/device_page/display.js View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M extensions/browser/api/system_display/display_info_provider.h View 1 2 3 4 5 3 chunks +12 lines, -5 lines 0 comments Download
M extensions/browser/api/system_display/display_info_provider.cc View 1 2 3 4 5 2 chunks +13 lines, -5 lines 0 comments Download
M extensions/browser/api/system_display/system_display_api.h View 1 2 3 4 5 1 chunk +26 lines, -12 lines 0 comments Download
M extensions/browser/api/system_display/system_display_api.cc View 1 2 3 4 5 2 chunks +49 lines, -17 lines 0 comments Download
M extensions/browser/api/system_display/system_display_apitest.cc View 1 2 3 4 5 4 chunks +70 lines, -0 lines 0 comments Download
M extensions/browser/extension_function_histogram_value.h View 1 2 3 4 5 2 chunks +4 lines, -3 lines 0 comments Download
M extensions/common/api/system_display.idl View 1 2 3 4 5 2 chunks +27 lines, -13 lines 0 comments Download
M third_party/closure_compiler/externs/system_display.js View 1 2 3 4 5 1 chunk +23 lines, -13 lines 0 comments Download
M third_party/closure_compiler/interfaces/system_display_interface.js View 1 2 3 4 5 1 chunk +24 lines, -14 lines 0 comments Download
M tools/metrics/histograms/histograms.xml View 1 2 3 4 5 6 7 2 chunks +4 lines, -3 lines 0 comments Download

Messages

Total messages: 74 (54 generated)
malaykeshav
This change plumbs through the API that initiates the native touch calibration UX. PTAL
3 years, 11 months ago (2017-01-18 00:14:45 UTC) #4
malaykeshav
Adding @reillyg to review DisplayInfoProviderChromeOS Adding @michaelpg to review JS files
3 years, 11 months ago (2017-01-18 20:41:38 UTC) #22
stevenjb
I have some questions with the API, but I'm not really familiar with this feature. ...
3 years, 11 months ago (2017-01-18 21:01:36 UTC) #23
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2638903003/diff/80001/chrome/browser/extensions/display_info_provider_chromeos.cc File chrome/browser/extensions/display_info_provider_chromeos.cc (right): https://codereview.chromium.org/2638903003/diff/80001/chrome/browser/extensions/display_info_provider_chromeos.cc#newcode718 chrome/browser/extensions/display_info_provider_chromeos.cc:718: *error = "Please call StartCustomTouchCalibration() before calling this " ...
3 years, 11 months ago (2017-01-18 21:35:56 UTC) #24
malaykeshav
On 2017/01/18 at 21:01:36, stevenjb wrote: > I have some questions with the API, but ...
3 years, 11 months ago (2017-01-18 21:51:57 UTC) #25
stevenjb
https://codereview.chromium.org/2638903003/diff/80001/extensions/common/api/system_display.idl File extensions/common/api/system_display.idl (right): https://codereview.chromium.org/2638903003/diff/80001/extensions/common/api/system_display.idl#newcode283 extensions/common/api/system_display.idl:283: static void startNativeTouchCalibration(DOMString id); If startNativeTouchCalibration doesn't require a ...
3 years, 11 months ago (2017-01-18 21:58:05 UTC) #26
malaykeshav
Resolved comments. PTAL https://codereview.chromium.org/2638903003/diff/80001/chrome/browser/extensions/display_info_provider_chromeos.cc File chrome/browser/extensions/display_info_provider_chromeos.cc (right): https://codereview.chromium.org/2638903003/diff/80001/chrome/browser/extensions/display_info_provider_chromeos.cc#newcode718 chrome/browser/extensions/display_info_provider_chromeos.cc:718: *error = "Please call StartCustomTouchCalibration() before ...
3 years, 11 months ago (2017-01-19 01:30:52 UTC) #32
Reilly Grant (use Gerrit)
https://codereview.chromium.org/2638903003/diff/140001/chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h File chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h (right): https://codereview.chromium.org/2638903003/diff/140001/chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h#newcode53 chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h:53: void AddCallback(const TouchCalibrationCallback& callback); Why not pass this callback ...
3 years, 11 months ago (2017-01-19 02:41:47 UTC) #34
malaykeshav
PTAL https://codereview.chromium.org/2638903003/diff/140001/chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h File chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h (right): https://codereview.chromium.org/2638903003/diff/140001/chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h#newcode53 chrome/browser/chromeos/display/touch_calibrator/touch_calibrator_controller.h:53: void AddCallback(const TouchCalibrationCallback& callback); On 2017/01/19 at 02:41:46, ...
3 years, 11 months ago (2017-01-19 06:10:39 UTC) #45
stevenjb
We also need to update system_display_apitest.cc. Be sure to test that |callback| is invoked for ...
3 years, 11 months ago (2017-01-19 17:19:02 UTC) #46
michaelpg
do you still need me on this? if it's just for display.js it looks like ...
3 years, 11 months ago (2017-01-19 19:43:01 UTC) #47
Reilly Grant (use Gerrit)
lgtm from my perspective once stevenjb's comments are resolved.
3 years, 11 months ago (2017-01-19 23:43:29 UTC) #54
malaykeshav
Resolved comments and added system display api tests. PTAL https://codereview.chromium.org/2638903003/diff/80001/extensions/common/api/system_display.idl File extensions/common/api/system_display.idl (right): https://codereview.chromium.org/2638903003/diff/80001/extensions/common/api/system_display.idl#newcode305 extensions/common/api/system_display.idl:305: ...
3 years, 11 months ago (2017-01-19 23:49:07 UTC) #58
stevenjb
lgtm https://codereview.chromium.org/2638903003/diff/180001/extensions/browser/api/system_display/display_info_provider.h File extensions/browser/api/system_display/display_info_provider.h (right): https://codereview.chromium.org/2638903003/diff/180001/extensions/browser/api/system_display/display_info_provider.h#newcode91 extensions/browser/api/system_display/display_info_provider.h:91: virtual bool IsNativeTouchCalibrationActive(std::string* error); On 2017/01/19 23:49:07, malaykeshav ...
3 years, 11 months ago (2017-01-20 00:07:07 UTC) #59
malaykeshav
On 2017/01/20 at 00:07:07, stevenjb wrote: > lgtm > > https://codereview.chromium.org/2638903003/diff/180001/extensions/browser/api/system_display/display_info_provider.h > File extensions/browser/api/system_display/display_info_provider.h (right): ...
3 years, 11 months ago (2017-01-20 00:20:49 UTC) #60
malaykeshav
Adding @isherman for extension_function_histogram_value.h
3 years, 11 months ago (2017-01-20 00:23:47 UTC) #61
malaykeshav
3 years, 11 months ago (2017-01-20 00:24:05 UTC) #63
Ilya Sherman
histograms.xml lgtm
3 years, 11 months ago (2017-01-20 00:48:27 UTC) #64
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2638903003/300001
3 years, 11 months ago (2017-01-20 02:04:15 UTC) #71
commit-bot: I haz the power
3 years, 11 months ago (2017-01-20 02:10:22 UTC) #74
Message was sent while issue was closed.
Committed patchset #8 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/5f64df43034f52aea554ca764633...

Powered by Google App Engine
This is Rietveld 408576698