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

Unified Diff: ash/system/tray/system_tray_bubble.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/magnifier/magnification_controller.cc ('k') | ash/system/tray/tray_item_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/system/tray/system_tray_bubble.cc
diff --git a/ash/system/tray/system_tray_bubble.cc b/ash/system/tray/system_tray_bubble.cc
index aff271958f1d185ee9e67f755f413551037aeeb3..00599735637c312eedc0d767b64206962f76e430 100644
--- a/ash/system/tray/system_tray_bubble.cc
+++ b/ash/system/tray/system_tray_bubble.cc
@@ -165,7 +165,7 @@ void SystemTrayBubble::UpdateView(
settings.SetTransitionDuration(swipe_duration);
settings.SetTweenType(ui::Tween::EASE_OUT);
gfx::Transform transform;
- transform.SetTranslateX(layer->bounds().width());
+ transform.Translate(layer->bounds().width(), 0.0);
layer->SetTransform(transform);
}
@@ -218,7 +218,7 @@ void SystemTrayBubble::UpdateView(
ui::Layer* new_layer = bubble_view_->layer();
gfx::Rect bounds = new_layer->bounds();
gfx::Transform transform;
- transform.SetTranslateX(bounds.width());
+ transform.Translate(bounds.width(), 0.0);
new_layer->SetTransform(transform);
{
ui::ScopedLayerAnimationSettings settings(new_layer->GetAnimator());
« no previous file with comments | « ash/magnifier/magnification_controller.cc ('k') | ash/system/tray/tray_item_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698