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

Side by Side Diff: third_party/closure_compiler/interfaces/language_settings_private_interface.js

Issue 2261903002: Fix race condition in MD Settings Languages page causing inconsistent settings (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update histograms Created 4 years, 3 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 was generated by: 5 // This file was generated by:
6 // ./tools/json_schema_compiler/compiler.py. 6 // ./tools/json_schema_compiler/compiler.py.
7 7
8 /** @fileoverview Interface for languageSettingsPrivate that can be overriden. * / 8 /** @fileoverview Interface for languageSettingsPrivate that can be overriden. * /
9 9
10 assertNotReached('Interface file for Closure Compiler should not be executed.'); 10 assertNotReached('Interface file for Closure Compiler should not be executed.');
11 11
12 /** @interface */ 12 /** @interface */
13 function LanguageSettingsPrivate() {} 13 function LanguageSettingsPrivate() {}
14 14
15 LanguageSettingsPrivate.prototype = { 15 LanguageSettingsPrivate.prototype = {
16 /** 16 /**
17 * Gets languages available for translate, spell checking, input and locale. 17 * Gets languages available for translate, spell checking, input and locale.
18 * @param {function(!Array<!chrome.languageSettingsPrivate.Language>):void} 18 * @param {function(!Array<!chrome.languageSettingsPrivate.Language>):void}
19 * callback 19 * callback
20 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method -getLanguageList 20 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method -getLanguageList
21 */ 21 */
22 getLanguageList: assertNotReached, 22 getLanguageList: assertNotReached,
23 23
24 /** 24 /**
25 * Sets the accepted languages, used to decide which languages to translate, 25 * Enables a language, adding it to the Accept-Language list (used to decide
26 * generate the Accept-Language header, etc. 26 * which languages to translate, generate the Accept-Language header, etc.).
27 * @param {!Array<string>} languageCodes 27 * @param {string} languageCode
28 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method -setLanguageList 28 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method -enableLanguage
29 */ 29 */
30 setLanguageList: assertNotReached, 30 enableLanguage: assertNotReached,
31
32 /**
33 * Disables a language, removing it from the Accept-Language list.
34 * @param {string} languageCode
35 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method -disableLanguage
36 */
37 disableLanguage: assertNotReached,
31 38
32 /** 39 /**
33 * Gets the current status of the chosen spell check dictionaries. 40 * Gets the current status of the chosen spell check dictionaries.
34 * @param {function(!Array<!chrome.languageSettingsPrivate.SpellcheckDictionar yStatus>):void} 41 * @param {function(!Array<!chrome.languageSettingsPrivate.SpellcheckDictionar yStatus>):void}
35 * callback 42 * callback
36 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method -getSpellcheckDictionaryStatuses 43 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#method -getSpellcheckDictionaryStatuses
37 */ 44 */
38 getSpellcheckDictionaryStatuses: assertNotReached, 45 getSpellcheckDictionaryStatuses: assertNotReached,
39 46
40 /** 47 /**
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-on InputMethodAdded 120 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-on InputMethodAdded
114 */ 121 */
115 LanguageSettingsPrivate.prototype.onInputMethodAdded; 122 LanguageSettingsPrivate.prototype.onInputMethodAdded;
116 123
117 /** 124 /**
118 * Called when an input method is removed. 125 * Called when an input method is removed.
119 * @type {!ChromeEvent} 126 * @type {!ChromeEvent}
120 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-on InputMethodRemoved 127 * @see https://developer.chrome.com/extensions/languageSettingsPrivate#event-on InputMethodRemoved
121 */ 128 */
122 LanguageSettingsPrivate.prototype.onInputMethodRemoved; 129 LanguageSettingsPrivate.prototype.onInputMethodRemoved;
OLDNEW
« no previous file with comments | « third_party/closure_compiler/externs/language_settings_private.js ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698