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

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

Issue 1763713002: Added missing MainThreadScrollingReason in histograms.xml (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undo gyp change. Created 4 years, 9 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 | « ui/events/BUILD.gn ('k') | 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 "base/containers/hash_tables.h" 8 #include "base/containers/hash_tables.h"
9 #include "base/macros.h" 9 #include "base/macros.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 const gfx::ScrollOffset& root_offset) override; 82 const gfx::ScrollOffset& root_offset) override;
83 83
84 // blink::WebGestureCurveTarget implementation. 84 // blink::WebGestureCurveTarget implementation.
85 bool scrollBy(const blink::WebFloatSize& offset, 85 bool scrollBy(const blink::WebFloatSize& offset,
86 const blink::WebFloatSize& velocity) override; 86 const blink::WebFloatSize& velocity) override;
87 87
88 bool gesture_scroll_on_impl_thread_for_testing() const { 88 bool gesture_scroll_on_impl_thread_for_testing() const {
89 return gesture_scroll_on_impl_thread_; 89 return gesture_scroll_on_impl_thread_;
90 } 90 }
91 91
92 protected:
93 void RecordMainThreadScrollingReasons(blink::WebInputEvent::Type type,
94 uint32_t reasons);
95
92 private: 96 private:
93 friend class test::InputHandlerProxyTest; 97 friend class test::InputHandlerProxyTest;
94 98
95 // Helper functions for handling more complicated input events. 99 // Helper functions for handling more complicated input events.
96 EventDisposition HandleMouseWheel( 100 EventDisposition HandleMouseWheel(
97 const blink::WebMouseWheelEvent& event); 101 const blink::WebMouseWheelEvent& event);
98 EventDisposition ScrollByMouseWheel(const blink::WebMouseWheelEvent& event); 102 EventDisposition ScrollByMouseWheel(const blink::WebMouseWheelEvent& event);
99 EventDisposition HandleGestureScrollBegin( 103 EventDisposition HandleGestureScrollBegin(
100 const blink::WebGestureEvent& event); 104 const blink::WebGestureEvent& event);
101 EventDisposition HandleGestureScrollUpdate( 105 EventDisposition HandleGestureScrollUpdate(
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
199 int32_t touch_start_result_; 203 int32_t touch_start_result_;
200 204
201 base::TimeTicks last_fling_animate_time_; 205 base::TimeTicks last_fling_animate_time_;
202 206
203 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); 207 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy);
204 }; 208 };
205 209
206 } // namespace ui 210 } // namespace ui
207 211
208 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_ 212 #endif // UI_EVENTS_BLINK_INPUT_HANDLER_PROXY_H_
OLDNEW
« no previous file with comments | « ui/events/BUILD.gn ('k') | ui/events/blink/input_handler_proxy.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698