Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <?xml version="1.0" encoding="utf-8"?> | 1 <?xml version="1.0" encoding="utf-8"?> |
| 2 <!-- This grd file contains images that are pre-scaled for device scale | 2 <!-- This grd file contains images that are pre-scaled for device scale |
| 3 factors. The image returned by |base::ResourceBundle::GetImageNamed| | 3 factors. The image returned by |base::ResourceBundle::GetImageNamed| |
| 4 will contain multiple |gfx:ImageSkiaReps| for each scale factors. The | 4 will contain multiple |gfx:ImageSkiaReps| for each scale factors. The |
| 5 |fallback_to_low_resolution| attribute controls behavior when | 5 |fallback_to_low_resolution| attribute controls behavior when |
| 6 an image file is missing for target scale factor. If true, chrome | 6 an image file is missing for target scale factor. If true, chrome |
| 7 will automatically scale the 1x image to the target scale factor. | 7 will automatically scale the 1x image to the target scale factor. |
| 8 If false, build will fail due to missing resources. This is | 8 If false, build will fail due to missing resources. This is |
| 9 currently set to true for all resources, but the default will | 9 currently set to true for all resources, but the default will |
| 10 become false in near future. | 10 become false in near future. |
| (...skipping 948 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 959 </if> | 959 </if> |
| 960 <if expr="is_macosx or is_ios"> | 960 <if expr="is_macosx or is_ios"> |
| 961 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_SHADE_TOP" file= "mac/toolbar_shade_top.png" /> | 961 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_SHADE_TOP" file= "mac/toolbar_shade_top.png" /> |
| 962 </if> | 962 </if> |
| 963 <if expr="toolkit_views or is_macosx or is_ios"> | 963 <if expr="toolkit_views or is_macosx or is_ios"> |
| 964 <structure type="chrome_scaled_image" name="IDR_TOOLS" file="common/brow ser_tools_normal.png" /> | 964 <structure type="chrome_scaled_image" name="IDR_TOOLS" file="common/brow ser_tools_normal.png" /> |
| 965 <structure type="chrome_scaled_image" name="IDR_TOOLS_H" file="common/br owser_tools_hover.png" /> | 965 <structure type="chrome_scaled_image" name="IDR_TOOLS_H" file="common/br owser_tools_hover.png" /> |
| 966 <structure type="chrome_scaled_image" name="IDR_TOOLS_P" file="common/br owser_tools_pressed.png" /> | 966 <structure type="chrome_scaled_image" name="IDR_TOOLS_P" file="common/br owser_tools_pressed.png" /> |
| 967 </if> | 967 </if> |
| 968 | 968 |
| 969 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_ACTION_HIGHLIGHT_B OTTOM_LEFT" file="common/toolbar_action_highlight_bottom_left.png" /> | |
|
Peter Kasting
2015/07/23 00:00:11
Instead of adding 9 images at each scale size, can
Devlin
2015/07/23 02:43:30
Good question, and one that I'm not really an auth
Peter Kasting
2015/07/23 05:40:53
We used to use nine images everywhere. The code t
Devlin
2015/07/23 15:30:13
Ah, thanks for the explanation - a single image th
| |
| 970 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_ACTION_HIGHLIGHT_B OTTOM" file="common/toolbar_action_highlight_bottom.png" /> | |
| 971 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_ACTION_HIGHLIGHT_B OTTOM_RIGHT" file="common/toolbar_action_highlight_bottom_right.png" /> | |
| 972 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_ACTION_HIGHLIGHT_C ENTER" file="common/toolbar_action_highlight_center.png" /> | |
| 973 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_ACTION_HIGHLIGHT_L EFT" file="common/toolbar_action_highlight_left.png" /> | |
| 974 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_ACTION_HIGHLIGHT_R IGHT" file="common/toolbar_action_highlight_right.png" /> | |
| 975 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_ACTION_HIGHLIGHT_T OP_LEFT" file="common/toolbar_action_highlight_top_left.png" /> | |
| 976 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_ACTION_HIGHLIGHT_T OP" file="common/toolbar_action_highlight_top.png" /> | |
| 977 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_ACTION_HIGHLIGHT_T OP_RIGHT" file="common/toolbar_action_highlight_top_right.png" /> | |
| 978 | |
| 969 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_BEZEL_HOVER" file= "common/browser_toolbar_bezel_hover.png" /> | 979 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_BEZEL_HOVER" file= "common/browser_toolbar_bezel_hover.png" /> |
| 970 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_BEZEL_PRESSED" fil e="common/browser_toolbar_bezel_pressed.png" /> | 980 <structure type="chrome_scaled_image" name="IDR_TOOLBAR_BEZEL_PRESSED" fil e="common/browser_toolbar_bezel_pressed.png" /> |
| 971 <structure type="chrome_scaled_image" name="IDR_TOOLS_BAR" file="common/br owser_tools_bar.png" /> | 981 <structure type="chrome_scaled_image" name="IDR_TOOLS_BAR" file="common/br owser_tools_bar.png" /> |
| 972 <structure type="chrome_scaled_image" name="IDR_TOOLS_BAR_LOW" file="commo n/browser_tools_bar_low.png" /> | 982 <structure type="chrome_scaled_image" name="IDR_TOOLS_BAR_LOW" file="commo n/browser_tools_bar_low.png" /> |
| 973 <structure type="chrome_scaled_image" name="IDR_TOOLS_BAR_MEDIUM" file="co mmon/browser_tools_bar_medium.png" /> | 983 <structure type="chrome_scaled_image" name="IDR_TOOLS_BAR_MEDIUM" file="co mmon/browser_tools_bar_medium.png" /> |
| 974 <structure type="chrome_scaled_image" name="IDR_TOOLS_BAR_HIGH" file="comm on/browser_tools_bar_high.png" /> | 984 <structure type="chrome_scaled_image" name="IDR_TOOLS_BAR_HIGH" file="comm on/browser_tools_bar_high.png" /> |
| 975 <structure type="chrome_scaled_image" name="IDR_TRANSLATE" file="translate .png" /> | 985 <structure type="chrome_scaled_image" name="IDR_TRANSLATE" file="translate .png" /> |
| 976 <structure type="chrome_scaled_image" name="IDR_TRANSLATE_ACTIVE" file="tr anslate_active.png" /> | 986 <structure type="chrome_scaled_image" name="IDR_TRANSLATE_ACTIVE" file="tr anslate_active.png" /> |
| 977 <structure type="chrome_scaled_image" name="IDR_UP_ARROW" file="common/up_ arrow.png" /> | 987 <structure type="chrome_scaled_image" name="IDR_UP_ARROW" file="common/up_ arrow.png" /> |
| 978 <structure type="chrome_scaled_image" name="IDR_UPDATE_MENU_SEVERITY_LOW" file="common/update_menu_severity_low.png" /> | 988 <structure type="chrome_scaled_image" name="IDR_UPDATE_MENU_SEVERITY_LOW" file="common/update_menu_severity_low.png" /> |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 1013 <!-- People search images --> | 1023 <!-- People search images --> |
| 1014 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_EMAIL " file="common/mail.png" /> | 1024 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_EMAIL " file="common/mail.png" /> |
| 1015 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_EMAIL _HOVER" file="common/mail_hover.png" /> | 1025 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_EMAIL _HOVER" file="common/mail_hover.png" /> |
| 1016 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_EMAIL _PRESSED" file="common/mail_pressed.png" /> | 1026 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_EMAIL _PRESSED" file="common/mail_pressed.png" /> |
| 1017 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_CHAT" file="common/chat.png" /> | 1027 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_CHAT" file="common/chat.png" /> |
| 1018 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_CHAT_ HOVER" file="common/chat_hover.png" /> | 1028 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_CHAT_ HOVER" file="common/chat_hover.png" /> |
| 1019 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_CHAT_ PRESSED" file="common/chat_pressed.png" /> | 1029 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_CHAT_ PRESSED" file="common/chat_pressed.png" /> |
| 1020 </structures> | 1030 </structures> |
| 1021 </release> | 1031 </release> |
| 1022 </grit> | 1032 </grit> |
| OLD | NEW |