| OLD | NEW |
| 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 Loading... |
| 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 ShowNativeTouchCalibration( |
| 44 const std::string& id, | 44 const std::string& id, std::string* error, |
| 45 const TouchCalibrationCallback& callback) override; |
| 46 bool StartCustomTouchCalibration(const std::string& id, |
| 47 std::string* error) override; |
| 48 bool CompleteCustomTouchCalibration( |
| 45 const api::system_display::TouchCalibrationPairQuad& pairs, | 49 const api::system_display::TouchCalibrationPairQuad& pairs, |
| 46 const api::system_display::Bounds& bounds, | 50 const api::system_display::Bounds& bounds, |
| 47 std::string* error) override; | 51 std::string* error) override; |
| 48 bool TouchCalibrationReset(const std::string& id, | 52 bool ResetTouchCalibration(const std::string& id, |
| 49 std::string* error) override; | 53 std::string* error) override; |
| 50 bool IsTouchCalibrationActive(std::string* error) override; | 54 bool IsNativeTouchCalibrationActive(std::string* error) override; |
| 51 | 55 |
| 52 private: | 56 private: |
| 53 chromeos::TouchCalibratorController* GetTouchCalibrator(); | 57 chromeos::TouchCalibratorController* GetTouchCalibrator(); |
| 54 | 58 |
| 55 chromeos::OverscanCalibrator* GetOverscanCalibrator(const std::string& id); | 59 chromeos::OverscanCalibrator* GetOverscanCalibrator(const std::string& id); |
| 56 | 60 |
| 57 std::map<std::string, std::unique_ptr<chromeos::OverscanCalibrator>> | 61 std::map<std::string, std::unique_ptr<chromeos::OverscanCalibrator>> |
| 58 overscan_calibrators_; | 62 overscan_calibrators_; |
| 59 | 63 |
| 60 std::unique_ptr<chromeos::TouchCalibratorController> touch_calibrator_; | 64 std::unique_ptr<chromeos::TouchCalibratorController> touch_calibrator_; |
| 61 | 65 |
| 66 std::string touch_calibration_target_id_; |
| 67 bool custom_touch_calibration_active_ = false; |
| 68 |
| 62 DISALLOW_COPY_AND_ASSIGN(DisplayInfoProviderChromeOS); | 69 DISALLOW_COPY_AND_ASSIGN(DisplayInfoProviderChromeOS); |
| 63 }; | 70 }; |
| 64 | 71 |
| 65 } // namespace extensions | 72 } // namespace extensions |
| 66 | 73 |
| 67 #endif // CHROME_BROWSER_EXTENSIONS_DISPLAY_INFO_PROVIDER_CHROMEOS_H_ | 74 #endif // CHROME_BROWSER_EXTENSIONS_DISPLAY_INFO_PROVIDER_CHROMEOS_H_ |
| OLD | NEW |