Roll src/third_party/WebKit a3b4a2e:7441784 (svn 202551:202552)
[chromium-blink-merge.git] / extensions / browser / api / system_display / system_display_api.h
blob3c35e64d7eac268d5f8d9ac79d051d55e2ade7f0
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
3 // found in the LICENSE file.
5 #ifndef EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_
6 #define EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_
8 #include <string>
10 #include "extensions/browser/extension_function.h"
12 namespace extensions {
14 class SystemDisplayGetInfoFunction : public SyncExtensionFunction {
15 public:
16 DECLARE_EXTENSION_FUNCTION("system.display.getInfo", SYSTEM_DISPLAY_GETINFO);
18 protected:
19 ~SystemDisplayGetInfoFunction() override {}
20 bool RunSync() override;
23 class SystemDisplaySetDisplayPropertiesFunction : public SyncExtensionFunction {
24 public:
25 DECLARE_EXTENSION_FUNCTION("system.display.setDisplayProperties",
26 SYSTEM_DISPLAY_SETDISPLAYPROPERTIES);
28 protected:
29 ~SystemDisplaySetDisplayPropertiesFunction() override {}
30 bool RunSync() override;
33 class SystemDisplayEnableUnifiedDesktopFunction : public SyncExtensionFunction {
34 public:
35 DECLARE_EXTENSION_FUNCTION("system.display.enableUnifiedDesktop",
36 SYSTEM_DISPLAY_ENABLEUNIFIEDDESKTOP);
38 protected:
39 ~SystemDisplayEnableUnifiedDesktopFunction() override {}
40 bool RunSync() override;
43 } // namespace extensions
45 #endif // EXTENSIONS_BROWSER_API_SYSTEM_DISPLAY_SYSTEM_DISPLAY_API_H_