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

Issue 118488: Add file icons to chrome://downloads/ on the Mac. Add Skia helper CGImageToSkBitmap(). (Closed)

Created:
11 years, 6 months ago by ---DO NOT USE---rsesek
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add file icons to chrome://downloads/ on the Mac. Add Skia helper CGImageToSkBitmap().

Patch Set 1 #

Total comments: 6

Patch Set 2 : Create and use NSImageToSkBitmap(), rebase brett #

Patch Set 3 : Fix transparency issues in CGImageToSkBitmap(), move ImageDecoder::Decode() to it #

Total comments: 16

Patch Set 4 : Return stack-allocated SkBitmap instead of |SkBitmap*| #

Total comments: 6

Patch Set 5 : '' #

Patch Set 6 : Include AppKit not Cocoa #

Total comments: 6

Patch Set 7 : Use scoped_cftyperef<> #

Total comments: 4

Patch Set 8 : Switch to using |-drawInRect:| rather than |-drawAtPoint:| #

Unified diffs Side-by-side diffs Delta from patch set Stats (+208 lines, -132 lines) Patch
M chrome/browser/dom_ui/fileicon_source.cc View 1 chunk +3 lines, -4 lines 0 comments Download
M chrome/browser/icon_loader_mac.mm View 1 2 3 4 5 1 chunk +18 lines, -1 line 0 comments Download
M chrome/browser/icon_manager_mac.mm View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M skia/ext/skia_utils_mac.h View 1 2 3 2 chunks +14 lines, -0 lines 0 comments Download
M skia/ext/skia_utils_mac.cc View 1 1 chunk +0 lines, -83 lines 0 comments Download
A skia/ext/skia_utils_mac.mm View 2 3 4 5 6 7 1 chunk +160 lines, -0 lines 0 comments Download
M skia/skia.gyp View 2 3 4 2 chunks +9 lines, -4 lines 0 comments Download
M webkit/glue/image_decoder.cc View 3 2 chunks +2 lines, -38 lines 0 comments Download

Messages

Total messages: 17 (0 generated)
Amanda Walker
http://codereview.chromium.org/118488/diff/1/3 File chrome/browser/icon_loader_mac.mm (right): http://codereview.chromium.org/118488/diff/1/3#newcode22 Line 22: for (NSBitmapImageRep* rep in imageReps) { This loop ...
11 years, 6 months ago (2009-06-12 17:13:34 UTC) #1
---DO NOT USE---rsesek
http://codereview.chromium.org/118488/diff/1/3 File chrome/browser/icon_loader_mac.mm (right): http://codereview.chromium.org/118488/diff/1/3#newcode22 Line 22: for (NSBitmapImageRep* rep in imageReps) { On 2009/06/12 ...
11 years, 6 months ago (2009-06-16 05:35:20 UTC) #2
Amanda Walker
LGTM
11 years, 6 months ago (2009-06-16 14:42:27 UTC) #3
Nico
On 2009/06/16 05:35:20, rsesek wrote: > http://codereview.chromium.org/118488/diff/1/3 > File chrome/browser/icon_loader_mac.mm (right): > > http://codereview.chromium.org/118488/diff/1/3#newcode22 > ...
11 years, 6 months ago (2009-06-16 15:00:08 UTC) #4
---DO NOT USE---rsesek
> For the records; already mentioned this on IRC: > > Drive-by codereivew! I don't ...
11 years, 6 months ago (2009-06-16 15:42:22 UTC) #5
Nico
More drive-by. If Amanda says something that contradicts what I say, listen to her. http://codereview.chromium.org/118488/diff/1006/1012 ...
11 years, 6 months ago (2009-06-16 15:54:16 UTC) #6
Mark Mentovai
Unsolicited review for you... http://codereview.chromium.org/118488/diff/1006/1011 File skia/ext/skia_utils_mac.h (right): http://codereview.chromium.org/118488/diff/1006/1011#newcode54 Line 54: // Converts a CGImage ...
11 years, 6 months ago (2009-06-16 16:52:28 UTC) #7
Mark Mentovai
http://codereview.chromium.org/118488/diff/2017/1025 File chrome/browser/icon_loader_mac.mm (right): http://codereview.chromium.org/118488/diff/2017/1025#newcode5 Line 5: #import <Cocoa/Cocoa.h> <AppKit/AppKit.h> again here - and put ...
11 years, 6 months ago (2009-06-16 17:05:49 UTC) #8
---DO NOT USE---rsesek
http://codereview.chromium.org/118488/diff/1006/1012 File skia/ext/skia_utils_mac.mm (right): http://codereview.chromium.org/118488/diff/1006/1012#newcode6 Line 6: #include "skia/ext/bitmap_platform_device_mac.h" On 2009/06/16 16:52:31, Mark Mentovai wrote: ...
11 years, 6 months ago (2009-06-16 17:14:45 UTC) #9
Mark Mentovai
lg
11 years, 6 months ago (2009-06-16 17:18:48 UTC) #10
Amanda Walker
lgtm
11 years, 6 months ago (2009-06-16 17:20:46 UTC) #11
Nico
Not lgtm for me yet, sorry. http://codereview.chromium.org/118488/diff/2035/1044 File skia/ext/skia_utils_mac.mm (right): http://codereview.chromium.org/118488/diff/2035/1044#newcode124 Line 124: CGColorSpaceRef color_space ...
11 years, 6 months ago (2009-06-16 18:18:07 UTC) #12
---DO NOT USE---rsesek
http://codereview.chromium.org/118488/diff/2035/1044 File skia/ext/skia_utils_mac.mm (right): http://codereview.chromium.org/118488/diff/2035/1044#newcode124 Line 124: CGColorSpaceRef color_space = On 2009/06/16 18:18:07, thakis wrote: ...
11 years, 6 months ago (2009-06-16 18:38:37 UTC) #13
Nico
Sorry for seeing all this on the first pass :-/ http://codereview.chromium.org/118488/diff/1048/1054 File skia/ext/skia_utils_mac.mm (right): http://codereview.chromium.org/118488/diff/1048/1054#newcode122 ...
11 years, 6 months ago (2009-06-16 18:48:33 UTC) #14
Amanda Walker
http://codereview.chromium.org/118488/diff/1048/1054 File skia/ext/skia_utils_mac.mm (right): http://codereview.chromium.org/118488/diff/1048/1054#newcode148 Line 148: [image drawAtPoint:NSMakePoint(0, 0) NSImage will scale it.
11 years, 6 months ago (2009-06-16 18:56:23 UTC) #15
Nico
lgtm once line 122 ( bitmap.eraseARGB(0, 0, 0, 0);) is gone and you tested that ...
11 years, 6 months ago (2009-06-16 19:32:11 UTC) #16
Mark Mentovai
11 years, 6 months ago (2009-06-16 19:57:45 UTC) #17
Committed r18517

Powered by Google App Engine
This is Rietveld 408576698