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

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

Issue 180723007: Telemetry: Remove unnessessary 'benchmark' traces. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase. Created 6 years, 9 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
« no previous file with comments | « content/browser/renderer_host/input/synthetic_gesture_target_android.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_gesture_target_base.h" 5 #include "content/browser/renderer_host/input/synthetic_gesture_target_base.h"
6 6
7 #include "content/browser/renderer_host/render_widget_host_impl.h" 7 #include "content/browser/renderer_host/render_widget_host_impl.h"
8 #include "content/browser/renderer_host/render_widget_host_view_base.h" 8 #include "content/browser/renderer_host/render_widget_host_view_base.h"
9 #include "content/browser/renderer_host/ui_events_helper.h" 9 #include "content/browser/renderer_host/ui_events_helper.h"
10 #include "content/common/input_messages.h" 10 #include "content/common/input_messages.h"
(...skipping 24 matching lines...) Expand all
35 RenderWidgetHostImpl* host) 35 RenderWidgetHostImpl* host)
36 : host_(host) { 36 : host_(host) {
37 DCHECK(host); 37 DCHECK(host);
38 } 38 }
39 39
40 SyntheticGestureTargetBase::~SyntheticGestureTargetBase() { 40 SyntheticGestureTargetBase::~SyntheticGestureTargetBase() {
41 } 41 }
42 42
43 void SyntheticGestureTargetBase::DispatchInputEventToPlatform( 43 void SyntheticGestureTargetBase::DispatchInputEventToPlatform(
44 const WebInputEvent& event) { 44 const WebInputEvent& event) {
45 TRACE_EVENT1("benchmark", 45 TRACE_EVENT1("input",
46 "SyntheticGestureTarget::DispatchInputEventToPlatform", 46 "SyntheticGestureTarget::DispatchInputEventToPlatform",
47 "type", WebInputEventTraits::GetName(event.type)); 47 "type", WebInputEventTraits::GetName(event.type));
48 48
49 ui::LatencyInfo latency_info; 49 ui::LatencyInfo latency_info;
50 latency_info.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0); 50 latency_info.AddLatencyNumber(ui::INPUT_EVENT_LATENCY_UI_COMPONENT, 0, 0);
51 51
52 if (WebInputEvent::isTouchEventType(event.type)) { 52 if (WebInputEvent::isTouchEventType(event.type)) {
53 DCHECK(SupportsSyntheticGestureSourceType( 53 DCHECK(SupportsSyntheticGestureSourceType(
54 SyntheticGestureParams::TOUCH_INPUT)); 54 SyntheticGestureParams::TOUCH_INPUT));
55 55
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
111 base::TimeDelta SyntheticGestureTargetBase::PointerAssumedStoppedTime() 111 base::TimeDelta SyntheticGestureTargetBase::PointerAssumedStoppedTime()
112 const { 112 const {
113 return base::TimeDelta::FromMilliseconds(kPointerAssumedStoppedTimeMs); 113 return base::TimeDelta::FromMilliseconds(kPointerAssumedStoppedTimeMs);
114 } 114 }
115 115
116 int SyntheticGestureTargetBase::GetTouchSlopInDips() const { 116 int SyntheticGestureTargetBase::GetTouchSlopInDips() const {
117 return kTouchSlopInDips; 117 return kTouchSlopInDips;
118 } 118 }
119 119
120 } // namespace content 120 } // namespace content
OLDNEW
« no previous file with comments | « content/browser/renderer_host/input/synthetic_gesture_target_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698