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

Side by Side Diff: chrome/browser/extensions/display_info_provider_chromeos.h

Issue 2638903003: Updates touch calibration API and plumbs through the native touch calibration method (Closed)
Patch Set: Created 3 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_EXTENSIONS_DISPLAY_INFO_PROVIDER_CHROMEOS_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_DISPLAY_INFO_PROVIDER_CHROMEOS_H_
6 #define CHROME_BROWSER_EXTENSIONS_DISPLAY_INFO_PROVIDER_CHROMEOS_H_ 6 #define CHROME_BROWSER_EXTENSIONS_DISPLAY_INFO_PROVIDER_CHROMEOS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <memory> 9 #include <memory>
10 10
(...skipping 22 matching lines...) Expand all
33 api::system_display::DisplayUnitInfo* unit) override; 33 api::system_display::DisplayUnitInfo* unit) override;
34 void EnableUnifiedDesktop(bool enable) override; 34 void EnableUnifiedDesktop(bool enable) override;
35 DisplayUnitInfoList GetAllDisplaysInfo() override; 35 DisplayUnitInfoList GetAllDisplaysInfo() override;
36 DisplayLayoutList GetDisplayLayout() override; 36 DisplayLayoutList GetDisplayLayout() override;
37 bool OverscanCalibrationStart(const std::string& id) override; 37 bool OverscanCalibrationStart(const std::string& id) override;
38 bool OverscanCalibrationAdjust( 38 bool OverscanCalibrationAdjust(
39 const std::string& id, 39 const std::string& id,
40 const api::system_display::Insets& delta) override; 40 const api::system_display::Insets& delta) override;
41 bool OverscanCalibrationReset(const std::string& id) override; 41 bool OverscanCalibrationReset(const std::string& id) override;
42 bool OverscanCalibrationComplete(const std::string& id) override; 42 bool OverscanCalibrationComplete(const std::string& id) override;
43 bool TouchCalibrationSet( 43 bool StartNativeTouchCalibration(const std::string& id,
44 const std::string& id, 44 std::string* error) override;
45 bool StartCustomTouchCalibration(const std::string& id,
46 std::string* error) override;
47 bool CompleteCustomTouchCalibration(
45 const api::system_display::TouchCalibrationPairQuad& pairs, 48 const api::system_display::TouchCalibrationPairQuad& pairs,
46 const api::system_display::Bounds& bounds, 49 const api::system_display::Bounds& bounds,
47 std::string* error) override; 50 std::string* error) override;
48 bool TouchCalibrationReset(const std::string& id, 51 bool ResetTouchCalibration(const std::string& id,
49 std::string* error) override; 52 std::string* error) override;
50 bool IsTouchCalibrationActive(std::string* error) override; 53 bool IsNativeTouchCalibrationActive(std::string* error) override;
51 54
52 private: 55 private:
53 chromeos::TouchCalibratorController* GetTouchCalibrator(); 56 chromeos::TouchCalibratorController* GetTouchCalibrator();
54 57
55 chromeos::OverscanCalibrator* GetOverscanCalibrator(const std::string& id); 58 chromeos::OverscanCalibrator* GetOverscanCalibrator(const std::string& id);
56 59
57 std::map<std::string, std::unique_ptr<chromeos::OverscanCalibrator>> 60 std::map<std::string, std::unique_ptr<chromeos::OverscanCalibrator>>
58 overscan_calibrators_; 61 overscan_calibrators_;
59 62
60 std::unique_ptr<chromeos::TouchCalibratorController> touch_calibrator_; 63 std::unique_ptr<chromeos::TouchCalibratorController> touch_calibrator_;
61 64
65 std::string touch_calibration_target_id_;
66 bool is_custom_touch_calibration_active_ = false;
Reilly Grant (use Gerrit) 2017/01/18 21:35:56 Remove "is_".
malaykeshav 2017/01/19 01:30:51 Done
67
62 DISALLOW_COPY_AND_ASSIGN(DisplayInfoProviderChromeOS); 68 DISALLOW_COPY_AND_ASSIGN(DisplayInfoProviderChromeOS);
63 }; 69 };
64 70
65 } // namespace extensions 71 } // namespace extensions
66 72
67 #endif // CHROME_BROWSER_EXTENSIONS_DISPLAY_INFO_PROVIDER_CHROMEOS_H_ 73 #endif // CHROME_BROWSER_EXTENSIONS_DISPLAY_INFO_PROVIDER_CHROMEOS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698