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

Unified Diff: chrome/browser/resources/print_preview/data/measurement_system.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/measurement_system.js
diff --git a/chrome/browser/resources/print_preview/data/measurement_system.js b/chrome/browser/resources/print_preview/data/measurement_system.js
index f661b0c1c48f8597d6bcb97fbde4ef6cf0dcefe7..323c195accb31212b9600239384a44ff6a57f103 100644
--- a/chrome/browser/resources/print_preview/data/measurement_system.js
+++ b/chrome/browser/resources/print_preview/data/measurement_system.js
@@ -9,8 +9,8 @@ cr.exportPath('print_preview');
* @enum {number}
*/
print_preview.MeasurementSystemUnitType = {
- METRIC: 0, // millimeters
- IMPERIAL: 1 // inches
+ METRIC: 0, // millimeters
+ IMPERIAL: 1 // inches
};
cr.define('print_preview', function() {
@@ -54,10 +54,10 @@ cr.define('print_preview', function() {
* @private
*/
MeasurementSystem.Precision_ = {};
- MeasurementSystem.Precision_[
- print_preview.MeasurementSystemUnitType.METRIC] = 0.5;
- MeasurementSystem.Precision_[
- print_preview.MeasurementSystemUnitType.IMPERIAL] = 0.01;
+ MeasurementSystem.Precision_[print_preview.MeasurementSystemUnitType.METRIC] =
+ 0.5;
+ MeasurementSystem
+ .Precision_[print_preview.MeasurementSystemUnitType.IMPERIAL] = 0.01;
/**
* Maximum number of decimal places to keep for local unit.
@@ -65,10 +65,10 @@ cr.define('print_preview', function() {
* @private
*/
MeasurementSystem.DecimalPlaces_ = {};
- MeasurementSystem.DecimalPlaces_[
- print_preview.MeasurementSystemUnitType.METRIC] = 1;
- MeasurementSystem.DecimalPlaces_[
- print_preview.MeasurementSystemUnitType.IMPERIAL] = 2;
+ MeasurementSystem
+ .DecimalPlaces_[print_preview.MeasurementSystemUnitType.METRIC] = 1;
+ MeasurementSystem
+ .DecimalPlaces_[print_preview.MeasurementSystemUnitType.IMPERIAL] = 2;
/**
* Number of points per inch.
@@ -91,8 +91,8 @@ cr.define('print_preview', function() {
get unitSymbol() {
if (this.unitType_ == print_preview.MeasurementSystemUnitType.METRIC) {
return 'mm';
- } else if (this.unitType_ ==
- print_preview.MeasurementSystemUnitType.IMPERIAL) {
+ } else if (
+ this.unitType_ == print_preview.MeasurementSystemUnitType.IMPERIAL) {
return '"';
} else {
throw Error('Unit type not supported: ' + this.unitType_);
@@ -160,7 +160,5 @@ cr.define('print_preview', function() {
};
// Export
- return {
- MeasurementSystem: MeasurementSystem
- };
+ return {MeasurementSystem: MeasurementSystem};
});

Powered by Google App Engine
This is Rietveld 408576698