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

Side by Side Diff: chrome/browser/resources/print_preview/cloud_print_interface.js

Issue 588713002: Compile print_preview, part 3: reduce down to 185 errors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@I_print_preview_2
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.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 628 matching lines...) Expand 10 before | Expand all | Expand 10 after
639 } 639 }
640 var printerDoneEvent = 640 var printerDoneEvent =
641 new Event(CloudPrintInterface.EventType.PRINTER_DONE); 641 new Event(CloudPrintInterface.EventType.PRINTER_DONE);
642 printerDoneEvent.printer = printer; 642 printerDoneEvent.printer = printer;
643 this.dispatchEvent(printerDoneEvent); 643 this.dispatchEvent(printerDoneEvent);
644 } else { 644 } else {
645 var errorEvent = this.createErrorEvent_( 645 var errorEvent = this.createErrorEvent_(
646 CloudPrintInterface.EventType.PRINTER_FAILED, request); 646 CloudPrintInterface.EventType.PRINTER_FAILED, request);
647 errorEvent.destinationId = destinationId; 647 errorEvent.destinationId = destinationId;
648 errorEvent.destinationOrigin = request.origin; 648 errorEvent.destinationOrigin = request.origin;
649 this.dispatchEvent(errorEvent, request.origin); 649 this.dispatchEvent(errorEvent);
650 } 650 }
651 }, 651 },
652 652
653 /** 653 /**
654 * Called when the update printer TOS acceptance request completes. 654 * Called when the update printer TOS acceptance request completes.
655 * @param {!CloudPrintRequest} request Request that has been completed. 655 * @param {!CloudPrintRequest} request Request that has been completed.
656 * @private 656 * @private
657 */ 657 */
658 onUpdatePrinterTosAcceptanceDone_: function(request) { 658 onUpdatePrinterTosAcceptanceDone_: function(request) {
659 if (request.xhr.status == 200 && request.result['success']) { 659 if (request.xhr.status == 200 && request.result['success']) {
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
734 * @type {string} 734 * @type {string}
735 */ 735 */
736 this.value = value; 736 this.value = value;
737 }; 737 };
738 738
739 // Export 739 // Export
740 return { 740 return {
741 CloudPrintInterface: CloudPrintInterface 741 CloudPrintInterface: CloudPrintInterface
742 }; 742 };
743 }); 743 });
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698