| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/win/rdp_client_window.h" | 5 #include "remoting/host/win/rdp_client_window.h" |
| 6 | 6 |
| 7 #include <wtsdefs.h> | 7 #include <wtsdefs.h> |
| 8 | 8 |
| 9 #include <list> | 9 #include <list> |
| 10 | 10 |
| 11 #include "base/lazy_instance.h" | 11 #include "base/lazy_instance.h" |
| 12 #include "base/logging.h" | 12 #include "base/logging.h" |
| 13 #include "base/macros.h" |
| 13 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
| 14 #include "base/strings/utf_string_conversions.h" | 15 #include "base/strings/utf_string_conversions.h" |
| 15 #include "base/threading/thread_local.h" | 16 #include "base/threading/thread_local.h" |
| 16 #include "base/win/scoped_bstr.h" | 17 #include "base/win/scoped_bstr.h" |
| 17 | 18 |
| 18 namespace remoting { | 19 namespace remoting { |
| 19 | 20 |
| 20 namespace { | 21 namespace { |
| 21 | 22 |
| 22 // RDP connection disconnect reasons codes that should not be interpreted as | 23 // RDP connection disconnect reasons codes that should not be interpreted as |
| (...skipping 495 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 518 return CallNextHookEx(hook, code, wparam, lparam); | 519 return CallNextHookEx(hook, code, wparam, lparam); |
| 519 | 520 |
| 520 // Close the window once all pending window messages are processed. | 521 // Close the window once all pending window messages are processed. |
| 521 HWND window = reinterpret_cast<HWND>(wparam); | 522 HWND window = reinterpret_cast<HWND>(wparam); |
| 522 LOG(WARNING) << "RDP: closing a window: " << std::hex << window << std::dec; | 523 LOG(WARNING) << "RDP: closing a window: " << std::hex << window << std::dec; |
| 523 ::PostMessage(window, WM_CLOSE, 0, 0); | 524 ::PostMessage(window, WM_CLOSE, 0, 0); |
| 524 return 0; | 525 return 0; |
| 525 } | 526 } |
| 526 | 527 |
| 527 } // namespace remoting | 528 } // namespace remoting |
| OLD | NEW |