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 #include "content/renderer/input/input_event_filter.h" | 5 #include "content/renderer/input/input_event_filter.h" |
6 | 6 |
7 #include <tuple> | 7 #include <tuple> |
8 #include <utility> | 8 #include <utility> |
9 | 9 |
10 #include "base/auto_reset.h" | 10 #include "base/auto_reset.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 base::AutoLock locked(routes_lock_); | 131 base::AutoLock locked(routes_lock_); |
132 RouteQueueMap::iterator iter = route_queues_.find(routing_id); | 132 RouteQueueMap::iterator iter = route_queues_.find(routing_id); |
133 if (iter == route_queues_.end() || !iter->second) | 133 if (iter == route_queues_.end() || !iter->second) |
134 return; | 134 return; |
135 queue = iter->second; | 135 queue = iter->second; |
136 } | 136 } |
137 | 137 |
138 queue->DispatchRafAlignedInput(); | 138 queue->DispatchRafAlignedInput(); |
139 } | 139 } |
140 | 140 |
141 void InputEventFilter::OnFilterAdded(IPC::Sender* sender) { | 141 void InputEventFilter::OnFilterAdded(IPC::Channel* channel) { |
142 io_task_runner_ = base::ThreadTaskRunnerHandle::Get(); | 142 io_task_runner_ = base::ThreadTaskRunnerHandle::Get(); |
143 sender_ = sender; | 143 sender_ = channel; |
144 } | 144 } |
145 | 145 |
146 void InputEventFilter::OnFilterRemoved() { | 146 void InputEventFilter::OnFilterRemoved() { |
147 sender_ = NULL; | 147 sender_ = NULL; |
148 } | 148 } |
149 | 149 |
150 void InputEventFilter::OnChannelClosing() { | 150 void InputEventFilter::OnChannelClosing() { |
151 sender_ = NULL; | 151 sender_ = NULL; |
152 } | 152 } |
153 | 153 |
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
299 input_handler_manager_->NeedsMainFrame(routing_id); | 299 input_handler_manager_->NeedsMainFrame(routing_id); |
300 return; | 300 return; |
301 } | 301 } |
302 | 302 |
303 target_task_runner_->PostTask( | 303 target_task_runner_->PostTask( |
304 FROM_HERE, | 304 FROM_HERE, |
305 base::Bind(&InputEventFilter::NeedsMainFrame, this, routing_id)); | 305 base::Bind(&InputEventFilter::NeedsMainFrame, this, routing_id)); |
306 } | 306 } |
307 | 307 |
308 } // namespace content | 308 } // namespace content |
OLD | NEW |