OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "remoting/host/event_executor.h" | 5 #include "remoting/host/event_executor.h" |
6 | 6 |
7 #include <set> | 7 #include <set> |
8 | 8 |
9 #include <X11/Xlib.h> | 9 #include <X11/Xlib.h> |
10 #include <X11/XF86keysym.h> | 10 #include <X11/XF86keysym.h> |
(...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
422 void EventExecutorLinux::OnSessionStarted() { | 422 void EventExecutorLinux::OnSessionStarted() { |
423 return; | 423 return; |
424 } | 424 } |
425 | 425 |
426 void EventExecutorLinux::OnSessionFinished() { | 426 void EventExecutorLinux::OnSessionFinished() { |
427 return; | 427 return; |
428 } | 428 } |
429 | 429 |
430 } // namespace | 430 } // namespace |
431 | 431 |
432 scoped_ptr<EventExecutor> EventExecutor::Create( | 432 scoped_ptr<EventExecutor> EventExecutor::Create(MessageLoop* message_loop, |
433 MessageLoop* message_loop, Capturer* capturer) { | 433 base::MessageLoopProxy* ui_loop, |
| 434 Capturer* capturer) { |
434 scoped_ptr<EventExecutorLinux> executor( | 435 scoped_ptr<EventExecutorLinux> executor( |
435 new EventExecutorLinux(message_loop)); | 436 new EventExecutorLinux(message_loop)); |
436 if (!executor->Init()) | 437 if (!executor->Init()) |
437 return scoped_ptr<EventExecutor>(NULL); | 438 return scoped_ptr<EventExecutor>(NULL); |
438 return executor.PassAs<EventExecutor>(); | 439 return executor.PassAs<EventExecutor>(); |
439 } | 440 } |
440 | 441 |
441 } // namespace remoting | 442 } // namespace remoting |
OLD | NEW |