| 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 class RenderWidgetInputHandlerDelegate; | 31 class RenderWidgetInputHandlerDelegate; |
| 32 | 32 |
| 33 // RenderWidgetInputHandler is an IPC-agnostic input handling class. | 33 // RenderWidgetInputHandler is an IPC-agnostic input handling class. |
| 34 // IPC transport code should live in RenderWidget or RenderWidgetMusConnection. | 34 // IPC transport code should live in RenderWidget or RenderWidgetMusConnection. |
| 35 class CONTENT_EXPORT RenderWidgetInputHandler { | 35 class CONTENT_EXPORT RenderWidgetInputHandler { |
| 36 public: | 36 public: |
| 37 RenderWidgetInputHandler(RenderWidgetInputHandlerDelegate* delegate, | 37 RenderWidgetInputHandler(RenderWidgetInputHandlerDelegate* delegate, |
| 38 RenderWidget* widget); | 38 RenderWidget* widget); |
| 39 virtual ~RenderWidgetInputHandler(); | 39 virtual ~RenderWidgetInputHandler(); |
| 40 | 40 |
| 41 // Hit test the given point to find out the frame underneath. |
| 42 int HitTestFrameAt(const gfx::Point& point); |
| 43 |
| 41 // Handle input events from the input event provider. | 44 // Handle input events from the input event provider. |
| 42 virtual void HandleInputEvent( | 45 virtual void HandleInputEvent( |
| 43 const blink::WebCoalescedInputEvent& coalesced_event, | 46 const blink::WebCoalescedInputEvent& coalesced_event, |
| 44 const ui::LatencyInfo& latency_info, | 47 const ui::LatencyInfo& latency_info, |
| 45 HandledEventCallback callback); | 48 HandledEventCallback callback); |
| 46 | 49 |
| 47 // Handle overscroll from Blink. | 50 // Handle overscroll from Blink. |
| 48 void DidOverscrollFromBlink( | 51 void DidOverscrollFromBlink( |
| 49 const blink::WebFloatSize& overscrollDelta, | 52 const blink::WebFloatSize& overscrollDelta, |
| 50 const blink::WebFloatSize& accumulatedOverscroll, | 53 const blink::WebFloatSize& accumulatedOverscroll, |
| (...skipping 28 matching lines...) Expand all Loading... |
| 79 | 82 |
| 80 // Indicates if the next sequence of Char events should be suppressed or not. | 83 // Indicates if the next sequence of Char events should be suppressed or not. |
| 81 bool suppress_next_char_events_; | 84 bool suppress_next_char_events_; |
| 82 | 85 |
| 83 DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler); | 86 DISALLOW_COPY_AND_ASSIGN(RenderWidgetInputHandler); |
| 84 }; | 87 }; |
| 85 | 88 |
| 86 } // namespace content | 89 } // namespace content |
| 87 | 90 |
| 88 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ | 91 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_H_ |
| OLD | NEW |