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

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

Issue 2783973002: Moving LatencyInfo into a separate component. (Closed)
Patch Set: Rebase again Created 3 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_tap_gesture.h" 5 #include "content/browser/renderer_host/input/synthetic_tap_gesture.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "third_party/WebKit/public/platform/WebInputEvent.h" 8 #include "third_party/WebKit/public/platform/WebInputEvent.h"
9 #include "ui/events/latency_info.h" 9 #include "ui/latency/latency_info.h"
10 10
11 namespace content { 11 namespace content {
12 12
13 SyntheticTapGesture::SyntheticTapGesture( 13 SyntheticTapGesture::SyntheticTapGesture(
14 const SyntheticTapGestureParams& params) 14 const SyntheticTapGestureParams& params)
15 : params_(params), 15 : params_(params),
16 gesture_source_type_(SyntheticGestureParams::DEFAULT_INPUT), 16 gesture_source_type_(SyntheticGestureParams::DEFAULT_INPUT),
17 state_(SETUP) { 17 state_(SETUP) {
18 DCHECK_GE(params_.duration_ms, 0); 18 DCHECK_GE(params_.duration_ms, 0);
19 } 19 }
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 case DONE: 76 case DONE:
77 NOTREACHED() << "State DONE invalid for synthetic tap gesture."; 77 NOTREACHED() << "State DONE invalid for synthetic tap gesture.";
78 } 78 }
79 } 79 }
80 80
81 base::TimeDelta SyntheticTapGesture::GetDuration() const { 81 base::TimeDelta SyntheticTapGesture::GetDuration() const {
82 return base::TimeDelta::FromMilliseconds(params_.duration_ms); 82 return base::TimeDelta::FromMilliseconds(params_.duration_ms);
83 } 83 }
84 84
85 } // namespace content 85 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698