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

Side by Side Diff: content/browser/renderer_host/input/synthetic_touchscreen_pinch_gesture.cc

Issue 1883763002: Revert of Move LatencyInfo to ui/latency_info (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months 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
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_touchscreen_pinch_gestur e.h" 5 #include "content/browser/renderer_host/input/synthetic_touchscreen_pinch_gestur e.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <cmath> 9 #include <cmath>
10 10
11 #include "base/logging.h" 11 #include "base/logging.h"
12 #include "ui/latency_info/latency_info.h" 12 #include "ui/events/latency_info.h"
13 13
14 namespace content { 14 namespace content {
15 15
16 SyntheticTouchscreenPinchGesture::SyntheticTouchscreenPinchGesture( 16 SyntheticTouchscreenPinchGesture::SyntheticTouchscreenPinchGesture(
17 const SyntheticPinchGestureParams& params) 17 const SyntheticPinchGestureParams& params)
18 : params_(params), 18 : params_(params),
19 start_y_0_(0.0f), 19 start_y_0_(0.0f),
20 start_y_1_(0.0f), 20 start_y_1_(0.0f),
21 max_pointer_delta_0_(0.0f), 21 max_pointer_delta_0_(0.0f),
22 gesture_source_type_(SyntheticGestureParams::DEFAULT_INPUT), 22 gesture_source_type_(SyntheticGestureParams::DEFAULT_INPUT),
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after
164 const base::TimeTicks& timestamp) const { 164 const base::TimeTicks& timestamp) const {
165 return std::min(timestamp, stop_time_); 165 return std::min(timestamp, stop_time_);
166 } 166 }
167 167
168 bool SyntheticTouchscreenPinchGesture::HasReachedTarget( 168 bool SyntheticTouchscreenPinchGesture::HasReachedTarget(
169 const base::TimeTicks& timestamp) const { 169 const base::TimeTicks& timestamp) const {
170 return timestamp >= stop_time_; 170 return timestamp >= stop_time_;
171 } 171 }
172 172
173 } // namespace content 173 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698