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

Unified Diff: ui/views/controls/progress_bar.h

Issue 2942143002: Add progress notification support to new-style notification. (Closed)
Patch Set: Resolve review comments. 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
« no previous file with comments | « ui/message_center/views/notification_view_md.cc ('k') | ui/views/controls/progress_bar.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/progress_bar.h
diff --git a/ui/views/controls/progress_bar.h b/ui/views/controls/progress_bar.h
index a77d59917ee687b21be6b955f3a283785143de0c..0bb9bf7bf33ae2ef40cf40eba3d2b37a9da13d06 100644
--- a/ui/views/controls/progress_bar.h
+++ b/ui/views/controls/progress_bar.h
@@ -21,7 +21,8 @@ class VIEWS_EXPORT ProgressBar : public View, public gfx::AnimationDelegate {
public:
// The preferred height parameter makes it easier to use a ProgressBar with
// layout managers that size to preferred size.
- explicit ProgressBar(int preferred_height = 5);
+ explicit ProgressBar(int preferred_height = 5,
+ bool allow_round_corner = true);
~ProgressBar() override;
// Overridden from View:
@@ -60,6 +61,8 @@ class VIEWS_EXPORT ProgressBar : public View, public gfx::AnimationDelegate {
// In DP, the preferred height of this progress bar.
const int preferred_height_;
+ const bool allow_round_corner_;
+
std::unique_ptr<gfx::LinearAnimation> indeterminate_bar_animation_;
DISALLOW_COPY_AND_ASSIGN(ProgressBar);
« no previous file with comments | « ui/message_center/views/notification_view_md.cc ('k') | ui/views/controls/progress_bar.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698