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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 // Major warning: Used on insecure pages, which don't show the connection info | 61 // Major warning: Used on insecure pages, which don't show the connection info |
62 // popup. | 62 // popup. |
63 DECLARE_RESOURCE_ID(IDR_PAGEINFO_WARNING_MAJOR, R.drawable.pageinfo_warning) | 63 DECLARE_RESOURCE_ID(IDR_PAGEINFO_WARNING_MAJOR, R.drawable.pageinfo_warning) |
64 | 64 |
65 // Autofill popup and keyboard accessory images. | 65 // Autofill popup and keyboard accessory images. |
66 // We use Android's |VectorDrawableCompat| for the following images that are | 66 // We use Android's |VectorDrawableCompat| for the following images that are |
67 // displayed using |DropdownAdapter|. | 67 // displayed using |DropdownAdapter|. |
68 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_AMEX, R.drawable.amex_card) | 68 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_AMEX, R.drawable.amex_card) |
69 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_DINERS, R.drawable.diners_card) | 69 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_DINERS, R.drawable.diners_card) |
70 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_DISCOVER, R.drawable.discover_card) | 70 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_DISCOVER, R.drawable.discover_card) |
| 71 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_ELO, R.drawable.elo_card) |
71 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_GENERIC, R.drawable.ic_credit_card_black) | 72 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_GENERIC, R.drawable.ic_credit_card_black) |
72 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_JCB, R.drawable.jcb_card) | 73 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_JCB, R.drawable.jcb_card) |
73 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_MASTERCARD, R.drawable.mc_card) | 74 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_MASTERCARD, R.drawable.mc_card) |
74 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_MIR, R.drawable.mir_card) | 75 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_MIR, R.drawable.mir_card) |
75 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_UNIONPAY, R.drawable.unionpay_card) | 76 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_UNIONPAY, R.drawable.unionpay_card) |
76 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_VISA, R.drawable.visa_card) | 77 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_VISA, R.drawable.visa_card) |
77 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_SCAN_NEW, R.drawable.ic_photo_camera_black) | 78 LINK_RESOURCE_ID(IDR_AUTOFILL_CC_SCAN_NEW, R.drawable.ic_photo_camera_black) |
78 LINK_RESOURCE_ID(IDR_AUTOFILL_HTTP_WARNING, R.drawable.ic_info_outline_grey) | 79 LINK_RESOURCE_ID(IDR_AUTOFILL_HTTP_WARNING, R.drawable.ic_info_outline_grey) |
79 LINK_RESOURCE_ID(IDR_AUTOFILL_HTTPS_INVALID_WARNING, R.drawable.ic_warning_red) | 80 LINK_RESOURCE_ID(IDR_AUTOFILL_HTTPS_INVALID_WARNING, R.drawable.ic_warning_red) |
80 | 81 |
81 // We display settings and edit icon for keyboard accessory using Android's | 82 // We display settings and edit icon for keyboard accessory using Android's |
82 // |VectorDrawableCompat|. We do not display these icons for autofill popup. | 83 // |VectorDrawableCompat|. We do not display these icons for autofill popup. |
83 LINK_RESOURCE_ID(IDR_AUTOFILL_SETTINGS, R.drawable.ic_settings_black) | 84 LINK_RESOURCE_ID(IDR_AUTOFILL_SETTINGS, R.drawable.ic_settings_black) |
84 LINK_RESOURCE_ID(IDR_AUTOFILL_CREATE, R.drawable.ic_edit_24dp) | 85 LINK_RESOURCE_ID(IDR_AUTOFILL_CREATE, R.drawable.ic_edit_24dp) |
85 | 86 |
86 // We use PNG files for the following images. | 87 // We use PNG files for the following images. |
87 LINK_RESOURCE_ID(IDR_CREDIT_CARD_CVC_HINT, R.drawable.cvc_icon) | 88 LINK_RESOURCE_ID(IDR_CREDIT_CARD_CVC_HINT, R.drawable.cvc_icon) |
88 LINK_RESOURCE_ID(IDR_CREDIT_CARD_CVC_HINT_AMEX, R.drawable.cvc_icon_amex) | 89 LINK_RESOURCE_ID(IDR_CREDIT_CARD_CVC_HINT_AMEX, R.drawable.cvc_icon_amex) |
OLD | NEW |