| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/plugin/touch_input_scaler.h" | 5 #include "remoting/client/touch_input_scaler.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "remoting/proto/event.pb.h" | 8 #include "remoting/proto/event.pb.h" |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| 11 | 11 |
| 12 using protocol::TouchEvent; | 12 using protocol::TouchEvent; |
| 13 using protocol::TouchEventPoint; | 13 using protocol::TouchEventPoint; |
| 14 | 14 |
| 15 namespace { | 15 namespace { |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 Scale(point->radius_x(), output_size_.width(), input_size_.width())); | 77 Scale(point->radius_x(), output_size_.width(), input_size_.width())); |
| 78 point->set_radius_y(Scale(point->radius_y(), output_size_.height(), | 78 point->set_radius_y(Scale(point->radius_y(), output_size_.height(), |
| 79 input_size_.height())); | 79 input_size_.height())); |
| 80 } | 80 } |
| 81 } | 81 } |
| 82 | 82 |
| 83 InputFilter::InjectTouchEvent(out_event); | 83 InputFilter::InjectTouchEvent(out_event); |
| 84 } | 84 } |
| 85 | 85 |
| 86 } // namespace remoting | 86 } // namespace remoting |
| OLD | NEW |