OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ | 5 #ifndef UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ |
6 #define UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ | 6 #define UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "base/containers/hash_tables.h" | 10 #include "base/containers/hash_tables.h" |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
46 | 46 |
47 InputScrollElasticityController* scroll_elasticity_controller() { | 47 InputScrollElasticityController* scroll_elasticity_controller() { |
48 return scroll_elasticity_controller_.get(); | 48 return scroll_elasticity_controller_.get(); |
49 } | 49 } |
50 | 50 |
51 void set_smooth_scroll_enabled(bool value) { smooth_scroll_enabled_ = value; } | 51 void set_smooth_scroll_enabled(bool value) { smooth_scroll_enabled_ = value; } |
52 | 52 |
53 enum EventDisposition { | 53 enum EventDisposition { |
54 DID_HANDLE, | 54 DID_HANDLE, |
55 DID_NOT_HANDLE, | 55 DID_NOT_HANDLE, |
| 56 DID_NOT_HANDLE_NON_BLOCKING_DUE_TO_FLING, |
56 DID_HANDLE_NON_BLOCKING, | 57 DID_HANDLE_NON_BLOCKING, |
57 DROP_EVENT | 58 DROP_EVENT |
58 }; | 59 }; |
59 using EventDispositionCallback = | 60 using EventDispositionCallback = |
60 base::Callback<void(EventDisposition, | 61 base::Callback<void(EventDisposition, |
61 ScopedWebInputEvent WebInputEvent, | 62 ScopedWebInputEvent WebInputEvent, |
62 const LatencyInfo&, | 63 const LatencyInfo&, |
63 std::unique_ptr<ui::DidOverscrollParams>)>; | 64 std::unique_ptr<ui::DidOverscrollParams>)>; |
64 void HandleInputEventWithLatencyInfo( | 65 void HandleInputEventWithLatencyInfo( |
65 ScopedWebInputEvent event, | 66 ScopedWebInputEvent event, |
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
226 // bundled in the event ack, saving an IPC. Note that we must continue | 227 // bundled in the event ack, saving an IPC. Note that we must continue |
227 // supporting overscroll IPC notifications due to fling animation updates. | 228 // supporting overscroll IPC notifications due to fling animation updates. |
228 std::unique_ptr<DidOverscrollParams> current_overscroll_params_; | 229 std::unique_ptr<DidOverscrollParams> current_overscroll_params_; |
229 | 230 |
230 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); | 231 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); |
231 }; | 232 }; |
232 | 233 |
233 } // namespace ui | 234 } // namespace ui |
234 | 235 |
235 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ | 236 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ |
OLD | NEW |