| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #ifndef CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ | 5 #ifndef CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ |
| 6 #define CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ | 6 #define CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 RenderWidget* widget); | 37 RenderWidget* widget); |
| 38 virtual ~RenderWidgetInputHandler(); | 38 virtual ~RenderWidgetInputHandler(); |
| 39 | 39 |
| 40 // Handle input events from the input event provider. | 40 // Handle input events from the input event provider. |
| 41 virtual void HandleInputEvent(const blink::WebInputEvent& input_event, | 41 virtual void HandleInputEvent(const blink::WebInputEvent& input_event, |
| 42 const ui::LatencyInfo& latency_info, | 42 const ui::LatencyInfo& latency_info, |
| 43 InputEventDispatchType dispatch_type); | 43 InputEventDispatchType dispatch_type); |
| 44 | 44 |
| 45 // Handle overscroll from Blink. | 45 // Handle overscroll from Blink. |
| 46 void DidOverscrollFromBlink( | 46 void DidOverscrollFromBlink( |
| 47 const blink::WebFloatSize& unusedDelta, | 47 const blink::WebFloatSize& overscrollDelta, |
| 48 const blink::WebFloatSize& accumulatedRootOverScroll, | 48 const blink::WebFloatSize& accumulatedOverscroll, |
| 49 const blink::WebFloatPoint& position, | 49 const blink::WebFloatPoint& position, |
| 50 const blink::WebFloatSize& velocity); | 50 const blink::WebFloatSize& velocity); |
| 51 | 51 |
| 52 // When paused in debugger, we send ack for mouse event early. This ensures | 52 // When paused in debugger, we send ack for mouse event early. This ensures |
| 53 // that we continue receiving mouse moves and pass them to debugger. Returns | 53 // that we continue receiving mouse moves and pass them to debugger. Returns |
| 54 // whether we are paused in mouse move event and have sent the ack. | 54 // whether we are paused in mouse move event and have sent the ack. |
| 55 bool SendAckForMouseMoveFromDebugger(); | 55 bool SendAckForMouseMoveFromDebugger(); |
| 56 | 56 |
| 57 // When resumed from pause in debugger while handling mouse move, | 57 // When resumed from pause in debugger while handling mouse move, |
| 58 // we should not send an extra ack (see SendAckForMouseMoveFromDebugger). | 58 // we should not send an extra ack (see SendAckForMouseMoveFromDebugger). |
| (...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 bool ignore_ack_for_mouse_move_from_debugger_; | 106 bool ignore_ack_for_mouse_move_from_debugger_; |
| 107 | 107 |
| 108 std::unique_ptr<InputEventAck> pending_input_event_ack_; | 108 std::unique_ptr<InputEventAck> pending_input_event_ack_; |
| 109 | 109 |
| 110 DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler); | 110 DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler); |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 } // namespace content | 113 } // namespace content |
| 114 | 114 |
| 115 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ | 115 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ |
| OLD | NEW |