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

Side by Side Diff: chrome/app/theme/theme_resources.grd

Issue 1384153003: Introduce a way to define Android-only IDR values that doesn't require (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: shortcircuit pointless lookup Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 305 matching lines...) Expand 10 before | Expand all | Expand 10 after
316 <structure type="chrome_scaled_image" name="IDR_HOME" file="common/brows er_home_normal.png" /> 316 <structure type="chrome_scaled_image" name="IDR_HOME" file="common/brows er_home_normal.png" />
317 </if> 317 </if>
318 <if expr="toolkit_views or is_macosx or is_ios"> 318 <if expr="toolkit_views or is_macosx or is_ios">
319 <structure type="chrome_scaled_image" name="IDR_HOME_H" file="common/bro wser_home_hover.png" /> 319 <structure type="chrome_scaled_image" name="IDR_HOME_H" file="common/bro wser_home_hover.png" />
320 <structure type="chrome_scaled_image" name="IDR_HOME_P" file="common/bro wser_home_pressed.png" /> 320 <structure type="chrome_scaled_image" name="IDR_HOME_P" file="common/bro wser_home_pressed.png" />
321 </if> 321 </if>
322 <structure type="chrome_scaled_image" name="IDR_HOTWORD_NOTIFICATION_ICON" file="common/notification_hotword_icon.png" /> 322 <structure type="chrome_scaled_image" name="IDR_HOTWORD_NOTIFICATION_ICON" file="common/notification_hotword_icon.png" />
323 <if expr="not is_android and not is_ios"> 323 <if expr="not is_android and not is_ios">
324 <!-- TODO(estade): replace with vector image when one's available. --> 324 <!-- TODO(estade): replace with vector image when one's available. -->
325 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_MENU_INCOG NITO" file="common/incognito.png" /> 325 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_MENU_INCOG NITO" file="common/incognito.png" />
326 <if expr="is_macosx"> 326 </if>
327 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_ACCOUNT_ BUTTON_ERROR" file="legacy/avatar_menu_auth_error.png" /> 327 <if expr="is_macosx">
328 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_AVATAR_B UTTON_ERROR" file="legacy/avatar_button_auth_error.png" /> 328 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_ACCOUNT_BU TTON_ERROR" file="legacy/avatar_menu_auth_error.png" />
329 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_EDIT_CAM ERA" file="legacy/edit_camera.png" /> 329 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_AVATAR_BUT TON_ERROR" file="legacy/avatar_button_auth_error.png" />
330 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_EDIT_HOV ER" file="legacy/edit_button_hover.png" /> 330 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_EDIT_CAMER A" file="legacy/edit_camera.png" />
331 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_EDIT_PRE SSED" file="legacy/edit_button_pressed.png" /> 331 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_EDIT_HOVER " file="legacy/edit_button_hover.png" />
332 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_LEGACY_S UPERVISED" file="legacy/icon_legacy_supervised.png" /> 332 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_EDIT_PRESS ED" file="legacy/edit_button_pressed.png" />
333 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_MENU_AVA TAR" file="legacy/avatar_menu_profile.png" /> 333 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_LEGACY_SUP ERVISED" file="legacy/icon_legacy_supervised.png" />
334 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_MENU_CHI LD" file="legacy/avatar_menu_child.png" /> 334 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_MENU_AVATA R" file="legacy/avatar_menu_profile.png" />
335 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_MENU_DIS CONNECT" file="legacy/avatar_menu_disconnect.png" /> 335 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_MENU_CHILD " file="legacy/avatar_menu_child.png" />
336 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_MENU_LEG ACY_SUPERVISED" file="legacy/avatar_menu_legacy_supervised.png" /> 336 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_MENU_DISCO NNECT" file="legacy/avatar_menu_disconnect.png" />
337 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_MENU_LOC K" file="legacy/avatar_menu_lock.png" /> 337 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_MENU_LEGAC Y_SUPERVISED" file="legacy/avatar_menu_legacy_supervised.png" />
338 </if> 338 <structure type="chrome_scaled_image" name="IDR_ICON_PROFILES_MENU_LOCK" file="legacy/avatar_menu_lock.png" />
339 </if> 339 </if>
340 <if expr="not is_android and not is_ios and not chromeos"> 340 <if expr="not is_android and not is_ios and not chromeos">
341 <!-- User Manager tutorial --> 341 <!-- User Manager tutorial -->
342 <structure type="chrome_scaled_image" name="IDR_ICON_USER_MANAGER_TUTORI AL_YOUR_CHROME" file="common/user_manager_tutorial/your_chrome.png" /> 342 <structure type="chrome_scaled_image" name="IDR_ICON_USER_MANAGER_TUTORI AL_YOUR_CHROME" file="common/user_manager_tutorial/your_chrome.png" />
343 <structure type="chrome_scaled_image" name="IDR_ICON_USER_MANAGER_TUTORI AL_GUESTS" file="common/user_manager_tutorial/guests.png" /> 343 <structure type="chrome_scaled_image" name="IDR_ICON_USER_MANAGER_TUTORI AL_GUESTS" file="common/user_manager_tutorial/guests.png" />
344 <structure type="chrome_scaled_image" name="IDR_ICON_USER_MANAGER_TUTORI AL_FRIENDS" file="common/user_manager_tutorial/family_and_friends.png" /> 344 <structure type="chrome_scaled_image" name="IDR_ICON_USER_MANAGER_TUTORI AL_FRIENDS" file="common/user_manager_tutorial/family_and_friends.png" />
345 <structure type="chrome_scaled_image" name="IDR_ICON_USER_MANAGER_TUTORI AL_COMPLETE" file="common/user_manager_tutorial/complete.png" /> 345 <structure type="chrome_scaled_image" name="IDR_ICON_USER_MANAGER_TUTORI AL_COMPLETE" file="common/user_manager_tutorial/complete.png" />
346 </if> 346 </if>
347 <if expr="chromeos"> 347 <if expr="chromeos">
348 <structure type="chrome_scaled_image" name="IDR_ICON_ADD_USER_WHITE" fil e="cros/icon_add_user_white.png" /> 348 <structure type="chrome_scaled_image" name="IDR_ICON_ADD_USER_WHITE" fil e="cros/icon_add_user_white.png" />
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
380 <structure type="chrome_scaled_image" name="IDR_INFOBARBUTTON_PRESSED_TO P_LEFT" file="common/infobarbutton_top_left_pressed.png" /> 380 <structure type="chrome_scaled_image" name="IDR_INFOBARBUTTON_PRESSED_TO P_LEFT" file="common/infobarbutton_top_left_pressed.png" />
381 <structure type="chrome_scaled_image" name="IDR_INFOBARBUTTON_PRESSED_TO P_RIGHT" file="common/infobarbutton_top_right_pressed.png" /> 381 <structure type="chrome_scaled_image" name="IDR_INFOBARBUTTON_PRESSED_TO P_RIGHT" file="common/infobarbutton_top_right_pressed.png" />
382 </if> 382 </if>
383 <structure type="chrome_scaled_image" name="IDR_INFOBAR_3D_BLOCKED" file=" common/infobar_3d_blocked.png" /> 383 <structure type="chrome_scaled_image" name="IDR_INFOBAR_3D_BLOCKED" file=" common/infobar_3d_blocked.png" />
384 <structure type="chrome_scaled_image" name="IDR_INFOBAR_ALT_NAV_URL" file= "common/infobar_alt_nav_url.png" /> 384 <structure type="chrome_scaled_image" name="IDR_INFOBAR_ALT_NAV_URL" file= "common/infobar_alt_nav_url.png" />
385 <structure type="chrome_scaled_image" name="IDR_INFOBAR_APP_BANNER" file=" common/infobar_apps.png" /> 385 <structure type="chrome_scaled_image" name="IDR_INFOBAR_APP_BANNER" file=" common/infobar_apps.png" />
386 <if expr="is_ios"> 386 <if expr="is_ios">
387 <structure type="chrome_scaled_image" name="IDR_INFOBAR_AUTOLOGIN" file= "common/infobar_autologin.png" /> 387 <structure type="chrome_scaled_image" name="IDR_INFOBAR_AUTOLOGIN" file= "common/infobar_autologin.png" />
388 </if> 388 </if>
389 <structure type="chrome_scaled_image" name="IDR_INFOBAR_COOKIE" file="comm on/infobar_cookie.png" /> 389 <structure type="chrome_scaled_image" name="IDR_INFOBAR_COOKIE" file="comm on/infobar_cookie.png" />
390 <if expr="is_android">
391 <!-- The actual image here is not used; this line only exists to
392 reserve a valid ID, so the Android code can map it to the
393 appropriate Android resource. So we just refer to a random
394 image. -->
395 <structure type="chrome_scaled_image" name="IDR_INFOBAR_DESKTOP_NOTIFICA TIONS" file="chromium/product_logo_32.png" />
396 <structure type="chrome_scaled_image" name="IDR_INFOBAR_FROZEN_TAB" file ="chromium/product_logo_32.png" />
397 <structure type="chrome_scaled_image" name="IDR_INFOBAR_FULLSCREEN" file ="chromium/product_logo_32.png" />
398 <structure type="chrome_scaled_image" name="IDR_INFOBAR_GEOLOCATION" fil e="chromium/product_logo_32.png" />
399 <structure type="chrome_scaled_image" name="IDR_INFOBAR_PROTECTED_MEDIA_ IDENTIFIER" file="chromium/product_logo_32.png" />
400 </if>
401 <if expr="is_macosx"> 390 <if expr="is_macosx">
402 <structure type="chrome_scaled_image" name="IDR_INFOBAR_DESKTOP_NOTIFICA TIONS" file="legacy/infobar_desktop_notifications.png" /> 391 <structure type="chrome_scaled_image" name="IDR_INFOBAR_DESKTOP_NOTIFICA TIONS" file="legacy/infobar_desktop_notifications.png" />
403 <structure type="chrome_scaled_image" name="IDR_INFOBAR_GEOLOCATION" fil e="legacy/infobar_geolocation.png" /> 392 <structure type="chrome_scaled_image" name="IDR_INFOBAR_GEOLOCATION" fil e="legacy/infobar_geolocation.png" />
404 </if> 393 </if>
405 <structure type="chrome_scaled_image" name="IDR_INFOBAR_MEDIA_STREAM_CAMER A" file="common/infobar_media_stream_camera.png" /> 394 <structure type="chrome_scaled_image" name="IDR_INFOBAR_MEDIA_STREAM_CAMER A" file="common/infobar_media_stream_camera.png" />
406 <structure type="chrome_scaled_image" name="IDR_INFOBAR_MEDIA_STREAM_MIC" file="common/infobar_media_stream_mic.png" /> 395 <structure type="chrome_scaled_image" name="IDR_INFOBAR_MEDIA_STREAM_MIC" file="common/infobar_media_stream_mic.png" />
407 <structure type="chrome_scaled_image" name="IDR_INFOBAR_MIDI" file="common /infobar_midi.png" /> 396 <structure type="chrome_scaled_image" name="IDR_INFOBAR_MIDI" file="common /infobar_midi.png" />
408 <structure type="chrome_scaled_image" name="IDR_INFOBAR_MULTIPLE_DOWNLOADS " file="common/infobar_multiple_downloads.png" /> 397 <structure type="chrome_scaled_image" name="IDR_INFOBAR_MULTIPLE_DOWNLOADS " file="common/infobar_multiple_downloads.png" />
409 <structure type="chrome_scaled_image" name="IDR_INFOBAR_PLUGIN_CRASHED" fi le="common/infobar_plugin_crashed.png" /> 398 <structure type="chrome_scaled_image" name="IDR_INFOBAR_PLUGIN_CRASHED" fi le="common/infobar_plugin_crashed.png" />
410 <structure type="chrome_scaled_image" name="IDR_INFOBAR_PLUGIN_INSTALL" fi le="common/infobar_plugin_install.png" /> 399 <structure type="chrome_scaled_image" name="IDR_INFOBAR_PLUGIN_INSTALL" fi le="common/infobar_plugin_install.png" />
(...skipping 627 matching lines...) Expand 10 before | Expand all | Expand 10 after
1038 <!-- People search images --> 1027 <!-- People search images -->
1039 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_EMAIL " file="common/mail.png" /> 1028 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_EMAIL " file="common/mail.png" />
1040 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_EMAIL _HOVER" file="common/mail_hover.png" /> 1029 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_EMAIL _HOVER" file="common/mail_hover.png" />
1041 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_EMAIL _PRESSED" file="common/mail_pressed.png" /> 1030 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_EMAIL _PRESSED" file="common/mail_pressed.png" />
1042 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_CHAT" file="common/chat.png" /> 1031 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_CHAT" file="common/chat.png" />
1043 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_CHAT_ HOVER" file="common/chat_hover.png" /> 1032 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_CHAT_ HOVER" file="common/chat_hover.png" />
1044 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_CHAT_ PRESSED" file="common/chat_pressed.png" /> 1033 <structure type="chrome_scaled_image" name="IDR_PEOPLE_SEARCH_ACTION_CHAT_ PRESSED" file="common/chat_pressed.png" />
1045 </structures> 1034 </structures>
1046 </release> 1035 </release>
1047 </grit> 1036 </grit>
OLDNEW
« no previous file with comments | « chrome/android/java/ResourceId.template ('k') | chrome/browser/android/android_theme_resources.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698