Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: ui/events/blink/input_handler_proxy.h

Issue 2479123003: WIP Add getCoalescedEvents API using vector of WebInputEvents (Closed)
Patch Set: Creating CoalescedWebInputEvent Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/CoalescedWebInputEvent.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/input_scroll_elasticity_controller.h" 18 #include "ui/events/blink/input_scroll_elasticity_controller.h"
19 #include "ui/events/blink/scoped_web_input_event.h"
20 #include "ui/events/blink/synchronous_input_handler_proxy.h" 19 #include "ui/events/blink/synchronous_input_handler_proxy.h"
21 20
22 namespace ui { 21 namespace ui {
23 22
24 namespace test { 23 namespace test {
25 class InputHandlerProxyTest; 24 class InputHandlerProxyTest;
26 } 25 }
27 26
28 class InputHandlerProxyClient; 27 class InputHandlerProxyClient;
29 class InputScrollElasticityController; 28 class InputScrollElasticityController;
(...skipping 23 matching lines...) Expand all
53 52
54 enum EventDisposition { 53 enum EventDisposition {
55 DID_HANDLE, 54 DID_HANDLE,
56 DID_NOT_HANDLE, 55 DID_NOT_HANDLE,
57 DID_NOT_HANDLE_NON_BLOCKING_DUE_TO_FLING, 56 DID_NOT_HANDLE_NON_BLOCKING_DUE_TO_FLING,
58 DID_HANDLE_NON_BLOCKING, 57 DID_HANDLE_NON_BLOCKING,
59 DROP_EVENT 58 DROP_EVENT
60 }; 59 };
61 using EventDispositionCallback = 60 using EventDispositionCallback =
62 base::Callback<void(EventDisposition, 61 base::Callback<void(EventDisposition,
63 ScopedWebInputEvent WebInputEvent, 62 blink::CoalescedWebInputEvent WebInputEvent,
64 const LatencyInfo&, 63 const LatencyInfo&,
65 std::unique_ptr<ui::DidOverscrollParams>)>; 64 std::unique_ptr<ui::DidOverscrollParams>)>;
66 void HandleInputEventWithLatencyInfo( 65 void HandleInputEventWithLatencyInfo(
67 ScopedWebInputEvent event, 66 blink::ScopedCoalescedWebInputEvent event,
68 const LatencyInfo& latency_info, 67 const LatencyInfo& latency_info,
69 const EventDispositionCallback& callback); 68 const EventDispositionCallback& callback);
70 EventDisposition HandleInputEvent(const blink::WebInputEvent& event); 69 EventDisposition HandleInputEvent(const blink::WebInputEvent& event);
71 70
72 // cc::InputHandlerClient implementation. 71 // cc::InputHandlerClient implementation.
73 void WillShutdown() override; 72 void WillShutdown() override;
74 void Animate(base::TimeTicks time) override; 73 void Animate(base::TimeTicks time) override;
75 void MainThreadHasStoppedFlinging() override; 74 void MainThreadHasStoppedFlinging() override;
76 void ReconcileElasticOverscrollAndRootScroll() override; 75 void ReconcileElasticOverscrollAndRootScroll() override;
77 void UpdateRootLayerStateForSynchronousInputHandler( 76 void UpdateRootLayerStateForSynchronousInputHandler(
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
228 // 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
229 // supporting overscroll IPC notifications due to fling animation updates. 228 // supporting overscroll IPC notifications due to fling animation updates.
230 std::unique_ptr<DidOverscrollParams> current_overscroll_params_; 229 std::unique_ptr<DidOverscrollParams> current_overscroll_params_;
231 230
232 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); 231 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy);
233 }; 232 };
234 233
235 } // namespace ui 234 } // namespace ui
236 235
237 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ 236 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698