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

Side by Side Diff: extensions/browser/api/system_display/system_display_api.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 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
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 SystemDisplayStartNativeTouchCalibrationFunction
125 : public SystemDisplayFunction { 125 : public SystemDisplayFunction {
126 public: 126 public:
127 DECLARE_EXTENSION_FUNCTION("system.display.touchCalibrationStart", 127 DECLARE_EXTENSION_FUNCTION("system.display.startNativeTouchCalibration",
128 SYSTEM_DISPLAY_TOUCHCALIBRATIONSTART); 128 SYSTEM_DISPLAY_STARTNATIVETOUCHCALIBRATION);
129 129
130 protected: 130 protected:
131 ~SystemDisplayTouchCalibrationStartFunction() override {} 131 ~SystemDisplayStartNativeTouchCalibrationFunction() override {}
132 ResponseAction Run() override; 132 ResponseAction Run() override;
133 }; 133 };
134 134
135 class SystemDisplayTouchCalibrationSetFunction 135 class SystemDisplayStartCustomTouchCalibrationFunction
136 : public SystemDisplayFunction { 136 : public SystemDisplayFunction {
137 public: 137 public:
138 DECLARE_EXTENSION_FUNCTION("system.display.touchCalibrationSet", 138 DECLARE_EXTENSION_FUNCTION("system.display.startCustomTouchCalibration",
139 SYSTEM_DISPLAY_TOUCHCALIBRATIONSET); 139 SYSTEM_DISPLAY_STARTCUSTOMTOUCHCALIBRATION);
140 140
141 protected: 141 protected:
142 ~SystemDisplayTouchCalibrationSetFunction() override {} 142 ~SystemDisplayStartCustomTouchCalibrationFunction() override {}
143 ResponseAction Run() override; 143 ResponseAction Run() override;
144 }; 144 };
145 145
146 class SystemDisplayTouchCalibrationResetFunction 146 class SystemDisplayCompleteCustomTouchCalibrationFunction
147 : public SystemDisplayFunction { 147 : public SystemDisplayFunction {
148 public: 148 public:
149 DECLARE_EXTENSION_FUNCTION("system.display.touchCalibrationReset", 149 DECLARE_EXTENSION_FUNCTION("system.display.completeCustomTouchCalibration",
150 SYSTEM_DISPLAY_TOUCHCALIBRATIONRESET); 150 SYSTEM_DISPLAY_COMPLETECUSTOMTOUCHCALIBRATION);
151 151
152 protected: 152 protected:
153 ~SystemDisplayTouchCalibrationResetFunction() override {} 153 ~SystemDisplayCompleteCustomTouchCalibrationFunction() override {}
154 ResponseAction Run() override; 154 ResponseAction Run() override;
155 }; 155 };
156 156
157 class SystemDisplayResetTouchCalibrationFunction
158 : public SystemDisplayFunction {
159 public:
160 DECLARE_EXTENSION_FUNCTION("system.display.resetTouchCalibration",
161 SYSTEM_DISPLAY_RESETTOUCHCALIBRATION);
162
163 protected:
164 ~SystemDisplayResetTouchCalibrationFunction() override {}
165 ResponseAction Run() override;
166 };
167
157 } // namespace extensions 168 } // namespace extensions
158 169
159 #endif // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_ 170 #endif // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698