| 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" |
| 11 #include "base/macros.h" | 11 #include "base/macros.h" |
| 12 #include "cc/input/input_handler.h" | 12 #include "cc/input/input_handler.h" |
| 13 #include "third_party/WebKit/public/platform/WebCoalescedInputEvent.h" |
| 13 #include "third_party/WebKit/public/platform/WebGestureCurve.h" | 14 #include "third_party/WebKit/public/platform/WebGestureCurve.h" |
| 14 #include "third_party/WebKit/public/platform/WebGestureCurveTarget.h" | 15 #include "third_party/WebKit/public/platform/WebGestureCurveTarget.h" |
| 15 #include "third_party/WebKit/public/platform/WebGestureEvent.h" | 16 #include "third_party/WebKit/public/platform/WebGestureEvent.h" |
| 16 #include "third_party/WebKit/public/platform/WebInputEvent.h" | |
| 17 #include "third_party/WebKit/public/web/WebActiveWheelFlingParameters.h" | 17 #include "third_party/WebKit/public/web/WebActiveWheelFlingParameters.h" |
| 18 #include "ui/events/blink/blink_features.h" | 18 #include "ui/events/blink/blink_features.h" |
| 19 #include "ui/events/blink/input_scroll_elasticity_controller.h" | 19 #include "ui/events/blink/input_scroll_elasticity_controller.h" |
| 20 #include "ui/events/blink/scoped_web_input_event.h" | |
| 21 #include "ui/events/blink/synchronous_input_handler_proxy.h" | 20 #include "ui/events/blink/synchronous_input_handler_proxy.h" |
| 22 | 21 |
| 23 namespace base { | 22 namespace base { |
| 24 class TickClock; | 23 class TickClock; |
| 25 } | 24 } |
| 26 | 25 |
| 27 namespace blink { | 26 namespace blink { |
| 28 class WebMouseWheelEvent; | 27 class WebMouseWheelEvent; |
| 29 } | 28 } |
| 30 | 29 |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 | 64 |
| 66 enum EventDisposition { | 65 enum EventDisposition { |
| 67 DID_HANDLE, | 66 DID_HANDLE, |
| 68 DID_NOT_HANDLE, | 67 DID_NOT_HANDLE, |
| 69 DID_NOT_HANDLE_NON_BLOCKING_DUE_TO_FLING, | 68 DID_NOT_HANDLE_NON_BLOCKING_DUE_TO_FLING, |
| 70 DID_HANDLE_NON_BLOCKING, | 69 DID_HANDLE_NON_BLOCKING, |
| 71 DROP_EVENT | 70 DROP_EVENT |
| 72 }; | 71 }; |
| 73 using EventDispositionCallback = | 72 using EventDispositionCallback = |
| 74 base::Callback<void(EventDisposition, | 73 base::Callback<void(EventDisposition, |
| 75 ScopedWebInputEvent WebInputEvent, | 74 blink::WebScopedInputEvent WebInputEvent, |
| 76 const LatencyInfo&, | 75 const LatencyInfo&, |
| 77 std::unique_ptr<ui::DidOverscrollParams>)>; | 76 std::unique_ptr<ui::DidOverscrollParams>)>; |
| 78 void HandleInputEventWithLatencyInfo( | 77 void HandleInputEventWithLatencyInfo( |
| 79 ScopedWebInputEvent event, | 78 blink::WebScopedInputEvent event, |
| 80 const LatencyInfo& latency_info, | 79 const LatencyInfo& latency_info, |
| 81 const EventDispositionCallback& callback); | 80 const EventDispositionCallback& callback); |
| 82 EventDisposition HandleInputEvent(const blink::WebInputEvent& event); | 81 EventDisposition HandleInputEvent(const blink::WebInputEvent& event); |
| 83 | 82 |
| 84 // cc::InputHandlerClient implementation. | 83 // cc::InputHandlerClient implementation. |
| 85 void WillShutdown() override; | 84 void WillShutdown() override; |
| 86 void Animate(base::TimeTicks time) override; | 85 void Animate(base::TimeTicks time) override; |
| 87 void MainThreadHasStoppedFlinging() override; | 86 void MainThreadHasStoppedFlinging() override; |
| 88 void ReconcileElasticOverscrollAndRootScroll() override; | 87 void ReconcileElasticOverscrollAndRootScroll() override; |
| 89 void UpdateRootLayerStateForSynchronousInputHandler( | 88 void UpdateRootLayerStateForSynchronousInputHandler( |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 bool has_ongoing_compositor_scroll_pinch_; | 252 bool has_ongoing_compositor_scroll_pinch_; |
| 254 | 253 |
| 255 std::unique_ptr<base::TickClock> tick_clock_; | 254 std::unique_ptr<base::TickClock> tick_clock_; |
| 256 | 255 |
| 257 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); | 256 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); |
| 258 }; | 257 }; |
| 259 | 258 |
| 260 } // namespace ui | 259 } // namespace ui |
| 261 | 260 |
| 262 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ | 261 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ |
| OLD | NEW |