| 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 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 void OnClose(); | 97 void OnClose(); |
| 98 | 98 |
| 99 // Creates the RDP ActiveX control, configures it, and initiates an RDP | 99 // Creates the RDP ActiveX control, configures it, and initiates an RDP |
| 100 // connection to |server_endpoint_|. | 100 // connection to |server_endpoint_|. |
| 101 LRESULT OnCreate(CREATESTRUCT* create_struct); | 101 LRESULT OnCreate(CREATESTRUCT* create_struct); |
| 102 | 102 |
| 103 // Releases the RDP ActiveX control interfaces. | 103 // Releases the RDP ActiveX control interfaces. |
| 104 void OnDestroy(); | 104 void OnDestroy(); |
| 105 | 105 |
| 106 BEGIN_SINK_MAP(RdpClientWindow) | 106 BEGIN_SINK_MAP(RdpClientWindow) |
| 107 SINK_ENTRY_EX(1, __uuidof(mstsc::IMsTscAxEvents), 2, OnConnected) | 107 SINK_ENTRY_EX(1, __uuidof(mstsc::IMsTscAxEvents), 2, |
| 108 SINK_ENTRY_EX(1, __uuidof(mstsc::IMsTscAxEvents), 4, OnDisconnected) | 108 &RdpClientWindow::OnConnected) |
| 109 SINK_ENTRY_EX(1, __uuidof(mstsc::IMsTscAxEvents), 10, OnFatalError) | 109 SINK_ENTRY_EX(1, __uuidof(mstsc::IMsTscAxEvents), 4, |
| 110 SINK_ENTRY_EX(1, __uuidof(mstsc::IMsTscAxEvents), 15, OnConfirmClose) | 110 &RdpClientWindow::OnDisconnected) |
| 111 SINK_ENTRY_EX(1, __uuidof(mstsc::IMsTscAxEvents), 10, |
| 112 &RdpClientWindow::OnFatalError) |
| 113 SINK_ENTRY_EX(1, __uuidof(mstsc::IMsTscAxEvents), 15, |
| 114 &RdpClientWindow::OnConfirmClose) |
| 111 SINK_ENTRY_EX(1, __uuidof(mstsc::IMsTscAxEvents), 18, | 115 SINK_ENTRY_EX(1, __uuidof(mstsc::IMsTscAxEvents), 18, |
| 112 OnAuthenticationWarningDisplayed) | 116 &RdpClientWindow::OnAuthenticationWarningDisplayed) |
| 113 SINK_ENTRY_EX(1, __uuidof(mstsc::IMsTscAxEvents), 19, | 117 SINK_ENTRY_EX(1, __uuidof(mstsc::IMsTscAxEvents), 19, |
| 114 OnAuthenticationWarningDismissed) | 118 &RdpClientWindow::OnAuthenticationWarningDismissed) |
| 115 END_SINK_MAP() | 119 END_SINK_MAP() |
| 116 | 120 |
| 117 // mstsc::IMsTscAxEvents notifications. | 121 // mstsc::IMsTscAxEvents notifications. |
| 118 STDMETHOD(OnAuthenticationWarningDisplayed)(); | 122 STDMETHOD(OnAuthenticationWarningDisplayed)(); |
| 119 STDMETHOD(OnAuthenticationWarningDismissed)(); | 123 STDMETHOD(OnAuthenticationWarningDismissed)(); |
| 120 STDMETHOD(OnConnected)(); | 124 STDMETHOD(OnConnected)(); |
| 121 STDMETHOD(OnDisconnected)(long reason); | 125 STDMETHOD(OnDisconnected)(long reason); |
| 122 STDMETHOD(OnFatalError)(long error_code); | 126 STDMETHOD(OnFatalError)(long error_code); |
| 123 STDMETHOD(OnConfirmClose)(VARIANT_BOOL* allow_close); | 127 STDMETHOD(OnConfirmClose)(VARIANT_BOOL* allow_close); |
| 124 | 128 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 145 base::win::ScopedComPtr<mstsc::IMsRdpClientAdvancedSettings> client_settings_; | 149 base::win::ScopedComPtr<mstsc::IMsRdpClientAdvancedSettings> client_settings_; |
| 146 | 150 |
| 147 // Used to cancel modal dialog boxes shown by the RDP control. | 151 // Used to cancel modal dialog boxes shown by the RDP control. |
| 148 class WindowHook; | 152 class WindowHook; |
| 149 scoped_refptr<WindowHook> window_activate_hook_; | 153 scoped_refptr<WindowHook> window_activate_hook_; |
| 150 }; | 154 }; |
| 151 | 155 |
| 152 } // namespace remoting | 156 } // namespace remoting |
| 153 | 157 |
| 154 #endif // REMOTING_HOST_WIN_RDP_HOST_WINDOW_H_ | 158 #endif // REMOTING_HOST_WIN_RDP_HOST_WINDOW_H_ |
| OLD | NEW |