OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "content/browser/renderer_host/input/synthetic_pinch_gesture_new.h" | 5 #include "content/browser/renderer_host/input/synthetic_pinch_gesture_new.h" |
6 | 6 |
7 #include "content/common/input/input_event.h" | 7 #include "content/common/input/input_event.h" |
8 #include "ui/events/latency_info.h" | 8 #include "ui/events/latency_info.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 const base::TimeDelta& interval) { | 102 const base::TimeDelta& interval) { |
103 return params_.relative_pointer_speed_in_pixels_s * interval.InSecondsF(); | 103 return params_.relative_pointer_speed_in_pixels_s * interval.InSecondsF(); |
104 } | 104 } |
105 | 105 |
106 bool SyntheticPinchGestureNew::HasFinished() { | 106 bool SyntheticPinchGestureNew::HasFinished() { |
107 return params_.zoom_in ? (current_y_0_ <= target_y_0_) | 107 return params_.zoom_in ? (current_y_0_ <= target_y_0_) |
108 : (current_y_0_ >= target_y_0_); | 108 : (current_y_0_ >= target_y_0_); |
109 } | 109 } |
110 | 110 |
111 } // namespace content | 111 } // namespace content |
OLD | NEW |