Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(49)

Side by Side Diff: remoting/host/event_executor_mac.cc

Issue 4726003: Implement InputStub in the host side for chromoting (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: backup Created 10 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_mac.h" 5 #include "remoting/host/event_executor_mac.h"
6 6
7 #include "base/message_loop_proxy.h"
8 #include "base/task.h"
7 #include "remoting/proto/internal.pb.h" 9 #include "remoting/proto/internal.pb.h"
8 #include "remoting/protocol/message_decoder.h" 10 #include "remoting/protocol/message_decoder.h"
9 11
10 namespace remoting { 12 namespace remoting {
11 13
12 EventExecutorMac::EventExecutorMac(Capturer* capturer) 14 EventExecutorMac::EventExecutorMac(
13 : EventExecutor(capturer) { 15 scoped_refptr<base::MessageLoopProxy> message_loop, Capturer* capturer)
16 : message_loop_(message_loop),
17 capturer_(capturer) {
14 } 18 }
15 19
16 EventExecutorMac::~EventExecutorMac() { 20 EventExecutorMac::~EventExecutorMac() {
17 } 21 }
18 22
19 void EventExecutorMac::HandleInputEvent(ChromotingClientMessage* message) { 23 void EventExecutorMac::InjectKeyEvent(const KeyEvent* event, Task* done) {
20 delete message; 24 done->Run();
25 delete done;
26 }
27
28 void EventExecutorMac::InjectMouseEvent(const MouseEvent* event, Task* done) {
29 done->Run();
30 delete done;
21 } 31 }
22 32
23 } // namespace remoting 33 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698