| 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 #ifndef REMOTING_CLIENT_FLING_TRACKER_H_ | 5 #ifndef REMOTING_CLIENT_UI_FLING_TRACKER_H_ |
| 6 #define REMOTING_CLIENT_FLING_TRACKER_H_ | 6 #define REMOTING_CLIENT_UI_FLING_TRACKER_H_ |
| 7 | 7 |
| 8 #include "base/time/time.h" | 8 #include "base/time/time.h" |
| 9 | 9 |
| 10 namespace remoting { | 10 namespace remoting { |
| 11 | 11 |
| 12 // A class for tracking the positions of an object moving through a viscous | 12 // A class for tracking the positions of an object moving through a viscous |
| 13 // liquid. | 13 // liquid. |
| 14 class FlingTracker { | 14 class FlingTracker { |
| 15 public: | 15 public: |
| 16 // time_constant: The larger the number the longer it takes to fling. | 16 // time_constant: The larger the number the longer it takes to fling. |
| (...skipping 25 matching lines...) Expand all Loading... |
| 42 float previous_position_y_ = 0.f; | 42 float previous_position_y_ = 0.f; |
| 43 | 43 |
| 44 base::TimeTicks start_time_; | 44 base::TimeTicks start_time_; |
| 45 | 45 |
| 46 // FlingTracker is neither copyable nor movable. | 46 // FlingTracker is neither copyable nor movable. |
| 47 FlingTracker(const FlingTracker&) = delete; | 47 FlingTracker(const FlingTracker&) = delete; |
| 48 FlingTracker& operator=(const FlingTracker&) = delete; | 48 FlingTracker& operator=(const FlingTracker&) = delete; |
| 49 }; | 49 }; |
| 50 | 50 |
| 51 } // namespace remoting | 51 } // namespace remoting |
| 52 #endif // REMOTING_CLIENT_FLING_TRACKER_H_ | 52 #endif // REMOTING_CLIENT_UI_FLING_TRACKER_H_ |
| OLD | NEW |