OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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/client/chromoting_client.h" | 5 #include "remoting/client/chromoting_client.h" |
6 | 6 |
7 #include "base/message_loop.h" | 7 #include "base/message_loop.h" |
8 #include "remoting/base/tracer.h" | 8 #include "remoting/base/tracer.h" |
9 #include "remoting/client/chromoting_view.h" | 9 #include "remoting/client/chromoting_view.h" |
10 #include "remoting/client/client_context.h" | 10 #include "remoting/client/client_context.h" |
11 #include "remoting/client/host_connection.h" | 11 #include "remoting/client/host_connection.h" |
12 #include "remoting/client/input_handler.h" | 12 #include "remoting/client/input_handler.h" |
13 #include "remoting/client/rectangle_update_decoder.h" | 13 #include "remoting/client/rectangle_update_decoder.h" |
| 14 #include "remoting/proto/internal.pb.h" |
14 | 15 |
15 namespace remoting { | 16 namespace remoting { |
16 | 17 |
17 ChromotingClient::ChromotingClient(const ClientConfig& config, | 18 ChromotingClient::ChromotingClient(const ClientConfig& config, |
18 ClientContext* context, | 19 ClientContext* context, |
19 HostConnection* connection, | 20 HostConnection* connection, |
20 ChromotingView* view, | 21 ChromotingView* view, |
21 RectangleUpdateDecoder* rectangle_decoder, | 22 RectangleUpdateDecoder* rectangle_decoder, |
22 InputHandler* input_handler, | 23 InputHandler* input_handler, |
23 CancelableTask* client_done) | 24 CancelableTask* client_done) |
(...skipping 191 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
215 view_->SetViewport(0, 0, width, height); | 216 view_->SetViewport(0, 0, width, height); |
216 | 217 |
217 // Schedule the input handler to process the event queue. | 218 // Schedule the input handler to process the event queue. |
218 input_handler_->Initialize(); | 219 input_handler_->Initialize(); |
219 | 220 |
220 done->Run(); | 221 done->Run(); |
221 delete done; | 222 delete done; |
222 } | 223 } |
223 | 224 |
224 } // namespace remoting | 225 } // namespace remoting |
OLD | NEW |