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/session_event_executor_win.h" | 5 #include "remoting/host/session_event_executor_win.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 channel_name, | 61 channel_name, |
62 IPC::Channel::MODE_CLIENT, | 62 IPC::Channel::MODE_CLIENT, |
63 this, | 63 this, |
64 io_message_loop)); | 64 io_message_loop)); |
65 } | 65 } |
66 } | 66 } |
67 | 67 |
68 SessionEventExecutorWin::~SessionEventExecutorWin() { | 68 SessionEventExecutorWin::~SessionEventExecutorWin() { |
69 } | 69 } |
70 | 70 |
71 void SessionEventExecutorWin::OnSessionStarted() { | 71 void SessionEventExecutorWin::OnSessionStarted( |
| 72 scoped_ptr<protocol::ClipboardStub> client_clipboard) { |
72 // TODO(simonmorris): Delegate to the nested executor. | 73 // TODO(simonmorris): Delegate to the nested executor. |
73 } | 74 } |
74 | 75 |
75 void SessionEventExecutorWin::OnSessionFinished() { | 76 void SessionEventExecutorWin::OnSessionFinished() { |
76 // TODO(simonmorris): Delegate to the nested executor. | 77 // TODO(simonmorris): Delegate to the nested executor. |
77 } | 78 } |
78 | 79 |
79 void SessionEventExecutorWin::InjectClipboardEvent( | 80 void SessionEventExecutorWin::InjectClipboardEvent( |
80 const ClipboardEvent& event) { | 81 const ClipboardEvent& event) { |
81 // TODO(simonmorris): Delegate to the nested executor. | 82 // TODO(simonmorris): Delegate to the nested executor. |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
135 // one. | 136 // one. |
136 scoped_ptr<DesktopWin> input_desktop = DesktopWin::GetInputDesktop(); | 137 scoped_ptr<DesktopWin> input_desktop = DesktopWin::GetInputDesktop(); |
137 if (input_desktop.get() != NULL && !desktop_.IsSame(*input_desktop)) { | 138 if (input_desktop.get() != NULL && !desktop_.IsSame(*input_desktop)) { |
138 // If SetThreadDesktop() fails, the thread is still assigned a desktop. | 139 // If SetThreadDesktop() fails, the thread is still assigned a desktop. |
139 // So we can continue capture screen bits, just from a diffected desktop. | 140 // So we can continue capture screen bits, just from a diffected desktop. |
140 desktop_.SetThreadDesktop(input_desktop.Pass()); | 141 desktop_.SetThreadDesktop(input_desktop.Pass()); |
141 } | 142 } |
142 } | 143 } |
143 | 144 |
144 } // namespace remoting | 145 } // namespace remoting |
OLD | NEW |