Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(396)

Side by Side Diff: trunk/src/content/browser/renderer_host/input/synthetic_pinch_gesture_new.cc

Issue 79143002: Revert 236254 "Replace old with new synthetic gesture framework." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698