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