OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 #ifndef REMOTING_HOST_CHROMOTING_MESSAGES_H_ | 5 #ifndef REMOTING_HOST_CHROMOTING_MESSAGES_H_ |
6 #define REMOTING_HOST_CHROMOTING_MESSAGES_H_ | 6 #define REMOTING_HOST_CHROMOTING_MESSAGES_H_ |
7 | 7 |
8 #include "ipc/ipc_platform_file.h" | 8 #include "ipc/ipc_platform_file.h" |
9 #include "net/base/ip_endpoint.h" | 9 #include "net/base/ip_endpoint.h" |
10 #include "remoting/host/chromoting_param_traits.h" | 10 #include "remoting/host/chromoting_param_traits.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 // Notifies the network process that a shared buffer has been created. | 131 // Notifies the network process that a shared buffer has been created. |
132 IPC_MESSAGE_CONTROL3(ChromotingDesktopNetworkMsg_CreateSharedBuffer, | 132 IPC_MESSAGE_CONTROL3(ChromotingDesktopNetworkMsg_CreateSharedBuffer, |
133 int /* id */, | 133 int /* id */, |
134 IPC::PlatformFileForTransit /* handle */, | 134 IPC::PlatformFileForTransit /* handle */, |
135 uint32 /* size */) | 135 uint32 /* size */) |
136 | 136 |
137 // Request the network process to stop using a shared buffer. | 137 // Request the network process to stop using a shared buffer. |
138 IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_ReleaseSharedBuffer, | 138 IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_ReleaseSharedBuffer, |
139 int /* id */) | 139 int /* id */) |
140 | 140 |
| 141 IPC_STRUCT_TRAITS_BEGIN(webrtc::MouseCursorShape) |
| 142 IPC_STRUCT_TRAITS_MEMBER(size) |
| 143 IPC_STRUCT_TRAITS_MEMBER(hotspot) |
| 144 IPC_STRUCT_TRAITS_MEMBER(data) |
| 145 IPC_STRUCT_TRAITS_END() |
| 146 |
141 // Serialized webrtc::DesktopFrame. | 147 // Serialized webrtc::DesktopFrame. |
142 IPC_STRUCT_BEGIN(SerializedDesktopFrame) | 148 IPC_STRUCT_BEGIN(SerializedDesktopFrame) |
143 // ID of the shared memory buffer containing the pixels. | 149 // ID of the shared memory buffer containing the pixels. |
144 IPC_STRUCT_MEMBER(int, shared_buffer_id) | 150 IPC_STRUCT_MEMBER(int, shared_buffer_id) |
145 | 151 |
146 // Width of a single row of pixels in bytes. | 152 // Width of a single row of pixels in bytes. |
147 IPC_STRUCT_MEMBER(int, bytes_per_row) | 153 IPC_STRUCT_MEMBER(int, bytes_per_row) |
148 | 154 |
149 // Captured region. | 155 // Captured region. |
150 IPC_STRUCT_MEMBER(std::vector<webrtc::DesktopRect>, dirty_region) | 156 IPC_STRUCT_MEMBER(std::vector<webrtc::DesktopRect>, dirty_region) |
151 | 157 |
152 // Dimensions of the buffer in pixels. | 158 // Dimensions of the buffer in pixels. |
153 IPC_STRUCT_MEMBER(webrtc::DesktopSize, dimensions) | 159 IPC_STRUCT_MEMBER(webrtc::DesktopSize, dimensions) |
154 | 160 |
155 // Time spent in capture. Unit is in milliseconds. | 161 // Time spent in capture. Unit is in milliseconds. |
156 IPC_STRUCT_MEMBER(int, capture_time_ms) | 162 IPC_STRUCT_MEMBER(int, capture_time_ms) |
157 | 163 |
158 // Sequence number supplied by client for performance tracking. | 164 // Sequence number supplied by client for performance tracking. |
159 IPC_STRUCT_MEMBER(int64, client_sequence_number) | 165 IPC_STRUCT_MEMBER(int64, client_sequence_number) |
160 | 166 |
161 // DPI for this frame. | 167 // DPI for this frame. |
162 IPC_STRUCT_MEMBER(webrtc::DesktopVector, dpi) | 168 IPC_STRUCT_MEMBER(webrtc::DesktopVector, dpi) |
163 IPC_STRUCT_END() | 169 IPC_STRUCT_END() |
164 | 170 |
165 // Notifies the network process that a shared buffer has been created. | 171 // Notifies the network process that a shared buffer has been created. |
166 IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_CaptureCompleted, | 172 IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_CaptureCompleted, |
167 SerializedDesktopFrame /* frame */ ) | 173 SerializedDesktopFrame /* frame */ ) |
168 | 174 |
169 // Carries a cursor share update from the desktop session agent to the client. | 175 // Carries a cursor share update from the desktop session agent to the client. |
170 IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_MouseCursor, | 176 IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_CursorShapeChanged, |
171 webrtc::MouseCursor /* cursor */ ) | 177 webrtc::MouseCursorShape /* cursor_shape */ ) |
172 | 178 |
173 // Carries a clipboard event from the desktop session agent to the client. | 179 // Carries a clipboard event from the desktop session agent to the client. |
174 // |serialized_event| is a serialized protocol::ClipboardEvent. | 180 // |serialized_event| is a serialized protocol::ClipboardEvent. |
175 IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_InjectClipboardEvent, | 181 IPC_MESSAGE_CONTROL1(ChromotingDesktopNetworkMsg_InjectClipboardEvent, |
176 std::string /* serialized_event */ ) | 182 std::string /* serialized_event */ ) |
177 | 183 |
178 // Requests the network process to terminate the client session. | 184 // Requests the network process to terminate the client session. |
179 IPC_MESSAGE_CONTROL0(ChromotingDesktopNetworkMsg_DisconnectSession) | 185 IPC_MESSAGE_CONTROL0(ChromotingDesktopNetworkMsg_DisconnectSession) |
180 | 186 |
181 // Carries an audio packet from the desktop session agent to the client. | 187 // Carries an audio packet from the desktop session agent to the client. |
(...skipping 24 matching lines...) Expand all Loading... |
206 std::string /* serialized_event */ ) | 212 std::string /* serialized_event */ ) |
207 | 213 |
208 // Carries a mouse event from the client to the desktop session agent. | 214 // Carries a mouse event from the client to the desktop session agent. |
209 // |serialized_event| is a serialized protocol::MouseEvent. | 215 // |serialized_event| is a serialized protocol::MouseEvent. |
210 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectMouseEvent, | 216 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectMouseEvent, |
211 std::string /* serialized_event */ ) | 217 std::string /* serialized_event */ ) |
212 | 218 |
213 // Changes the screen resolution in the desktop session. | 219 // Changes the screen resolution in the desktop session. |
214 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_SetScreenResolution, | 220 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_SetScreenResolution, |
215 remoting::ScreenResolution /* resolution */) | 221 remoting::ScreenResolution /* resolution */) |
OLD | NEW |