| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 // This file maps Chromium resource IDs to Android resource IDs. | 5 // This file maps Chromium resource IDs to Android resource IDs. |
| 6 | 6 |
| 7 // LINK_RESOURCE_ID is used for IDs that come from a .grd file. | 7 // LINK_RESOURCE_ID is used for IDs that come from a .grd file. |
| 8 #ifndef LINK_RESOURCE_ID | 8 #ifndef LINK_RESOURCE_ID |
| 9 #error "LINK_RESOURCE_ID should be defined before including this file" | 9 #error "LINK_RESOURCE_ID should be defined before including this file" |
| 10 #endif | 10 #endif |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 R.drawable.infobar_multiple_downloads) | 37 R.drawable.infobar_multiple_downloads) |
| 38 DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_NOTIFICATIONS, | 38 DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_NOTIFICATIONS, |
| 39 R.drawable.infobar_desktop_notifications) | 39 R.drawable.infobar_desktop_notifications) |
| 40 DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_PREVIEWS, | 40 DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_PREVIEWS, |
| 41 R.drawable.infobar_chrome) | 41 R.drawable.infobar_chrome) |
| 42 DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_PROTECTED_MEDIA_IDENTIFIER, | 42 DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_PROTECTED_MEDIA_IDENTIFIER, |
| 43 R.drawable.infobar_protected_media_identifier) | 43 R.drawable.infobar_protected_media_identifier) |
| 44 DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_SUBRESOURCE_FILTERING, | 44 DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_SUBRESOURCE_FILTERING, |
| 45 R.drawable.infobar_chrome) | 45 R.drawable.infobar_chrome) |
| 46 DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_WARNING, R.drawable.infobar_warning) | 46 DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_WARNING, R.drawable.infobar_warning) |
| 47 DECLARE_RESOURCE_ID(IDR_ANDROID_INFOBAR_PAYMENT_HANDLER, |
| 48 R.drawable.infobar_chrome) |
| 47 | 49 |
| 48 // PageInfoUI images, used in ConnectionInfoPopup | 50 // PageInfoUI images, used in ConnectionInfoPopup |
| 49 // Good: | 51 // Good: |
| 50 DECLARE_RESOURCE_ID(IDR_PAGEINFO_GOOD, R.drawable.pageinfo_good) | 52 DECLARE_RESOURCE_ID(IDR_PAGEINFO_GOOD, R.drawable.pageinfo_good) |
| 51 // Warnings: | 53 // Warnings: |
| 52 DECLARE_RESOURCE_ID(IDR_PAGEINFO_WARNING_MINOR, R.drawable.pageinfo_warning) | 54 DECLARE_RESOURCE_ID(IDR_PAGEINFO_WARNING_MINOR, R.drawable.pageinfo_warning) |
| 53 // Bad: | 55 // Bad: |
| 54 DECLARE_RESOURCE_ID(IDR_PAGEINFO_BAD, R.drawable.pageinfo_bad) | 56 DECLARE_RESOURCE_ID(IDR_PAGEINFO_BAD, R.drawable.pageinfo_bad) |
| 55 // Should never occur, use warning just in case: | 57 // Should never occur, use warning just in case: |
| 56 // Enterprise managed: ChromeOS only. | 58 // Enterprise managed: ChromeOS only. |
| (...skipping 23 matching lines...) Expand all Loading... |
| 80 LINK_RESOURCE_ID(IDR_AUTOFILL_HTTPS_INVALID_WARNING, R.drawable.ic_warning_red) | 82 LINK_RESOURCE_ID(IDR_AUTOFILL_HTTPS_INVALID_WARNING, R.drawable.ic_warning_red) |
| 81 | 83 |
| 82 // We display settings and edit icon for keyboard accessory using Android's | 84 // We display settings and edit icon for keyboard accessory using Android's |
| 83 // |VectorDrawableCompat|. We do not display these icons for autofill popup. | 85 // |VectorDrawableCompat|. We do not display these icons for autofill popup. |
| 84 LINK_RESOURCE_ID(IDR_AUTOFILL_SETTINGS, R.drawable.ic_settings_black) | 86 LINK_RESOURCE_ID(IDR_AUTOFILL_SETTINGS, R.drawable.ic_settings_black) |
| 85 LINK_RESOURCE_ID(IDR_AUTOFILL_CREATE, R.drawable.ic_edit_24dp) | 87 LINK_RESOURCE_ID(IDR_AUTOFILL_CREATE, R.drawable.ic_edit_24dp) |
| 86 | 88 |
| 87 // We use PNG files for the following images. | 89 // We use PNG files for the following images. |
| 88 LINK_RESOURCE_ID(IDR_CREDIT_CARD_CVC_HINT, R.drawable.cvc_icon) | 90 LINK_RESOURCE_ID(IDR_CREDIT_CARD_CVC_HINT, R.drawable.cvc_icon) |
| 89 LINK_RESOURCE_ID(IDR_CREDIT_CARD_CVC_HINT_AMEX, R.drawable.cvc_icon_amex) | 91 LINK_RESOURCE_ID(IDR_CREDIT_CARD_CVC_HINT_AMEX, R.drawable.cvc_icon_amex) |
| OLD | NEW |