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

Issue 118260: Review request - fix issue 6103 and 13217 -- mirror download item in download shelf (Closed)

Created:
11 years, 6 months ago by xji
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

This CL fixes issue 6103 -- Individual download items on the download shelf are not mirrored on RTL locales, and issue 13217 -- Dangerous File warning on the shelf in RTL seems to misplace the buttons Enable UI mirroring for DownloadItemView. During painting each download items, for those items without corresponding mirrored images, flip the canvas to paint the mirrored image. And flip canvas back to normal to paint others. BUG=http://crbug.com/6103 BUG=http://crbug.com/13217 Test=Open Hebrew Chrome, go to "http://build.chromium.org/buildbot/continuous/LATEST/", download mini_installer.exe, the layout of the warning should be "cancel_button ok_button warning_message warning_icon" from left to right. Click "ok" to download, the layout of the download item in download shelf should be "drop_down_icon download_file_name(or download_file_name with download_status) download_progress_animation and download icon" from left to right. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=18292

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 3

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+49 lines, -27 lines) Patch
M chrome/browser/views/download_item_view.cc View 1 2 3 9 chunks +36 lines, -27 lines 0 comments Download
M views/view.h View 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
xji
I do not totally understand the canvas->save() and canvas->restore() part. Especially the 2 canvas->restore() originally ...
11 years, 6 months ago (2009-06-04 22:00:14 UTC) #1
jeremy
lg in general, adding sky who might be more familiar with this code. http://codereview.chromium.org/118260/diff/1008/1010 File ...
11 years, 6 months ago (2009-06-04 22:09:04 UTC) #2
sky
http://codereview.chromium.org/118260/diff/1008/1010 File chrome/browser/views/download_item_view.cc (right): http://codereview.chromium.org/118260/diff/1008/1010#newcode487 Line 487: canvas->save(); Why are you saving after translating/scaling? Shouldn't ...
11 years, 6 months ago (2009-06-04 22:30:27 UTC) #3
xji
On 2009/06/04 22:09:04, jeremy wrote: > lg in general, adding sky who might be more ...
11 years, 6 months ago (2009-06-04 23:22:29 UTC) #4
xji
Thanks for the review. Yes, you are right. Fixed. And please also check the code ...
11 years, 6 months ago (2009-06-04 23:26:26 UTC) #5
jeremy
LGTM
11 years, 6 months ago (2009-06-04 23:29:29 UTC) #6
sky
LGTM
11 years, 6 months ago (2009-06-04 23:40:04 UTC) #7
idana
LGTM
11 years, 6 months ago (2009-06-04 23:53:31 UTC) #8
jungshik at Google
11 years, 6 months ago (2009-06-04 23:58:22 UTC) #9
LGTM

Powered by Google App Engine
This is Rietveld 408576698