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

Side by Side Diff: content/common/device_sensors/device_light_messages.h

Issue 2037513002: Convert device_sensors to use mojo. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@conversion--mime-registry
Patch Set: rebase Created 4 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 // IPC messages for device light.
6 // Multiply-included message file, hence no include guard.
7
8 #include "base/memory/shared_memory.h"
9 #include "ipc/ipc_message_macros.h"
10 #include "ipc/ipc_param_traits.h"
11 #include "ipc/ipc_platform_file.h"
12
13 #define IPC_MESSAGE_START DeviceLightMsgStart
14
15 // Asks the browser process to activate Device Light sensors if necessary.
16 IPC_MESSAGE_CONTROL0(DeviceLightHostMsg_StartPolling)
17
18 // The browser process asynchronously returns the shared memory handle that
19 // will hold the data from the hardware sensors.
20 IPC_MESSAGE_CONTROL1(DeviceLightMsg_DidStartPolling,
21 base::SharedMemoryHandle /* handle */)
22
23 // Notifies the browser process that the renderer process is not using the
24 // Device Light data anymore. The number of Starts should match the number
25 // of Stops.
26 IPC_MESSAGE_CONTROL0(DeviceLightHostMsg_StopPolling)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698