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

Unified Diff: chrome/browser/chromeos/extensions/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
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/power/power_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/extensions/power/power_api.h
diff --git a/chrome/browser/chromeos/extensions/power/power_api.h b/chrome/browser/chromeos/extensions/power/power_api.h
deleted file mode 100644
index 1d79f8a81054cdb9f5492753c3304cbf9f3e7e80..0000000000000000000000000000000000000000
--- a/chrome/browser/chromeos/extensions/power/power_api.h
+++ /dev/null
@@ -1,40 +0,0 @@
-// Copyright (c) 2012 The Chromium Authors. All rights reserved.
-// 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_
-
-#include "chrome/browser/extensions/extension_function.h"
-
-namespace extensions {
-
-// Implementation of the chrome.experimental.power.requestKeepAwake API.
-class PowerRequestKeepAwakeFunction : public SyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("experimental.power.requestKeepAwake",
- EXPERIMENTAL_POWER_REQUESTKEEPAWAKE)
-
- protected:
- virtual ~PowerRequestKeepAwakeFunction() {}
-
- // ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
-};
-
-// Implementation of the chrome.experimental.power.releaseKeepAwake API.
-class PowerReleaseKeepAwakeFunction : public SyncExtensionFunction {
- public:
- DECLARE_EXTENSION_FUNCTION("experimental.power.releaseKeepAwake",
- EXPERIMENTAL_POWER_RELEASEKEEPAWAKE)
-
- protected:
- virtual ~PowerReleaseKeepAwakeFunction() {}
-
- // ExtensionFunction:
- virtual bool RunImpl() OVERRIDE;
-};
-
-} // namespace extensions
-
-#endif // CHROME_BROWSER_CHROMEOS_EXTENSIONS_POWER_POWER_API_H_
« no previous file with comments | « no previous file | chrome/browser/chromeos/extensions/power/power_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698