Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(89)

Side by Side Diff: content/renderer/render_widget.cc

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 648 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 659
660 void RenderWidget::OnRequestMoveAck() { 660 void RenderWidget::OnRequestMoveAck() {
661 DCHECK(pending_window_rect_count_); 661 DCHECK(pending_window_rect_count_);
662 pending_window_rect_count_--; 662 pending_window_rect_count_--;
663 } 663 }
664 664
665 GURL RenderWidget::GetURLForGraphicsContext3D() { 665 GURL RenderWidget::GetURLForGraphicsContext3D() {
666 return GURL(); 666 return GURL();
667 } 667 }
668 668
669 void RenderWidget::OnHandleInputEvent(const blink::WebInputEvent* input_event, 669 void RenderWidget::OnHandleInputEvent(
670 const ui::LatencyInfo& latency_info, 670 const blink::WebInputEvent* input_event,
671 InputEventDispatchType dispatch_type) { 671 const std::vector<const blink::WebInputEvent*>& coalescedEvents,
672 const ui::LatencyInfo& latency_info,
673 InputEventDispatchType dispatch_type) {
672 if (!input_event) 674 if (!input_event)
673 return; 675 return;
674 input_handler_->HandleInputEvent(*input_event, latency_info, dispatch_type); 676 input_handler_->HandleInputEvent(*input_event, coalescedEvents, latency_info,
677 dispatch_type);
675 } 678 }
676 679
677 void RenderWidget::OnCursorVisibilityChange(bool is_visible) { 680 void RenderWidget::OnCursorVisibilityChange(bool is_visible) {
678 if (GetWebWidget()) 681 if (GetWebWidget())
679 GetWebWidget()->setCursorVisibilityState(is_visible); 682 GetWebWidget()->setCursorVisibilityState(is_visible);
680 } 683 }
681 684
682 void RenderWidget::OnMouseCaptureLost() { 685 void RenderWidget::OnMouseCaptureLost() {
683 if (GetWebWidget()) 686 if (GetWebWidget())
684 GetWebWidget()->mouseCaptureLost(); 687 GetWebWidget()->mouseCaptureLost();
(...skipping 1403 matching lines...) Expand 10 before | Expand all | Expand 10 after
2088 bool RenderWidget::isPointerLocked() { 2091 bool RenderWidget::isPointerLocked() {
2089 return mouse_lock_dispatcher_->IsMouseLockedTo( 2092 return mouse_lock_dispatcher_->IsMouseLockedTo(
2090 webwidget_mouse_lock_target_.get()); 2093 webwidget_mouse_lock_target_.get());
2091 } 2094 }
2092 2095
2093 blink::WebWidget* RenderWidget::GetWebWidget() const { 2096 blink::WebWidget* RenderWidget::GetWebWidget() const {
2094 return webwidget_internal_; 2097 return webwidget_internal_;
2095 } 2098 }
2096 2099
2097 } // namespace content 2100 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698