OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_L10N_UTIL_H_ | 5 #ifndef CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_L10N_UTIL_H_ |
6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_L10N_UTIL_H_ | 6 #define CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_L10N_UTIL_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
48 // followed by a divider and locale-specific keyboard layouts, if any. The list | 48 // followed by a divider and locale-specific keyboard layouts, if any. The list |
49 // will also always contain the US keyboard layout. If |selected| matches the ID | 49 // will also always contain the US keyboard layout. If |selected| matches the ID |
50 // of any entry in the resulting list, that entry will be marked as selected. | 50 // of any entry in the resulting list, that entry will be marked as selected. |
51 // In addition to returning the list of keyboard layouts, this function also | 51 // In addition to returning the list of keyboard layouts, this function also |
52 // activates them so that they can be selected by the user (e.g. by cycling | 52 // activates them so that they can be selected by the user (e.g. by cycling |
53 // through keyboard layouts via keyboard shortcuts). | 53 // through keyboard layouts via keyboard shortcuts). |
54 scoped_ptr<base::ListValue> GetLoginKeyboardLayouts( | 54 scoped_ptr<base::ListValue> GetLoginKeyboardLayouts( |
55 const std::string& locale, | 55 const std::string& locale, |
56 const std::string& selected); | 56 const std::string& selected); |
57 | 57 |
| 58 // Return a list of keyboard layouts that can be used for |locale|. Each list |
| 59 // entry is a dictionary that contains data such as an ID and a display name. |
| 60 // The list will consist of the device's hardware layouts, followed by a divider |
| 61 // and locale-specific keyboard layouts, if any. All layouts supported for |
| 62 // |locale| are returned, including those that produce non-Latin characters by |
| 63 // default. |
| 64 scoped_ptr<base::ListValue> GetKeyboardLayoutsForLocale( |
| 65 const std::string& locale); |
| 66 |
58 } // namespace chromeos | 67 } // namespace chromeos |
59 | 68 |
60 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_L10N_UTIL_H_ | 69 #endif // CHROME_BROWSER_UI_WEBUI_CHROMEOS_LOGIN_L10N_UTIL_H_ |
OLD | NEW |