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

Unified Diff: chrome/browser/views/download_shelf_view.cc

Issue 1961001: Refactors animation to allow for cleaner subclassing. I'm doing this (Closed)
Patch Set: Incorporated review feedback Created 10 years, 8 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/views/download_item_view.cc ('k') | chrome/browser/views/download_started_animation_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/views/download_shelf_view.cc
diff --git a/chrome/browser/views/download_shelf_view.cc b/chrome/browser/views/download_shelf_view.cc
index ff6346d0ea38a88564ce542eb35b98639ddb9552..d727d4360897f9f98d45c3df4699bba3db05797e 100644
--- a/chrome/browser/views/download_shelf_view.cc
+++ b/chrome/browser/views/download_shelf_view.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -165,7 +165,7 @@ gfx::Size DownloadShelfView::GetPreferredSize() {
prefsize.Enlarge(kDownloadPadding, 0);
}
prefsize.Enlarge(0, kTopBottomPadding + kTopBottomPadding);
- if (shelf_animation_->IsAnimating()) {
+ if (shelf_animation_->is_animating()) {
prefsize.set_height(static_cast<int>(
static_cast<double>(prefsize.height()) *
shelf_animation_->GetCurrentValue()));
@@ -252,7 +252,7 @@ void DownloadShelfView::Layout() {
// Figure out width of item.
int item_width = view_size.width();
- if (new_item_animation_->IsAnimating() && ri == download_views_.rbegin()) {
+ if (new_item_animation_->is_animating() && ri == download_views_.rbegin()) {
item_width = static_cast<int>(static_cast<double>(view_size.width()) *
new_item_animation_->GetCurrentValue());
}
« no previous file with comments | « chrome/browser/views/download_item_view.cc ('k') | chrome/browser/views/download_started_animation_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698