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

Unified Diff: chrome/browser/resources/print_preview/data/ticket_items/color.js

Issue 2939273002: DO NOT SUBMIT: what chrome/browser/resources/ could eventually look like with clang-format (Closed)
Patch Set: Created 3 years, 6 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 ccbbcbf8d40fc38d3647d430d588b9443403c112..67d2dec361957e797f91498042ce0763820593d4 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.AppStateField.IS_COLOR_ENABLED,
+ this, appState, print_preview.AppStateField.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);
},
@@ -129,7 +125,5 @@ cr.define('print_preview.ticket_items', function() {
};
// Export
- return {
- Color: Color
- };
+ return {Color: Color};
});

Powered by Google App Engine
This is Rietveld 408576698