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

Side by Side Diff: chrome/browser/resources/settings/languages_page/languages_types.js

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review Created 3 years, 6 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
OLDNEW
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 /** 5 /**
6 * @fileoverview Closure typedefs for dictionaries and interfaces used by 6 * @fileoverview Closure typedefs for dictionaries and interfaces used by
7 * language settings. 7 * language settings.
8 */ 8 */
9 9
10 /** 10 /**
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
57 * Helper methods for reading and writing language settings. 57 * Helper methods for reading and writing language settings.
58 * @interface 58 * @interface
59 */ 59 */
60 var LanguageHelper = function() {}; 60 var LanguageHelper = function() {};
61 61
62 LanguageHelper.prototype = { 62 LanguageHelper.prototype = {
63 63
64 /** @return {!Promise} */ 64 /** @return {!Promise} */
65 whenReady: assertNotReached, 65 whenReady: assertNotReached,
66 66
67 // <if expr="chromeos or is_win"> 67 // <if expr="chromeos or is_win">
68 /** 68 /**
69 * Sets the prospective UI language to the chosen language. This won't affect 69 * Sets the prospective UI language to the chosen language. This won't affect
70 * the actual UI language until a restart. 70 * the actual UI language until a restart.
71 * @param {string} languageCode 71 * @param {string} languageCode
72 */ 72 */
73 setProspectiveUILanguage: assertNotReached, 73 setProspectiveUILanguage: assertNotReached,
74 74
75 /** 75 /**
76 * True if the prospective UI language has been changed. 76 * True if the prospective UI language has been changed.
77 * @return {boolean} 77 * @return {boolean}
78 */ 78 */
79 requiresRestart: assertNotReached, 79 requiresRestart: assertNotReached,
80 // </if> 80 // </if>
81 81
82 /** 82 /**
83 * @param {string} languageCode 83 * @param {string} languageCode
84 * @return {boolean} 84 * @return {boolean}
85 */ 85 */
86 isLanguageEnabled: assertNotReached, 86 isLanguageEnabled: assertNotReached,
87 87
88 /** 88 /**
89 * Enables the language, making it available for spell check and input. 89 * Enables the language, making it available for spell check and input.
90 * @param {string} languageCode 90 * @param {string} languageCode
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
154 * @return {string} 154 * @return {string}
155 */ 155 */
156 getLanguageCodeWithoutRegion: assertNotReached, 156 getLanguageCodeWithoutRegion: assertNotReached,
157 157
158 /** 158 /**
159 * @param {string} languageCode 159 * @param {string} languageCode
160 * @return {!chrome.languageSettingsPrivate.Language|undefined} 160 * @return {!chrome.languageSettingsPrivate.Language|undefined}
161 */ 161 */
162 getLanguage: assertNotReached, 162 getLanguage: assertNotReached,
163 163
164 // <if expr="chromeos"> 164 // <if expr="chromeos">
165 /** @param {string} id */ 165 /** @param {string} id */
166 addInputMethod: assertNotReached, 166 addInputMethod: assertNotReached,
167 167
168 /** @param {string} id */ 168 /** @param {string} id */
169 removeInputMethod: assertNotReached, 169 removeInputMethod: assertNotReached,
170 170
171 /** @param {string} id */ 171 /** @param {string} id */
172 setCurrentInputMethod: assertNotReached, 172 setCurrentInputMethod: assertNotReached,
173 173
174 /** 174 /**
175 * @param {string} languageCode 175 * @param {string} languageCode
176 * @return {!Array<!chrome.languageSettingsPrivate.InputMethod>} 176 * @return {!Array<!chrome.languageSettingsPrivate.InputMethod>}
177 */ 177 */
178 getInputMethodsForLanguage: assertNotReached, 178 getInputMethodsForLanguage: assertNotReached,
179 179
180 /** 180 /**
181 * @param {!chrome.languageSettingsPrivate.InputMethod} inputMethod 181 * @param {!chrome.languageSettingsPrivate.InputMethod} inputMethod
182 * @return {boolean} 182 * @return {boolean}
183 */ 183 */
184 isComponentIme: assertNotReached, 184 isComponentIme: assertNotReached,
185 185
186 /** @param {string} id Input method ID. */ 186 /** @param {string} id Input method ID. */
187 openInputMethodOptions: assertNotReached, 187 openInputMethodOptions: assertNotReached,
188 // </if> 188 // </if>
189 }; 189 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698