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

Unified Diff: remoting/host/ui_strings.h

Issue 7635012: Host process i18n and Linux implementation. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change UIStrings to UiStrings. 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 side-by-side diff with in-line comments
Download patch
Index: remoting/host/ui_strings.h
diff --git a/remoting/host/ui_strings.h b/remoting/host/ui_strings.h
new file mode 100644
index 0000000000000000000000000000000000000000..851f96ac7a2738d9839fe2d546bde6f04ebf8689
--- /dev/null
+++ b/remoting/host/ui_strings.h
@@ -0,0 +1,53 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef REMOTING_UI_STRINGS_H_
Sergey Ulanov 2011/08/13 01:11:36 REMOTING_HOST_UI_STRINGS_H_
Jamie 2011/08/13 01:34:03 Done.
+#define REMOTING_UI_STRINGS_H_
+
+#include <string>
+
+// This struct contains localized strings to be displayed in host dialogs.
+// For the web-app, these are loaded from the appropriate messages.json
+// file when the plugin is created. For remoting_simple_host, they are
+// left set to the default (English) values.
+//
+// Since we don't anticipate having a significant host-side UI presented
+// in this way, a namespace containing all available strings should be
+// a reasonable way to implement this.
+
+namespace remoting {
+
+struct UiStrings {
+ UiStrings();
+ ~UiStrings();
+
+ // The direction (left-to-right or right-to-left) for the current language.
+ enum Direction { RTL, LTR };
Sergey Ulanov 2011/08/13 01:11:36 nit: each value on a separate line.
Jamie 2011/08/13 01:34:03 I don't see anything about this in the style guide
+ Direction direction;
+
+ // The product name (Chromoting or Chrome Remote Desktop).
+ std::string productName;
Sergey Ulanov 2011/08/13 01:11:36 product_name? same for the other methods.
Jamie 2011/08/13 01:34:03 Done.
+
+ // The message in the disconnect dialog.
+ std::string disconnectMessage;
+
+ // The label on the disconnect dialog button, without the keyboard shortcut.
+ std::string disconnectButtonText;
+
+ // The keyboard shortcut for disconnecting clients.
+ std::string disconnectButtonShortcut;
+
+ // The confirmation prompt displayed by the continue window.
+ std::string continuePrompt;
+
+ // The label on the 'Continue' button of the continue window.
+ std::string continueButtonText;
+
+ // The label on the 'Stop Sharing' button of the continue window.
+ std::string stopSharingButtonText;
+};
+
+}
+
+#endif // REMOTING_UI_STRINGS_H_

Powered by Google App Engine
This is Rietveld 408576698