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/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
146 // one. | 146 // one. |
147 scoped_ptr<Desktop> input_desktop = Desktop::GetInputDesktop(); | 147 scoped_ptr<Desktop> input_desktop = Desktop::GetInputDesktop(); |
148 if (input_desktop.get() != NULL && !desktop_.IsSame(*input_desktop)) { | 148 if (input_desktop.get() != NULL && !desktop_.IsSame(*input_desktop)) { |
149 // If SetThreadDesktop() fails, the thread is still assigned a desktop. | 149 // If SetThreadDesktop() fails, the thread is still assigned a desktop. |
150 // So we can continue capture screen bits, just from a diffected desktop. | 150 // So we can continue capture screen bits, just from a diffected desktop. |
151 desktop_.SetThreadDesktop(input_desktop.Pass()); | 151 desktop_.SetThreadDesktop(input_desktop.Pass()); |
152 } | 152 } |
153 } | 153 } |
154 | 154 |
155 } // namespace remoting | 155 } // namespace remoting |
OLD | NEW |