| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/disconnect_window.h" | 5 #include "remoting/host/disconnect_window.h" |
| 6 | 6 |
| 7 #include <windows.h> | 7 #include <windows.h> |
| 8 | 8 |
| 9 #include "base/compiler_specific.h" | 9 #include "base/compiler_specific.h" |
| 10 #include "base/logging.h" | 10 #include "base/logging.h" |
| 11 #include "base/utf_string_conversions.h" | 11 #include "base/utf_string_conversions.h" |
| 12 #include "remoting/host/chromoting_host.h" | 12 #include "remoting/host/chromoting_host.h" |
| 13 #include "remoting/host/host_plugin_resource.h" | 13 // TODO(wez): The DisconnectWindow isn't plugin-specific, so shouldn't have |
| 14 // a dependency on the plugin's resource header. |
| 15 #include "remoting/host/plugin/host_plugin_resource.h" |
| 14 | 16 |
| 15 // HMODULE from DllMain/WinMain. This is needed to find our dialog resource. | 17 // HMODULE from DllMain/WinMain. This is needed to find our dialog resource. |
| 16 // This is defined in: | 18 // This is defined in: |
| 17 // Plugin: host_plugin.cc | 19 // Plugin: host_plugin.cc |
| 18 // SimpleHost: simple_host_process.cc | 20 // SimpleHost: simple_host_process.cc |
| 19 extern HMODULE g_hModule; | 21 extern HMODULE g_hModule; |
| 20 | 22 |
| 21 namespace { | 23 namespace { |
| 22 | 24 |
| 23 class DisconnectWindowWin : public remoting::DisconnectWindow { | 25 class DisconnectWindowWin : public remoting::DisconnectWindow { |
| (...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 if (hwnd_) { | 136 if (hwnd_) { |
| 135 SendMessage(hwnd_, WM_APP, 0, (LPARAM)key_); | 137 SendMessage(hwnd_, WM_APP, 0, (LPARAM)key_); |
| 136 } | 138 } |
| 137 } | 139 } |
| 138 | 140 |
| 139 } // namespace | 141 } // namespace |
| 140 | 142 |
| 141 remoting::DisconnectWindow* remoting::DisconnectWindow::Create() { | 143 remoting::DisconnectWindow* remoting::DisconnectWindow::Create() { |
| 142 return new DisconnectWindowWin; | 144 return new DisconnectWindowWin; |
| 143 } | 145 } |
| OLD | NEW |