| 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 51 | 51 |
| 52 // Notifies that a key event was just handled. | 52 // Notifies that a key event was just handled. |
| 53 virtual void OnDidHandleKeyEvent() = 0; | 53 virtual void OnDidHandleKeyEvent() = 0; |
| 54 | 54 |
| 55 // Notifies that an overscroll was completed from Blink. | 55 // Notifies that an overscroll was completed from Blink. |
| 56 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0; | 56 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0; |
| 57 | 57 |
| 58 // Called when an ACK is ready to be sent to the input event provider. | 58 // 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; | 59 virtual void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) = 0; |
| 60 | 60 |
| 61 // Called when a non-blocking event (DISPATCH_TYPE_NON_BLOCKING) of |
| 62 // |handled_type| has been processed by the main thread. |
| 63 virtual void NonBlockingInputEventHandled( |
| 64 blink::WebInputEvent::Type handled_type) = 0; |
| 65 |
| 61 // Notifies the delegate of the |input_handler| managing it. | 66 // Notifies the delegate of the |input_handler| managing it. |
| 62 virtual void SetInputHandler(RenderWidgetInputHandler* input_handler) = 0; | 67 virtual void SetInputHandler(RenderWidgetInputHandler* input_handler) = 0; |
| 63 | 68 |
| 64 // |show_ime| should be ShowIme::IF_NEEDED iff the update may cause the ime to | 69 // |show_ime| should be ShowIme::IF_NEEDED iff the update may cause the ime to |
| 65 // be displayed, e.g. after a tap on an input field on mobile. | 70 // be displayed, e.g. after a tap on an input field on mobile. |
| 66 // |change_source| should be ChangeSource::FROM_NON_IME when the renderer has | 71 // |change_source| should be ChangeSource::FROM_NON_IME when the renderer has |
| 67 // to wait for the browser to acknowledge the change before the renderer | 72 // to wait for the browser to acknowledge the change before the renderer |
| 68 // handles any more IME events. This is when the text change did not originate | 73 // handles any more IME events. This is when the text change did not originate |
| 69 // from the IME in the browser side, such as changes by JavaScript or | 74 // from the IME in the browser side, such as changes by JavaScript or |
| 70 // autofill. | 75 // autofill. |
| (...skipping 10 matching lines...) Expand all Loading... |
| 81 // won't be sent to WebKit or trigger DidHandleMouseEvent(). | 86 // won't be sent to WebKit or trigger DidHandleMouseEvent(). |
| 82 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; | 87 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; |
| 83 | 88 |
| 84 protected: | 89 protected: |
| 85 virtual ~RenderWidgetInputHandlerDelegate() {} | 90 virtual ~RenderWidgetInputHandlerDelegate() {} |
| 86 }; | 91 }; |
| 87 | 92 |
| 88 } // namespace content | 93 } // namespace content |
| 89 | 94 |
| 90 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ | 95 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ |
| OLD | NEW |