| 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 781 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 792 | 792 |
| 793 void RenderWidget::OnRequestMoveAck() { | 793 void RenderWidget::OnRequestMoveAck() { |
| 794 DCHECK(pending_window_rect_count_); | 794 DCHECK(pending_window_rect_count_); |
| 795 pending_window_rect_count_--; | 795 pending_window_rect_count_--; |
| 796 } | 796 } |
| 797 | 797 |
| 798 GURL RenderWidget::GetURLForGraphicsContext3D() { | 798 GURL RenderWidget::GetURLForGraphicsContext3D() { |
| 799 return GURL(); | 799 return GURL(); |
| 800 } | 800 } |
| 801 | 801 |
| 802 void RenderWidget::OnHandleInputEvent(const blink::WebInputEvent* input_event, | 802 void RenderWidget::OnHandleInputEvent( |
| 803 const ui::LatencyInfo& latency_info, | 803 const blink::WebInputEvent* input_event, |
| 804 InputEventDispatchType dispatch_type) { | 804 const std::vector<const blink::WebInputEvent*>& coalescedEvents, |
| 805 const ui::LatencyInfo& latency_info, |
| 806 InputEventDispatchType dispatch_type) { |
| 805 if (!input_event) | 807 if (!input_event) |
| 806 return; | 808 return; |
| 807 input_handler_->HandleInputEvent(*input_event, latency_info, dispatch_type); | 809 |
| 810 input_handler_->HandleInputEvent( |
| 811 blink::WebCoalescedInputEvent(*input_event, coalescedEvents), |
| 812 latency_info, dispatch_type); |
| 808 } | 813 } |
| 809 | 814 |
| 810 void RenderWidget::OnCursorVisibilityChange(bool is_visible) { | 815 void RenderWidget::OnCursorVisibilityChange(bool is_visible) { |
| 811 if (GetWebWidget()) | 816 if (GetWebWidget()) |
| 812 GetWebWidget()->setCursorVisibilityState(is_visible); | 817 GetWebWidget()->setCursorVisibilityState(is_visible); |
| 813 } | 818 } |
| 814 | 819 |
| 815 void RenderWidget::OnMouseCaptureLost() { | 820 void RenderWidget::OnMouseCaptureLost() { |
| 816 if (GetWebWidget()) | 821 if (GetWebWidget()) |
| 817 GetWebWidget()->mouseCaptureLost(); | 822 GetWebWidget()->mouseCaptureLost(); |
| (...skipping 1468 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2286 // browser side (https://crbug.com/669219). | 2291 // browser side (https://crbug.com/669219). |
| 2287 // If there is no WebFrameWidget, then there will be no | 2292 // If there is no WebFrameWidget, then there will be no |
| 2288 // InputMethodControllers for a WebLocalFrame. | 2293 // InputMethodControllers for a WebLocalFrame. |
| 2289 return nullptr; | 2294 return nullptr; |
| 2290 } | 2295 } |
| 2291 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) | 2296 return static_cast<blink::WebFrameWidget*>(GetWebWidget()) |
| 2292 ->getActiveWebInputMethodController(); | 2297 ->getActiveWebInputMethodController(); |
| 2293 } | 2298 } |
| 2294 | 2299 |
| 2295 } // namespace content | 2300 } // namespace content |
| OLD | NEW |