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

Side by Side Diff: base/win/i18n.h

Issue 6747014: Base: Last set of files to use BASE_API (for base.dll) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 9 years, 9 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) 2010 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 BASE_WIN_I18N_H_ 5 #ifndef BASE_WIN_I18N_H_
6 #define BASE_WIN_I18N_H_ 6 #define BASE_WIN_I18N_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/base_api.h"
12 #include "base/basictypes.h" 13 #include "base/basictypes.h"
13 14
14 namespace base { 15 namespace base {
15 namespace win { 16 namespace win {
16 namespace i18n { 17 namespace i18n {
17 18
18 // Adds to |languages| the list of user preferred UI languages from MUI, if 19 // Adds to |languages| the list of user preferred UI languages from MUI, if
19 // available, falling-back on the user default UI language otherwise. Returns 20 // available, falling-back on the user default UI language otherwise. Returns
20 // true if at least one language is added. 21 // true if at least one language is added.
21 bool GetUserPreferredUILanguageList(std::vector<std::wstring>* languages); 22 BASE_API bool GetUserPreferredUILanguageList(
23 std::vector<std::wstring>* languages);
22 24
23 // Adds to |languages| the list of thread, process, user, and system preferred 25 // Adds to |languages| the list of thread, process, user, and system preferred
24 // UI languages from MUI, if available, falling-back on the user default UI 26 // UI languages from MUI, if available, falling-back on the user default UI
25 // language otherwise. Returns true if at least one language is added. 27 // language otherwise. Returns true if at least one language is added.
26 bool GetThreadPreferredUILanguageList(std::vector<std::wstring>* languages); 28 BASE_API bool GetThreadPreferredUILanguageList(
29 std::vector<std::wstring>* languages);
27 30
28 } // namespace i18n 31 } // namespace i18n
29 } // namespace win 32 } // namespace win
30 } // namespace base 33 } // namespace base
31 34
32 #endif // BASE_WIN_I18N_H_ 35 #endif // BASE_WIN_I18N_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698