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/synthetic_gesture_controller.h" | 5 #include "content/browser/renderer_host/synthetic_gesture_controller.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "base/message_loop/message_loop.h" | 8 #include "base/message_loop/message_loop.h" |
9 #include "content/common/view_messages.h" | 9 #include "content/common/view_messages.h" |
10 #include "content/port/browser/render_widget_host_view_port.h" | 10 #include "content/port/browser/render_widget_host_view_port.h" |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 if (!pending_synthetic_gesture_->ForwardInputEvents(now, rwh_)) { | 75 if (!pending_synthetic_gesture_->ForwardInputEvents(now, rwh_)) { |
76 timer_.Stop(); | 76 timer_.Stop(); |
77 TRACE_EVENT_ASYNC_END0("benchmark", "SyntheticGestureController::running", | 77 TRACE_EVENT_ASYNC_END0("benchmark", "SyntheticGestureController::running", |
78 pending_synthetic_gesture_); | 78 pending_synthetic_gesture_); |
79 pending_synthetic_gesture_ = NULL; | 79 pending_synthetic_gesture_ = NULL; |
80 rwh_->Send(new ViewMsg_SyntheticGestureCompleted(rwh_->GetRoutingID())); | 80 rwh_->Send(new ViewMsg_SyntheticGestureCompleted(rwh_->GetRoutingID())); |
81 } | 81 } |
82 } | 82 } |
83 | 83 |
84 } // namespace content | 84 } // namespace content |
OLD | NEW |