| 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/render_widget_mus_connection.h" | 5 #include "content/renderer/mus/render_widget_mus_connection.h" |
| 6 | 6 |
| 7 #include <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 166 ack.Run(ui::mojom::EventResult::UNHANDLED); | 166 ack.Run(ui::mojom::EventResult::UNHANDLED); |
| 167 return; | 167 return; |
| 168 } | 168 } |
| 169 // TODO(fsamuel): It would be nice to add this DCHECK but the reality is an | 169 // TODO(fsamuel): It would be nice to add this DCHECK but the reality is an |
| 170 // event could timeout and we could receive the next event before we ack the | 170 // event could timeout and we could receive the next event before we ack the |
| 171 // previous event. | 171 // previous event. |
| 172 // DCHECK(pending_ack_.is_null()); | 172 // DCHECK(pending_ack_.is_null()); |
| 173 pending_ack_ = ack; | 173 pending_ack_ = ack; |
| 174 // TODO(fsamuel, sadrul): Track real latency info. | 174 // TODO(fsamuel, sadrul): Track real latency info. |
| 175 ui::LatencyInfo latency_info; | 175 ui::LatencyInfo latency_info; |
| 176 input_handler_->HandleInputEvent(*input_event, latency_info, | 176 input_handler_->HandleInputEvent(blink::WebCoalescedInputEvent(*input_event), |
| 177 DISPATCH_TYPE_BLOCKING); | 177 latency_info, DISPATCH_TYPE_BLOCKING); |
| 178 } | 178 } |
| 179 | 179 |
| 180 } // namespace content | 180 } // namespace content |
| OLD | NEW |