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

Unified Diff: chrome/browser/resources/print_preview/search/destination_list_item.js

Issue 2617663002: WIP: run clang-format-js on lots of things (Closed)
Patch Set: merge Created 3 years, 11 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 side-by-side diff with in-line comments
Download patch
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};
});

Powered by Google App Engine
This is Rietveld 408576698