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

Unified Diff: chrome/browser/resources/settings/people_page/fingerprint_progress_arc.js

Issue 2946563002: Run clang-format on .js files in c/b/r/settings (Closed)
Patch Set: dschuyler@ review 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/settings/people_page/fingerprint_progress_arc.js
diff --git a/chrome/browser/resources/settings/people_page/fingerprint_progress_arc.js b/chrome/browser/resources/settings/people_page/fingerprint_progress_arc.js
index 0bbf430b7e18a47a060c3e61e11e3d02b81fc96b..a1569405c9d5ecc1c5fabd14fae23173a2300525 100644
--- a/chrome/browser/resources/settings/people_page/fingerprint_progress_arc.js
+++ b/chrome/browser/resources/settings/people_page/fingerprint_progress_arc.js
@@ -77,7 +77,8 @@ Polymer({
var ctx = c.getContext('2d');
ctx.beginPath();
- ctx.arc(c.width / 2, c.height / 2, this.canvasCircleRadius_, startAngle,
+ ctx.arc(
+ c.width / 2, c.height / 2, this.canvasCircleRadius_, startAngle,
endAngle);
ctx.lineWidth = this.canvasCircleStrokeWidth_;
ctx.strokeStyle = color;
@@ -109,9 +110,10 @@ Polymer({
ctx.shadowOffsetY = 0;
ctx.shadowColor = this.canvasCircleShadowColor_;
ctx.shadowBlur = blur;
- ctx.arc(c.width / 2, c.height / 2,
+ ctx.arc(
+ c.width / 2, c.height / 2,
this.canvasCircleRadius_ - this.canvasCircleStrokeWidth_ / 2 + blur / 2,
- 0, 2*Math.PI);
+ 0, 2 * Math.PI);
ctx.stroke();
ctx.translate(c.width, 0);
},
@@ -126,8 +128,8 @@ Polymer({
animate: function(startAngle, endAngle) {
var currentAngle = startAngle;
// The value to update the angle by each tick.
- var step = (endAngle - startAngle) /
- (ANIMATE_DURATION_MS / ANIMATE_TICKS_MS);
+ var step =
+ (endAngle - startAngle) / (ANIMATE_DURATION_MS / ANIMATE_TICKS_MS);
var id = setInterval(doAnimate.bind(this), ANIMATE_TICKS_MS);
// Circles on html canvas have 0 radians on the positive x-axis and go in
// clockwise direction. We want to start at the top of the circle which is
@@ -148,10 +150,10 @@ Polymer({
// |currentAngle| to 7 * Math.PI / 2 (start is 3 * Math.PI / 2) otherwise
// the regular draw from |start| to |currentAngle| will draw nothing which
// will cause a flicker for one frame.
- this.drawArc(start, start + currentAngle,
- this.canvasCircleProgressColor_);
- this.drawArc(start + currentAngle,
- currentAngle <= 0 ? 7 * Math.PI / 2 : start,
+ this.drawArc(
+ start, start + currentAngle, this.canvasCircleProgressColor_);
+ this.drawArc(
+ start + currentAngle, currentAngle <= 0 ? 7 * Math.PI / 2 : start,
this.canvasCircleBackgroundColor_);
currentAngle += step;
}

Powered by Google App Engine
This is Rietveld 408576698