Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(514)

Side by Side Diff: remoting/host/disconnect_window_win.cc

Issue 7613004: Split Chromoting's Disconnect button text into 2 parts: name + hotkeys. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/disconnect_window_linux.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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
OLDNEW
« no previous file with comments | « remoting/host/disconnect_window_linux.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698