| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 utility functions for locale change. | 5 // This file contains utility functions for locale change. |
| 6 | 6 |
| 7 #ifndef CHROME_BROWSER_CHROMEOS_BASE_LOCALE_UTIL_H_ | 7 #ifndef CHROME_BROWSER_CHROMEOS_BASE_LOCALE_UTIL_H_ |
| 8 #define CHROME_BROWSER_CHROMEOS_BASE_LOCALE_UTIL_H_ | 8 #define CHROME_BROWSER_CHROMEOS_BASE_LOCALE_UTIL_H_ |
| 9 | 9 |
| 10 #include <memory> |
| 10 #include <string> | 11 #include <string> |
| 11 | 12 |
| 12 #include "base/callback_forward.h" | 13 #include "base/callback_forward.h" |
| 13 #include "base/memory/scoped_ptr.h" | |
| 14 | 14 |
| 15 class Profile; | 15 class Profile; |
| 16 | 16 |
| 17 namespace chromeos { | 17 namespace chromeos { |
| 18 namespace locale_util { | 18 namespace locale_util { |
| 19 | 19 |
| 20 struct LanguageSwitchResult { | 20 struct LanguageSwitchResult { |
| 21 LanguageSwitchResult(const std::string& requested_locale, | 21 LanguageSwitchResult(const std::string& requested_locale, |
| 22 const std::string& loaded_locale, | 22 const std::string& loaded_locale, |
| 23 bool success); | 23 bool success); |
| (...skipping 24 matching lines...) Expand all Loading... |
| 48 void SwitchLanguage(const std::string& locale, | 48 void SwitchLanguage(const std::string& locale, |
| 49 const bool enable_locale_keyboard_layouts, | 49 const bool enable_locale_keyboard_layouts, |
| 50 const bool login_layouts_only, | 50 const bool login_layouts_only, |
| 51 const SwitchLanguageCallback& callback, | 51 const SwitchLanguageCallback& callback, |
| 52 Profile* profile); | 52 Profile* profile); |
| 53 | 53 |
| 54 } // namespace locale_util | 54 } // namespace locale_util |
| 55 } // namespace chromeos | 55 } // namespace chromeos |
| 56 | 56 |
| 57 #endif // CHROME_BROWSER_CHROMEOS_BASE_LOCALE_UTIL_H_ | 57 #endif // CHROME_BROWSER_CHROMEOS_BASE_LOCALE_UTIL_H_ |
| OLD | NEW |