| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/render_widget.h" | 5 #include "content/renderer/render_widget.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
| (...skipping 807 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 818 if (dispatch_type == DISPATCH_TYPE_BLOCKING) { | 818 if (dispatch_type == DISPATCH_TYPE_BLOCKING) { |
| 819 callback = base::Bind( | 819 callback = base::Bind( |
| 820 &RenderWidget::SendInputEventAck, this, input_event->GetType(), | 820 &RenderWidget::SendInputEventAck, this, input_event->GetType(), |
| 821 ui::WebInputEventTraits::GetUniqueTouchEventId(*input_event)); | 821 ui::WebInputEventTraits::GetUniqueTouchEventId(*input_event)); |
| 822 } | 822 } |
| 823 input_handler_->HandleInputEvent( | 823 input_handler_->HandleInputEvent( |
| 824 blink::WebCoalescedInputEvent(*input_event, coalesced_events), | 824 blink::WebCoalescedInputEvent(*input_event, coalesced_events), |
| 825 latency_info, std::move(callback)); | 825 latency_info, std::move(callback)); |
| 826 } | 826 } |
| 827 | 827 |
| 828 int RenderWidget::HitTestFrameAt(const gfx::PointF& point) { |
| 829 return input_handler_->HitTestFrameAt(point); |
| 830 } |
| 831 |
| 828 void RenderWidget::HandleInputEvent( | 832 void RenderWidget::HandleInputEvent( |
| 829 const blink::WebCoalescedInputEvent& input_event, | 833 const blink::WebCoalescedInputEvent& input_event, |
| 830 const ui::LatencyInfo& latency_info, | 834 const ui::LatencyInfo& latency_info, |
| 831 HandledEventCallback callback) { | 835 HandledEventCallback callback) { |
| 832 input_handler_->HandleInputEvent(input_event, latency_info, | 836 input_handler_->HandleInputEvent(input_event, latency_info, |
| 833 std::move(callback)); | 837 std::move(callback)); |
| 834 } | 838 } |
| 835 | 839 |
| 836 void RenderWidget::SendInputEventAck( | 840 void RenderWidget::SendInputEventAck( |
| 837 blink::WebInputEvent::Type type, | 841 blink::WebInputEvent::Type type, |
| (...skipping 1533 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2371 // browser side (https://crbug.com/669219). | 2375 // browser side (https://crbug.com/669219). |
| 2372 // If there is no WebFrameWidget, then there will be no | 2376 // If there is no WebFrameWidget, then there will be no |
| 2373 // InputMethodControllers for a WebLocalFrame. | 2377 // InputMethodControllers for a WebLocalFrame. |
| 2374 return nullptr; | 2378 return nullptr; |
| 2375 } | 2379 } |
| 2376 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) | 2380 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) |
| 2377 ->GetActiveWebInputMethodController(); | 2381 ->GetActiveWebInputMethodController(); |
| 2378 } | 2382 } |
| 2379 | 2383 |
| 2380 } // namespace content | 2384 } // namespace content |
| OLD | NEW |