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

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

Issue 2683043004: Remove ui/events/blink dependency on blink_minimal. (Closed)
Patch Set: fix win debug Created 3 years, 10 months 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/WebCoalescedInputEvent.h"
14 #include "third_party/WebKit/public/platform/WebGestureCurve.h" 13 #include "third_party/WebKit/public/platform/WebGestureCurve.h"
15 #include "third_party/WebKit/public/platform/WebGestureCurveTarget.h" 14 #include "third_party/WebKit/public/platform/WebGestureCurveTarget.h"
16 #include "third_party/WebKit/public/platform/WebGestureEvent.h" 15 #include "third_party/WebKit/public/platform/WebGestureEvent.h"
17 #include "third_party/WebKit/public/web/WebActiveWheelFlingParameters.h" 16 #include "third_party/WebKit/public/web/WebActiveWheelFlingParameters.h"
18 #include "ui/events/blink/blink_features.h" 17 #include "ui/events/blink/blink_features.h"
19 #include "ui/events/blink/input_scroll_elasticity_controller.h" 18 #include "ui/events/blink/input_scroll_elasticity_controller.h"
20 #include "ui/events/blink/synchronous_input_handler_proxy.h" 19 #include "ui/events/blink/synchronous_input_handler_proxy.h"
20 #include "ui/events/blink/web_input_event_traits.h"
21 21
22 namespace base { 22 namespace base {
23 class TickClock; 23 class TickClock;
24 } 24 }
25 25
26 namespace blink { 26 namespace blink {
27 class WebMouseWheelEvent; 27 class WebMouseWheelEvent;
28 class WebTouchEvent; 28 class WebTouchEvent;
29 } 29 }
30 30
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
68 68
69 enum EventDisposition { 69 enum EventDisposition {
70 DID_HANDLE, 70 DID_HANDLE,
71 DID_NOT_HANDLE, 71 DID_NOT_HANDLE,
72 DID_NOT_HANDLE_NON_BLOCKING_DUE_TO_FLING, 72 DID_NOT_HANDLE_NON_BLOCKING_DUE_TO_FLING,
73 DID_HANDLE_NON_BLOCKING, 73 DID_HANDLE_NON_BLOCKING,
74 DROP_EVENT 74 DROP_EVENT
75 }; 75 };
76 using EventDispositionCallback = 76 using EventDispositionCallback =
77 base::Callback<void(EventDisposition, 77 base::Callback<void(EventDisposition,
78 blink::WebScopedInputEvent WebInputEvent, 78 WebScopedInputEvent WebInputEvent,
79 const LatencyInfo&, 79 const LatencyInfo&,
80 std::unique_ptr<ui::DidOverscrollParams>)>; 80 std::unique_ptr<ui::DidOverscrollParams>)>;
81 void HandleInputEventWithLatencyInfo( 81 void HandleInputEventWithLatencyInfo(
82 blink::WebScopedInputEvent event, 82 WebScopedInputEvent event,
83 const LatencyInfo& latency_info, 83 const LatencyInfo& latency_info,
84 const EventDispositionCallback& callback); 84 const EventDispositionCallback& callback);
85 EventDisposition HandleInputEvent(const blink::WebInputEvent& event); 85 EventDisposition HandleInputEvent(const blink::WebInputEvent& event);
86 86
87 // cc::InputHandlerClient implementation. 87 // cc::InputHandlerClient implementation.
88 void WillShutdown() override; 88 void WillShutdown() override;
89 void Animate(base::TimeTicks time) override; 89 void Animate(base::TimeTicks time) override;
90 void MainThreadHasStoppedFlinging() override; 90 void MainThreadHasStoppedFlinging() override;
91 void ReconcileElasticOverscrollAndRootScroll() override; 91 void ReconcileElasticOverscrollAndRootScroll() override;
92 void UpdateRootLayerStateForSynchronousInputHandler( 92 void UpdateRootLayerStateForSynchronousInputHandler(
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 bool has_ongoing_compositor_scroll_pinch_; 263 bool has_ongoing_compositor_scroll_pinch_;
264 264
265 std::unique_ptr<base::TickClock> tick_clock_; 265 std::unique_ptr<base::TickClock> tick_clock_;
266 266
267 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); 267 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy);
268 }; 268 };
269 269
270 } // namespace ui 270 } // namespace ui
271 271
272 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ 272 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698