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/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/strings/utf_string_conversions.h" | 14 #include "base/strings/utf_string_conversions.h" |
15 #include "base/threading/thread_local.h" | 15 #include "base/threading/thread_local.h" |
16 #include "base/win/scoped_bstr.h" | 16 #include "base/win/scoped_bstr.h" |
17 | 17 |
18 namespace remoting { | 18 namespace remoting { |
19 | 19 |
20 namespace { | 20 namespace { |
21 | 21 |
22 // RDP connection disconnect reasons codes that should not be interpreted as | 22 // RDP connection disconnect reasons codes that should not be interpreted as |
23 // errors. | 23 // errors. |
(...skipping 478 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 return CallNextHookEx(hook, code, wparam, lparam); | 502 return CallNextHookEx(hook, code, wparam, lparam); |
503 | 503 |
504 // Close the window once all pending window messages are processed. | 504 // Close the window once all pending window messages are processed. |
505 HWND window = reinterpret_cast<HWND>(wparam); | 505 HWND window = reinterpret_cast<HWND>(wparam); |
506 LOG(WARNING) << "RDP: closing a window: " << std::hex << window << std::dec; | 506 LOG(WARNING) << "RDP: closing a window: " << std::hex << window << std::dec; |
507 ::PostMessage(window, WM_CLOSE, 0, 0); | 507 ::PostMessage(window, WM_CLOSE, 0, 0); |
508 return 0; | 508 return 0; |
509 } | 509 } |
510 | 510 |
511 } // namespace remoting | 511 } // namespace remoting |
OLD | NEW |