| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Use the <code>chrome.languageSettingsPrivate</code> API to get or change | 5 // Use the <code>chrome.languageSettingsPrivate</code> API to get or change |
| 6 // language and input method settings. | 6 // language and input method settings. |
| 7 namespace languageSettingsPrivate { | 7 [use_movable_types=true] namespace languageSettingsPrivate { |
| 8 dictionary Language { | 8 dictionary Language { |
| 9 // The unique code identifying the language. | 9 // The unique code identifying the language. |
| 10 DOMString code; | 10 DOMString code; |
| 11 | 11 |
| 12 // The name of the language, in the current UI language. | 12 // The name of the language, in the current UI language. |
| 13 DOMString displayName; | 13 DOMString displayName; |
| 14 | 14 |
| 15 // The name of the language as it is in its own language. | 15 // The name of the language as it is in its own language. |
| 16 DOMString nativeDisplayName; | 16 DOMString nativeDisplayName; |
| 17 | 17 |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 125 static void onCustomDictionaryChanged( | 125 static void onCustomDictionaryChanged( |
| 126 DOMString[] wordsAdded, DOMString[] wordsRemoved); | 126 DOMString[] wordsAdded, DOMString[] wordsRemoved); |
| 127 | 127 |
| 128 // Called when an input method is added. | 128 // Called when an input method is added. |
| 129 static void onInputMethodAdded(DOMString inputMethodId); | 129 static void onInputMethodAdded(DOMString inputMethodId); |
| 130 | 130 |
| 131 // Called when an input method is removed. | 131 // Called when an input method is removed. |
| 132 static void onInputMethodRemoved(DOMString inputMethodId); | 132 static void onInputMethodRemoved(DOMString inputMethodId); |
| 133 }; | 133 }; |
| 134 }; | 134 }; |
| OLD | NEW |