| 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/input_handler.h" | 5 #include "remoting/client/input_handler.h" |
| 6 | 6 |
| 7 #include "remoting/client/chromoting_view.h" | 7 #include "remoting/client/chromoting_view.h" |
| 8 #include "remoting/proto/event.pb.h" | 8 #include "remoting/proto/event.pb.h" |
| 9 #include "remoting/protocol/connection_to_host.h" | 9 #include "remoting/protocol/connection_to_host.h" |
| 10 #include "remoting/protocol/input_stub.h" |
| 10 | 11 |
| 11 namespace remoting { | 12 namespace remoting { |
| 12 | 13 |
| 13 using protocol::KeyEvent; | 14 using protocol::KeyEvent; |
| 14 using protocol::MouseEvent; | 15 using protocol::MouseEvent; |
| 15 | 16 |
| 16 InputHandler::InputHandler(ClientContext* context, | 17 InputHandler::InputHandler(ClientContext* context, |
| 17 protocol::ConnectionToHost* connection, | 18 protocol::ConnectionToHost* connection, |
| 18 ChromotingView* view) | 19 ChromotingView* view) |
| 19 : context_(context), | 20 : context_(context), |
| (...skipping 29 matching lines...) Expand all Loading... |
| 49 if (stub) { | 50 if (stub) { |
| 50 MouseEvent* event = new MouseEvent(); | 51 MouseEvent* event = new MouseEvent(); |
| 51 event->set_button(button); | 52 event->set_button(button); |
| 52 event->set_button_down(button_down); | 53 event->set_button_down(button_down); |
| 53 | 54 |
| 54 stub->InjectMouseEvent(event, new DeleteTask<MouseEvent>(event)); | 55 stub->InjectMouseEvent(event, new DeleteTask<MouseEvent>(event)); |
| 55 } | 56 } |
| 56 } | 57 } |
| 57 | 58 |
| 58 } // namespace remoting | 59 } // namespace remoting |
| OLD | NEW |