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

Unified Diff: chrome/browser/resources/print_preview/data/ticket_items/dpi.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/dpi.js
diff --git a/chrome/browser/resources/print_preview/data/ticket_items/dpi.js b/chrome/browser/resources/print_preview/data/ticket_items/dpi.js
index 674a98ceb7c9f007b6143bb7827eba782c5985aa..7a514f1c9d81be160dfb219bc91c27c9ba5a5e32 100644
--- a/chrome/browser/resources/print_preview/data/ticket_items/dpi.js
+++ b/chrome/browser/resources/print_preview/data/ticket_items/dpi.js
@@ -16,10 +16,7 @@ cr.define('print_preview.ticket_items', function() {
*/
function Dpi(appState, destinationStore) {
print_preview.ticket_items.TicketItem.call(
- this,
- appState,
- print_preview.AppStateField.DPI,
- destinationStore);
+ this, appState, print_preview.AppStateField.DPI, destinationStore);
}
Dpi.prototype = {
@@ -31,34 +28,32 @@ cr.define('print_preview.ticket_items', function() {
return false;
return this.capability.option.some(function(option) {
return option.horizontal_dpi == value.horizontal_dpi &&
- option.vertical_dpi == value.vertical_dpi &&
- option.vendor_id == value.vendor_id;
+ option.vertical_dpi == value.vertical_dpi &&
+ option.vendor_id == value.vendor_id;
});
},
/** @override */
isCapabilityAvailable: function() {
- return !!this.capability &&
- !!this.capability.option &&
- this.capability.option.length > 1;
+ return !!this.capability && !!this.capability.option &&
+ this.capability.option.length > 1;
},
/** @override */
isValueEqual: function(value) {
var myValue = this.getValue();
return myValue.horizontal_dpi == value.horizontal_dpi &&
- myValue.vertical_dpi == value.vertical_dpi &&
- myValue.vendor_id == value.vendor_id;
+ myValue.vertical_dpi == value.vertical_dpi &&
+ myValue.vendor_id == value.vendor_id;
},
/** @return {Object} DPI capability of the selected destination. */
get capability() {
var destination = this.getSelectedDestInternal();
- return (destination &&
- destination.capabilities &&
+ return (destination && destination.capabilities &&
destination.capabilities.printer &&
destination.capabilities.printer.dpi) ||
- null;
+ null;
},
/** @override */
@@ -76,7 +71,5 @@ cr.define('print_preview.ticket_items', function() {
};
// Export
- return {
- Dpi: Dpi
- };
+ return {Dpi: Dpi};
});

Powered by Google App Engine
This is Rietveld 408576698