summaryrefslogtreecommitdiffstats
path: root/remoting/host/host_window.h
diff options
context:
space:
mode:
authoralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-30 17:16:07 +0000
committeralexeypa@chromium.org <alexeypa@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-07-30 17:16:07 +0000
commit4534fb9f24c7e2f20e14da858ad3a0f398847323 (patch)
tree5b6e2e9a70d15e331a486e2f2a1e8abc950efbda /remoting/host/host_window.h
parentc4bc9eb947207d668dcb2ce85c2603f4281161e9 (diff)
downloadchromium_src-4534fb9f24c7e2f20e14da858ad3a0f398847323.zip
chromium_src-4534fb9f24c7e2f20e14da858ad3a0f398847323.tar.gz
chromium_src-4534fb9f24c7e2f20e14da858ad3a0f398847323.tar.bz2
Localized Chromoting Host on Mac and Linux.
Re-landing r213997. TBR because this is a trivial, mechanical fix. This CL implements generation of localizable strings from remoting_strings.grd file. Depending on the platform the localized resources are placed to: - Mac: localized .string and .pak resources are added to each application bundle under 'Resources/<locale>.lproj' - Linux: localized .pak files are placed under 'remoting_locales' directory next to the binary locading them. - Windows: .rc resources are generated from .jinja2 templates and embedded into a relevant binary. Chrome l10n and i18n APIs are used to retrieve the current locale and RTL flag (Mac & Linux). The it2me plugin sets the locale to match the locale of the browser. Collateral changes: - UiString is not used any more. - Increased width of disconnect window message on Mac. - The host plugin version is correctly reported on Mac. - Dialogs use RTL templates in case of RTL languages. No more updating the templates dynamically (Windows). - remoting_unittests.ResourcesTest now runs on Mac, LInux and Windows. - '@' is used for variable substitutions by remoting_localize.py. - HOST_PLUGIN_MIME_TYPE is defined in one place now. - Deleted unused commong_resources.grd. Mac installer and preference panel are not localized yet. TBR=garykac@chromium.org BUG=155204 Review URL: https://codereview.chromium.org/20985002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@214379 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'remoting/host/host_window.h')
-rw-r--r--remoting/host/host_window.h7
1 files changed, 2 insertions, 5 deletions
diff --git a/remoting/host/host_window.h b/remoting/host/host_window.h
index 243f9ba..d193686 100644
--- a/remoting/host/host_window.h
+++ b/remoting/host/host_window.h
@@ -14,19 +14,16 @@
namespace remoting {
class ClientSessionControl;
-struct UiStrings;
class HostWindow : public base::NonThreadSafe {
public:
virtual ~HostWindow() {}
// Creates a platform-specific instance of the continue window.
- static scoped_ptr<HostWindow> CreateContinueWindow(
- const UiStrings& ui_strings);
+ static scoped_ptr<HostWindow> CreateContinueWindow();
// Creates a platform-specific instance of the disconnect window.
- static scoped_ptr<HostWindow> CreateDisconnectWindow(
- const UiStrings& ui_strings);
+ static scoped_ptr<HostWindow> CreateDisconnectWindow();
// Starts the UI state machine. |client_session_control| will be used to
// notify the caller about the local user's actions.