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/memory/scoped_ptr.h" | 10 #include "base/memory/scoped_ptr.h" |
(...skipping 25 matching lines...) Expand all Loading... |
36 DID_NOT_HANDLE, | 36 DID_NOT_HANDLE, |
37 DROP_EVENT | 37 DROP_EVENT |
38 }; | 38 }; |
39 EventDisposition HandleInputEventWithLatencyInfo( | 39 EventDisposition HandleInputEventWithLatencyInfo( |
40 const blink::WebInputEvent& event, | 40 const blink::WebInputEvent& event, |
41 ui::LatencyInfo* latency_info); | 41 ui::LatencyInfo* latency_info); |
42 EventDisposition HandleInputEvent(const blink::WebInputEvent& event); | 42 EventDisposition HandleInputEvent(const blink::WebInputEvent& event); |
43 | 43 |
44 // cc::InputHandlerClient implementation. | 44 // cc::InputHandlerClient implementation. |
45 virtual void WillShutdown() OVERRIDE; | 45 virtual void WillShutdown() OVERRIDE; |
46 virtual void Animate(base::TimeTicks time) OVERRIDE; | 46 virtual void AnimateFling(base::TimeTicks time) OVERRIDE; |
47 virtual void MainThreadHasStoppedFlinging() OVERRIDE; | 47 virtual void MainThreadHasStoppedFlinging() OVERRIDE; |
48 virtual void DidOverscroll(const gfx::Vector2dF& accumulated_overscroll, | 48 virtual void DidOverscroll(const gfx::Vector2dF& accumulated_overscroll, |
49 const gfx::Vector2dF& latest_overscroll_delta) | 49 const gfx::Vector2dF& latest_overscroll_delta) |
50 OVERRIDE; | 50 OVERRIDE; |
51 | 51 |
52 // blink::WebGestureCurveTarget implementation. | 52 // blink::WebGestureCurveTarget implementation. |
53 virtual bool scrollBy(const blink::WebFloatSize& offset, | 53 virtual bool scrollBy(const blink::WebFloatSize& offset, |
54 const blink::WebFloatSize& velocity); | 54 const blink::WebFloatSize& velocity); |
55 | 55 |
56 bool gesture_scroll_on_impl_thread_for_testing() const { | 56 bool gesture_scroll_on_impl_thread_for_testing() const { |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
115 | 115 |
116 // Non-zero only within the scope of |scrollBy|. | 116 // Non-zero only within the scope of |scrollBy|. |
117 gfx::Vector2dF current_fling_velocity_; | 117 gfx::Vector2dF current_fling_velocity_; |
118 | 118 |
119 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); | 119 DISALLOW_COPY_AND_ASSIGN(InputHandlerProxy); |
120 }; | 120 }; |
121 | 121 |
122 } // namespace content | 122 } // namespace content |
123 | 123 |
124 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_H_ | 124 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_PROXY_H_ |
OLD | NEW |