| 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 // Notifies that a key event was just handled. | 46 // Notifies that a key event was just handled. |
| 47 virtual void OnDidHandleKeyEvent() = 0; | 47 virtual void OnDidHandleKeyEvent() = 0; |
| 48 | 48 |
| 49 // Notifies that an overscroll was completed from Blink. | 49 // Notifies that an overscroll was completed from Blink. |
| 50 virtual void OnDidOverscroll(const ui::DidOverscrollParams& params) = 0; | 50 virtual void OnDidOverscroll(const ui::DidOverscrollParams& params) = 0; |
| 51 | 51 |
| 52 // Called when an ACK is ready to be sent to the input event provider. | 52 // Called when an ACK is ready to be sent to the input event provider. |
| 53 virtual void OnInputEventAck( | 53 virtual void OnInputEventAck( |
| 54 std::unique_ptr<InputEventAck> input_event_ack) = 0; | 54 std::unique_ptr<InputEventAck> input_event_ack) = 0; |
| 55 | 55 |
| 56 // Called when an event with a notify dispatch type | |
| 57 // (DISPATCH_TYPE_*_NOTIFY_MAIN) of |handled_type| has been processed | |
| 58 // by the main thread. | |
| 59 virtual void NotifyInputEventHandled(blink::WebInputEvent::Type handled_type, | |
| 60 blink::WebInputEventResult result, | |
| 61 InputEventAckState ack_result) = 0; | |
| 62 | |
| 63 // Notifies the delegate of the |input_handler| managing it. | 56 // Notifies the delegate of the |input_handler| managing it. |
| 64 virtual void SetInputHandler(RenderWidgetInputHandler* input_handler) = 0; | 57 virtual void SetInputHandler(RenderWidgetInputHandler* input_handler) = 0; |
| 65 | 58 |
| 66 // Call this if virtual keyboard should be displayed, e.g. after a tap on an | 59 // Call this if virtual keyboard should be displayed, e.g. after a tap on an |
| 67 // input field on mobile. Note that we do this just by setting a bit in | 60 // input field on mobile. Note that we do this just by setting a bit in |
| 68 // text input state and update it to the browser such that browser process can | 61 // text input state and update it to the browser such that browser process can |
| 69 // be up to date when showing virtual keyboard. | 62 // be up to date when showing virtual keyboard. |
| 70 virtual void ShowVirtualKeyboard() = 0; | 63 virtual void ShowVirtualKeyboard() = 0; |
| 71 | 64 |
| 72 // Send an update of text input state to the browser process. | 65 // Send an update of text input state to the browser process. |
| (...skipping 12 matching lines...) Expand all Loading... |
| 85 // won't be sent to WebKit or trigger DidHandleMouseEvent(). | 78 // won't be sent to WebKit or trigger DidHandleMouseEvent(). |
| 86 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; | 79 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; |
| 87 | 80 |
| 88 protected: | 81 protected: |
| 89 virtual ~RenderWidgetInputHandlerDelegate() {} | 82 virtual ~RenderWidgetInputHandlerDelegate() {} |
| 90 }; | 83 }; |
| 91 | 84 |
| 92 } // namespace content | 85 } // namespace content |
| 93 | 86 |
| 94 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ | 87 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ |
| OLD | NEW |