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

Unified Diff: chrome/browser/resources/pdf/open_pdf_params_parser.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
« no previous file with comments | « chrome/browser/resources/pdf/navigator.js ('k') | chrome/browser/resources/pdf/pdf.js » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 00f44773f464287cb95ad7c2eb581bd19496d8c2..d12073fdbf30f9b384f64341ca393c610e0be5aa 100644
--- a/chrome/browser/resources/pdf/open_pdf_params_parser.js
+++ b/chrome/browser/resources/pdf/open_pdf_params_parser.js
@@ -41,8 +41,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;
},
@@ -122,10 +124,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);
« no previous file with comments | « chrome/browser/resources/pdf/navigator.js ('k') | chrome/browser/resources/pdf/pdf.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698