| 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 <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 // the elastic overscroll effect. | 47 // the elastic overscroll effect. |
| 48 virtual void ObserveGestureEventAndResult( | 48 virtual void ObserveGestureEventAndResult( |
| 49 const blink::WebGestureEvent& gesture_event, | 49 const blink::WebGestureEvent& gesture_event, |
| 50 const gfx::Vector2dF& unused_delta, | 50 const gfx::Vector2dF& unused_delta, |
| 51 bool event_processed) = 0; | 51 bool event_processed) = 0; |
| 52 | 52 |
| 53 // Notifies that a key event was just handled. | 53 // Notifies that a key event was just handled. |
| 54 virtual void OnDidHandleKeyEvent() = 0; | 54 virtual void OnDidHandleKeyEvent() = 0; |
| 55 | 55 |
| 56 // Notifies that an overscroll was completed from Blink. | 56 // Notifies that an overscroll was completed from Blink. |
| 57 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0; | 57 virtual void OnDidOverscroll(const ui::DidOverscrollParams& params) = 0; |
| 58 | 58 |
| 59 // Called when an ACK is ready to be sent to the input event provider. | 59 // Called when an ACK is ready to be sent to the input event provider. |
| 60 virtual void OnInputEventAck( | 60 virtual void OnInputEventAck( |
| 61 std::unique_ptr<InputEventAck> input_event_ack) = 0; | 61 std::unique_ptr<InputEventAck> input_event_ack) = 0; |
| 62 | 62 |
| 63 // Called when an event with a notify dispatch type | 63 // Called when an event with a notify dispatch type |
| 64 // (DISPATCH_TYPE_*_NOTIFY_MAIN) of |handled_type| has been processed | 64 // (DISPATCH_TYPE_*_NOTIFY_MAIN) of |handled_type| has been processed |
| 65 // by the main thread. | 65 // by the main thread. |
| 66 virtual void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type, | 66 virtual void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type, |
| 67 InputEventAckState ack_result) = 0; | 67 InputEventAckState ack_result) = 0; |
| (...skipping 21 matching lines...) Expand all Loading... |
| 89 // won't be sent to WebKit or trigger DidHandleMouseEvent(). | 89 // won't be sent to WebKit or trigger DidHandleMouseEvent(). |
| 90 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; | 90 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; |
| 91 | 91 |
| 92 protected: | 92 protected: |
| 93 virtual ~RenderWidgetInputHandlerDelegate() {} | 93 virtual ~RenderWidgetInputHandlerDelegate() {} |
| 94 }; | 94 }; |
| 95 | 95 |
| 96 } // namespace content | 96 } // namespace content |
| 97 | 97 |
| 98 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ | 98 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ |
| OLD | NEW |