| Index: content/common/device_light/device_light_messages.h
|
| diff --git a/content/common/device_orientation/device_motion_messages.h b/content/common/device_light/device_light_messages.h
|
| similarity index 51%
|
| copy from content/common/device_orientation/device_motion_messages.h
|
| copy to content/common/device_light/device_light_messages.h
|
| index 4f8435d6ced4aac4d9b7343dea3c4fb6404493c4..25ca939ca211a94e99815f0fcf476c5c90f4edbe 100644
|
| --- a/content/common/device_orientation/device_motion_messages.h
|
| +++ b/content/common/device_light/device_light_messages.h
|
| @@ -1,8 +1,11 @@
|
| -// Copyright 2013 The Chromium Authors. All rights reserved.
|
| +// 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 motion.
|
| +#ifndef CONTENT_COMMON_DEVICE_LIGHT_DEVICE_LIGHT_MESSAGES_H_
|
| +#define CONTENT_COMMON_DEVICE_LIGHT_DEVICE_LIGHT_MESSAGES_H_
|
| +
|
| +// IPC messages for device light.
|
| // Multiply-included message file, hence no include guard.
|
|
|
| #include "base/memory/shared_memory.h"
|
| @@ -10,19 +13,21 @@
|
| #include "ipc/ipc_param_traits.h"
|
| #include "ipc/ipc_platform_file.h"
|
|
|
| -#define IPC_MESSAGE_START DeviceMotionMsgStart
|
| +#define IPC_MESSAGE_START DeviceLightMsgStart
|
|
|
| -// Asks the browser process to activate Device Motion sensors if necessary.
|
| -IPC_MESSAGE_CONTROL0(DeviceMotionHostMsg_StartPolling)
|
| +// Asks the browser process to activate Device Light sensors if necessary.
|
| +IPC_MESSAGE_CONTROL0(DeviceLightHostMsg_StartPolling)
|
|
|
| // The browser process asynchronously returns the shared memory handle that will
|
| // hold the data from the hardware sensors.
|
| // See device_motion_hardware_buffer.h for a description of how
|
| // synchronization is handled.
|
| -IPC_MESSAGE_CONTROL1(DeviceMotionMsg_DidStartPolling,
|
| +IPC_MESSAGE_CONTROL1(DeviceLightMsg_DidStartPolling,
|
| base::SharedMemoryHandle /* handle */)
|
|
|
| // Notifies the browser process that the renderer process is not using the
|
| -// Device Motion data anymore. The number of Starts should match the number
|
| +// Device Light data anymore. The number of Starts should match the number
|
| // of Stops.
|
| -IPC_MESSAGE_CONTROL0(DeviceMotionHostMsg_StopPolling)
|
| +IPC_MESSAGE_CONTROL0(DeviceLightHostMsg_StopPolling)
|
| +
|
| +#endif // CONTENT_COMMON_DEVICE_LIGHT_DEVICE_LIGHT_MESSAGES_H_
|
|
|