| 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 826 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 837 if (dispatch_type == DISPATCH_TYPE_BLOCKING) { | 837 if (dispatch_type == DISPATCH_TYPE_BLOCKING) { |
| 838 callback = base::Bind( | 838 callback = base::Bind( |
| 839 &RenderWidget::SendInputEventAck, this, input_event->GetType(), | 839 &RenderWidget::SendInputEventAck, this, input_event->GetType(), |
| 840 ui::WebInputEventTraits::GetUniqueTouchEventId(*input_event)); | 840 ui::WebInputEventTraits::GetUniqueTouchEventId(*input_event)); |
| 841 } | 841 } |
| 842 input_handler_->HandleInputEvent( | 842 input_handler_->HandleInputEvent( |
| 843 blink::WebCoalescedInputEvent(*input_event, coalesced_events), | 843 blink::WebCoalescedInputEvent(*input_event, coalesced_events), |
| 844 latency_info, std::move(callback)); | 844 latency_info, std::move(callback)); |
| 845 } | 845 } |
| 846 | 846 |
| 847 int RenderWidget::HitTestFrameAt(const gfx::Point& point) { |
| 848 return input_handler_->HitTestFrameAt(point); |
| 849 } |
| 850 |
| 847 void RenderWidget::HandleInputEvent( | 851 void RenderWidget::HandleInputEvent( |
| 848 const blink::WebCoalescedInputEvent& input_event, | 852 const blink::WebCoalescedInputEvent& input_event, |
| 849 const ui::LatencyInfo& latency_info, | 853 const ui::LatencyInfo& latency_info, |
| 850 HandledEventCallback callback) { | 854 HandledEventCallback callback) { |
| 851 input_handler_->HandleInputEvent(input_event, latency_info, | 855 input_handler_->HandleInputEvent(input_event, latency_info, |
| 852 std::move(callback)); | 856 std::move(callback)); |
| 853 } | 857 } |
| 854 | 858 |
| 855 void RenderWidget::SendInputEventAck( | 859 void RenderWidget::SendInputEventAck( |
| 856 blink::WebInputEvent::Type type, | 860 blink::WebInputEvent::Type type, |
| (...skipping 1547 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2404 // browser side (https://crbug.com/669219). | 2408 // browser side (https://crbug.com/669219). |
| 2405 // If there is no WebFrameWidget, then there will be no | 2409 // If there is no WebFrameWidget, then there will be no |
| 2406 // InputMethodControllers for a WebLocalFrame. | 2410 // InputMethodControllers for a WebLocalFrame. |
| 2407 return nullptr; | 2411 return nullptr; |
| 2408 } | 2412 } |
| 2409 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) | 2413 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) |
| 2410 ->GetActiveWebInputMethodController(); | 2414 ->GetActiveWebInputMethodController(); |
| 2411 } | 2415 } |
| 2412 | 2416 |
| 2413 } // namespace content | 2417 } // namespace content |
| OLD | NEW |