| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |