| 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 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 163 ack.Run(ui::mojom::EventResult::UNHANDLED); | 163 ack.Run(ui::mojom::EventResult::UNHANDLED); |
| 164 return; | 164 return; |
| 165 } | 165 } |
| 166 // TODO(fsamuel): It would be nice to add this DCHECK but the reality is an | 166 // TODO(fsamuel): It would be nice to add this DCHECK but the reality is an |
| 167 // event could timeout and we could receive the next event before we ack the | 167 // event could timeout and we could receive the next event before we ack the |
| 168 // previous event. | 168 // previous event. |
| 169 // DCHECK(pending_ack_.is_null()); | 169 // DCHECK(pending_ack_.is_null()); |
| 170 pending_ack_ = ack; | 170 pending_ack_ = ack; |
| 171 // TODO(fsamuel, sadrul): Track real latency info. | 171 // TODO(fsamuel, sadrul): Track real latency info. |
| 172 ui::LatencyInfo latency_info; | 172 ui::LatencyInfo latency_info; |
| 173 input_handler_->HandleInputEvent(*input_event, latency_info, | 173 input_handler_->HandleInputEvent(blink::WebCoalescedInputEvent(*input_event), |
| 174 DISPATCH_TYPE_BLOCKING); | 174 latency_info, DISPATCH_TYPE_BLOCKING); |
| 175 } | 175 } |
| 176 | 176 |
| 177 } // namespace content | 177 } // namespace content |
| OLD | NEW |