| 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 CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_H_ | 5 #ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_H_ |
| 6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_H_ | 6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/containers/hash_tables.h" | 9 #include "base/containers/hash_tables.h" |
| 10 #include "base/gtest_prod_util.h" | 10 #include "base/gtest_prod_util.h" |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 55 | 55 |
| 56 // blink::WebGestureCurveTarget implementation. | 56 // blink::WebGestureCurveTarget implementation. |
| 57 virtual bool scrollBy(const blink::WebFloatSize& offset, | 57 virtual bool scrollBy(const blink::WebFloatSize& offset, |
| 58 const blink::WebFloatSize& velocity); | 58 const blink::WebFloatSize& velocity); |
| 59 | 59 |
| 60 bool gesture_scroll_on_impl_thread_for_testing() const { | 60 bool gesture_scroll_on_impl_thread_for_testing() const { |
| 61 return gesture_scroll_on_impl_thread_; | 61 return gesture_scroll_on_impl_thread_; |
| 62 } | 62 } |
| 63 | 63 |
| 64 private: | 64 private: |
| 65 // Helper function for creating the right kind of animation curve. |
| 66 blink::WebGestureCurve* CreateAnimationCurve( |
| 67 const blink::WebGestureEvent& gesture_event); |
| 65 // Helper functions for handling more complicated input events. | 68 // Helper functions for handling more complicated input events. |
| 66 EventDisposition HandleMouseWheel( | 69 EventDisposition HandleMouseWheel( |
| 67 const blink::WebMouseWheelEvent& event); | 70 const blink::WebMouseWheelEvent& event); |
| 68 EventDisposition HandleGestureScrollBegin( | 71 EventDisposition HandleGestureScrollBegin( |
| 69 const blink::WebGestureEvent& event); | 72 const blink::WebGestureEvent& event); |
| 70 EventDisposition HandleGestureScrollUpdate( | 73 EventDisposition HandleGestureScrollUpdate( |
| 71 const blink::WebGestureEvent& event); | 74 const blink::WebGestureEvent& event); |
| 72 EventDisposition HandleGestureScrollEnd( | 75 EventDisposition HandleGestureScrollEnd( |
| 73 const blink::WebGestureEvent& event); | 76 const blink::WebGestureEvent& event); |
| 74 EventDisposition HandleGestureFlingStart( | 77 EventDisposition HandleGestureFlingStart( |
| (...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 bool smooth_scroll_enabled_; | 149 bool smooth_scroll_enabled_; |
| 147 | 150 |
| 148 bool uma_latency_reporting_enabled_; | 151 bool uma_latency_reporting_enabled_; |
| 149 | 152 |
| 150 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); | 153 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); |
| 151 }; | 154 }; |
| 152 | 155 |
| 153 } // namespace content | 156 } // namespace content |
| 154 | 157 |
| 155 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_H_ | 158 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_H_ |
| OLD | NEW |