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

Unified Diff: chrome/browser/download/download_shelf.cc

Issue 1367083002: Download bar MD overhaul, part 3 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: incl Created 5 years, 3 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/download/download_shelf.h ('k') | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/download/download_shelf.cc
diff --git a/chrome/browser/download/download_shelf.cc b/chrome/browser/download/download_shelf.cc
index 5f3f3cd4fbc0e68d4c9dfd823c1ee4720777dad5..0ec66104a9356c94e14f9f8ec20ead2be56fd293 100644
--- a/chrome/browser/download/download_shelf.cc
+++ b/chrome/browser/download/download_shelf.cc
@@ -84,9 +84,8 @@ void DownloadShelf::PaintDownloadProgress(
bg_paint.setColor(SkColorSetA(indicator_color, 0x33));
bg_paint.setAntiAlias(true);
const SkScalar kCenterPoint = kProgressIndicatorSize / 2.f;
- const SkScalar kRadius = 12.5f;
SkPath bg;
- bg.addCircle(kCenterPoint, kCenterPoint, kRadius);
+ bg.addCircle(kCenterPoint, kCenterPoint, kCenterPoint);
canvas->DrawPath(bg, bg_paint);
// Calculate progress.
@@ -104,11 +103,9 @@ void DownloadShelf::PaintDownloadProgress(
// Draw progress.
SkPath progress;
- progress.addArc(SkRect::MakeLTRB(kCenterPoint - kRadius,
- kCenterPoint - kRadius,
- kCenterPoint + kRadius,
- kCenterPoint + kRadius),
- start_pos, sweep_angle);
+ progress.addArc(
+ SkRect::MakeLTRB(0, 0, kProgressIndicatorSize, kProgressIndicatorSize),
+ start_pos, sweep_angle);
SkPaint progress_paint;
progress_paint.setColor(indicator_color);
progress_paint.setStyle(SkPaint::kStroke_Style);
« no previous file with comments | « chrome/browser/download/download_shelf.h ('k') | chrome/browser/ui/views/download/download_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698