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

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

Issue 2040543002: Take MT jank into account when animating the scroll offset on CC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix constant Created 4 years, 6 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"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 enum EventDisposition { 51 enum EventDisposition {
52 DID_HANDLE, 52 DID_HANDLE,
53 DID_NOT_HANDLE, 53 DID_NOT_HANDLE,
54 DID_HANDLE_NON_BLOCKING, 54 DID_HANDLE_NON_BLOCKING,
55 DROP_EVENT 55 DROP_EVENT
56 }; 56 };
57 EventDisposition HandleInputEventWithLatencyInfo( 57 EventDisposition HandleInputEventWithLatencyInfo(
58 const blink::WebInputEvent& event, 58 const blink::WebInputEvent& event,
59 ui::LatencyInfo* latency_info); 59 ui::LatencyInfo* latency_info);
60 EventDisposition HandleInputEvent(const blink::WebInputEvent& event); 60 EventDisposition HandleInputEvent(const blink::WebInputEvent& event,
61 ui::LatencyInfo* latency_info = nullptr);
61 62
62 // cc::InputHandlerClient implementation. 63 // cc::InputHandlerClient implementation.
63 void WillShutdown() override; 64 void WillShutdown() override;
64 void Animate(base::TimeTicks time) override; 65 void Animate(base::TimeTicks time) override;
65 void MainThreadHasStoppedFlinging() override; 66 void MainThreadHasStoppedFlinging() override;
66 void ReconcileElasticOverscrollAndRootScroll() override; 67 void ReconcileElasticOverscrollAndRootScroll() override;
67 void UpdateRootLayerStateForSynchronousInputHandler( 68 void UpdateRootLayerStateForSynchronousInputHandler(
68 const gfx::ScrollOffset& total_scroll_offset, 69 const gfx::ScrollOffset& total_scroll_offset,
69 const gfx::ScrollOffset& max_scroll_offset, 70 const gfx::ScrollOffset& max_scroll_offset,
70 const gfx::SizeF& scrollable_size, 71 const gfx::SizeF& scrollable_size,
(...skipping 25 matching lines...) Expand all
96 private: 97 private:
97 friend class test::InputHandlerProxyTest; 98 friend class test::InputHandlerProxyTest;
98 99
99 // Helper functions for handling more complicated input events. 100 // Helper functions for handling more complicated input events.
100 EventDisposition HandleMouseWheel( 101 EventDisposition HandleMouseWheel(
101 const blink::WebMouseWheelEvent& event); 102 const blink::WebMouseWheelEvent& event);
102 EventDisposition ScrollByMouseWheel(const blink::WebMouseWheelEvent& event); 103 EventDisposition ScrollByMouseWheel(const blink::WebMouseWheelEvent& event);
103 EventDisposition HandleGestureScrollBegin( 104 EventDisposition HandleGestureScrollBegin(
104 const blink::WebGestureEvent& event); 105 const blink::WebGestureEvent& event);
105 EventDisposition HandleGestureScrollUpdate( 106 EventDisposition HandleGestureScrollUpdate(
106 const blink::WebGestureEvent& event); 107 const blink::WebGestureEvent& event,
108 ui::LatencyInfo* latency_info);
107 EventDisposition HandleGestureScrollEnd( 109 EventDisposition HandleGestureScrollEnd(
108 const blink::WebGestureEvent& event); 110 const blink::WebGestureEvent& event);
109 EventDisposition HandleGestureFlingStart( 111 EventDisposition HandleGestureFlingStart(
110 const blink::WebGestureEvent& event); 112 const blink::WebGestureEvent& event);
111 EventDisposition HandleTouchStart(const blink::WebTouchEvent& event); 113 EventDisposition HandleTouchStart(const blink::WebTouchEvent& event);
112 EventDisposition HandleTouchMove(const blink::WebTouchEvent& event); 114 EventDisposition HandleTouchMove(const blink::WebTouchEvent& event);
113 EventDisposition HandleTouchEnd(const blink::WebTouchEvent& event); 115 EventDisposition HandleTouchEnd(const blink::WebTouchEvent& event);
114 116
115 // Returns true if the event should be suppressed due to to an active, 117 // Returns true if the event should be suppressed due to to an active,
116 // boost-enabled fling, in which case further processing should cease. 118 // boost-enabled fling, in which case further processing should cease.
(...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
208 int32_t touch_start_result_; 210 int32_t touch_start_result_;
209 211
210 base::TimeTicks last_fling_animate_time_; 212 base::TimeTicks last_fling_animate_time_;
211 213
212 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); 214 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy);
213 }; 215 };
214 216
215 } // namespace ui 217 } // namespace ui
216 218
217 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ 219 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698