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

Side by Side Diff: chrome/installer/util/l10n_string_util.h

Issue 16421004: Use a direct include of strings headers in chrome/installer/, part 2. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 // This file contains helper functions for getting strings that are included in 5 // This file contains helper functions for getting strings that are included in
6 // our DLL for all languages (i.e., does not come from our language DLL). 6 // our DLL for all languages (i.e., does not come from our language DLL).
7 // 7 //
8 // These resource strings are organized such that we can get a localized string 8 // These resource strings are organized such that we can get a localized string
9 // by taking the base resource ID and adding a language offset. For example, 9 // by taking the base resource ID and adding a language offset. For example,
10 // to get the resource id for the localized product name in en-US, we take 10 // to get the resource id for the localized product name in en-US, we take
11 // IDS_PRODUCT_NAME_BASE + IDS_L10N_OFFSET_EN_US. 11 // IDS_PRODUCT_NAME_BASE + IDS_L10N_OFFSET_EN_US.
12 12
13 #ifndef CHROME_INSTALLER_UTIL_L10N_STRING_UTIL_H_ 13 #ifndef CHROME_INSTALLER_UTIL_L10N_STRING_UTIL_H_
14 #define CHROME_INSTALLER_UTIL_L10N_STRING_UTIL_H_ 14 #define CHROME_INSTALLER_UTIL_L10N_STRING_UTIL_H_
15 15
16 #include <string> 16 #include <string>
17 17
18 #include "base/string16.h" 18 #include "base/strings/string16.h"
19 19
20 namespace installer { 20 namespace installer {
21 21
22 class TranslationDelegate { 22 class TranslationDelegate {
23 public: 23 public:
24 virtual ~TranslationDelegate(); 24 virtual ~TranslationDelegate();
25 virtual string16 GetLocalizedString(int installer_string_id) = 0; 25 virtual string16 GetLocalizedString(int installer_string_id) = 0;
26 }; 26 };
27 27
28 // If we're in Chrome, the installer strings aren't in the binary, but are in 28 // If we're in Chrome, the installer strings aren't in the binary, but are in
(...skipping 10 matching lines...) Expand all
39 // Given the system language, return a url that points to the localized eula. 39 // Given the system language, return a url that points to the localized eula.
40 // The empty string is returned on failure. 40 // The empty string is returned on failure.
41 std::wstring GetLocalizedEulaResource(); 41 std::wstring GetLocalizedEulaResource();
42 42
43 // Returns the language identifier of the translation currently in use. 43 // Returns the language identifier of the translation currently in use.
44 std::wstring GetCurrentTranslation(); 44 std::wstring GetCurrentTranslation();
45 45
46 } // namespace installer. 46 } // namespace installer.
47 47
48 #endif // CHROME_INSTALLER_UTIL_L10N_STRING_UTIL_H_ 48 #endif // CHROME_INSTALLER_UTIL_L10N_STRING_UTIL_H_
OLDNEW
« no previous file with comments | « chrome/installer/util/installer_util_test_common.cc ('k') | chrome/installer/util/l10n_string_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698