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 #include "remoting/protocol/client_control_dispatcher.h" | 5 #include "remoting/protocol/client_control_dispatcher.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
125 clipboard_stub_->InjectClipboardEvent(message->clipboard_event()); | 125 clipboard_stub_->InjectClipboardEvent(message->clipboard_event()); |
126 } else if (message->has_capabilities()) { | 126 } else if (message->has_capabilities()) { |
127 client_stub_->SetCapabilities(message->capabilities()); | 127 client_stub_->SetCapabilities(message->capabilities()); |
128 } else if (message->has_cursor_shape()) { | 128 } else if (message->has_cursor_shape()) { |
129 if (CursorShapeIsValid(message->cursor_shape())) | 129 if (CursorShapeIsValid(message->cursor_shape())) |
130 client_stub_->SetCursorShape(message->cursor_shape()); | 130 client_stub_->SetCursorShape(message->cursor_shape()); |
131 } else if (message->has_pairing_response()) { | 131 } else if (message->has_pairing_response()) { |
132 client_stub_->SetPairingResponse(message->pairing_response()); | 132 client_stub_->SetPairingResponse(message->pairing_response()); |
133 } else if (message->has_extension_message()) { | 133 } else if (message->has_extension_message()) { |
134 client_stub_->DeliverHostMessage(message->extension_message()); | 134 client_stub_->DeliverHostMessage(message->extension_message()); |
| 135 } else if (message->has_video_layout()) { |
| 136 client_stub_->SetVideoLayout(message->video_layout()); |
135 } else { | 137 } else { |
136 LOG(WARNING) << "Unknown control message received."; | 138 LOG(WARNING) << "Unknown control message received."; |
137 } | 139 } |
138 } | 140 } |
139 | 141 |
140 } // namespace protocol | 142 } // namespace protocol |
141 } // namespace remoting | 143 } // namespace remoting |
OLD | NEW |