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

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

Issue 1965313003: Fix Renderer4.MainThreadWheelScrollReason not being reported. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 86
87 // blink::WebGestureCurveTarget implementation. 87 // blink::WebGestureCurveTarget implementation.
88 bool scrollBy(const blink::WebFloatSize& offset, 88 bool scrollBy(const blink::WebFloatSize& offset,
89 const blink::WebFloatSize& velocity) override; 89 const blink::WebFloatSize& velocity) override;
90 90
91 bool gesture_scroll_on_impl_thread_for_testing() const { 91 bool gesture_scroll_on_impl_thread_for_testing() const {
92 return gesture_scroll_on_impl_thread_; 92 return gesture_scroll_on_impl_thread_;
93 } 93 }
94 94
95 protected: 95 protected:
96 void RecordMainThreadScrollingReasons(blink::WebInputEvent::Type type, 96 void RecordMainThreadScrollingReasons(blink::WebGestureDevice device,
97 uint32_t reasons); 97 uint32_t reasons);
98 98
99 private: 99 private:
100 friend class test::InputHandlerProxyTest; 100 friend class test::InputHandlerProxyTest;
101 101
102 // Helper functions for handling more complicated input events. 102 // Helper functions for handling more complicated input events.
103 EventDisposition HandleMouseWheel( 103 EventDisposition HandleMouseWheel(
104 const blink::WebMouseWheelEvent& event); 104 const blink::WebMouseWheelEvent& event);
105 EventDisposition ScrollByMouseWheel(const blink::WebMouseWheelEvent& event); 105 EventDisposition ScrollByMouseWheel(const blink::WebMouseWheelEvent& event);
106 EventDisposition HandleGestureScrollBegin( 106 EventDisposition HandleGestureScrollBegin(
(...skipping 105 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 int32_t touch_start_result_; 212 int32_t touch_start_result_;
213 213
214 base::TimeTicks last_fling_animate_time_; 214 base::TimeTicks last_fling_animate_time_;
215 215
216 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); 216 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy);
217 }; 217 };
218 218
219 } // namespace ui 219 } // namespace ui
220 220
221 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ 221 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_
OLDNEW
« no previous file with comments | « no previous file | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698