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

Unified Diff: chrome/browser/resources/pdf/open_pdf_params_parser.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/pdf/open_pdf_params_parser.js
diff --git a/chrome/browser/resources/pdf/open_pdf_params_parser.js b/chrome/browser/resources/pdf/open_pdf_params_parser.js
index 8d1ac213e69f483ef8f99e7fc1ec92bf5a035214..2eefdec662ede4256dc0548efb0fa8762c990b55 100644
--- a/chrome/browser/resources/pdf/open_pdf_params_parser.js
+++ b/chrome/browser/resources/pdf/open_pdf_params_parser.js
@@ -42,8 +42,10 @@ OpenPDFParamsParser.prototype = {
}
// Handle #zoom=scale,left,top.
- var position = {x: parseFloat(paramValueSplit[1]),
- y: parseFloat(paramValueSplit[2])};
+ var position = {
+ x: parseFloat(paramValueSplit[1]),
+ y: parseFloat(paramValueSplit[2])
+ };
viewportPosition['position'] = position;
viewportPosition['zoom'] = zoomFactor;
},
@@ -123,10 +125,8 @@ OpenPDFParamsParser.prototype = {
if (viewportPosition.page === undefined &&
'nameddest' in paramsDictionary) {
- this.outstandingRequests_.push({
- callback: callback,
- viewportPosition: viewportPosition
- });
+ this.outstandingRequests_.push(
+ {callback: callback, viewportPosition: viewportPosition});
this.getNamedDestinationsFunction_(paramsDictionary['nameddest']);
} else {
callback(viewportPosition);

Powered by Google App Engine
This is Rietveld 408576698