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

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

Issue 236833003: Rename device_orientation to device_sensors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 8 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
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // IPC messages for device orientation. 5 // IPC messages for device orientation.
6 // Multiply-included message file, hence no include guard. 6 // Multiply-included message file, hence no include guard.
7 7
8 #include "base/memory/shared_memory.h" 8 #include "base/memory/shared_memory.h"
9 #include "ipc/ipc_message_macros.h" 9 #include "ipc/ipc_message_macros.h"
10 10
11 #define IPC_MESSAGE_START DeviceOrientationMsgStart 11 #define IPC_MESSAGE_START DeviceOrientationMsgStart
12 12
13 // Asks the browser process to activate Device Orientation sensors if necessary. 13 // Asks the browser process to activate Device Orientation sensors if necessary.
14 IPC_MESSAGE_CONTROL0(DeviceOrientationHostMsg_StartPolling) 14 IPC_MESSAGE_CONTROL0(DeviceOrientationHostMsg_StartPolling)
15 15
16 // The browser process asynchronously returns the shared memory handle that will 16 // The browser process asynchronously returns the shared memory handle that will
17 // hold the data from the hardware sensors. 17 // hold the data from the hardware sensors.
18 // See device_orientation_hardware_buffer.h for a description of how 18 // See device_orientation_hardware_buffer.h for a description of how
19 // synchronization is handled. 19 // synchronization is handled.
20 IPC_MESSAGE_CONTROL1(DeviceOrientationMsg_DidStartPolling, 20 IPC_MESSAGE_CONTROL1(DeviceOrientationMsg_DidStartPolling,
21 base::SharedMemoryHandle /* handle */) 21 base::SharedMemoryHandle /* handle */)
22 22
23 // Notifies the browser process that the renderer process is not using the 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 24 // Device Orientation data anymore. The number of Starts should match the
25 // number of Stops. 25 // number of Stops.
26 IPC_MESSAGE_CONTROL0(DeviceOrientationHostMsg_StopPolling) 26 IPC_MESSAGE_CONTROL0(DeviceOrientationHostMsg_StopPolling)
OLDNEW
« no previous file with comments | « content/common/device_sensors/device_orientation_hardware_buffer.h ('k') | content/content_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698