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

Unified Diff: chrome/common/extensions/api/power.idl

Issue 363993003: Move chrome.power API from chrome/ to extensions/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/common/extensions/api/power.idl
diff --git a/chrome/common/extensions/api/power.idl b/chrome/common/extensions/api/power.idl
deleted file mode 100644
index 8b40ddada21fd3ed683c96b83141f48b02810a1f..0000000000000000000000000000000000000000
--- a/chrome/common/extensions/api/power.idl
+++ /dev/null
@@ -1,27 +0,0 @@
-// Copyright (c) 2013 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.
-
-// Use the <code>chrome.power</code> API to override the system's power
-// management features.
-namespace power {
- [noinline_doc] enum Level {
- // Prevent the system from sleeping in response to user inactivity.
- system,
-
- // Prevent the display from being turned off or dimmed or the system
- // from sleeping in response to user inactivity.
- display
- };
-
- interface Functions {
- // Requests that power management be temporarily disabled. |level|
- // describes the degree to which power management should be disabled.
- // If a request previously made by the same app is still active, it
- // will be replaced by the new request.
- static void requestKeepAwake(Level level);
-
- // Releases a request previously made via requestKeepAwake().
- static void releaseKeepAwake();
- };
-};

Powered by Google App Engine
This is Rietveld 408576698