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

Unified Diff: chrome/browser/ui/views/status_bubble_views.cc

Issue 2329633003: Implement progress bar spec (determinate and indeterminate). (Closed)
Patch Set: attempt to unbreak mac and unit test Created 4 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/notification/download_item_notification.cc ('k') | ui/app_list/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/status_bubble_views.cc
diff --git a/chrome/browser/ui/views/status_bubble_views.cc b/chrome/browser/ui/views/status_bubble_views.cc
index 1e36ec5b219955f0431a31407bdcb21d1129f05d..346f7b7b60931c9c188da7e68857f4b7b01e255a 100644
--- a/chrome/browser/ui/views/status_bubble_views.cc
+++ b/chrome/browser/ui/views/status_bubble_views.cc
@@ -502,7 +502,7 @@ StatusBubbleViews::StatusViewAnimation::StatusViewAnimation(
StatusView* status_view,
float opacity_start,
float opacity_end)
- : gfx::LinearAnimation(kFramerate, this),
+ : gfx::LinearAnimation(this, kFramerate),
status_view_(status_view),
opacity_start_(opacity_start),
opacity_end_(opacity_end) {}
@@ -537,14 +537,12 @@ void StatusBubbleViews::StatusViewAnimation::AnimationEnded(
class StatusBubbleViews::StatusViewExpander : public gfx::LinearAnimation,
public gfx::AnimationDelegate {
public:
- StatusViewExpander(StatusBubbleViews* status_bubble,
- StatusView* status_view)
- : gfx::LinearAnimation(kFramerate, this),
+ StatusViewExpander(StatusBubbleViews* status_bubble, StatusView* status_view)
+ : gfx::LinearAnimation(this, kFramerate),
status_bubble_(status_bubble),
status_view_(status_view),
expansion_start_(0),
- expansion_end_(0) {
- }
+ expansion_end_(0) {}
// Manage the expansion of the bubble.
void StartExpansion(const base::string16& expanded_text,
« no previous file with comments | « chrome/browser/download/notification/download_item_notification.cc ('k') | ui/app_list/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698