| Index: chrome/browser/resources/print_preview/cloud_print_interface.js
|
| diff --git a/chrome/browser/resources/print_preview/cloud_print_interface.js b/chrome/browser/resources/print_preview/cloud_print_interface.js
|
| index 10a90fa09865ff2d1fa06355892b6010f3236f27..58277d2db2ad1dda0982fbebfe48bba657a9d924 100644
|
| --- a/chrome/browser/resources/print_preview/cloud_print_interface.js
|
| +++ b/chrome/browser/resources/print_preview/cloud_print_interface.js
|
| @@ -185,8 +185,8 @@ cr.define('cloudprint', function() {
|
|
|
| /**
|
| * Sends Google Cloud Print search API request.
|
| - * @param {string=} opt_account Account the search is sent for. When
|
| - * omitted, the search is done on behalf of the primary user.
|
| + * @param {?string=} opt_account Account the search is sent for. When
|
| + * omitted or null, the search is done on behalf of the primary user.
|
| * @param {print_preview.Destination.Origin=} opt_origin When specified,
|
| * searches destinations for {@code opt_origin} only, otherwise starts
|
| * searches for all origins.
|
| @@ -380,7 +380,7 @@ cr.define('cloudprint', function() {
|
| * @param {?string} account Account the request is sent for. Can be
|
| * {@code null} or empty string if the request is not cookie bound or
|
| * is sent on behalf of the primary user.
|
| - * @param {function(number, Object, !print_preview.Destination.Origin)}
|
| + * @param {function(!cloudprint.CloudPrintRequest)}
|
| * callback Callback to invoke when request completes.
|
| * @return {!cloudprint.CloudPrintRequest} Partially prepared request.
|
| * @private
|
| @@ -440,7 +440,7 @@ cr.define('cloudprint', function() {
|
| /**
|
| * Sends a request to the Google Cloud Print API or queues if it needs to
|
| * wait OAuth2 access token.
|
| - * @param {!CloudPrintRequest} request Request to send or queue.
|
| + * @param {!cloudprint.CloudPrintRequest} request Request to send or queue.
|
| * @private
|
| */
|
| sendOrQueueRequest_: function(request) {
|
| @@ -454,7 +454,7 @@ cr.define('cloudprint', function() {
|
|
|
| /**
|
| * Sends a request to the Google Cloud Print API.
|
| - * @param {!CloudPrintRequest} request Request to send.
|
| + * @param {!cloudprint.CloudPrintRequest} request Request to send.
|
| * @private
|
| */
|
| sendRequest_: function(request) {
|
| @@ -465,8 +465,10 @@ cr.define('cloudprint', function() {
|
|
|
| /**
|
| * Creates a Google Cloud Print interface error that is ready to dispatch.
|
| - * @param {!CloudPrintInterface.EventType} type Type of the error.
|
| - * @param {!CloudPrintRequest} request Request that has been completed.
|
| + * @param {!cloudprint.CloudPrintInterface.EventType} type Type of the
|
| + * error.
|
| + * @param {!cloudprint.CloudPrintRequest} request Request that has been
|
| + * completed.
|
| * @return {!Event} Google Cloud Print interface error event.
|
| * @private
|
| */
|
| @@ -546,7 +548,7 @@ cr.define('cloudprint', function() {
|
| /**
|
| * Called when the ready-state of a XML http request changes.
|
| * Calls the successCallback with the result or dispatches an ERROR event.
|
| - * @param {!CloudPrintRequest} request Request that was changed.
|
| + * @param {!cloudprint.CloudPrintRequest} request Request that was changed.
|
| * @private
|
| */
|
| onReadyStateChange_: function(request) {
|
| @@ -568,7 +570,8 @@ cr.define('cloudprint', function() {
|
| * Called when the search request completes.
|
| * @param {boolean} isRecent Whether the search request was for recent
|
| * destinations.
|
| - * @param {!CloudPrintRequest} request Request that has been completed.
|
| + * @param {!cloudprint.CloudPrintRequest} request Request that has been
|
| + * completed.
|
| * @private
|
| */
|
| onSearchDone_: function(isRecent, request) {
|
| @@ -619,7 +622,8 @@ cr.define('cloudprint', function() {
|
|
|
| /**
|
| * Called when invitations search request completes.
|
| - * @param {!CloudPrintRequest} request Request that has been completed.
|
| + * @param {!cloudprint.CloudPrintRequest} request Request that has been
|
| + * completed.
|
| * @private
|
| */
|
| onInvitesDone_: function(request) {
|
| @@ -655,7 +659,8 @@ cr.define('cloudprint', function() {
|
| * Called when invitation processing request completes.
|
| * @param {!print_preview.Invitation} invitation Processed invitation.
|
| * @param {boolean} accept Whether this invitation was accepted or rejected.
|
| - * @param {!CloudPrintRequest} request Request that has been completed.
|
| + * @param {!cloudprint.CloudPrintRequest} request Request that has been
|
| + * completed.
|
| * @private
|
| */
|
| onProcessInviteDone_: function(invitation, accept, request) {
|
| @@ -686,7 +691,8 @@ cr.define('cloudprint', function() {
|
|
|
| /**
|
| * Called when the submit request completes.
|
| - * @param {!CloudPrintRequest} request Request that has been completed.
|
| + * @param {!cloudprint.CloudPrintRequest} request Request that has been
|
| + * completed.
|
| * @private
|
| */
|
| onSubmitDone_: function(request) {
|
| @@ -705,7 +711,8 @@ cr.define('cloudprint', function() {
|
| /**
|
| * Called when the printer request completes.
|
| * @param {string} destinationId ID of the destination that was looked up.
|
| - * @param {!CloudPrintRequest} request Request that has been completed.
|
| + * @param {!cloudprint.CloudPrintRequest} request Request that has been
|
| + * completed.
|
| * @private
|
| */
|
| onPrinterDone_: function(destinationId, request) {
|
| @@ -762,7 +769,8 @@ cr.define('cloudprint', function() {
|
|
|
| /**
|
| * Called when the update printer TOS acceptance request completes.
|
| - * @param {!CloudPrintRequest} request Request that has been completed.
|
| + * @param {!cloudprint.CloudPrintRequest} request Request that has been
|
| + * completed.
|
| * @private
|
| */
|
| onUpdatePrinterTosAcceptanceDone_: function(request) {
|
| @@ -784,8 +792,8 @@ cr.define('cloudprint', function() {
|
| * @param {?string} account Account the request is sent for. Can be
|
| * {@code null} or empty string if the request is not cookie bound or
|
| * is sent on behalf of the primary user.
|
| - * @param {function(!CloudPrintRequest)} callback Callback to invoke when
|
| - * request completes.
|
| + * @param {function(!cloudprint.CloudPrintRequest)} callback Callback to
|
| + * invoke when request completes.
|
| * @constructor
|
| */
|
| function CloudPrintRequest(xhr, body, origin, account, callback) {
|
| @@ -829,7 +837,7 @@ cr.define('cloudprint', function() {
|
| /**
|
| * Data structure that represents an HTTP parameter.
|
| * @param {string} name Name of the parameter.
|
| - * @param {print_preview.ValueType} value Value of the parameter.
|
| + * @param {?} value Value of the parameter.
|
| * @constructor
|
| */
|
| function HttpParam(name, value) {
|
| @@ -841,7 +849,7 @@ cr.define('cloudprint', function() {
|
|
|
| /**
|
| * Name of the value.
|
| - * @type {print_preview.ValueType}
|
| + * @type {?}
|
| */
|
| this.value = value;
|
| };
|
|
|