OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "base/shared_memory.h" | 5 #include "base/shared_memory.h" |
6 #include "content/common/common_param_traits.h" | 6 #include "content/public/common/common_param_traits.h" |
7 #include "ipc/ipc_message_macros.h" | 7 #include "ipc/ipc_message_macros.h" |
8 #include "media/video/capture/video_capture.h" | 8 #include "media/video/capture/video_capture.h" |
9 | 9 |
10 #define IPC_MESSAGE_START VideoCaptureMsgStart | 10 #define IPC_MESSAGE_START VideoCaptureMsgStart |
11 | 11 |
12 IPC_ENUM_TRAITS(media::VideoCapture::State) | 12 IPC_ENUM_TRAITS(media::VideoCapture::State) |
13 | 13 |
14 IPC_STRUCT_TRAITS_BEGIN(media::VideoCaptureParams) | 14 IPC_STRUCT_TRAITS_BEGIN(media::VideoCaptureParams) |
15 IPC_STRUCT_TRAITS_MEMBER(width) | 15 IPC_STRUCT_TRAITS_MEMBER(width) |
16 IPC_STRUCT_TRAITS_MEMBER(height) | 16 IPC_STRUCT_TRAITS_MEMBER(height) |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 | 53 |
54 // Close the video capture specified by |device_id|. | 54 // Close the video capture specified by |device_id|. |
55 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop, | 55 IPC_MESSAGE_CONTROL1(VideoCaptureHostMsg_Stop, |
56 int /* device_id */) | 56 int /* device_id */) |
57 | 57 |
58 // Tell the browser process that the video frame buffer |handle| is ready for | 58 // Tell the browser process that the video frame buffer |handle| is ready for |
59 // device |device_id| to fill up. | 59 // device |device_id| to fill up. |
60 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_BufferReady, | 60 IPC_MESSAGE_CONTROL2(VideoCaptureHostMsg_BufferReady, |
61 int /* device_id */, | 61 int /* device_id */, |
62 int /* buffer_id */) | 62 int /* buffer_id */) |
OLD | NEW |