| 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_EVENT_FILTER_H_ | 5 #ifndef CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ |
| 6 #define CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ | 6 #define CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ |
| 7 | 7 |
| 8 #include <queue> | 8 #include <queue> |
| 9 #include <set> | 9 #include <set> |
| 10 #include <unordered_map> | 10 #include <unordered_map> |
| (...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 // If INPUT_EVENT_ACK_STATE_NOT_CONSUMED is returned by the handler, | 56 // If INPUT_EVENT_ACK_STATE_NOT_CONSUMED is returned by the handler, |
| 57 // the original InputMsg_HandleInputEvent message will be delivered to | 57 // the original InputMsg_HandleInputEvent message will be delivered to |
| 58 // |main_listener| on the main thread. (The "main thread" in this context is | 58 // |main_listener| on the main thread. (The "main thread" in this context is |
| 59 // the thread where the InputEventFilter was constructed.) The responsibility | 59 // the thread where the InputEventFilter was constructed.) The responsibility |
| 60 // is left to the eventual handler to deliver the corresponding | 60 // is left to the eventual handler to deliver the corresponding |
| 61 // InputHostMsg_HandleInputEvent_ACK. | 61 // InputHostMsg_HandleInputEvent_ACK. |
| 62 // | 62 // |
| 63 void SetInputHandlerManager(InputHandlerManager*) override; | 63 void SetInputHandlerManager(InputHandlerManager*) override; |
| 64 void RegisterRoutingID(int routing_id) override; | 64 void RegisterRoutingID(int routing_id) override; |
| 65 void UnregisterRoutingID(int routing_id) override; | 65 void UnregisterRoutingID(int routing_id) override; |
| 66 void QueueClosureForMainThreadEventQueue( |
| 67 int routing_id, |
| 68 const base::Closure& closure) override; |
| 66 void DidOverscroll(int routing_id, | 69 void DidOverscroll(int routing_id, |
| 67 const ui::DidOverscrollParams& params) override; | 70 const ui::DidOverscrollParams& params) override; |
| 68 void DidStopFlinging(int routing_id) override; | 71 void DidStopFlinging(int routing_id) override; |
| 69 void DispatchNonBlockingEventToMainThread( | 72 void DispatchNonBlockingEventToMainThread( |
| 70 int routing_id, | 73 int routing_id, |
| 71 ui::WebScopedInputEvent event, | 74 ui::WebScopedInputEvent event, |
| 72 const ui::LatencyInfo& latency_info) override; | 75 const ui::LatencyInfo& latency_info) override; |
| 73 | 76 |
| 74 void NotifyInputEventHandled(int routing_id, | 77 void NotifyInputEventHandled(int routing_id, |
| 75 blink::WebInputEvent::Type type, | 78 blink::WebInputEvent::Type type, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 135 using RouteQueueMap = | 138 using RouteQueueMap = |
| 136 std::unordered_map<int, scoped_refptr<MainThreadEventQueue>>; | 139 std::unordered_map<int, scoped_refptr<MainThreadEventQueue>>; |
| 137 RouteQueueMap route_queues_; | 140 RouteQueueMap route_queues_; |
| 138 | 141 |
| 139 blink::scheduler::RendererScheduler* renderer_scheduler_; | 142 blink::scheduler::RendererScheduler* renderer_scheduler_; |
| 140 }; | 143 }; |
| 141 | 144 |
| 142 } // namespace content | 145 } // namespace content |
| 143 | 146 |
| 144 #endif // CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ | 147 #endif // CONTENT_RENDERER_INPUT_INPUT_EVENT_FILTER_H_ |
| OLD | NEW |