| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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/fling_tracker.h" | 5 #include "remoting/client/ui/fling_tracker.h" |
| 6 | 6 |
| 7 #include <cmath> | 7 #include <cmath> |
| 8 | 8 |
| 9 namespace remoting { | 9 namespace remoting { |
| 10 | 10 |
| 11 namespace { | 11 namespace { |
| 12 | 12 |
| 13 // TODO(yuweih): May need to tweak these numbers to get better smoothness. | 13 // TODO(yuweih): May need to tweak these numbers to get better smoothness. |
| 14 | 14 |
| 15 // Stop flinging if the speed drops below this. | 15 // Stop flinging if the speed drops below this. |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 100 *dx = position_x - previous_position_x_; | 100 *dx = position_x - previous_position_x_; |
| 101 *dy = position_y - previous_position_y_; | 101 *dy = position_y - previous_position_y_; |
| 102 | 102 |
| 103 previous_position_x_ = position_x; | 103 previous_position_x_ = position_x; |
| 104 previous_position_y_ = position_y; | 104 previous_position_y_ = position_y; |
| 105 | 105 |
| 106 return true; | 106 return true; |
| 107 } | 107 } |
| 108 | 108 |
| 109 } // namespace remoting | 109 } // namespace remoting |
| OLD | NEW |