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 <memory> |
| 9 |
9 #include "content/common/content_export.h" | 10 #include "content/common/content_export.h" |
10 #include "content/common/input/input_event_ack.h" | 11 #include "content/common/input/input_event_ack.h" |
11 | 12 |
12 namespace blink { | 13 namespace blink { |
13 class WebGestureEvent; | 14 class WebGestureEvent; |
14 class WebMouseEvent; | 15 class WebMouseEvent; |
15 class WebMouseWheelEvent; | 16 class WebMouseWheelEvent; |
16 } | 17 } |
17 | 18 |
18 namespace gfx { | 19 namespace gfx { |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 const gfx::Vector2dF& unused_delta, | 57 const gfx::Vector2dF& unused_delta, |
57 bool event_processed) = 0; | 58 bool event_processed) = 0; |
58 | 59 |
59 // Notifies that a key event was just handled. | 60 // Notifies that a key event was just handled. |
60 virtual void OnDidHandleKeyEvent() = 0; | 61 virtual void OnDidHandleKeyEvent() = 0; |
61 | 62 |
62 // Notifies that an overscroll was completed from Blink. | 63 // Notifies that an overscroll was completed from Blink. |
63 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0; | 64 virtual void OnDidOverscroll(const DidOverscrollParams& params) = 0; |
64 | 65 |
65 // Called when an ACK is ready to be sent to the input event provider. | 66 // Called when an ACK is ready to be sent to the input event provider. |
66 virtual void OnInputEventAck(scoped_ptr<InputEventAck> input_event_ack) = 0; | 67 virtual void OnInputEventAck( |
| 68 std::unique_ptr<InputEventAck> input_event_ack) = 0; |
67 | 69 |
68 // Called when an event with a notify dispatch type | 70 // Called when an event with a notify dispatch type |
69 // (DISPATCH_TYPE_*_NOTIFY_MAIN) of |handled_type| has been processed | 71 // (DISPATCH_TYPE_*_NOTIFY_MAIN) of |handled_type| has been processed |
70 // by the main thread. | 72 // by the main thread. |
71 virtual void NotifyInputEventHandled( | 73 virtual void NotifyInputEventHandled( |
72 blink::WebInputEvent::Type handled_type) = 0; | 74 blink::WebInputEvent::Type handled_type) = 0; |
73 | 75 |
74 // Notifies the delegate of the |input_handler| managing it. | 76 // Notifies the delegate of the |input_handler| managing it. |
75 virtual void SetInputHandler(RenderWidgetInputHandler* input_handler) = 0; | 77 virtual void SetInputHandler(RenderWidgetInputHandler* input_handler) = 0; |
76 | 78 |
(...skipping 17 matching lines...) Expand all Loading... |
94 // won't be sent to WebKit or trigger DidHandleMouseEvent(). | 96 // won't be sent to WebKit or trigger DidHandleMouseEvent(). |
95 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; | 97 virtual bool WillHandleMouseEvent(const blink::WebMouseEvent& event) = 0; |
96 | 98 |
97 protected: | 99 protected: |
98 virtual ~RenderWidgetInputHandlerDelegate() {} | 100 virtual ~RenderWidgetInputHandlerDelegate() {} |
99 }; | 101 }; |
100 | 102 |
101 } // namespace content | 103 } // namespace content |
102 | 104 |
103 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ | 105 #endif // CONTENT_RENDERER_INPUT_RENDER_WIDGET_INPUT_HANDLER_DELEGATE_H_ |
OLD | NEW |