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

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

Issue 2475813002: Enable Native CUPS printing on Chrome OS. (Closed)
Patch Set: rebase Created 3 years, 8 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 * accountInfo: (string|undefined), 9 * accountInfo: (string|undefined),
10 * childUser: (boolean|undefined), 10 * childUser: (boolean|undefined),
(...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after
717 } else { 717 } else {
718 $('certificatesManageButton').onclick = function(event) { 718 $('certificatesManageButton').onclick = function(event) {
719 PageManager.showPageByName('certificates'); 719 PageManager.showPageByName('certificates');
720 chrome.send('coreOptionsUserMetricsAction', 720 chrome.send('coreOptionsUserMetricsAction',
721 ['Options_ManageSSLCertificates']); 721 ['Options_ManageSSLCertificates']);
722 }; 722 };
723 } 723 }
724 724
725 // CUPS Print section (CrOS only). 725 // CUPS Print section (CrOS only).
726 if (cr.isChromeOS) { 726 if (cr.isChromeOS) {
727 if (loadTimeData.getBoolean('cupsPrintEnabled')) { 727 if (!loadTimeData.getBoolean('cupsPrintDisabled')) {
728 $('cups-printers-section').hidden = false; 728 $('cups-printers-section').hidden = false;
729 $('cupsPrintersManageButton').onclick = function() { 729 $('cupsPrintersManageButton').onclick = function() {
730 chrome.send('showCupsPrintDevicesPage'); 730 chrome.send('showCupsPrintDevicesPage');
731 }; 731 };
732 } 732 }
733 } 733 }
734 734
735 if (loadTimeData.getBoolean('cloudPrintShowMDnsOptions')) { 735 if (loadTimeData.getBoolean('cloudPrintShowMDnsOptions')) {
736 $('cloudprint-options-mdns').hidden = false; 736 $('cloudprint-options-mdns').hidden = false;
737 $('cloudPrintDevicesPageButton').onclick = function() { 737 $('cloudPrintDevicesPageButton').onclick = function() {
(...skipping 1744 matching lines...) Expand 10 before | Expand all | Expand 10 after
2482 2482
2483 settings.hidden = !isVisible; 2483 settings.hidden = !isVisible;
2484 }; 2484 };
2485 } 2485 }
2486 2486
2487 // Export 2487 // Export
2488 return { 2488 return {
2489 BrowserOptions: BrowserOptions 2489 BrowserOptions: BrowserOptions
2490 }; 2490 };
2491 }); 2491 });
OLDNEW
« no previous file with comments | « chrome/browser/flag_descriptions.cc ('k') | chrome/browser/ui/webui/options/browser_options_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698