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 // ChromotingClient is the controller for the Client implementation. | 5 // ChromotingClient is the controller for the Client implementation. |
6 | 6 |
7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 7 #ifndef REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 8 #define REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
9 | 9 |
10 #include <string> | 10 #include <string> |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 return connection_->clipboard_forwarder(); | 77 return connection_->clipboard_forwarder(); |
78 } | 78 } |
79 protocol::HostStub* host_stub() { return connection_->host_stub(); } | 79 protocol::HostStub* host_stub() { return connection_->host_stub(); } |
80 protocol::InputStub* input_stub() { return connection_->input_stub(); } | 80 protocol::InputStub* input_stub() { return connection_->input_stub(); } |
81 | 81 |
82 // ClientStub implementation. | 82 // ClientStub implementation. |
83 void SetCapabilities(const protocol::Capabilities& capabilities) override; | 83 void SetCapabilities(const protocol::Capabilities& capabilities) override; |
84 void SetPairingResponse( | 84 void SetPairingResponse( |
85 const protocol::PairingResponse& pairing_response) override; | 85 const protocol::PairingResponse& pairing_response) override; |
86 void DeliverHostMessage(const protocol::ExtensionMessage& message) override; | 86 void DeliverHostMessage(const protocol::ExtensionMessage& message) override; |
| 87 void SetVideoLayout(const protocol::VideoLayout& layout) override; |
87 | 88 |
88 // ClipboardStub implementation for receiving clipboard data from host. | 89 // ClipboardStub implementation for receiving clipboard data from host. |
89 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; | 90 void InjectClipboardEvent(const protocol::ClipboardEvent& event) override; |
90 | 91 |
91 // CursorShapeStub implementation for receiving cursor shape updates. | 92 // CursorShapeStub implementation for receiving cursor shape updates. |
92 void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) override; | 93 void SetCursorShape(const protocol::CursorShapeInfo& cursor_shape) override; |
93 | 94 |
94 // ConnectionToHost::HostEventCallback implementation. | 95 // ConnectionToHost::HostEventCallback implementation. |
95 void OnConnectionState(protocol::ConnectionToHost::State state, | 96 void OnConnectionState(protocol::ConnectionToHost::State state, |
96 protocol::ErrorCode error) override; | 97 protocol::ErrorCode error) override; |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 141 |
141 // Record the statistics of the connection. | 142 // Record the statistics of the connection. |
142 protocol::PerformanceTracker perf_tracker_; | 143 protocol::PerformanceTracker perf_tracker_; |
143 | 144 |
144 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); | 145 DISALLOW_COPY_AND_ASSIGN(ChromotingClient); |
145 }; | 146 }; |
146 | 147 |
147 } // namespace remoting | 148 } // namespace remoting |
148 | 149 |
149 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ | 150 #endif // REMOTING_CLIENT_CHROMOTING_CLIENT_H_ |
OLD | NEW |