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_gesture_controller_new.h
" | 5 #include "content/browser/renderer_host/input/synthetic_gesture_controller_new.h
" |
6 | 6 |
7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" | 8 #include "content/browser/renderer_host/input/synthetic_gesture_target.h" |
9 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" | 9 #include "content/common/input/synthetic_smooth_scroll_gesture_params.h" |
10 #include "content/common/input_messages.h" | 10 #include "content/common/input_messages.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 void SyntheticGestureControllerNew::StopGesture( | 72 void SyntheticGestureControllerNew::StopGesture( |
73 const SyntheticGestureNew& gesture, SyntheticGestureNew::Result result) { | 73 const SyntheticGestureNew& gesture, SyntheticGestureNew::Result result) { |
74 DCHECK_NE(result, SyntheticGestureNew::GESTURE_RUNNING); | 74 DCHECK_NE(result, SyntheticGestureNew::GESTURE_RUNNING); |
75 TRACE_EVENT_ASYNC_END0("benchmark", "SyntheticGestureController::running", | 75 TRACE_EVENT_ASYNC_END0("benchmark", "SyntheticGestureController::running", |
76 &gesture); | 76 &gesture); |
77 | 77 |
78 gesture_target_->OnSyntheticGestureCompleted(result); | 78 gesture_target_->OnSyntheticGestureCompleted(result); |
79 } | 79 } |
80 | 80 |
81 } // namespace content | 81 } // namespace content |
OLD | NEW |