forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdevice_orientation_messages.h
26 lines (20 loc) · 1.08 KB
/
device_orientation_messages.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
// Copyright 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.
// IPC messages for device orientation.
// Multiply-included message file, hence no include guard.
#include "base/memory/shared_memory.h"
#include "ipc/ipc_message_macros.h"
#define IPC_MESSAGE_START DeviceOrientationMsgStart
// Asks the browser process to activate Device Orientation sensors if necessary.
IPC_MESSAGE_CONTROL0(DeviceOrientationHostMsg_StartPolling)
// The browser process asynchronously returns the shared memory handle that will
// hold the data from the hardware sensors.
// See device_orientation_hardware_buffer.h for a description of how
// synchronization is handled.
IPC_MESSAGE_CONTROL1(DeviceOrientationMsg_DidStartPolling,
base::SharedMemoryHandle /* handle */)
// Notifies the browser process that the renderer process is not using the
// Device Orientation data anymore. The number of Starts should match the
// number of Stops.
IPC_MESSAGE_CONTROL0(DeviceOrientationHostMsg_StopPolling)