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

Issue 2251643011: Move Ash-specific vector icons to ash/common/resources (Closed)

Created:
4 years, 4 months ago by tdanderson
Modified:
4 years, 3 months ago
CC:
chromium-reviews, kalyank, sadrul
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Move Ash-specific vector icons to ash/common/resources Adds the initial plumbing needed in order to move Ash-specific .icon files out of ui/gfx/vector_icons and into ash/common/resources/vector_icons. As a result, these icons will only be included when the 'ash' component is built. Previously, the icon file foo_bar.icon would be identified in code as the enum value gfx::VectorIconId::FOO_BAR. For Ash-specific icons, foo_bar.icon is now identified in code as the constant ash::kFooBarIcon, which maps to a VectorIcon struct (also introduced in this CL). The eventual goal is for all icons to be identified in this manner, and for the gfx::VectorIconId struct to be removed. BUG=626786 TEST=manual Committed: https://crrev.com/70e20e220418a0897ba123a53c2e0a27b369b7a3 Cr-Commit-Position: refs/heads/master@{#415782}

Patch Set 1 #

Total comments: 12

Patch Set 2 : for review #

Total comments: 12

Patch Set 3 : rebase #

Patch Set 4 : comments addressed #

Patch Set 5 : fix sources #

Patch Set 6 : fix sources again #

Unified diffs Side-by-side diffs Delta from patch set Stats (+404 lines, -197 lines) Patch
M ash/BUILD.gn View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/DEPS View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ash/common/system/ime/tray_ime_chromeos.cc View 1 2 3 3 chunks +3 lines, -4 lines 0 comments Download
A ash/resources/vector_icons/BUILD.gn View 1 2 3 4 5 1 chunk +47 lines, -0 lines 0 comments Download
A + ash/resources/vector_icons/system_menu_keyboard.icon View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A + ash/resources/vector_icons/system_menu_keyboard.1x.icon View 1 2 3 0 chunks +-1 lines, --1 lines 0 comments Download
A ash/resources/vector_icons/vector_icons.cc.template View 1 2 3 1 chunk +25 lines, -0 lines 0 comments Download
A ash/resources/vector_icons/vector_icons.h.template View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
M ui/gfx/paint_vector_icon.h View 1 3 chunks +15 lines, -0 lines 0 comments Download
M ui/gfx/paint_vector_icon.cc View 1 2 3 7 chunks +134 lines, -16 lines 0 comments Download
M ui/gfx/vector_icon_types.h View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M ui/gfx/vector_icons/BUILD.gn View 1 2 3 2 chunks +1 line, -2 lines 0 comments Download
M ui/gfx/vector_icons/aggregate_vector_icons.py View 1 3 chunks +144 lines, -13 lines 0 comments Download
D ui/gfx/vector_icons/system_menu_keyboard.icon View 1 chunk +0 lines, -82 lines 0 comments Download
D ui/gfx/vector_icons/system_menu_keyboard.1x.icon View 1 chunk +0 lines, -82 lines 0 comments Download

Messages

Total messages: 41 (27 generated)
tdanderson
Sadrul and Evan: after trying a few things this is the path that seems most ...
4 years, 4 months ago (2016-08-19 21:23:35 UTC) #6
sadrul
https://codereview.chromium.org/2251643011/diff/1/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2251643011/diff/1/ash/BUILD.gn#newcode21 ash/BUILD.gn:21: sources += [ On 2016/08/19 21:23:35, tdanderson wrote: > ...
4 years, 3 months ago (2016-08-22 15:14:06 UTC) #7
Evan Stade
nice, I like https://codereview.chromium.org/2251643011/diff/1/ash/common/system/ime/tray_ime_chromeos.cc File ash/common/system/ime/tray_ime_chromeos.cc (right): https://codereview.chromium.org/2251643011/diff/1/ash/common/system/ime/tray_ime_chromeos.cc#newcode77 ash/common/system/ime/tray_ime_chromeos.cc:77: gfx::CreateVectorIcon(&ash::SYSTEM_MENU_KEYBOARD, kMenuIconColor)); On 2016/08/19 21:23:35, tdanderson ...
4 years, 3 months ago (2016-08-22 16:46:54 UTC) #8
tdanderson
Evan and Sadrul, please review Patch Set 2. https://codereview.chromium.org/2251643011/diff/1/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2251643011/diff/1/ash/BUILD.gn#newcode21 ash/BUILD.gn:21: sources ...
4 years, 3 months ago (2016-08-25 21:54:32 UTC) #11
Evan Stade
lgtm! update description? https://codereview.chromium.org/2251643011/diff/20001/ui/gfx/vector_icon_types.h File ui/gfx/vector_icon_types.h (right): https://codereview.chromium.org/2251643011/diff/20001/ui/gfx/vector_icon_types.h#newcode15 ui/gfx/vector_icon_types.h:15: struct VectorIcon; why is this here?
4 years, 3 months ago (2016-08-26 22:34:06 UTC) #14
sadrul
https://codereview.chromium.org/2251643011/diff/20001/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2251643011/diff/20001/ash/BUILD.gn#newcode20 ash/BUILD.gn:20: [ rebase_path("common/resources/vector_icons_sources.gypi") ], This gypi is not used anywhere ...
4 years, 3 months ago (2016-08-30 19:31:08 UTC) #15
tdanderson
James and Oshima, can you please take a look at ash/? I chose ash/common/resources as ...
4 years, 3 months ago (2016-08-30 21:45:15 UTC) #18
James Cook
For ash I would just use //ash/resources and allow it in DEPS. (I like this ...
4 years, 3 months ago (2016-08-30 22:10:12 UTC) #19
oshima
nice, lgtm my bits with one optional suggestion. https://codereview.chromium.org/2251643011/diff/20001/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2251643011/diff/20001/ash/BUILD.gn#newcode20 ash/BUILD.gn:20: [ ...
4 years, 3 months ago (2016-08-31 00:11:44 UTC) #20
Evan Stade
https://codereview.chromium.org/2251643011/diff/20001/ui/gfx/paint_vector_icon.cc File ui/gfx/paint_vector_icon.cc (right): https://codereview.chromium.org/2251643011/diff/20001/ui/gfx/paint_vector_icon.cc#newcode368 ui/gfx/paint_vector_icon.cc:368: return id_ != VectorIconId::VECTOR_ICON_NONE; I can't actually remember why ...
4 years, 3 months ago (2016-08-31 00:47:03 UTC) #21
tdanderson
https://codereview.chromium.org/2251643011/diff/20001/ash/BUILD.gn File ash/BUILD.gn (right): https://codereview.chromium.org/2251643011/diff/20001/ash/BUILD.gn#newcode20 ash/BUILD.gn:20: [ rebase_path("common/resources/vector_icons_sources.gypi") ], On 2016/08/31 00:11:44, oshima wrote: > ...
4 years, 3 months ago (2016-08-31 22:18:21 UTC) #34
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2251643011/100001
4 years, 3 months ago (2016-08-31 22:19:30 UTC) #37
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 3 months ago (2016-08-31 22:25:42 UTC) #39
commit-bot: I haz the power
4 years, 3 months ago (2016-08-31 22:27:17 UTC) #41
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/70e20e220418a0897ba123a53c2e0a27b369b7a3
Cr-Commit-Position: refs/heads/master@{#415782}

Powered by Google App Engine
This is Rietveld 408576698