| 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 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 | |
| 8 | 7 |
| 9 #include <string> | 8 #include <string> |
| 10 #include <vector> | 9 #include <vector> |
| 11 | 10 |
| 12 #include "base/base_export.h" | 11 #include "base/base_export.h" |
| 13 #include "base/basictypes.h" | 12 #include "base/basictypes.h" |
| 14 | 13 |
| 15 namespace base { | 14 namespace base { |
| 16 namespace win { | 15 namespace win { |
| 17 namespace i18n { | 16 namespace i18n { |
| 18 | 17 |
| 19 // Adds to |languages| the list of user preferred UI languages from MUI, if | 18 // Adds to |languages| the list of user preferred UI languages from MUI, if |
| 20 // available, falling-back on the user default UI language otherwise. Returns | 19 // available, falling-back on the user default UI language otherwise. Returns |
| 21 // true if at least one language is added. | 20 // true if at least one language is added. |
| 22 BASE_EXPORT bool GetUserPreferredUILanguageList( | 21 BASE_EXPORT bool GetUserPreferredUILanguageList( |
| 23 std::vector<std::wstring>* languages); | 22 std::vector<std::wstring>* languages); |
| 24 | 23 |
| 25 // Adds to |languages| the list of thread, process, user, and system preferred | 24 // Adds to |languages| the list of thread, process, user, and system preferred |
| 26 // UI languages from MUI, if available, falling-back on the user default UI | 25 // UI languages from MUI, if available, falling-back on the user default UI |
| 27 // language otherwise. Returns true if at least one language is added. | 26 // language otherwise. Returns true if at least one language is added. |
| 28 BASE_EXPORT bool GetThreadPreferredUILanguageList( | 27 BASE_EXPORT bool GetThreadPreferredUILanguageList( |
| 29 std::vector<std::wstring>* languages); | 28 std::vector<std::wstring>* languages); |
| 30 | 29 |
| 31 } // namespace i18n | 30 } // namespace i18n |
| 32 } // namespace win | 31 } // namespace win |
| 33 } // namespace base | 32 } // namespace base |
| 34 | 33 |
| 35 #endif // BASE_WIN_I18N_H_ | 34 #endif // BASE_WIN_I18N_H_ |
| OLD | NEW |