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

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

Issue 2002773002: Add overscanCalibration methods to system_display.idl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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"
11 11
12 namespace extensions { 12 namespace extensions {
13 13
14 class SystemDisplayGetInfoFunction : public SyncExtensionFunction { 14 class SystemDisplayFunction : public SyncExtensionFunction {
15 protected:
16 ~SystemDisplayFunction() override {}
17 bool CheckValidExtension();
18 };
19
20 class SystemDisplayGetInfoFunction : public SystemDisplayFunction {
15 public: 21 public:
16 DECLARE_EXTENSION_FUNCTION("system.display.getInfo", SYSTEM_DISPLAY_GETINFO); 22 DECLARE_EXTENSION_FUNCTION("system.display.getInfo", SYSTEM_DISPLAY_GETINFO);
17 23
18 protected: 24 protected:
19 ~SystemDisplayGetInfoFunction() override {} 25 ~SystemDisplayGetInfoFunction() override {}
20 bool RunSync() override; 26 bool RunSync() override;
21 }; 27 };
22 28
23 class SystemDisplaySetDisplayPropertiesFunction : public SyncExtensionFunction { 29 class SystemDisplaySetDisplayPropertiesFunction : public SystemDisplayFunction {
24 public: 30 public:
25 DECLARE_EXTENSION_FUNCTION("system.display.setDisplayProperties", 31 DECLARE_EXTENSION_FUNCTION("system.display.setDisplayProperties",
26 SYSTEM_DISPLAY_SETDISPLAYPROPERTIES); 32 SYSTEM_DISPLAY_SETDISPLAYPROPERTIES);
27 33
28 protected: 34 protected:
29 ~SystemDisplaySetDisplayPropertiesFunction() override {} 35 ~SystemDisplaySetDisplayPropertiesFunction() override {}
30 bool RunSync() override; 36 bool RunSync() override;
31 }; 37 };
32 38
33 class SystemDisplayEnableUnifiedDesktopFunction : public SyncExtensionFunction { 39 class SystemDisplayEnableUnifiedDesktopFunction : public SystemDisplayFunction {
34 public: 40 public:
35 DECLARE_EXTENSION_FUNCTION("system.display.enableUnifiedDesktop", 41 DECLARE_EXTENSION_FUNCTION("system.display.enableUnifiedDesktop",
36 SYSTEM_DISPLAY_ENABLEUNIFIEDDESKTOP); 42 SYSTEM_DISPLAY_ENABLEUNIFIEDDESKTOP);
37 43
38 protected: 44 protected:
39 ~SystemDisplayEnableUnifiedDesktopFunction() override {} 45 ~SystemDisplayEnableUnifiedDesktopFunction() override {}
40 bool RunSync() override; 46 bool RunSync() override;
41 }; 47 };
42 48
49 class SystemDisplayOverscanCalibrationStartFunction
50 : public SystemDisplayFunction {
51 public:
52 DECLARE_EXTENSION_FUNCTION("system.display.overscanCalibrationStart",
53 SYSTEM_DISPLAY_OVERSCANCALIBRATIONSTART);
54
55 protected:
56 ~SystemDisplayOverscanCalibrationStartFunction() override {}
57 bool RunSync() override;
58 };
59
60 class SystemDisplayOverscanCalibrationAdjustFunction
61 : public SystemDisplayFunction {
62 public:
63 DECLARE_EXTENSION_FUNCTION("system.display.overscanCalibrationAdjust",
64 SYSTEM_DISPLAY_OVERSCANCALIBRATIONADJUST);
65
66 protected:
67 ~SystemDisplayOverscanCalibrationAdjustFunction() override {}
68 bool RunSync() override;
69 };
70
71 class SystemDisplayOverscanCalibrationResetFunction
72 : public SystemDisplayFunction {
73 public:
74 DECLARE_EXTENSION_FUNCTION("system.display.overscanCalibrationReset",
75 SYSTEM_DISPLAY_OVERSCANCALIBRATIONRESET);
76
77 protected:
78 ~SystemDisplayOverscanCalibrationResetFunction() override {}
79 bool RunSync() override;
80 };
81
82 class SystemDisplayOverscanCalibrationCompleteFunction
83 : public SystemDisplayFunction {
84 public:
85 DECLARE_EXTENSION_FUNCTION("system.display.overscanCalibrationComplete",
86 SYSTEM_DISPLAY_OVERSCANCALIBRATIONCOMPLETE);
87
88 protected:
89 ~SystemDisplayOverscanCalibrationCompleteFunction() override {}
90 bool RunSync() override;
91 };
92
43 } // namespace extensions 93 } // namespace extensions
44 94
45 #endif // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_ 95 #endif // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698