| Index: chrome/browser/resources/print_preview/search/destination_list_item.js
|
| diff --git a/chrome/browser/resources/print_preview/search/destination_list_item.js b/chrome/browser/resources/print_preview/search/destination_list_item.js
|
| index 8b529d45acc919b3f3d5aec44328569b9268b49c..53088673d8f5d371ac8bcbab4b37b522ca37ba6f 100644
|
| --- a/chrome/browser/resources/print_preview/search/destination_list_item.js
|
| +++ b/chrome/browser/resources/print_preview/search/destination_list_item.js
|
| @@ -64,8 +64,8 @@ cr.define('print_preview', function() {
|
|
|
| /** @override */
|
| createDom: function() {
|
| - this.setElementInternal(this.cloneTemplateInternal(
|
| - 'destination-list-item-template'));
|
| + this.setElementInternal(
|
| + this.cloneTemplateInternal('destination-list-item-template'));
|
| this.updateUi_();
|
| },
|
|
|
| @@ -76,8 +76,7 @@ cr.define('print_preview', function() {
|
| this.tracker.add(
|
| this.getElement(), 'keydown', this.onKeyDown_.bind(this));
|
| this.tracker.add(
|
| - this.getChildElement('.register-promo-button'),
|
| - 'click',
|
| + this.getChildElement('.register-promo-button'), 'click',
|
| this.onRegisterPromoClicked_.bind(this));
|
| },
|
|
|
| @@ -145,13 +144,12 @@ cr.define('print_preview', function() {
|
|
|
| var extensionIconEl = this.getChildElement('.extension-icon');
|
| extensionIconEl.style.backgroundImage = '-webkit-image-set(' +
|
| - 'url(chrome://extension-icon/' +
|
| - this.destination_.extensionId + '/24/1) 1x,' +
|
| - 'url(chrome://extension-icon/' +
|
| - this.destination_.extensionId + '/48/1) 2x)';
|
| + 'url(chrome://extension-icon/' + this.destination_.extensionId +
|
| + '/24/1) 1x,' +
|
| + 'url(chrome://extension-icon/' + this.destination_.extensionId +
|
| + '/48/1) 2x)';
|
| extensionIconEl.title = loadTimeData.getStringF(
|
| - 'extensionDestinationIconTooltip',
|
| - this.destination_.extensionName);
|
| + 'extensionDestinationIconTooltip', this.destination_.extensionName);
|
| extensionIconEl.onclick = this.onExtensionIconClicked_.bind(this);
|
| extensionIconEl.onkeydown = this.onExtensionIconKeyDown_.bind(this);
|
| }
|
| @@ -207,13 +205,13 @@ cr.define('print_preview', function() {
|
| this.fedexTos_ = new print_preview.FedexTos();
|
| this.fedexTos_.render(this.getElement());
|
| this.tracker.add(
|
| - this.fedexTos_,
|
| - print_preview.FedexTos.EventType.AGREE,
|
| + this.fedexTos_, print_preview.FedexTos.EventType.AGREE,
|
| this.onTosAgree_.bind(this));
|
| }
|
| this.fedexTos_.setIsVisible(true);
|
| - } else if (this.destination_.connectionStatus !=
|
| - print_preview.Destination.ConnectionStatus.UNREGISTERED) {
|
| + } else if (
|
| + this.destination_.connectionStatus !=
|
| + print_preview.Destination.ConnectionStatus.UNREGISTERED) {
|
| var selectEvt = new Event(DestinationListItem.EventType.SELECT);
|
| selectEvt.destination = this.destination_;
|
| this.eventTarget_.dispatchEvent(selectEvt);
|
| @@ -230,7 +228,8 @@ cr.define('print_preview', function() {
|
| if (!hasKeyModifiers(e)) {
|
| if (e.keyCode == 13) {
|
| var activeElementTag = document.activeElement ?
|
| - document.activeElement.tagName.toUpperCase() : '';
|
| + document.activeElement.tagName.toUpperCase() :
|
| + '';
|
| if (activeElementTag == 'LI') {
|
| e.stopPropagation();
|
| e.preventDefault();
|
| @@ -256,8 +255,8 @@ cr.define('print_preview', function() {
|
| * @private
|
| */
|
| onRegisterPromoClicked_: function() {
|
| - var promoClickedEvent = new Event(
|
| - DestinationListItem.EventType.REGISTER_PROMO_CLICKED);
|
| + var promoClickedEvent =
|
| + new Event(DestinationListItem.EventType.REGISTER_PROMO_CLICKED);
|
| promoClickedEvent.destination = this.destination_;
|
| this.eventTarget_.dispatchEvent(promoClickedEvent);
|
| },
|
| @@ -290,7 +289,5 @@ cr.define('print_preview', function() {
|
| };
|
|
|
| // Export
|
| - return {
|
| - DestinationListItem: DestinationListItem
|
| - };
|
| + return {DestinationListItem: DestinationListItem};
|
| });
|
|
|