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

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

Issue 6955010: Remove the Remoting Host component from Chrome. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove an errant include. Created 9 years, 7 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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.define('options', function() { 5 cr.define('options', function() {
6 6
7 var OptionsPage = options.OptionsPage; 7 var OptionsPage = options.OptionsPage;
8 8
9 // 9 //
10 // AdvancedOptions class 10 // AdvancedOptions class
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 chrome.send('showCloudPrintSetupDialog'); 126 chrome.send('showCloudPrintSetupDialog');
127 } else { 127 } else {
128 chrome.send('disableCloudPrintProxy'); 128 chrome.send('disableCloudPrintProxy');
129 } 129 }
130 }; 130 };
131 $('cloudPrintProxyManageButton').onclick = function(event) { 131 $('cloudPrintProxyManageButton').onclick = function(event) {
132 chrome.send('showCloudPrintManagePage'); 132 chrome.send('showCloudPrintManagePage');
133 }; 133 };
134 } 134 }
135 135
136 if ($('remotingSetupButton')) {
137 $('remotingSetupButton').onclick = function(event) {
138 chrome.send('showRemotingSetupDialog');
139 }
140 $('remotingStopButton').onclick = function(event) {
141 chrome.send('disableRemoting');
142 }
143 }
144 } 136 }
145 }; 137 };
146 138
147 // 139 //
148 // Chrome callbacks 140 // Chrome callbacks
149 // 141 //
150 142
151 // Set the checked state of the metrics reporting checkbox. 143 // Set the checked state of the metrics reporting checkbox.
152 AdvancedOptions.SetMetricsReportingCheckboxState = function( 144 AdvancedOptions.SetMetricsReportingCheckboxState = function(
153 checked, disabled) { 145 checked, disabled) {
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
263 }; 255 };
264 256
265 AdvancedOptions.RemoveCloudPrintProxySection = function() { 257 AdvancedOptions.RemoveCloudPrintProxySection = function() {
266 if (!cr.isChromeOS) { 258 if (!cr.isChromeOS) {
267 var proxySectionElm = $('cloud-print-proxy-section'); 259 var proxySectionElm = $('cloud-print-proxy-section');
268 if (proxySectionElm) 260 if (proxySectionElm)
269 proxySectionElm.parentNode.removeChild(proxySectionElm); 261 proxySectionElm.parentNode.removeChild(proxySectionElm);
270 } 262 }
271 }; 263 };
272 264
273 AdvancedOptions.SetRemotingStatus = function(enabled, configured, status) {
274 if (configured) {
275 $('remotingSetupButton').style.display = 'none';
276 $('remotingStopButton').style.display = 'inline';
277 } else {
278 $('remotingSetupButton').style.display = 'inline';
279 $('remotingStopButton').style.display = 'none';
280 }
281
282 $('remotingSetupButton').disabled = !enabled;
283 $('remotingStopButton').disabled = !enabled;
284 if (!enabled) {
285 $('remotingSetupButton').style.display = 'none';
286 $('remotingStopButton').style.display = 'none';
287 }
288
289 $('remotingStatus').textContent = status;
290 };
291
292 AdvancedOptions.RemoveRemotingSection = function() {
293 var proxySectionElm = $('remoting-section');
294 if (proxySectionElm)
295 proxySectionElm.parentNode.removeChild(proxySectionElm);
296 };
297
298 // Export 265 // Export
299 return { 266 return {
300 AdvancedOptions: AdvancedOptions 267 AdvancedOptions: AdvancedOptions
301 }; 268 };
302 269
303 }); 270 });
OLDNEW
« no previous file with comments | « chrome/browser/resources/options/advanced_options.html ('k') | chrome/browser/service/service_process_control.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698