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 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
107 | 107 |
108 void ObserveGestureEventAndResultOnCompositorThread( | 108 void ObserveGestureEventAndResultOnCompositorThread( |
109 int routing_id, | 109 int routing_id, |
110 const blink::WebGestureEvent& gesture_event, | 110 const blink::WebGestureEvent& gesture_event, |
111 const cc::InputHandlerScrollResult& scroll_result); | 111 const cc::InputHandlerScrollResult& scroll_result); |
112 | 112 |
113 void NotifyInputEventHandledOnCompositorThread(int routing_id, | 113 void NotifyInputEventHandledOnCompositorThread(int routing_id, |
114 blink::WebInputEvent::Type); | 114 blink::WebInputEvent::Type); |
115 | 115 |
116 typedef base::ScopedPtrHashMap<int, // routing_id | 116 typedef base::ScopedPtrHashMap<int, // routing_id |
117 scoped_ptr<InputHandlerWrapper>> | 117 std::unique_ptr<InputHandlerWrapper>> |
118 InputHandlerMap; | 118 InputHandlerMap; |
119 InputHandlerMap input_handlers_; | 119 InputHandlerMap input_handlers_; |
120 | 120 |
121 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 121 const scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
122 InputHandlerManagerClient* const client_; | 122 InputHandlerManagerClient* const client_; |
123 // May be null. | 123 // May be null. |
124 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; | 124 SynchronousInputHandlerProxyClient* const synchronous_handler_proxy_client_; |
125 scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. | 125 scheduler::RendererScheduler* const renderer_scheduler_; // Not owned. |
126 }; | 126 }; |
127 | 127 |
128 } // namespace content | 128 } // namespace content |
129 | 129 |
130 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ | 130 #endif // CONTENT_RENDERER_INPUT_INPUT_HANDLER_MANAGER_H_ |
OLD | NEW |