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

Unified Diff: chrome/browser/resources/print_preview/data/ticket_items/color.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/data/ticket_items/color.js
diff --git a/chrome/browser/resources/print_preview/data/ticket_items/color.js b/chrome/browser/resources/print_preview/data/ticket_items/color.js
index b1cbe3838faf3cb46f8f05fe42e3fa5d58381f7f..045d0f453f9f8e896f26f8210043a3eaf1d93621 100644
--- a/chrome/browser/resources/print_preview/data/ticket_items/color.js
+++ b/chrome/browser/resources/print_preview/data/ticket_items/color.js
@@ -17,9 +17,7 @@ cr.define('print_preview.ticket_items', function() {
*/
function Color(appState, destinationStore) {
print_preview.ticket_items.TicketItem.call(
- this,
- appState,
- print_preview.AppState.Field.IS_COLOR_ENABLED,
+ this, appState, print_preview.AppState.Field.IS_COLOR_ENABLED,
destinationStore);
};
@@ -62,11 +60,9 @@ cr.define('print_preview.ticket_items', function() {
/** @return {Object} Color capability of the selected destination. */
get capability() {
var dest = this.getSelectedDestInternal();
- return (dest &&
- dest.capabilities &&
- dest.capabilities.printer &&
+ return (dest && dest.capabilities && dest.capabilities.printer &&
dest.capabilities.printer.color) ||
- null;
+ null;
},
/** @return {Object} Color option corresponding to the current value. */
@@ -91,8 +87,8 @@ cr.define('print_preview.ticket_items', function() {
/** @override */
getDefaultValueInternal: function() {
var capability = this.capability;
- var defaultOption = capability ?
- this.getDefaultColorOption_(capability.option) : null;
+ var defaultOption =
+ capability ? this.getDefaultColorOption_(capability.option) : null;
return defaultOption &&
(Color.COLOR_TYPES_.indexOf(defaultOption.type) >= 0);
},
@@ -130,7 +126,5 @@ cr.define('print_preview.ticket_items', function() {
};
// Export
- return {
- Color: Color
- };
+ return {Color: Color};
});

Powered by Google App Engine
This is Rietveld 408576698