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

Issue 15650005: Create app shims with 32-bit icons only, as per OSX 10.5 spec. (Closed)

Created:
7 years, 7 months ago by tapted
Modified:
7 years, 6 months ago
CC:
chromium-reviews, sail+watch_chromium.org, chrome-apps-syd-reviews_chromium.org
Visibility:
Public.

Description

Create app shims with 32-bit icons only, as per OSX 10.5 spec. This removes third_party/IconFamily from Chrome, which creates questionable results when adding icon sizes < 128px. Since OSX 10.5, OSX hasn't used indexed icons or alpha masks when a 32-bit icon is available (see notes in OSServices.framework/IconStorage.h). BUG=241304 TEST=Create an app shim and inspect Resources/app.icns using OSX Preview -- ensure the icons are correct. TBR=darin@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203050

Patch Set 1 : neater #

Patch Set 2 : alternative #

Patch Set 3 : diff pedant #

Patch Set 4 : skautolockpixels #

Total comments: 5

Patch Set 5 : address comments #

Total comments: 4

Patch Set 6 : address comments #

Total comments: 4

Patch Set 7 : Add DCHECKs #

Patch Set 8 : remove third_party/icon_family #

Total comments: 2

Patch Set 9 : remove template #

Unified diffs Side-by-side diffs Delta from patch set Stats (+78 lines, -2558 lines) Patch
M chrome/DEPS View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/web_applications/web_app_mac.mm View 1 2 3 4 5 6 7 8 5 chunks +78 lines, -50 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 chunk +0 lines, -3 lines 0 comments Download
D third_party/icon_family/IconFamily.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -194 lines 0 comments Download
D third_party/icon_family/IconFamily.m View 1 2 3 4 5 6 7 1 chunk +0 lines, -1764 lines 0 comments Download
D third_party/icon_family/LICENSE View 1 2 3 4 5 6 7 1 chunk +0 lines, -10 lines 0 comments Download
D third_party/icon_family/NSString+CarbonFSRefCreation.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -25 lines 0 comments Download
D third_party/icon_family/NSString+CarbonFSRefCreation.m View 1 2 3 4 5 6 7 1 chunk +0 lines, -58 lines 0 comments Download
D third_party/icon_family/README.chromium View 1 2 3 4 5 6 7 1 chunk +0 lines, -15 lines 0 comments Download
D third_party/icon_family/chromium_icon_family.patch View 1 2 3 4 5 6 7 1 chunk +0 lines, -222 lines 0 comments Download
D third_party/icon_family/chromium_icon_family_2.patch View 1 2 3 4 5 6 7 1 chunk +0 lines, -189 lines 0 comments Download
D third_party/icon_family/icon_family.gyp View 1 2 3 4 5 6 7 1 chunk +0 lines, -27 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
tapted
ben, would you like to take a look? https://codereview.chromium.org/15650005/diff/8001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/15650005/diff/8001/chrome/browser/web_applications/web_app_mac.mm#newcode33 chrome/browser/web_applications/web_app_mac.mm:33: void ...
7 years, 7 months ago (2013-05-22 08:27:33 UTC) #1
tapted
Hi Charles, maybe you have some knowledge in this area. Apple's documentation is a bit ...
7 years, 7 months ago (2013-05-22 23:06:19 UTC) #2
benwells
https://codereview.chromium.org/15650005/diff/8001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/15650005/diff/8001/chrome/browser/web_applications/web_app_mac.mm#newcode83 chrome/browser/web_applications/web_app_mac.mm:83: Handle raw_data = NewHandle(bitmap.getSize()); I can see that it ...
7 years, 7 months ago (2013-05-23 00:42:04 UTC) #3
tapted
I've addressed both comments by moving my added ScopedCarbonHandle class up and making it generic. ...
7 years, 7 months ago (2013-05-23 04:03:43 UTC) #4
benwells
lgtm, but we need someone with more mac know how (e.g. dharcourt) to give lg ...
7 years, 7 months ago (2013-05-23 04:15:24 UTC) #5
tapted
https://codereview.chromium.org/15650005/diff/21001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/15650005/diff/21001/chrome/browser/web_applications/web_app_mac.mm#newcode61 chrome/browser/web_applications/web_app_mac.mm:61: CHECK_EQ(bitmap.rowBytes() * bitmap.height(), bitmap.getSize()); On 2013/05/23 04:15:24, benwells wrote: ...
7 years, 7 months ago (2013-05-23 04:30:02 UTC) #6
dharcourt
LGTM. Fun to see Handles still exist out there. I'm assuming there are reasons to ...
7 years, 7 months ago (2013-05-24 02:03:32 UTC) #7
tapted
+Nico for src/chrome OWNERS - there's a semi-structural change in chrome_browser.gypi for Mac here. On ...
7 years, 7 months ago (2013-05-24 04:38:38 UTC) #8
Nico
+sail who added IconFamily to the repo
7 years, 7 months ago (2013-05-24 05:05:56 UTC) #9
tapted
sail: ping?
7 years, 6 months ago (2013-05-28 23:17:04 UTC) #10
sail
This looks great. Could you delete third_party/icon_family when this lands? Also, can you verify that ...
7 years, 6 months ago (2013-05-29 00:31:37 UTC) #11
tapted
Updated & retested. On 2013/05/29 00:31:37, sail wrote: > This looks great. Could you delete ...
7 years, 6 months ago (2013-05-29 01:37:36 UTC) #12
sail
> Yes - I think there's a deps2git post-commit hook that will pick up the ...
7 years, 6 months ago (2013-05-29 04:38:42 UTC) #13
tapted
On 2013/05/29 04:38:42, sail wrote: > > Yes - I think there's a deps2git post-commit ...
7 years, 6 months ago (2013-05-29 05:35:09 UTC) #14
sail
lgtm!
7 years, 6 months ago (2013-05-29 14:54:04 UTC) #15
Nico
lgtm with comment addressed https://codereview.chromium.org/15650005/diff/46001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/15650005/diff/46001/chrome/browser/web_applications/web_app_mac.mm#newcode45 chrome/browser/web_applications/web_app_mac.mm:45: template <class GetAsType> You only ...
7 years, 6 months ago (2013-05-29 15:05:39 UTC) #16
tapted
TBR=darin for third_party changes (not adding stuff) https://codereview.chromium.org/15650005/diff/46001/chrome/browser/web_applications/web_app_mac.mm File chrome/browser/web_applications/web_app_mac.mm (right): https://codereview.chromium.org/15650005/diff/46001/chrome/browser/web_applications/web_app_mac.mm#newcode45 chrome/browser/web_applications/web_app_mac.mm:45: template <class ...
7 years, 6 months ago (2013-05-29 23:39:03 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/tapted@chromium.org/15650005/55001
7 years, 6 months ago (2013-05-29 23:44:24 UTC) #18
commit-bot: I haz the power
7 years, 6 months ago (2013-05-30 03:55:07 UTC) #19
Message was sent while issue was closed.
Change committed as 203050

Powered by Google App Engine
This is Rietveld 408576698