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_DELEGATE_H_ | 5 #ifndef CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ |
6 #define CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ | 6 #define CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "content/common/content_export.h" | 9 #include "content/common/content_export.h" |
10 #include "content/common/input/input_event_ack.h" | 10 #include "content/common/input/input_event_ack.h" |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
42 // at the given point. | 42 // at the given point. |
43 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const = 0; | 43 virtual bool HasTouchEventHandlersAt(const gfx::Point& point) const = 0; |
44 | 44 |
45 // Called to forward a mouse wheel event to the compositor thread, to effect | 45 // Called to forward a mouse wheel event to the compositor thread, to effect |
46 // the elastic overscroll effect. | 46 // the elastic overscroll effect. |
47 virtual void ObserveWheelEventAndResult( | 47 virtual void ObserveWheelEventAndResult( |
48 const blink::WebMouseWheelEvent& wheel_event, | 48 const blink::WebMouseWheelEvent& wheel_event, |
49 const gfx::Vector2dF& wheel_unused_delta, | 49 const gfx::Vector2dF& wheel_unused_delta, |
50 bool event_processed) = 0; | 50 bool event_processed) = 0; |
51 | 51 |
| 52 virtual void ObserveGestureEventAndResult( |
| 53 const blink::WebGestureEvent& gesture_event, |
| 54 const gfx::Vector2dF& unused_delta, |
| 55 bool event_processed) = 0; |
| 56 |
52 // Notifies that a key event was just handled. | 57 // Notifies that a key event was just handled. |
53 virtual void OnDidHandleKeyEvent() = 0; | 58 virtual void OnDidHandleKeyEvent() = 0; |
54 | 59 |
55 // Notifies that an overscroll was completed from Blink. | 60 // Notifies that an overscroll was completed from Blink. |
56 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0; | 61 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0; |
57 | 62 |
58 // Called when an ACK is ready to be sent to the input event provider. | 63 // Called when an ACK is ready to be sent to the input event provider. |
59 virtual void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) = 0; | 64 virtual void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) = 0; |
60 | 65 |
61 // Called when a non-blocking event (DISPATCH_TYPE_NON_BLOCKING) of | 66 // Called when a non-blocking event (DISPATCH_TYPE_NON_BLOCKING) of |
(...skipping 24 matching lines...) Expand all Loading... |
86 // won't be sent to WebKit or trigger DidHandleMouseEvent(). | 91 // won't be sent to WebKit or trigger DidHandleMouseEvent(). |
87 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; | 92 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; |
88 | 93 |
89 protected: | 94 protected: |
90 virtual ~RenderWidgetInputHandlerDelegate() {} | 95 virtual ~RenderWidgetInputHandlerDelegate() {} |
91 }; | 96 }; |
92 | 97 |
93 } // namespace content | 98 } // namespace content |
94 | 99 |
95 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ | 100 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ |
OLD | NEW |