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" |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 switch (msg) { | 82 switch (msg) { |
83 case WM_INITDIALOG: | 83 case WM_INITDIALOG: |
84 { | 84 { |
85 // Update UI string placeholders with actual strings. | 85 // Update UI string placeholders with actual strings. |
86 std::wstring w_title = UTF8ToWide(kTitle); | 86 std::wstring w_title = UTF8ToWide(kTitle); |
87 SetWindowText(hwnd, w_title.c_str()); | 87 SetWindowText(hwnd, w_title.c_str()); |
88 | 88 |
89 HWND hwndButton = GetDlgItem(hwnd, IDC_DISCONNECT); | 89 HWND hwndButton = GetDlgItem(hwnd, IDC_DISCONNECT); |
90 CHECK(hwndButton); | 90 CHECK(hwndButton); |
91 std::wstring w_button = UTF8ToWide(kDisconnectButton); | 91 std::wstring w_button = UTF8ToWide(kDisconnectButton); |
| 92 w_button += UTF8ToWide(kDisconnectKeysWin); |
92 SetWindowText(hwndButton, w_button.c_str()); | 93 SetWindowText(hwndButton, w_button.c_str()); |
93 | 94 |
94 HWND hwndSharingWith = GetDlgItem(hwnd, IDC_DISCONNECT_SHARINGWITH); | 95 HWND hwndSharingWith = GetDlgItem(hwnd, IDC_DISCONNECT_SHARINGWITH); |
95 CHECK(hwndSharingWith); | 96 CHECK(hwndSharingWith); |
96 std::wstring w_sharing = UTF8ToWide(kSharingWith); | 97 std::wstring w_sharing = UTF8ToWide(kSharingWith); |
97 SetWindowText(hwndSharingWith, w_sharing.c_str()); | 98 SetWindowText(hwndSharingWith, w_sharing.c_str()); |
98 | 99 |
99 // Update username in dialog. | 100 // Update username in dialog. |
100 HWND hwndUsername = GetDlgItem(hwnd, IDC_DISCONNECT_USERNAME); | 101 HWND hwndUsername = GetDlgItem(hwnd, IDC_DISCONNECT_USERNAME); |
101 CHECK(hwndUsername); | 102 CHECK(hwndUsername); |
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
150 ::EndDialog(hwnd_, 0); | 151 ::EndDialog(hwnd_, 0); |
151 hwnd_ = NULL; | 152 hwnd_ = NULL; |
152 } | 153 } |
153 } | 154 } |
154 | 155 |
155 DisconnectWindow* DisconnectWindow::Create() { | 156 DisconnectWindow* DisconnectWindow::Create() { |
156 return new DisconnectWindowWin; | 157 return new DisconnectWindowWin; |
157 } | 158 } |
158 | 159 |
159 } // namespace remoting | 160 } // namespace remoting |
OLD | NEW |