Chromium Code Reviews| Index: chrome/browser/views/download_started_animation_win.cc |
| =================================================================== |
| --- chrome/browser/views/download_started_animation_win.cc (revision 16275) |
| +++ chrome/browser/views/download_started_animation_win.cc (working copy) |
| @@ -121,8 +121,10 @@ |
| // Align the image with the bottom left of the web contents (so that it |
| // points to the newly created download). |
| gfx::Size size = GetPreferredSize(); |
| + int x = UILayoutIsRightToLeft() ? |
| + tab_contents_bounds_.right() - size.width() : tab_contents_bounds_.x(); |
|
jeremy
2009/05/19 16:32:17
xji: don't we have a function that already encapsu
xji
2009/05/19 18:34:44
we do not have an existing function encapsulates s
|
| popup_->MoveWindow( |
| - tab_contents_bounds_.x(), |
| + x, |
| static_cast<int>(tab_contents_bounds_.bottom() - |
| size.height() - size.height() * (1 - GetCurrentValue())), |
| size.width(), |