We started redesigning GpuMemoryBuffer interface to handle multiple buffers [0].
[chromium-blink-merge.git] / content / common / device_sensors / device_orientation_messages.h
blobf75b70a095a16b6a4d84e981daf5d8c9db429997
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.
5 // IPC messages for device orientation.
6 // Multiply-included message file, hence no include guard.
8 #include "base/memory/shared_memory.h"
9 #include "ipc/ipc_message_macros.h"
11 #define IPC_MESSAGE_START DeviceOrientationMsgStart
13 // Asks the browser process to activate Device Orientation sensors if necessary.
14 IPC_MESSAGE_CONTROL0(DeviceOrientationHostMsg_StartPolling)
16 // The browser process asynchronously returns the shared memory handle that will
17 // hold the data from the hardware sensors.
18 // See device_orientation_hardware_buffer.h for a description of how
19 // synchronization is handled.
20 IPC_MESSAGE_CONTROL1(DeviceOrientationMsg_DidStartPolling,
21 base::SharedMemoryHandle /* handle */)
23 // Notifies the browser process that the renderer process is not using the
24 // Device Orientation data anymore. The number of Starts should match the
25 // number of Stops.
26 IPC_MESSAGE_CONTROL0(DeviceOrientationHostMsg_StopPolling)