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

Side by Side Diff: chrome/browser/resources/options/browser_options.js

Issue 566063002: Compile chrome://settings, part 8: the final battle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@H_options_errors_6
Patch Set: Created 6 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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 cr.exportPath('options'); 5 cr.exportPath('options');
6 6
7 /** 7 /**
8 * @typedef {{actionLinkText: (string|undefined), 8 * @typedef {{actionLinkText: (string|undefined),
9 * hasError: (boolean|undefined), 9 * hasError: (boolean|undefined),
10 * hasUnrecoverableError: (boolean|undefined), 10 * hasUnrecoverableError: (boolean|undefined),
11 * managed: (boolean|undefined), 11 * managed: (boolean|undefined),
12 * setupCompleted: (boolean|undefined), 12 * setupCompleted: (boolean|undefined),
13 * setupInProgress: (boolean|undefined), 13 * setupInProgress: (boolean|undefined),
14 * signedIn: (boolean|undefined), 14 * signedIn: (boolean|undefined),
15 * signinAllowed: (boolean|undefined),
16 * signinAllowed: boolean, 15 * signinAllowed: boolean,
17 * signoutAllowed: (boolean|undefined), 16 * signoutAllowed: (boolean|undefined),
18 * statusText: (string|undefined), 17 * statusText: (string|undefined),
19 * syncSystemEnabled: (boolean|undefined)}} 18 * syncSystemEnabled: (boolean|undefined)}}
20 * @see chrome/browser/ui/webui/options/browser_options_handler.cc 19 * @see chrome/browser/ui/webui/options/browser_options_handler.cc
21 */ 20 */
22 options.SyncStatus; 21 options.SyncStatus;
23 22
24 cr.define('options', function() { 23 cr.define('options', function() {
25 var OptionsPage = options.OptionsPage; 24 var OptionsPage = options.OptionsPage;
(...skipping 1719 matching lines...) Expand 10 before | Expand all | Expand 10 after
1745 div.innerHTML = docFrag.firstChild.innerHTML; 1744 div.innerHTML = docFrag.firstChild.innerHTML;
1746 1745
1747 // Wire up the button to disable the right extension. 1746 // Wire up the button to disable the right extension.
1748 var button = div.nextElementSibling; 1747 var button = div.nextElementSibling;
1749 button.dataset.extensionId = extensionId; 1748 button.dataset.extensionId = extensionId;
1750 }, 1749 },
1751 1750
1752 /** 1751 /**
1753 * Toggles the warning boxes that show which extension is controlling 1752 * Toggles the warning boxes that show which extension is controlling
1754 * various settings of Chrome. 1753 * various settings of Chrome.
1755 * @param {object} details A dictionary of ID+name pairs for each of the 1754 * @param {{searchEngine: {id: string, name: string},
1756 * settings controlled by an extension. 1755 * homePage: {id: string, name: string},
1756 * startUpPage: {id: string, name: string},
1757 * newTabPage: {id: string, name: string},
1758 * proxy: {id: string, name: string}}} details A dictionary of
Dan Beam 2014/09/12 23:36:12 @typedef for {id: string, name: string}?
Vitaly Pavlenko 2014/09/13 00:02:36 Done.
1759 * ID+name pairs for each of the settings controlled by an extension.
1757 * @private 1760 * @private
1758 */ 1761 */
1759 toggleExtensionIndicators_: function(details) { 1762 toggleExtensionIndicators_: function(details) {
1760 this.toggleExtensionControlledBox_('search-section-content', 1763 this.toggleExtensionControlledBox_('search-section-content',
1761 'search-engine-controlled', 1764 'search-engine-controlled',
1762 details.searchEngine.id, 1765 details.searchEngine.id,
1763 details.searchEngine.name); 1766 details.searchEngine.name);
1764 this.toggleExtensionControlledBox_('extension-controlled-container', 1767 this.toggleExtensionControlledBox_('extension-controlled-container',
1765 'homepage-controlled', 1768 'homepage-controlled',
1766 details.homePage.id, 1769 details.homePage.id,
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
2018 } 2021 }
2019 button.textContent = loadTimeData.getString(strId); 2022 button.textContent = loadTimeData.getString(strId);
2020 }; 2023 };
2021 } 2024 }
2022 2025
2023 // Export 2026 // Export
2024 return { 2027 return {
2025 BrowserOptions: BrowserOptions 2028 BrowserOptions: BrowserOptions
2026 }; 2029 };
2027 }); 2030 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698