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

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: 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/task.h"
7 #include "remoting/proto/internal.pb.h" 8 #include "remoting/proto/internal.pb.h"
8 #include "remoting/protocol/message_decoder.h" 9 #include "remoting/protocol/message_decoder.h"
9 10
10 namespace remoting { 11 namespace remoting {
11 12
12 EventExecutorMac::EventExecutorMac(Capturer* capturer) 13 EventExecutorMac::EventExecutorMac(Capturer* capturer)
13 : EventExecutor(capturer) { 14 : capturer_(capturer) {
14 } 15 }
15 16
16 EventExecutorMac::~EventExecutorMac() { 17 EventExecutorMac::~EventExecutorMac() {
17 } 18 }
18 19
19 void EventExecutorMac::HandleInputEvent(ChromotingClientMessage* message) { 20 void EventExecutorMac::InjectKeyEvent(const KeyEvent* event, Task* done) {
20 delete message; 21 done->Run();
22 delete done;
23 }
24
25 void EventExecutorMac::InjectMouseEvent(const MouseEvent* event, Task* done) {
26 done->Run();
27 delete done;
21 } 28 }
22 29
23 } // namespace remoting 30 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698