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

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

Issue 7669045: Make ChromotingHost::ui_strings() immutable. (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/ui_strings.h ('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/ui_strings.h" 5 #include "remoting/host/ui_strings.h"
6 6
7 #include "base/utf_string_conversions.h"
8
7 namespace remoting { 9 namespace remoting {
8 10
9 UiStrings::UiStrings() : 11 UiStrings::UiStrings() :
10 direction(LTR), 12 direction(LTR),
11 product_name("Chromoting"), 13 product_name(ASCIIToUTF16("Chromoting")),
12 // The default string doesn't include the user name, so this will be 14 disconnect_message(
13 // missing for remoting_simple_host 15 ASCIIToUTF16("Your desktop is currently being shared with $1.")),
14 disconnect_message("Your desktop is currently being shared."), 16 disconnect_button_text(ASCIIToUTF16("Disconnect")),
15 disconnect_button_text("Disconnect"),
16 // This is the wrong shortcut on Mac OS X, but remoting_simple_host 17 // This is the wrong shortcut on Mac OS X, but remoting_simple_host
17 // doesn't have a bundle (and hence no dialog) on that platform and 18 // doesn't have a bundle (and hence no dialog) on that platform and
18 // the web-app will provide the correct localization for this string. 19 // the web-app will provide the correct localization for this string.
19 disconnect_button_shortcut("Ctrl+Alt+Esc"), 20 disconnect_button_text_plus_shortcut(
20 continue_prompt( 21 ASCIIToUTF16("Disconnect (Ctrl+Alt+Esc)")),
22 continue_prompt(ASCIIToUTF16(
21 "You are currently sharing this machine with another user. " 23 "You are currently sharing this machine with another user. "
22 "Please confirm that you want to continue sharing."), 24 "Please confirm that you want to continue sharing.")),
23 continue_button_text("Continue"), 25 continue_button_text(ASCIIToUTF16("Continue")),
24 stop_sharing_button_text("Stop Sharing") { 26 stop_sharing_button_text(ASCIIToUTF16("Stop Sharing")) {
25 } 27 }
26 28
27 UiStrings::~UiStrings() { } 29 UiStrings::~UiStrings() { }
28 30
29 } 31 }
OLDNEW
« no previous file with comments | « remoting/host/ui_strings.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698