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/print_preview/cloud_print_interface.js

Issue 150943006: Show destination offline status in the print preview. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge Created 6 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/data/destination.js » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.define('cloudprint', function() { 5 cr.define('cloudprint', function() {
6 'use strict'; 6 'use strict';
7 7
8 /** 8 /**
9 * API to the Google Cloud Print service. 9 * API to the Google Cloud Print service.
10 * @param {string} baseUrl Base part of the Google Cloud Print service URL 10 * @param {string} baseUrl Base part of the Google Cloud Print service URL
(...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 }, 207 },
208 208
209 /** 209 /**
210 * Sends a Google Cloud Print printer API request. 210 * Sends a Google Cloud Print printer API request.
211 * @param {string} printerId ID of the printer to lookup. 211 * @param {string} printerId ID of the printer to lookup.
212 * @param {!print_preview.Destination.Origin} origin Origin of the printer. 212 * @param {!print_preview.Destination.Origin} origin Origin of the printer.
213 */ 213 */
214 printer: function(printerId, origin) { 214 printer: function(printerId, origin) {
215 var params = [ 215 var params = [
216 new HttpParam('printerid', printerId), 216 new HttpParam('printerid', printerId),
217 new HttpParam('use_cdd', 'true') 217 new HttpParam('use_cdd', 'true'),
218 new HttpParam('printer_connection_status', 'true')
218 ]; 219 ];
219 var cpRequest = 220 var cpRequest =
220 this.buildRequest_('GET', 'printer', params, origin, 221 this.buildRequest_('GET', 'printer', params, origin,
221 this.onPrinterDone_.bind(this, printerId)); 222 this.onPrinterDone_.bind(this, printerId));
222 this.sendOrQueueRequest_(cpRequest); 223 this.sendOrQueueRequest_(cpRequest);
223 }, 224 },
224 225
225 /** 226 /**
226 * Sends a Google Cloud Print update API request to accept (or reject) the 227 * Sends a Google Cloud Print update API request to accept (or reject) the
227 * terms-of-service of the given printer. 228 * terms-of-service of the given printer.
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
562 * @type {string} 563 * @type {string}
563 */ 564 */
564 this.value = value; 565 this.value = value;
565 }; 566 };
566 567
567 // Export 568 // Export
568 return { 569 return {
569 CloudPrintInterface: CloudPrintInterface 570 CloudPrintInterface: CloudPrintInterface
570 }; 571 };
571 }); 572 });
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/resources/print_preview/data/destination.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698