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_MANAGER_H_ | 5 #ifndef CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 6 #define CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
7 | 7 |
8 #include "base/containers/scoped_ptr_hash_map.h" | 8 #include "base/containers/scoped_ptr_hash_map.h" |
9 #include "base/memory/ref_counted.h" | 9 #include "base/memory/ref_counted.h" |
10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
54 int routing_id, | 54 int routing_id, |
55 const base::WeakPtr<cc::InputHandler>& input_handler, | 55 const base::WeakPtr<cc::InputHandler>& input_handler, |
56 const base::WeakPtr<RenderViewImpl>& render_view_impl, | 56 const base::WeakPtr<RenderViewImpl>& render_view_impl, |
57 bool enable_smooth_scrolling); | 57 bool enable_smooth_scrolling); |
58 | 58 |
59 void ObserveWheelEventAndResultOnMainThread( | 59 void ObserveWheelEventAndResultOnMainThread( |
60 int routing_id, | 60 int routing_id, |
61 const blink::WebMouseWheelEvent& wheel_event, | 61 const blink::WebMouseWheelEvent& wheel_event, |
62 const cc::InputHandlerScrollResult& scroll_result); | 62 const cc::InputHandlerScrollResult& scroll_result); |
63 | 63 |
| 64 void NonBlockingInputEventHandledOnMainThread(int routing_id, |
| 65 blink::WebInputEvent::Type); |
| 66 |
64 // Callback only from the compositor's thread. | 67 // Callback only from the compositor's thread. |
65 void RemoveInputHandler(int routing_id); | 68 void RemoveInputHandler(int routing_id); |
66 | 69 |
67 // Called from the compositor's thread. | 70 // Called from the compositor's thread. |
68 InputEventAckState HandleInputEvent(int routing_id, | 71 InputEventAckState HandleInputEvent(int routing_id, |
69 const blink::WebInputEvent* input_event, | 72 const blink::WebInputEvent* input_event, |
70 ui::LatencyInfo* latency_info); | 73 ui::LatencyInfo* latency_info); |
71 | 74 |
72 // Called from the compositor's thread. | 75 // Called from the compositor's thread. |
73 void DidOverscroll(int routing_id, const DidOverscrollParams& params); | 76 void DidOverscroll(int routing_id, const DidOverscrollParams& params); |
(...skipping 11 matching lines...) Expand all Loading... |
85 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner, | 88 const scoped_refptr<base::SingleThreadTaskRunner>& main_task_runner, |
86 const base::WeakPtr<cc::InputHandler>& input_handler, | 89 const base::WeakPtr<cc::InputHandler>& input_handler, |
87 const base::WeakPtr<RenderViewImpl>& render_view_impl, | 90 const base::WeakPtr<RenderViewImpl>& render_view_impl, |
88 bool enable_smooth_scrolling); | 91 bool enable_smooth_scrolling); |
89 | 92 |
90 void ObserveWheelEventAndResultOnCompositorThread( | 93 void ObserveWheelEventAndResultOnCompositorThread( |
91 int routing_id, | 94 int routing_id, |
92 const blink::WebMouseWheelEvent& wheel_event, | 95 const blink::WebMouseWheelEvent& wheel_event, |
93 const cc::InputHandlerScrollResult& scroll_result); | 96 const cc::InputHandlerScrollResult& scroll_result); |
94 | 97 |
| 98 void NonBlockingInputEventHandledOnCompositorThread( |
| 99 int routing_id, |
| 100 blink::WebInputEvent::Type); |
| 101 |
95 typedef base::ScopedPtrHashMap<int, // routing_id | 102 typedef base::ScopedPtrHashMap<int, // routing_id |
96 scoped_ptr<InputHandlerWrapper>> | 103 scoped_ptr<InputHandlerWrapper>> |
97 InputHandlerMap; | 104 InputHandlerMap; |
98 InputHandlerMap input_handlers_; | 105 InputHandlerMap input_handlers_; |
99 | 106 |
100 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 107 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
101 InputHandlerManagerClient* client_; | 108 InputHandlerManagerClient* client_; |
102 scheduler::RendererScheduler* renderer_scheduler_; // Not owned. | 109 scheduler::RendererScheduler* renderer_scheduler_; // Not owned. |
103 }; | 110 }; |
104 | 111 |
105 } // namespace content | 112 } // namespace content |
106 | 113 |
107 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 114 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
OLD | NEW |