| 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 764 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 775 | 775 |
| 776 void RenderWidget::OnRequestMoveAck() { | 776 void RenderWidget::OnRequestMoveAck() { |
| 777 DCHECK(pending_window_rect_count_); | 777 DCHECK(pending_window_rect_count_); |
| 778 pending_window_rect_count_--; | 778 pending_window_rect_count_--; |
| 779 } | 779 } |
| 780 | 780 |
| 781 GURL RenderWidget::GetURLForGraphicsContext3D() { | 781 GURL RenderWidget::GetURLForGraphicsContext3D() { |
| 782 return GURL(); | 782 return GURL(); |
| 783 } | 783 } |
| 784 | 784 |
| 785 void RenderWidget::OnHandleInputEvent(const blink::WebInputEvent* input_event, | 785 void RenderWidget::OnHandleInputEvent( |
| 786 const ui::LatencyInfo& latency_info, | 786 const blink::WebInputEvent* input_event, |
| 787 InputEventDispatchType dispatch_type) { | 787 const std::vector<const blink::WebInputEvent*>& coalesced_events, |
| 788 const ui::LatencyInfo& latency_info, |
| 789 InputEventDispatchType dispatch_type) { |
| 788 if (!input_event) | 790 if (!input_event) |
| 789 return; | 791 return; |
| 790 input_handler_->HandleInputEvent(*input_event, latency_info, dispatch_type); | 792 |
| 793 input_handler_->HandleInputEvent( |
| 794 blink::WebCoalescedInputEvent(*input_event, coalesced_events), |
| 795 latency_info, dispatch_type); |
| 791 } | 796 } |
| 792 | 797 |
| 793 void RenderWidget::OnCursorVisibilityChange(bool is_visible) { | 798 void RenderWidget::OnCursorVisibilityChange(bool is_visible) { |
| 794 if (GetWebWidget()) | 799 if (GetWebWidget()) |
| 795 GetWebWidget()->setCursorVisibilityState(is_visible); | 800 GetWebWidget()->setCursorVisibilityState(is_visible); |
| 796 } | 801 } |
| 797 | 802 |
| 798 void RenderWidget::OnMouseCaptureLost() { | 803 void RenderWidget::OnMouseCaptureLost() { |
| 799 if (GetWebWidget()) | 804 if (GetWebWidget()) |
| 800 GetWebWidget()->mouseCaptureLost(); | 805 GetWebWidget()->mouseCaptureLost(); |
| (...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2269 // browser side (https://crbug.com/669219). | 2274 // browser side (https://crbug.com/669219). |
| 2270 // If there is no WebFrameWidget, then there will be no | 2275 // If there is no WebFrameWidget, then there will be no |
| 2271 // InputMethodControllers for a WebLocalFrame. | 2276 // InputMethodControllers for a WebLocalFrame. |
| 2272 return nullptr; | 2277 return nullptr; |
| 2273 } | 2278 } |
| 2274 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) | 2279 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) |
| 2275 ->getActiveWebInputMethodController(); | 2280 ->getActiveWebInputMethodController(); |
| 2276 } | 2281 } |
| 2277 | 2282 |
| 2278 } // namespace content | 2283 } // namespace content |
| OLD | NEW |