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 #ifndef REMOTING_HOST_UI_STRINGS_H_ | 5 #ifndef REMOTING_HOST_UI_STRINGS_H_ |
6 #define REMOTING_HOST_UI_STRINGS_H_ | 6 #define REMOTING_HOST_UI_STRINGS_H_ |
7 | 7 |
8 #include "base/string16.h" | 8 #include "base/string16.h" |
9 | 9 |
10 // This struct contains localized strings to be displayed in host dialogs. | 10 // This struct contains localized strings to be displayed in host dialogs. |
11 // For the web-app, these are loaded from the appropriate messages.json | 11 // For the web-app, these are loaded from the appropriate messages.json |
12 // file when the plugin is created. For remoting_simple_host, they are | 12 // file when the plugin is created. For remoting_simple_host, they are |
13 // left set to the default (English) values. | 13 // left set to the default (English) values. |
14 // | 14 // |
15 // Since we don't anticipate having a significant host-side UI presented | 15 // Since we don't anticipate having a significant host-side UI presented |
16 // in this way, a namespace containing all available strings should be | 16 // in this way, a namespace containing all available strings should be |
17 // a reasonable way to implement this. | 17 // a reasonable way to implement this. |
18 | 18 |
19 namespace remoting { | 19 namespace remoting { |
20 | 20 |
21 struct UiStrings { | 21 struct UiStrings { |
22 public: | |
Lambros
2013/01/16 02:30:47
Do we normally add public: at the top of struct?
alexeypa (please no reviews)
2013/01/16 16:55:35
Done.
| |
22 UiStrings(); | 23 UiStrings(); |
23 ~UiStrings(); | 24 ~UiStrings(); |
24 | 25 |
25 // The direction (left-to-right or right-to-left) for the current language. | 26 // The direction (left-to-right or right-to-left) for the current language. |
26 enum Direction { RTL, LTR }; | 27 enum Direction { RTL, LTR }; |
27 Direction direction; | 28 Direction direction; |
28 | 29 |
29 // The product name (Chromoting or Chrome Remote Desktop). | 30 // The product name (Chromoting or Chrome Remote Desktop). |
30 string16 product_name; | 31 string16 product_name; |
31 | 32 |
32 // The message in the disconnect dialog. | 33 // The message in the disconnect dialog. |
33 string16 disconnect_message; | 34 string16 disconnect_message; |
34 | 35 |
35 // The label on the disconnect dialog button, without the keyboard shortcut. | 36 // The label on the disconnect dialog button, without the keyboard shortcut. |
36 string16 disconnect_button_text; | 37 string16 disconnect_button_text; |
37 | 38 |
38 // The confirmation prompt displayed by the continue window. | 39 // The confirmation prompt displayed by the continue window. |
39 string16 continue_prompt; | 40 string16 continue_prompt; |
40 | 41 |
41 // The label on the 'Continue' button of the continue window. | 42 // The label on the 'Continue' button of the continue window. |
42 string16 continue_button_text; | 43 string16 continue_button_text; |
43 | 44 |
44 // The label on the 'Stop Sharing' button of the continue window. | 45 // The label on the 'Stop Sharing' button of the continue window. |
45 string16 stop_sharing_button_text; | 46 string16 stop_sharing_button_text; |
46 }; | 47 }; |
47 | 48 |
48 } | 49 } |
49 | 50 |
50 #endif // REMOTING_HOST_UI_STRINGS_H_ | 51 #endif // REMOTING_HOST_UI_STRINGS_H_ |
OLD | NEW |