| 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/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 #include "ui/events/mojo/event.mojom.h" |
| 13 | 14 |
| 14 using mus::mojom::EventResult; | 15 using mus::mojom::EventResult; |
| 15 | 16 |
| 16 namespace { | 17 namespace { |
| 17 | 18 |
| 18 void DoNothingWithEventResult(EventResult result) {} | 19 void DoNothingWithEventResult(EventResult result) {} |
| 19 | 20 |
| 20 } // namespace | 21 } // namespace |
| 21 | 22 |
| 22 namespace content { | 23 namespace content { |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 147 this, *ack_callback->get()); | 148 this, *ack_callback->get()); |
| 148 ack_callback->reset(); | 149 ack_callback->reset(); |
| 149 } | 150 } |
| 150 main_task_runner_->PostTask( | 151 main_task_runner_->PostTask( |
| 151 FROM_HERE, | 152 FROM_HERE, |
| 152 base::Bind(&CompositorMusConnection::OnWindowInputEventOnMainThread, this, | 153 base::Bind(&CompositorMusConnection::OnWindowInputEventOnMainThread, this, |
| 153 base::Passed(std::move(web_event)), ack)); | 154 base::Passed(std::move(web_event)), ack)); |
| 154 } | 155 } |
| 155 | 156 |
| 156 } // namespace content | 157 } // namespace content |
| OLD | NEW |