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

Unified Diff: chrome/browser/extensions/api/power/power_api.h

Issue 12576018: Add chrome.power extension API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: add copyright notice to example extension Created 7 years, 9 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/extensions/api/power/power_api.h
diff --git a/chrome/browser/chromeos/extensions/power/power_api.h b/chrome/browser/extensions/api/power/power_api.h
similarity index 53%
rename from chrome/browser/chromeos/extensions/power/power_api.h
rename to chrome/browser/extensions/api/power/power_api.h
index 1d79f8a81054cdb9f5492753c3304cbf9f3e7e80..fcde9c5f5ab8f0993e917b588e84618272ef33cd 100644
--- a/chrome/browser/chromeos/extensions/power/power_api.h
+++ b/chrome/browser/extensions/api/power/power_api.h
@@ -2,18 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_CHROMEOS_EXTENSIONS_POWER_POWER_API_H_
-#define CHROME_BROWSER_CHROMEOS_EXTENSIONS_POWER_POWER_API_H_
+#ifndef CHROME_BROWSER_EXTENSIONS_API_POWER_POWER_API_H_
+#define CHROME_BROWSER_EXTENSIONS_API_POWER_POWER_API_H_
#include "chrome/browser/extensions/extension_function.h"
namespace extensions {
-// Implementation of the chrome.experimental.power.requestKeepAwake API.
+// Implementation of the chrome.power.requestKeepAwake API.
class PowerRequestKeepAwakeFunction : public SyncExtensionFunction {
public:
- DECLARE_EXTENSION_FUNCTION("experimental.power.requestKeepAwake",
- EXPERIMENTAL_POWER_REQUESTKEEPAWAKE)
+ DECLARE_EXTENSION_FUNCTION("power.requestKeepAwake", POWER_REQUESTKEEPAWAKE)
protected:
virtual ~PowerRequestKeepAwakeFunction() {}
@@ -22,11 +21,10 @@ class PowerRequestKeepAwakeFunction : public SyncExtensionFunction {
virtual bool RunImpl() OVERRIDE;
};
-// Implementation of the chrome.experimental.power.releaseKeepAwake API.
+// Implementation of the chrome.power.releaseKeepAwake API.
class PowerReleaseKeepAwakeFunction : public SyncExtensionFunction {
public:
- DECLARE_EXTENSION_FUNCTION("experimental.power.releaseKeepAwake",
- EXPERIMENTAL_POWER_RELEASEKEEPAWAKE)
+ DECLARE_EXTENSION_FUNCTION("power.releaseKeepAwake", POWER_RELEASEKEEPAWAKE)
protected:
virtual ~PowerReleaseKeepAwakeFunction() {}
@@ -37,4 +35,4 @@ class PowerReleaseKeepAwakeFunction : public SyncExtensionFunction {
} // namespace extensions
-#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_POWER_POWER_API_H_
+#endif // CHROME_BROWSER_EXTENSIONS_API_POWER_POWER_API_H_
« no previous file with comments | « chrome/browser/chromeos/extensions/power/power_api_manager.cc ('k') | chrome/browser/extensions/api/power/power_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698