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

Unified Diff: ash/system/tray/tray_item_view.cc

Issue 11418040: gfx::Transform API clean-up (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: . Created 8 years, 1 month 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 | « ash/system/tray/system_tray_bubble.cc ('k') | ash/wm/gestures/long_press_affordance_handler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/tray_item_view.cc
diff --git a/ash/system/tray/tray_item_view.cc b/ash/system/tray/tray_item_view.cc
index 87644d08283cf8eb507ede15d6209c55a5aeecc0..b93163c42df9b340a202d3d1e618c1cdf612226a 100644
--- a/ash/system/tray/tray_item_view.cc
+++ b/ash/system/tray/tray_item_view.cc
@@ -95,10 +95,10 @@ void TrayItemView::ChildPreferredSizeChanged(views::View* child) {
void TrayItemView::AnimationProgressed(const ui::Animation* animation) {
gfx::Transform transform;
- transform.SetScale(animation->GetCurrentValue(),
- animation->GetCurrentValue());
- transform.ConcatTranslate(0, animation->CurrentValueBetween(
+ transform.Translate(0, animation->CurrentValueBetween(
static_cast<double>(height()) / 2, 0.));
+ transform.Scale(animation->GetCurrentValue(),
+ animation->GetCurrentValue());
layer()->SetTransform(transform);
PreferredSizeChanged();
}
« no previous file with comments | « ash/system/tray/system_tray_bubble.cc ('k') | ash/wm/gestures/long_press_affordance_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698