| 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 20 matching lines...) Expand all Loading... |
| 31 | 31 |
| 32 // RenderWidgetInputHandler is an IPC-agnostic input handling class. | 32 // RenderWidgetInputHandler is an IPC-agnostic input handling class. |
| 33 // IPC transport code should live in RenderWidget or RenderWidgetMusConnection. | 33 // IPC transport code should live in RenderWidget or RenderWidgetMusConnection. |
| 34 class CONTENT_EXPORT RenderWidgetInputHandler { | 34 class CONTENT_EXPORT RenderWidgetInputHandler { |
| 35 public: | 35 public: |
| 36 RenderWidgetInputHandler(RenderWidgetInputHandlerDelegate* delegate, | 36 RenderWidgetInputHandler(RenderWidgetInputHandlerDelegate* delegate, |
| 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( |
| 42 const ui::LatencyInfo& latency_info, | 42 const blink::WebInputEvent& input_event, |
| 43 InputEventDispatchType dispatch_type); | 43 const std::vector<const blink::WebInputEvent*>& coalescedEvents, |
| 44 const ui::LatencyInfo& latency_info, |
| 45 InputEventDispatchType dispatch_type); |
| 44 | 46 |
| 45 // Handle overscroll from Blink. | 47 // Handle overscroll from Blink. |
| 46 void DidOverscrollFromBlink( | 48 void DidOverscrollFromBlink( |
| 47 const blink::WebFloatSize& overscrollDelta, | 49 const blink::WebFloatSize& overscrollDelta, |
| 48 const blink::WebFloatSize& accumulatedOverscroll, | 50 const blink::WebFloatSize& accumulatedOverscroll, |
| 49 const blink::WebFloatPoint& position, | 51 const blink::WebFloatPoint& position, |
| 50 const blink::WebFloatSize& velocity); | 52 const blink::WebFloatSize& velocity); |
| 51 | 53 |
| 52 bool handling_input_event() const { return handling_input_event_; } | 54 bool handling_input_event() const { return handling_input_event_; } |
| 53 void set_handling_input_event(bool handling_input_event) { | 55 void set_handling_input_event(bool handling_input_event) { |
| (...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 88 |
| 87 // Indicates if the next sequence of Char events should be suppressed or not. | 89 // Indicates if the next sequence of Char events should be suppressed or not. |
| 88 bool suppress_next_char_events_; | 90 bool suppress_next_char_events_; |
| 89 | 91 |
| 90 DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler); | 92 DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler); |
| 91 }; | 93 }; |
| 92 | 94 |
| 93 } // namespace content | 95 } // namespace content |
| 94 | 96 |
| 95 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ | 97 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ |
| OLD | NEW |