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/touch_input_scaler.h" | 5 #include "remoting/client/input/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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
78 Scale(point->radius_x(), output_size_.width(), input_size_.width())); | 78 Scale(point->radius_x(), output_size_.width(), input_size_.width())); |
79 point->set_radius_y(Scale(point->radius_y(), output_size_.height(), | 79 point->set_radius_y(Scale(point->radius_y(), output_size_.height(), |
80 input_size_.height())); | 80 input_size_.height())); |
81 } | 81 } |
82 } | 82 } |
83 | 83 |
84 InputFilter::InjectTouchEvent(out_event); | 84 InputFilter::InjectTouchEvent(out_event); |
85 } | 85 } |
86 | 86 |
87 } // namespace remoting | 87 } // namespace remoting |
OLD | NEW |