| 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 12 matching lines...) Expand all  Loading... | 
| 23 | 23 | 
| 24 class SystemDisplayGetInfoFunction : public SystemDisplayFunction { | 24 class SystemDisplayGetInfoFunction : public SystemDisplayFunction { | 
| 25  public: | 25  public: | 
| 26   DECLARE_EXTENSION_FUNCTION("system.display.getInfo", SYSTEM_DISPLAY_GETINFO); | 26   DECLARE_EXTENSION_FUNCTION("system.display.getInfo", SYSTEM_DISPLAY_GETINFO); | 
| 27 | 27 | 
| 28  protected: | 28  protected: | 
| 29   ~SystemDisplayGetInfoFunction() override {} | 29   ~SystemDisplayGetInfoFunction() override {} | 
| 30   bool RunSync() override; | 30   bool RunSync() override; | 
| 31 }; | 31 }; | 
| 32 | 32 | 
|  | 33 class SystemDisplayGetDisplayLayoutFunction : public SystemDisplayFunction { | 
|  | 34  public: | 
|  | 35   DECLARE_EXTENSION_FUNCTION("system.display.getDisplayLayout", | 
|  | 36                              SYSTEM_DISPLAY_GETDISPLAYLAYOUT); | 
|  | 37 | 
|  | 38  protected: | 
|  | 39   ~SystemDisplayGetDisplayLayoutFunction() override {} | 
|  | 40   bool RunSync() override; | 
|  | 41 }; | 
|  | 42 | 
| 33 class SystemDisplaySetDisplayPropertiesFunction : public SystemDisplayFunction { | 43 class SystemDisplaySetDisplayPropertiesFunction : public SystemDisplayFunction { | 
| 34  public: | 44  public: | 
| 35   DECLARE_EXTENSION_FUNCTION("system.display.setDisplayProperties", | 45   DECLARE_EXTENSION_FUNCTION("system.display.setDisplayProperties", | 
| 36                              SYSTEM_DISPLAY_SETDISPLAYPROPERTIES); | 46                              SYSTEM_DISPLAY_SETDISPLAYPROPERTIES); | 
| 37 | 47 | 
| 38  protected: | 48  protected: | 
| 39   ~SystemDisplaySetDisplayPropertiesFunction() override {} | 49   ~SystemDisplaySetDisplayPropertiesFunction() override {} | 
| 40   bool RunSync() override; | 50   bool RunSync() override; | 
| 41 }; | 51 }; | 
| 42 | 52 | 
|  | 53 class SystemDisplaySetDisplayLayoutFunction : public SystemDisplayFunction { | 
|  | 54  public: | 
|  | 55   DECLARE_EXTENSION_FUNCTION("system.display.setDisplayLayout", | 
|  | 56                              SYSTEM_DISPLAY_SETDISPLAYLAYOUT); | 
|  | 57 | 
|  | 58  protected: | 
|  | 59   ~SystemDisplaySetDisplayLayoutFunction() override {} | 
|  | 60   bool RunSync() override; | 
|  | 61 }; | 
|  | 62 | 
| 43 class SystemDisplayEnableUnifiedDesktopFunction : public SystemDisplayFunction { | 63 class SystemDisplayEnableUnifiedDesktopFunction : public SystemDisplayFunction { | 
| 44  public: | 64  public: | 
| 45   DECLARE_EXTENSION_FUNCTION("system.display.enableUnifiedDesktop", | 65   DECLARE_EXTENSION_FUNCTION("system.display.enableUnifiedDesktop", | 
| 46                              SYSTEM_DISPLAY_ENABLEUNIFIEDDESKTOP); | 66                              SYSTEM_DISPLAY_ENABLEUNIFIEDDESKTOP); | 
| 47 | 67 | 
| 48  protected: | 68  protected: | 
| 49   ~SystemDisplayEnableUnifiedDesktopFunction() override {} | 69   ~SystemDisplayEnableUnifiedDesktopFunction() override {} | 
| 50   bool RunSync() override; | 70   bool RunSync() override; | 
| 51 }; | 71 }; | 
| 52 | 72 | 
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 90                              SYSTEM_DISPLAY_OVERSCANCALIBRATIONCOMPLETE); | 110                              SYSTEM_DISPLAY_OVERSCANCALIBRATIONCOMPLETE); | 
| 91 | 111 | 
| 92  protected: | 112  protected: | 
| 93   ~SystemDisplayOverscanCalibrationCompleteFunction() override {} | 113   ~SystemDisplayOverscanCalibrationCompleteFunction() override {} | 
| 94   bool RunSync() override; | 114   bool RunSync() override; | 
| 95 }; | 115 }; | 
| 96 | 116 | 
| 97 }  // namespace extensions | 117 }  // namespace extensions | 
| 98 | 118 | 
| 99 #endif  // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_ | 119 #endif  // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_ | 
| OLD | NEW | 
|---|