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

Unified Diff: public/platform/WebWakeLockType.h

Issue 399313003: Initial implementation of API WakeLock. Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Implementation of WakeLock API on JavaScript side Created 6 years, 4 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: public/platform/WebWakeLockType.h
diff --git a/Source/core/frame/NavigatorCPU.h b/public/platform/WebWakeLockType.h
similarity index 54%
copy from Source/core/frame/NavigatorCPU.h
copy to public/platform/WebWakeLockType.h
index 84d4f58244d3d832e20d703fd8a9d09cf344b303..9bf940ca5737cf54d3efcd26ec5f660e736f8831 100644
--- a/Source/core/frame/NavigatorCPU.h
+++ b/public/platform/WebWakeLockType.h
@@ -2,16 +2,17 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef NavigatorCPU_h
-#define NavigatorCPU_h
+#ifndef WebWakeLockType_h
+#define WebWakeLockType_h
namespace blink {
-class NavigatorCPU {
-public:
- unsigned hardwareConcurrency() const;
+enum WebWakeLockType {
+ WebWakeLockScreen = 0,
+ WebWakeLockSystem,
+ WebWakeLockNone,
};
} // namespace blink
-#endif // NavigatorCPU_h
+#endif // WebWakeLockType_h
« public/platform/WebWakeLockClient.h ('K') | « public/platform/WebWakeLockRequestCallback.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698