| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_ | 5 #ifndef EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_ |
| 6 #define EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_ | 6 #define EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "extensions/browser/extension_function.h" | 10 #include "extensions/browser/extension_function.h" |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 : public SystemDisplayFunction { | 114 : public SystemDisplayFunction { |
| 115 public: | 115 public: |
| 116 DECLARE_EXTENSION_FUNCTION("system.display.overscanCalibrationComplete", | 116 DECLARE_EXTENSION_FUNCTION("system.display.overscanCalibrationComplete", |
| 117 SYSTEM_DISPLAY_OVERSCANCALIBRATIONCOMPLETE); | 117 SYSTEM_DISPLAY_OVERSCANCALIBRATIONCOMPLETE); |
| 118 | 118 |
| 119 protected: | 119 protected: |
| 120 ~SystemDisplayOverscanCalibrationCompleteFunction() override {} | 120 ~SystemDisplayOverscanCalibrationCompleteFunction() override {} |
| 121 ResponseAction Run() override; | 121 ResponseAction Run() override; |
| 122 }; | 122 }; |
| 123 | 123 |
| 124 class SystemDisplayTouchCalibrationStartFunction | 124 class SystemDisplayShowNativeTouchCalibrationFunction |
| 125 : public SystemDisplayFunction { | 125 : public SystemDisplayFunction { |
| 126 public: | 126 public: |
| 127 DECLARE_EXTENSION_FUNCTION("system.display.touchCalibrationStart", | 127 DECLARE_EXTENSION_FUNCTION("system.display.showNativeTouchCalibration", |
| 128 SYSTEM_DISPLAY_TOUCHCALIBRATIONSTART); | 128 SYSTEM_DISPLAY_SHOWNATIVETOUCHCALIBRATION); |
| 129 | 129 |
| 130 protected: | 130 protected: |
| 131 ~SystemDisplayTouchCalibrationStartFunction() override {} | 131 ~SystemDisplayShowNativeTouchCalibrationFunction() override {} |
| 132 ResponseAction Run() override; |
| 133 |
| 134 void OnCalibrationComplete(bool success); |
| 135 }; |
| 136 |
| 137 class SystemDisplayStartCustomTouchCalibrationFunction |
| 138 : public SystemDisplayFunction { |
| 139 public: |
| 140 DECLARE_EXTENSION_FUNCTION("system.display.startCustomTouchCalibration", |
| 141 SYSTEM_DISPLAY_STARTCUSTOMTOUCHCALIBRATION); |
| 142 |
| 143 protected: |
| 144 ~SystemDisplayStartCustomTouchCalibrationFunction() override {} |
| 132 ResponseAction Run() override; | 145 ResponseAction Run() override; |
| 133 }; | 146 }; |
| 134 | 147 |
| 135 class SystemDisplayTouchCalibrationSetFunction | 148 class SystemDisplayCompleteCustomTouchCalibrationFunction |
| 136 : public SystemDisplayFunction { | 149 : public SystemDisplayFunction { |
| 137 public: | 150 public: |
| 138 DECLARE_EXTENSION_FUNCTION("system.display.touchCalibrationSet", | 151 DECLARE_EXTENSION_FUNCTION("system.display.completeCustomTouchCalibration", |
| 139 SYSTEM_DISPLAY_TOUCHCALIBRATIONSET); | 152 SYSTEM_DISPLAY_COMPLETECUSTOMTOUCHCALIBRATION); |
| 140 | 153 |
| 141 protected: | 154 protected: |
| 142 ~SystemDisplayTouchCalibrationSetFunction() override {} | 155 ~SystemDisplayCompleteCustomTouchCalibrationFunction() override {} |
| 143 ResponseAction Run() override; | 156 ResponseAction Run() override; |
| 144 }; | 157 }; |
| 145 | 158 |
| 146 class SystemDisplayTouchCalibrationResetFunction | 159 class SystemDisplayResetTouchCalibrationFunction |
| 147 : public SystemDisplayFunction { | 160 : public SystemDisplayFunction { |
| 148 public: | 161 public: |
| 149 DECLARE_EXTENSION_FUNCTION("system.display.touchCalibrationReset", | 162 DECLARE_EXTENSION_FUNCTION("system.display.resetTouchCalibration", |
| 150 SYSTEM_DISPLAY_TOUCHCALIBRATIONRESET); | 163 SYSTEM_DISPLAY_RESETTOUCHCALIBRATION); |
| 151 | 164 |
| 152 protected: | 165 protected: |
| 153 ~SystemDisplayTouchCalibrationResetFunction() override {} | 166 ~SystemDisplayResetTouchCalibrationFunction() override {} |
| 154 ResponseAction Run() override; | 167 ResponseAction Run() override; |
| 155 }; | 168 }; |
| 156 | 169 |
| 157 } // namespace extensions | 170 } // namespace extensions |
| 158 | 171 |
| 159 #endif // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_ | 172 #endif // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_ |
| OLD | NEW |