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

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

Issue 113583: Draw the big arrow animation on the right side on RTL locales. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: Created 11 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(),
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698