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

Side by Side Diff: extensions/browser/api/system_display/system_display_api.h

Issue 2656433004: - Plumbs through native touch calibration from MD settings to display manager via the system dis… (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 SystemDisplayShowNativeTouchCalibrationFunction
125 : public SystemDisplayFunction { 125 : public SystemDisplayFunction {
126 public: 126 public:
127 DECLARE_EXTENSION_FUNCTION("system.display.touchCalibrationStart", 127 static const char kTouchCalibrationError[];
128 SYSTEM_DISPLAY_TOUCHCALIBRATIONSTART); 128 DECLARE_EXTENSION_FUNCTION("system.display.showNativeTouchCalibration",
129 SYSTEM_DISPLAY_SHOWNATIVETOUCHCALIBRATION);
129 130
130 protected: 131 protected:
131 ~SystemDisplayTouchCalibrationStartFunction() override {} 132 ~SystemDisplayShowNativeTouchCalibrationFunction() override {}
133 ResponseAction Run() override;
134
135 void OnCalibrationComplete(bool success);
136 };
137
138 class SystemDisplayStartCustomTouchCalibrationFunction
139 : public SystemDisplayFunction {
140 public:
141 DECLARE_EXTENSION_FUNCTION("system.display.startCustomTouchCalibration",
142 SYSTEM_DISPLAY_STARTCUSTOMTOUCHCALIBRATION);
143
144 protected:
145 ~SystemDisplayStartCustomTouchCalibrationFunction() override {}
132 ResponseAction Run() override; 146 ResponseAction Run() override;
133 }; 147 };
134 148
135 class SystemDisplayTouchCalibrationSetFunction 149 class SystemDisplayCompleteCustomTouchCalibrationFunction
136 : public SystemDisplayFunction { 150 : public SystemDisplayFunction {
137 public: 151 public:
138 DECLARE_EXTENSION_FUNCTION("system.display.touchCalibrationSet", 152 DECLARE_EXTENSION_FUNCTION("system.display.completeCustomTouchCalibration",
139 SYSTEM_DISPLAY_TOUCHCALIBRATIONSET); 153 SYSTEM_DISPLAY_COMPLETECUSTOMTOUCHCALIBRATION);
140 154
141 protected: 155 protected:
142 ~SystemDisplayTouchCalibrationSetFunction() override {} 156 ~SystemDisplayCompleteCustomTouchCalibrationFunction() override {}
143 ResponseAction Run() override; 157 ResponseAction Run() override;
144 }; 158 };
145 159
146 class SystemDisplayTouchCalibrationResetFunction 160 class SystemDisplayClearTouchCalibrationFunction
147 : public SystemDisplayFunction { 161 : public SystemDisplayFunction {
148 public: 162 public:
149 DECLARE_EXTENSION_FUNCTION("system.display.touchCalibrationReset", 163 DECLARE_EXTENSION_FUNCTION("system.display.clearTouchCalibration",
150 SYSTEM_DISPLAY_TOUCHCALIBRATIONRESET); 164 SYSTEM_DISPLAY_CLEARTOUCHCALIBRATION);
151 165
152 protected: 166 protected:
153 ~SystemDisplayTouchCalibrationResetFunction() override {} 167 ~SystemDisplayClearTouchCalibrationFunction() override {}
154 ResponseAction Run() override; 168 ResponseAction Run() override;
155 }; 169 };
156 170
157 } // namespace extensions 171 } // namespace extensions
158 172
159 #endif // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_ 173 #endif // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698