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/renderer/input/input_event_filter.h" | 5 #include "content/renderer/input/input_event_filter.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/auto_reset.h" | 9 #include "base/auto_reset.h" |
10 #include "base/bind.h" | 10 #include "base/bind.h" |
11 #include "base/location.h" | 11 #include "base/location.h" |
12 #include "base/memory/ptr_util.h" | 12 #include "base/memory/ptr_util.h" |
13 #include "base/single_thread_task_runner.h" | 13 #include "base/single_thread_task_runner.h" |
14 #include "base/thread_task_runner_handle.h" | 14 #include "base/threading/thread_task_runner_handle.h" |
15 #include "base/trace_event/trace_event.h" | 15 #include "base/trace_event/trace_event.h" |
16 #include "content/common/input/did_overscroll_params.h" | 16 #include "content/common/input/did_overscroll_params.h" |
17 #include "content/common/input/web_input_event_traits.h" | 17 #include "content/common/input/web_input_event_traits.h" |
18 #include "content/common/input_messages.h" | 18 #include "content/common/input_messages.h" |
19 #include "content/common/view_messages.h" | 19 #include "content/common/view_messages.h" |
20 #include "content/public/common/content_switches.h" | 20 #include "content/public/common/content_switches.h" |
21 #include "ipc/ipc_listener.h" | 21 #include "ipc/ipc_listener.h" |
22 #include "ipc/ipc_sender.h" | 22 #include "ipc/ipc_sender.h" |
23 #include "ui/gfx/geometry/vector2d_f.h" | 23 #include "ui/gfx/geometry/vector2d_f.h" |
24 | 24 |
(...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
222 InputEventDispatchType dispatch_type) { | 222 InputEventDispatchType dispatch_type) { |
223 TRACE_EVENT_INSTANT0( | 223 TRACE_EVENT_INSTANT0( |
224 "input", "InputEventFilter::ForwardToHandler::SendEventToMainThread", | 224 "input", "InputEventFilter::ForwardToHandler::SendEventToMainThread", |
225 TRACE_EVENT_SCOPE_THREAD); | 225 TRACE_EVENT_SCOPE_THREAD); |
226 IPC::Message new_msg = | 226 IPC::Message new_msg = |
227 InputMsg_HandleInputEvent(routing_id, event, latency_info, dispatch_type); | 227 InputMsg_HandleInputEvent(routing_id, event, latency_info, dispatch_type); |
228 main_task_runner_->PostTask(FROM_HERE, base::Bind(main_listener_, new_msg)); | 228 main_task_runner_->PostTask(FROM_HERE, base::Bind(main_listener_, new_msg)); |
229 } | 229 } |
230 | 230 |
231 } // namespace content | 231 } // namespace content |
OLD | NEW |