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

Side by Side Diff: remoting/host/chromoting_messages.h

Issue 12678008: Reworked the plumbing required to pass the client resolution to the desktop resizer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: CR feedback Created 7 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | remoting/host/client_session.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "media/video/capture/screen/mouse_cursor_shape.h" 9 #include "media/video/capture/screen/mouse_cursor_shape.h"
10 #include "net/base/ip_endpoint.h" 10 #include "net/base/ip_endpoint.h"
11 #include "remoting/host/desktop_session.h" 11 #include "remoting/host/screen_resolution.h"
12 #include "remoting/protocol/transport.h" 12 #include "remoting/protocol/transport.h"
13 #include "third_party/skia/include/core/SkPoint.h" 13 #include "third_party/skia/include/core/SkPoint.h"
14 #include "third_party/skia/include/core/SkRect.h" 14 #include "third_party/skia/include/core/SkRect.h"
15 #include "third_party/skia/include/core/SkSize.h" 15 #include "third_party/skia/include/core/SkSize.h"
16 16
17 #endif // REMOTING_HOST_CHROMOTING_MESSAGES_H_ 17 #endif // REMOTING_HOST_CHROMOTING_MESSAGES_H_
18 18
19 // Multiply-included message file, no traditional include guard. 19 // Multiply-included message file, no traditional include guard.
20 #include "ipc/ipc_message_macros.h" 20 #include "ipc/ipc_message_macros.h"
21 21
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 base::ProcessHandle /* desktop_process */, 57 base::ProcessHandle /* desktop_process */,
58 IPC::PlatformFileForTransit /* desktop_pipe */) 58 IPC::PlatformFileForTransit /* desktop_pipe */)
59 59
60 //----------------------------------------------------------------------------- 60 //-----------------------------------------------------------------------------
61 // Chromoting messages sent from the network to the daemon process. 61 // Chromoting messages sent from the network to the daemon process.
62 62
63 // Asks the daemon to send Secure Attention Sequence (SAS) to the current 63 // Asks the daemon to send Secure Attention Sequence (SAS) to the current
64 // console session. 64 // console session.
65 IPC_MESSAGE_CONTROL0(ChromotingNetworkDaemonMsg_SendSasToConsole) 65 IPC_MESSAGE_CONTROL0(ChromotingNetworkDaemonMsg_SendSasToConsole)
66 66
67 IPC_STRUCT_TRAITS_BEGIN(remoting::DesktopSessionParams) 67 IPC_STRUCT_TRAITS_BEGIN(remoting::ScreenResolution)
68 IPC_STRUCT_TRAITS_MEMBER(client_dpi_) 68 IPC_STRUCT_TRAITS_MEMBER(dimensions_)
69 IPC_STRUCT_TRAITS_MEMBER(client_size_) 69 IPC_STRUCT_TRAITS_MEMBER(dpi_)
70 IPC_STRUCT_TRAITS_END() 70 IPC_STRUCT_TRAITS_END()
71 71
72 // Connects the terminal |terminal_id| (i.e. a remote client) to a desktop 72 // Connects the terminal |terminal_id| (i.e. a remote client) to a desktop
73 // session. 73 // session.
74 IPC_MESSAGE_CONTROL3(ChromotingNetworkHostMsg_ConnectTerminal, 74 IPC_MESSAGE_CONTROL3(ChromotingNetworkHostMsg_ConnectTerminal,
75 int /* terminal_id */, 75 int /* terminal_id */,
76 remoting::DesktopSessionParams /* params */, 76 remoting::ScreenResolution /* resolution */,
77 bool /* virtual_terminal */) 77 bool /* virtual_terminal */)
78 78
79 // Disconnects the terminal |terminal_id| from the desktop session it was 79 // Disconnects the terminal |terminal_id| from the desktop session it was
80 // connected to. 80 // connected to.
81 IPC_MESSAGE_CONTROL1(ChromotingNetworkHostMsg_DisconnectTerminal, 81 IPC_MESSAGE_CONTROL1(ChromotingNetworkHostMsg_DisconnectTerminal,
82 int /* terminal_id */) 82 int /* terminal_id */)
83 83
84 // Serialized remoting::protocol::TransportRoute structure. 84 // Serialized remoting::protocol::TransportRoute structure.
85 IPC_STRUCT_BEGIN(SerializedTransportRoute) 85 IPC_STRUCT_BEGIN(SerializedTransportRoute)
86 IPC_STRUCT_MEMBER(int, type) 86 IPC_STRUCT_MEMBER(int, type)
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 IPC_STRUCT_BEGIN(SerializedCapturedData) 172 IPC_STRUCT_BEGIN(SerializedCapturedData)
173 // ID of the shared memory buffer containing the pixels. 173 // ID of the shared memory buffer containing the pixels.
174 IPC_STRUCT_MEMBER(int, shared_buffer_id) 174 IPC_STRUCT_MEMBER(int, shared_buffer_id)
175 175
176 // Width of a single row of pixels in bytes. 176 // Width of a single row of pixels in bytes.
177 IPC_STRUCT_MEMBER(int, bytes_per_row) 177 IPC_STRUCT_MEMBER(int, bytes_per_row)
178 178
179 // Captured region. 179 // Captured region.
180 IPC_STRUCT_MEMBER(std::vector<SkIRect>, dirty_region) 180 IPC_STRUCT_MEMBER(std::vector<SkIRect>, dirty_region)
181 181
182 // Dimentions of the buffer in pixels. 182 // Dimensions of the buffer in pixels.
183 IPC_STRUCT_MEMBER(SkISize, dimensions) 183 IPC_STRUCT_MEMBER(SkISize, dimensions)
184 184
185 // Time spent in capture. Unit is in milliseconds. 185 // Time spent in capture. Unit is in milliseconds.
186 IPC_STRUCT_MEMBER(int, capture_time_ms) 186 IPC_STRUCT_MEMBER(int, capture_time_ms)
187 187
188 // Sequence number supplied by client for performance tracking. 188 // Sequence number supplied by client for performance tracking.
189 IPC_STRUCT_MEMBER(int64, client_sequence_number) 189 IPC_STRUCT_MEMBER(int64, client_sequence_number)
190 190
191 // DPI for this frame. 191 // DPI for this frame.
192 IPC_STRUCT_MEMBER(SkIPoint, dpi) 192 IPC_STRUCT_MEMBER(SkIPoint, dpi)
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 239
240 // Carries a keyboard event from the client to the desktop session agent. 240 // Carries a keyboard event from the client to the desktop session agent.
241 // |serialized_event| is a serialized protocol::KeyEvent. 241 // |serialized_event| is a serialized protocol::KeyEvent.
242 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectKeyEvent, 242 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectKeyEvent,
243 std::string /* serialized_event */ ) 243 std::string /* serialized_event */ )
244 244
245 // Carries a mouse event from the client to the desktop session agent. 245 // Carries a mouse event from the client to the desktop session agent.
246 // |serialized_event| is a serialized protocol::MouseEvent. 246 // |serialized_event| is a serialized protocol::MouseEvent.
247 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectMouseEvent, 247 IPC_MESSAGE_CONTROL1(ChromotingNetworkDesktopMsg_InjectMouseEvent,
248 std::string /* serialized_event */ ) 248 std::string /* serialized_event */ )
OLDNEW
« no previous file with comments | « no previous file | remoting/host/client_session.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698