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

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

Issue 2464403003: [CUPS] Implement the "Printers" section in chrome://settings. (Closed)
Patch Set: . Created 4 years, 1 month 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 * accountInfo: (string|undefined), 9 * accountInfo: (string|undefined),
10 * childUser: (boolean|undefined), 10 * childUser: (boolean|undefined),
(...skipping 698 matching lines...) Expand 10 before | Expand all | Expand 10 after
709 chrome.send('showManageSSLCertificates'); 709 chrome.send('showManageSSLCertificates');
710 }; 710 };
711 } else { 711 } else {
712 $('certificatesManageButton').onclick = function(event) { 712 $('certificatesManageButton').onclick = function(event) {
713 PageManager.showPageByName('certificates'); 713 PageManager.showPageByName('certificates');
714 chrome.send('coreOptionsUserMetricsAction', 714 chrome.send('coreOptionsUserMetricsAction',
715 ['Options_ManageSSLCertificates']); 715 ['Options_ManageSSLCertificates']);
716 }; 716 };
717 } 717 }
718 718
719 // CUPS Print section (CrOS only).
720 if (cr.isChromeOS) {
721 if (loadTimeData.getBoolean('cupsPrintEnabled')) {
722 $('cups-printers-section').hidden = false;
723 $('cupsPrintersManageButton').onclick = function() {
724 chrome.send('showCupsPrintDevicesPage');
725 };
726 }
727 }
728
719 if (loadTimeData.getBoolean('cloudPrintShowMDnsOptions')) { 729 if (loadTimeData.getBoolean('cloudPrintShowMDnsOptions')) {
720 $('cloudprint-options-mdns').hidden = false; 730 $('cloudprint-options-mdns').hidden = false;
721 $('cloudPrintDevicesPageButton').onclick = function() { 731 $('cloudPrintDevicesPageButton').onclick = function() {
722 chrome.send('showCloudPrintDevicesPage'); 732 chrome.send('showCloudPrintDevicesPage');
723 }; 733 };
724 } 734 }
725 735
726 // Accessibility section (CrOS only). 736 // Accessibility section (CrOS only).
727 if (cr.isChromeOS) { 737 if (cr.isChromeOS) {
728 var updateAccessibilitySettingsSection = function() { 738 var updateAccessibilitySettingsSection = function() {
(...skipping 1691 matching lines...) Expand 10 before | Expand all | Expand 10 after
2420 2430
2421 settings.hidden = !isVisible; 2431 settings.hidden = !isVisible;
2422 }; 2432 };
2423 } 2433 }
2424 2434
2425 // Export 2435 // Export
2426 return { 2436 return {
2427 BrowserOptions: BrowserOptions 2437 BrowserOptions: BrowserOptions
2428 }; 2438 };
2429 }); 2439 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698