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

Unified Diff: content/common/wake_lock_messages.h

Issue 406483004: Initial implementation of API WakeLock. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 5 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: content/common/wake_lock_messages.h
diff --git a/content/common/wake_lock_messages.h b/content/common/wake_lock_messages.h
new file mode 100644
index 0000000000000000000000000000000000000000..f324bf4f1901deddf5f5baa08ddaf56418ecdf92
--- /dev/null
+++ b/content/common/wake_lock_messages.h
@@ -0,0 +1,27 @@
+// Copyright (c) 2014 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 CONTENT_COMMON_WAKE_LOCK_MESSAGES_H_
+#define CONTENT_COMMON_WAKE_LOCK_MESSAGES_H_
+
+// IPC messages for wake lock.
+
+#include "ipc/ipc_message_macros.h"
+
+#define IPC_MESSAGE_START WakeLockMsgStart
+
+// Asks the browser process to create wake lock if necessary.
+IPC_MESSAGE_ROUTED0(WakeLockScreenViewHostMsg_RequestLock)
+
+IPC_MESSAGE_ROUTED0(WakeLockScreenViewHostMsg_RequestUnlock)
+
+// Answer from browser to renderer about created wakeLock
+IPC_MESSAGE_ROUTED0(WakeLockScreenViewMsg_LockedSuccessful)
+IPC_MESSAGE_ROUTED0(WakeLockScreenViewMsg_LockedFailed)
+
+// Answer from browser to renderer about unlocked wakeLock
+IPC_MESSAGE_ROUTED0(WakeLockScreenViewMsg_UnlockedSuccessful)
+IPC_MESSAGE_ROUTED0(WakeLockScreenViewMsg_UnlockedFailed)
+
+#endif // CONTENT_COMMON_WAKE_LOCK_MESSAGES_H_

Powered by Google App Engine
This is Rietveld 408576698