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

Side by Side Diff: content/browser/renderer_host/input/input_router_impl.cc

Issue 288393004: [DevTools] Send ack early when paused in mouse move to keep events coming. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed comments Created 6 years, 7 months 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 | Annotate | Revision Log
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/browser/renderer_host/input/input_router_impl.h" 5 #include "content/browser/renderer_host/input/input_router_impl.h"
6 6
7 #include <math.h> 7 #include <math.h>
8 8
9 #include "base/auto_reset.h" 9 #include "base/auto_reset.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 588 matching lines...) Expand 10 before | Expand all | Expand 10 after
599 // HandleKeyboardEvent destroys this InputRouterImpl). 599 // HandleKeyboardEvent destroys this InputRouterImpl).
600 // TODO(jdduke): crbug.com/274029 - Make ack-triggered shutdown async. 600 // TODO(jdduke): crbug.com/274029 - Make ack-triggered shutdown async.
601 } 601 }
602 } 602 }
603 603
604 void InputRouterImpl::ProcessMouseAck(blink::WebInputEvent::Type type, 604 void InputRouterImpl::ProcessMouseAck(blink::WebInputEvent::Type type,
605 InputEventAckState ack_result) { 605 InputEventAckState ack_result) {
606 if (type != WebInputEvent::MouseMove) 606 if (type != WebInputEvent::MouseMove)
607 return; 607 return;
608 608
609 DCHECK(mouse_move_pending_);
609 mouse_move_pending_ = false; 610 mouse_move_pending_ = false;
610 611
611 if (next_mouse_move_) { 612 if (next_mouse_move_) {
612 DCHECK(next_mouse_move_->event.type == WebInputEvent::MouseMove); 613 DCHECK(next_mouse_move_->event.type == WebInputEvent::MouseMove);
613 scoped_ptr<MouseEventWithLatencyInfo> next_mouse_move 614 scoped_ptr<MouseEventWithLatencyInfo> next_mouse_move
614 = next_mouse_move_.Pass(); 615 = next_mouse_move_.Pass();
615 SendMouseEvent(*next_mouse_move); 616 SendMouseEvent(*next_mouse_move);
616 } 617 }
617 } 618 }
618 619
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after
736 InputRouterImpl::QueuedWheelEvent::QueuedWheelEvent( 737 InputRouterImpl::QueuedWheelEvent::QueuedWheelEvent(
737 const MouseWheelEventWithLatencyInfo& event, 738 const MouseWheelEventWithLatencyInfo& event,
738 bool synthesized_from_pinch) 739 bool synthesized_from_pinch)
739 : event(event), synthesized_from_pinch(synthesized_from_pinch) { 740 : event(event), synthesized_from_pinch(synthesized_from_pinch) {
740 } 741 }
741 742
742 InputRouterImpl::QueuedWheelEvent::~QueuedWheelEvent() { 743 InputRouterImpl::QueuedWheelEvent::~QueuedWheelEvent() {
743 } 744 }
744 745
745 } // namespace content 746 } // namespace content
OLDNEW
« no previous file with comments | « no previous file | content/renderer/devtools/devtools_agent.h » ('j') | content/renderer/render_widget.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698