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

Side by Side Diff: chrome/browser/extensions/api/system_info_display/system_info_display_api.h

Issue 16817006: Add ability to change display settings to chrome.systemInfo.display (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 7 years, 6 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_DISPLAY_SYSTEM_INFO_DISPLAY_AP I_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_DISPLAY_SYSTEM_INFO_DISPLAY_AP I_H_
6 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_DISPLAY_SYSTEM_INFO_DISPLAY_AP I_H_ 6 #define CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_DISPLAY_SYSTEM_INFO_DISPLAY_AP I_H_
7 7
8 #include "chrome/browser/extensions/api/system_info_display/display_info_provide r.h" 8 #include "chrome/browser/extensions/api/system_info_display/display_info_provide r.h"
9 #include "chrome/browser/extensions/extension_function.h" 9 #include "chrome/browser/extensions/extension_function.h"
10 10
11 namespace extensions { 11 namespace extensions {
12 12
13 class SystemInfoDisplayGetDisplayInfoFunction : public AsyncExtensionFunction { 13 class SystemInfoDisplayGetDisplayInfoFunction : public AsyncExtensionFunction {
14 public: 14 public:
15 DECLARE_EXTENSION_FUNCTION("systemInfo.display.getDisplayInfo", 15 DECLARE_EXTENSION_FUNCTION("systemInfo.display.getDisplayInfo",
16 SYSTEMINFO_DISPLAY_GETDISPLAYINFO); 16 SYSTEMINFO_DISPLAY_GETDISPLAYINFO);
17 17
18 protected: 18 protected:
19 virtual ~SystemInfoDisplayGetDisplayInfoFunction() {} 19 virtual ~SystemInfoDisplayGetDisplayInfoFunction() {}
20 virtual bool RunImpl() OVERRIDE; 20 virtual bool RunImpl() OVERRIDE;
21 21
22 private: 22 private:
23 void OnGetDisplayInfoCompleted(const DisplayInfo& info, bool success); 23 void OnGetDisplayInfoCompleted(const DisplayInfo& info, bool success);
24 }; 24 };
25 25
26 class SystemInfoDisplaySetDisplayUnitInfoFunction
27 : public AsyncExtensionFunction {
28 public:
29 DECLARE_EXTENSION_FUNCTION("systemInfo.display.setDisplayUnitInfo",
30 SYSTEMINFO_DISPLAY_SETDISPLAYUNITINFO);
31
32 protected:
33 virtual ~SystemInfoDisplaySetDisplayUnitInfoFunction() {}
34 virtual bool RunImpl() OVERRIDE;
35
36 private:
37 void OnSetDisplayUnitInfo(bool success, const std::string& error);
38 };
39
26 } // namespace extensions 40 } // namespace extensions
27 41
28 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_DISPLAY_SYSTEM_INFO_DISPLAY _API_H__ 42 #endif // CHROME_BROWSER_EXTENSIONS_API_SYSTEM_INFO_DISPLAY_SYSTEM_INFO_DISPLAY _API_H__
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698