OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/mus/compositor_mus_connection.h" | 5 #include "content/renderer/mus/compositor_mus_connection.h" |
6 | 6 |
7 #include "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
8 #include "content/common/input/web_input_event_traits.h" | 8 #include "content/public/common/input/web_input_event_traits.h" |
9 #include "content/renderer/input/input_handler_manager.h" | 9 #include "content/renderer/input/input_handler_manager.h" |
10 #include "content/renderer/mus/render_widget_mus_connection.h" | 10 #include "content/renderer/mus/render_widget_mus_connection.h" |
11 #include "mojo/converters/blink/blink_input_events_type_converters.h" | 11 #include "mojo/converters/blink/blink_input_events_type_converters.h" |
12 #include "ui/events/latency_info.h" | 12 #include "ui/events/latency_info.h" |
13 | 13 |
14 namespace content { | 14 namespace content { |
15 | 15 |
16 CompositorMusConnection::CompositorMusConnection( | 16 CompositorMusConnection::CompositorMusConnection( |
17 int routing_id, | 17 int routing_id, |
18 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner, | 18 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner, |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 this, *ack_callback->get()); | 132 this, *ack_callback->get()); |
133 ack_callback->reset(); | 133 ack_callback->reset(); |
134 } | 134 } |
135 main_task_runner_->PostTask( | 135 main_task_runner_->PostTask( |
136 FROM_HERE, | 136 FROM_HERE, |
137 base::Bind(&CompositorMusConnection::OnWindowInputEventOnMainThread, this, | 137 base::Bind(&CompositorMusConnection::OnWindowInputEventOnMainThread, this, |
138 base::Passed(std::move(web_event)), ack)); | 138 base::Passed(std::move(web_event)), ack)); |
139 } | 139 } |
140 | 140 |
141 } // namespace content | 141 } // namespace content |
OLD | NEW |