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 #ifndef REMOTING_HOST_WIN_RDP_HOST_WINDOW_H_ | 5 #ifndef REMOTING_HOST_WIN_RDP_HOST_WINDOW_H_ |
6 #define REMOTING_HOST_WIN_RDP_HOST_WINDOW_H_ | 6 #define REMOTING_HOST_WIN_RDP_HOST_WINDOW_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlcom.h> | 9 #include <atlcom.h> |
10 #include <atlcrack.h> | 10 #include <atlcrack.h> |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 virtual void OnDisconnected() = 0; | 59 virtual void OnDisconnected() = 0; |
60 }; | 60 }; |
61 | 61 |
62 DECLARE_WND_CLASS(L"RdpClientWindow") | 62 DECLARE_WND_CLASS(L"RdpClientWindow") |
63 | 63 |
64 // Specifies the endpoint to connect to and passes the event handler pointer | 64 // Specifies the endpoint to connect to and passes the event handler pointer |
65 // to be notified about connection events. | 65 // to be notified about connection events. |
66 RdpClientWindow(const net::IPEndPoint& server_endpoint, | 66 RdpClientWindow(const net::IPEndPoint& server_endpoint, |
67 const std::string& terminal_id, | 67 const std::string& terminal_id, |
68 EventHandler* event_handler); | 68 EventHandler* event_handler); |
69 ~RdpClientWindow(); | 69 ~RdpClientWindow() override; |
70 | 70 |
71 // Creates the window along with the ActiveX control and initiates the | 71 // Creates the window along with the ActiveX control and initiates the |
72 // connection. |screen_size| specifies resolution of the screen. Returns false | 72 // connection. |screen_size| specifies resolution of the screen. Returns false |
73 // if an error occurs. | 73 // if an error occurs. |
74 bool Connect(const webrtc::DesktopSize& screen_size); | 74 bool Connect(const webrtc::DesktopSize& screen_size); |
75 | 75 |
76 // Initiates shutdown of the connection. The caller must not delete |this| | 76 // Initiates shutdown of the connection. The caller must not delete |this| |
77 // until it receives OnDisconnected() notification. | 77 // until it receives OnDisconnected() notification. |
78 void Disconnect(); | 78 void Disconnect(); |
79 | 79 |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
149 base::win::ScopedComPtr<mstsc::IMsRdpClientAdvancedSettings> client_settings_; | 149 base::win::ScopedComPtr<mstsc::IMsRdpClientAdvancedSettings> client_settings_; |
150 | 150 |
151 // Used to cancel modal dialog boxes shown by the RDP control. | 151 // Used to cancel modal dialog boxes shown by the RDP control. |
152 class WindowHook; | 152 class WindowHook; |
153 scoped_refptr<WindowHook> window_activate_hook_; | 153 scoped_refptr<WindowHook> window_activate_hook_; |
154 }; | 154 }; |
155 | 155 |
156 } // namespace remoting | 156 } // namespace remoting |
157 | 157 |
158 #endif // REMOTING_HOST_WIN_RDP_HOST_WINDOW_H_ | 158 #endif // REMOTING_HOST_WIN_RDP_HOST_WINDOW_H_ |
OLD | NEW |