Rename/move autofill_popup_controller_utils to //components.
Bug: 1079268 Change-Id: Ib9fdb9804026faf6c0d4963274b9d223abbd9de8 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4812298 Reviewed-by: Peter Kotwicz <pkotwicz@chromium.org> Code-Coverage: findit-for-me@appspot.gserviceaccount.com <findit-for-me@appspot.gserviceaccount.com> Commit-Queue: Ted Choc <tedchoc@chromium.org> Cr-Commit-Position: refs/heads/main@{#1188518}
This commit is contained in:

committed by
Chromium LUCI CQ

parent
0feb7fac89
commit
1b788a3b0b
chrome
android
browser
android
autofill
ui
components
autofill
android
core
resources
@ -848,6 +848,7 @@ if (current_toolchain == default_toolchain) {
|
||||
sources = [ "java/ResourceId.template" ]
|
||||
inputs = [
|
||||
"../browser/android/resource_id.h",
|
||||
"//components/resources/android/autofill_resource_id.h",
|
||||
"//components/resources/android/blocked_content_resource_id.h",
|
||||
"//components/resources/android/page_info_resource_id.h",
|
||||
"//components/resources/android/permissions_resource_id.h",
|
||||
|
@ -395,7 +395,6 @@ chrome_java_resources = [
|
||||
"java/res/drawable/ic_new_tab_button.xml",
|
||||
"java/res/drawable/ic_new_tab_button_tsr.xml",
|
||||
"java/res/drawable/ic_new_window.xml",
|
||||
"java/res/drawable/ic_offer_tag.xml",
|
||||
"java/res/drawable/ic_open_in_browser.xml",
|
||||
"java/res/drawable/ic_open_webapk.xml",
|
||||
"java/res/drawable/ic_person_add_40dp.xml",
|
||||
|
@ -12,6 +12,7 @@ class ResourceId {
|
||||
#define LINK_RESOURCE_ID(c_id,java_id) java_id,
|
||||
#define DECLARE_RESOURCE_ID(c_id,java_id) java_id,
|
||||
#include "chrome/browser/android/resource_id.h"
|
||||
#include "components/resources/android/autofill_resource_id.h"
|
||||
#include "components/resources/android/blocked_content_resource_id.h"
|
||||
#include "components/resources/android/page_info_resource_id.h"
|
||||
#include "components/resources/android/permissions_resource_id.h"
|
||||
|
@ -72,56 +72,8 @@ DECLARE_RESOURCE_ID(IDR_ANDROID_PASSWORD_MANAGER_LOGO_24DP,
|
||||
R.drawable.ic_vpn_key_blue)
|
||||
#endif
|
||||
|
||||
// Autofill popup and keyboard accessory images.
|
||||
// We use Android's |VectorDrawableCompat| for the following images that are
|
||||
// displayed using |DropdownAdapter|.
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_AMEX, R.drawable.amex_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_DINERS, R.drawable.diners_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_DISCOVER, R.drawable.discover_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_ELO, R.drawable.elo_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_GENERIC, R.drawable.ic_credit_card_black)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_JCB, R.drawable.jcb_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_MASTERCARD, R.drawable.mc_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_MIR, R.drawable.mir_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_TROY, R.drawable.troy_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_UNIONPAY, R.drawable.unionpay_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_VISA, R.drawable.visa_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_GOOGLE_PAY, R.drawable.google_pay)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_AMEX, R.drawable.amex_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_CAPITALONE,
|
||||
R.drawable.capitalone_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_DINERS,
|
||||
R.drawable.diners_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_DISCOVER,
|
||||
R.drawable.discover_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_ELO, R.drawable.elo_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_GENERIC,
|
||||
R.drawable.ic_metadata_credit_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_JCB, R.drawable.jcb_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_MASTERCARD,
|
||||
R.drawable.mc_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_MIR, R.drawable.mir_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_TROY, R.drawable.troy_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_UNIONPAY,
|
||||
R.drawable.unionpay_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_VISA, R.drawable.visa_metadata_card)
|
||||
// Use DECLARE_RESOURCE_ID here as these resources are used for android only.
|
||||
DECLARE_RESOURCE_ID(IDR_ANDROID_AUTOFILL_CC_SCAN_NEW,
|
||||
R.drawable.ic_photo_camera_black)
|
||||
DECLARE_RESOURCE_ID(IDR_ANDROID_AUTOFILL_HTTP_WARNING,
|
||||
R.drawable.ic_info_outline_grey_16dp)
|
||||
DECLARE_RESOURCE_ID(IDR_ANDROID_AUTOFILL_HTTPS_INVALID_WARNING,
|
||||
R.drawable.ic_warning_red_16dp)
|
||||
DECLARE_RESOURCE_ID(IDR_ANDROID_AUTOFILL_OFFER_TAG_GREEN,
|
||||
R.drawable.ic_offer_tag)
|
||||
|
||||
DECLARE_RESOURCE_ID(IDR_SEND_TAB_TO_SELF, R.drawable.send_tab)
|
||||
|
||||
// We display settings and edit icon for keyboard accessory using Android's
|
||||
// |VectorDrawableCompat|. We do not display these icons for autofill popup.
|
||||
DECLARE_RESOURCE_ID(IDR_ANDROID_AUTOFILL_SETTINGS, R.drawable.ic_settings_black)
|
||||
DECLARE_RESOURCE_ID(IDR_ANDROID_AUTOFILL_CREATE, R.drawable.ic_edit_24dp)
|
||||
|
||||
// Icon displayed in the save address message on Android.
|
||||
DECLARE_RESOURCE_ID(IDR_ANDROID_AUTOFILL_ADDRESS,
|
||||
R.drawable.gm_filled_location_on_24)
|
||||
|
@ -54,6 +54,7 @@ void ResourceMapper::ConstructMap() {
|
||||
#define DECLARE_RESOURCE_ID(c_id, java_id) \
|
||||
g_id_map.Get()[c_id] = resource_id_list[next_id++];
|
||||
#include "chrome/browser/android/resource_id.h"
|
||||
#include "components/resources/android/autofill_resource_id.h"
|
||||
#include "components/resources/android/blocked_content_resource_id.h"
|
||||
#include "components/resources/android/page_info_resource_id.h"
|
||||
#include "components/resources/android/permissions_resource_id.h"
|
||||
|
@ -24,8 +24,6 @@ static_library("autofill") {
|
||||
"autofill_offer_manager_factory.h",
|
||||
"autofill_optimization_guide_factory.cc",
|
||||
"autofill_optimization_guide_factory.h",
|
||||
"autofill_popup_controller_utils.cc",
|
||||
"autofill_popup_controller_utils.h",
|
||||
"iban_manager_factory.cc",
|
||||
"iban_manager_factory.h",
|
||||
"merchant_promo_code_manager_factory.cc",
|
||||
|
@ -19,7 +19,6 @@
|
||||
#include "base/time/time.h"
|
||||
#include "chrome/browser/android/resource_mapper.h"
|
||||
#include "chrome/browser/autofill/android/jni_headers/PersonalDataManager_jni.h"
|
||||
#include "chrome/browser/autofill/autofill_popup_controller_utils.h"
|
||||
#include "chrome/browser/autofill/personal_data_manager_factory.h"
|
||||
#include "chrome/browser/autofill/validation_rules_storage_factory.h"
|
||||
#include "chrome/browser/browser_process.h"
|
||||
@ -36,6 +35,7 @@
|
||||
#include "components/autofill/core/browser/geo/autofill_country.h"
|
||||
#include "components/autofill/core/browser/geo/country_names.h"
|
||||
#include "components/autofill/core/browser/personal_data_manager.h"
|
||||
#include "components/autofill/core/browser/ui/autofill_resource_utils.h"
|
||||
#include "components/autofill/core/browser/validation.h"
|
||||
#include "components/autofill/core/common/autofill_clock.h"
|
||||
#include "components/autofill/core/common/autofill_constants.h"
|
||||
|
@ -17,9 +17,9 @@
|
||||
#include "base/types/cxx23_to_underlying.h"
|
||||
#include "chrome/android/features/keyboard_accessory/internal/jni/AutofillKeyboardAccessoryViewBridge_jni.h"
|
||||
#include "chrome/browser/android/resource_mapper.h"
|
||||
#include "chrome/browser/autofill/autofill_popup_controller_utils.h"
|
||||
#include "chrome/browser/ui/android/autofill/autofill_accessibility_utils.h"
|
||||
#include "chrome/browser/ui/autofill/autofill_popup_controller.h"
|
||||
#include "components/autofill/core/browser/ui/autofill_resource_utils.h"
|
||||
#include "components/autofill/core/browser/ui/suggestion.h"
|
||||
#include "components/autofill/core/common/autofill_features.h"
|
||||
#include "components/autofill/core/common/autofill_payments_features.h"
|
||||
|
@ -18,11 +18,11 @@
|
||||
#include "base/types/cxx23_to_underlying.h"
|
||||
#include "chrome/android/chrome_jni_headers/AutofillPopupBridge_jni.h"
|
||||
#include "chrome/browser/android/resource_mapper.h"
|
||||
#include "chrome/browser/autofill/autofill_popup_controller_utils.h"
|
||||
#include "chrome/browser/ui/android/autofill/autofill_accessibility_utils.h"
|
||||
#include "chrome/browser/ui/android/autofill/autofill_keyboard_accessory_view.h"
|
||||
#include "chrome/browser/ui/autofill/autofill_keyboard_accessory_adapter.h"
|
||||
#include "chrome/browser/ui/autofill/autofill_popup_controller.h"
|
||||
#include "components/autofill/core/browser/ui/autofill_resource_utils.h"
|
||||
#include "components/autofill/core/browser/ui/popup_item_ids.h"
|
||||
#include "components/autofill/core/browser/ui/suggestion.h"
|
||||
#include "components/autofill/core/common/autofill_features.h"
|
||||
|
@ -6,8 +6,8 @@
|
||||
|
||||
#include "chrome/android/chrome_jni_headers/CardUnmaskBridge_jni.h"
|
||||
#include "chrome/browser/android/resource_mapper.h"
|
||||
#include "chrome/browser/autofill/autofill_popup_controller_utils.h"
|
||||
#include "chrome/browser/ui/autofill/payments/create_card_unmask_prompt_view.h"
|
||||
#include "components/autofill/core/browser/ui/autofill_resource_utils.h"
|
||||
#include "components/autofill/core/browser/ui/payments/card_unmask_prompt_controller.h"
|
||||
#include "components/autofill/core/common/autofill_payments_features.h"
|
||||
#include "content/public/browser/web_contents.h"
|
||||
|
@ -7,7 +7,7 @@
|
||||
#include "base/android/jni_string.h"
|
||||
#include "chrome/android/chrome_jni_headers/VirtualCardEnrollmentFields_jni.h"
|
||||
#include "chrome/browser/android/resource_mapper.h"
|
||||
#include "chrome/browser/autofill/autofill_popup_controller_utils.h"
|
||||
#include "components/autofill/core/browser/ui/autofill_resource_utils.h"
|
||||
#include "ui/gfx/android/java_bitmap.h"
|
||||
#include "ui/gfx/image/image.h"
|
||||
#include "ui/gfx/image/image_skia.h"
|
||||
|
@ -11,8 +11,8 @@
|
||||
#include "base/time/time.h"
|
||||
#include "base/types/cxx23_to_underlying.h"
|
||||
#include "chrome/app/vector_icons/vector_icons.h"
|
||||
#include "chrome/browser/autofill/autofill_popup_controller_utils.h"
|
||||
#include "chrome/browser/ui/autofill/autofill_popup_controller.h"
|
||||
#include "components/autofill/core/browser/ui/autofill_resource_utils.h"
|
||||
#include "components/autofill/core/browser/ui/popup_item_ids.h"
|
||||
#include "components/autofill/core/browser/ui/popup_types.h"
|
||||
#include "components/autofill/core/browser/ui/suggestion.h"
|
||||
|
@ -10,7 +10,6 @@
|
||||
#include "base/feature_list.h"
|
||||
#include "build/branding_buildflags.h"
|
||||
#include "chrome/app/vector_icons/vector_icons.h"
|
||||
#include "chrome/browser/autofill/autofill_popup_controller_utils.h"
|
||||
#include "chrome/browser/ui/autofill/autofill_popup_controller.h"
|
||||
#include "chrome/browser/ui/passwords/ui_utils.h"
|
||||
#include "chrome/browser/ui/views/autofill/popup/popup_base_view.h"
|
||||
@ -18,6 +17,7 @@
|
||||
#include "chrome/browser/ui/views/chrome_layout_provider.h"
|
||||
#include "chrome/browser/ui/views/chrome_typography.h"
|
||||
#include "components/autofill/core/browser/data_model/credit_card.h"
|
||||
#include "components/autofill/core/browser/ui/autofill_resource_utils.h"
|
||||
#include "components/autofill/core/browser/ui/suggestion.h"
|
||||
#include "components/autofill/core/common/autofill_features.h"
|
||||
#include "components/autofill/core/common/autofill_payments_features.h"
|
||||
|
@ -15,7 +15,6 @@
|
||||
#include "base/memory/raw_ptr.h"
|
||||
#include "base/time/time.h"
|
||||
#include "build/build_config.h"
|
||||
#include "chrome/browser/autofill/autofill_popup_controller_utils.h"
|
||||
#include "chrome/browser/platform_util.h"
|
||||
#include "chrome/browser/ui/autofill/autofill_popup_controller.h"
|
||||
#include "chrome/browser/ui/browser_element_identifiers.h"
|
||||
@ -31,6 +30,7 @@
|
||||
#include "components/autofill/core/browser/autofill_experiments.h"
|
||||
#include "components/autofill/core/browser/data_model/credit_card.h"
|
||||
#include "components/autofill/core/browser/metrics/autofill_metrics.h"
|
||||
#include "components/autofill/core/browser/ui/autofill_resource_utils.h"
|
||||
#include "components/autofill/core/browser/ui/popup_item_ids.h"
|
||||
#include "components/autofill/core/browser/ui/popup_types.h"
|
||||
#include "components/autofill/core/browser/ui/suggestion.h"
|
||||
|
@ -109,6 +109,7 @@ android_resources("autofill_payments_java_resources") {
|
||||
"payments/java/res/drawable/discover_card.xml",
|
||||
"payments/java/res/drawable/elo_card.xml",
|
||||
"payments/java/res/drawable/ic_credit_card_black.xml",
|
||||
"payments/java/res/drawable/ic_offer_tag.xml",
|
||||
"payments/java/res/drawable/mir_card.xml",
|
||||
"payments/java/res/drawable/visa_card.xml",
|
||||
]
|
||||
|
@ -450,6 +450,8 @@ static_library("browser") {
|
||||
"ui/autofill_image_fetcher.cc",
|
||||
"ui/autofill_image_fetcher.h",
|
||||
"ui/autofill_popup_delegate.h",
|
||||
"ui/autofill_resource_utils.cc",
|
||||
"ui/autofill_resource_utils.h",
|
||||
"ui/contact_form_label_formatter.cc",
|
||||
"ui/contact_form_label_formatter.h",
|
||||
"ui/country_combobox_model.cc",
|
||||
@ -679,6 +681,7 @@ static_library("browser") {
|
||||
deps += [
|
||||
"//components/autofill/android:main_autofill_jni_headers",
|
||||
"//components/messages/android:feature_flags",
|
||||
"//components/resources:android_resources",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -13,6 +13,7 @@ include_rules = [
|
||||
"+components/plus_addresses",
|
||||
"+components/profile_metrics",
|
||||
"+components/policy",
|
||||
"+components/resources",
|
||||
"+components/security_state",
|
||||
"+components/security_interstitials/core/pref_names.h",
|
||||
"+components/signin/public",
|
||||
|
@ -2,7 +2,7 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#include "chrome/browser/autofill/autofill_popup_controller_utils.h"
|
||||
#include "components/autofill/core/browser/ui/autofill_resource_utils.h"
|
||||
#include "build/branding_buildflags.h"
|
||||
#include "build/build_config.h"
|
||||
#include "components/autofill/core/browser/data_model/credit_card.h"
|
||||
@ -11,7 +11,7 @@
|
||||
#include "components/strings/grit/components_strings.h"
|
||||
|
||||
#if BUILDFLAG(IS_ANDROID)
|
||||
#include "chrome/browser/android/android_theme_resources.h"
|
||||
#include "components/resources/android/theme_resources.h"
|
||||
#endif // BUILDFLAG(IS_ANDROID)
|
||||
|
||||
namespace autofill {
|
@ -2,8 +2,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
#ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_UTILS_H_
|
||||
#define CHROME_BROWSER_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_UTILS_H_
|
||||
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_UI_AUTOFILL_RESOURCE_UTILS_H_
|
||||
#define COMPONENTS_AUTOFILL_CORE_BROWSER_UI_AUTOFILL_RESOURCE_UTILS_H_
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
@ -15,4 +15,4 @@ int GetIconResourceID(const std::string& resource_name);
|
||||
|
||||
} // namespace autofill
|
||||
|
||||
#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_POPUP_CONTROLLER_UTILS_H_
|
||||
#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_UI_AUTOFILL_RESOURCE_UTILS_H_
|
@ -131,6 +131,7 @@ action("about_credits") {
|
||||
if (is_android) {
|
||||
source_set("android_resources") {
|
||||
sources = [
|
||||
"android/autofill_resource_id.h",
|
||||
"android/blocked_content_resource_id.h",
|
||||
"android/page_info_resource_id.h",
|
||||
"android/permissions_resource_id.h",
|
||||
|
72
components/resources/android/autofill_resource_id.h
Normal file
72
components/resources/android/autofill_resource_id.h
Normal file
@ -0,0 +1,72 @@
|
||||
// Copyright 2023 The Chromium Authors
|
||||
// Use of this source code is governed by a BSD-style license that can be
|
||||
// found in the LICENSE file.
|
||||
|
||||
// This file maps resource IDs to Android resource IDs.
|
||||
|
||||
// Presence of regular include guards is checked by:
|
||||
// 1. cpplint
|
||||
// 2. a custom presubmit in src/PRESUBMIT.py
|
||||
// 3. clang (but it only checks the guard is correct if present)
|
||||
// Disable the first two with these magic comments:
|
||||
// NOLINT(build/header_guard)
|
||||
// no-include-guard-because-multiply-included
|
||||
|
||||
// LINK_RESOURCE_ID is used for IDs that come from a .grd file.
|
||||
#ifndef LINK_RESOURCE_ID
|
||||
#error "LINK_RESOURCE_ID should be defined before including this file"
|
||||
#endif
|
||||
// DECLARE_RESOURCE_ID is used for IDs that don't have .grd entries, and
|
||||
// are only declared in this file.
|
||||
#ifndef DECLARE_RESOURCE_ID
|
||||
#error "DECLARE_RESOURCE_ID should be defined before including this file"
|
||||
#endif
|
||||
|
||||
// Autofill popup and keyboard accessory images.
|
||||
// We use Android's |VectorDrawableCompat| for the following images that are
|
||||
// displayed using |DropdownAdapter|.
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_AMEX, R.drawable.amex_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_DINERS, R.drawable.diners_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_DISCOVER, R.drawable.discover_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_ELO, R.drawable.elo_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_GENERIC, R.drawable.ic_credit_card_black)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_JCB, R.drawable.jcb_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_MASTERCARD, R.drawable.mc_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_MIR, R.drawable.mir_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_TROY, R.drawable.troy_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_UNIONPAY, R.drawable.unionpay_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_CC_VISA, R.drawable.visa_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_GOOGLE_PAY, R.drawable.google_pay)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_AMEX, R.drawable.amex_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_CAPITALONE,
|
||||
R.drawable.capitalone_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_DINERS,
|
||||
R.drawable.diners_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_DISCOVER,
|
||||
R.drawable.discover_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_ELO, R.drawable.elo_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_GENERIC,
|
||||
R.drawable.ic_metadata_credit_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_JCB, R.drawable.jcb_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_MASTERCARD,
|
||||
R.drawable.mc_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_MIR, R.drawable.mir_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_TROY, R.drawable.troy_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_UNIONPAY,
|
||||
R.drawable.unionpay_metadata_card)
|
||||
LINK_RESOURCE_ID(IDR_AUTOFILL_METADATA_CC_VISA, R.drawable.visa_metadata_card)
|
||||
|
||||
// Use DECLARE_RESOURCE_ID here as these resources are used for android only.
|
||||
DECLARE_RESOURCE_ID(IDR_ANDROID_AUTOFILL_CC_SCAN_NEW,
|
||||
R.drawable.ic_photo_camera_black)
|
||||
DECLARE_RESOURCE_ID(IDR_ANDROID_AUTOFILL_HTTP_WARNING,
|
||||
R.drawable.ic_info_outline_grey_16dp)
|
||||
DECLARE_RESOURCE_ID(IDR_ANDROID_AUTOFILL_HTTPS_INVALID_WARNING,
|
||||
R.drawable.ic_warning_red_16dp)
|
||||
DECLARE_RESOURCE_ID(IDR_ANDROID_AUTOFILL_OFFER_TAG_GREEN,
|
||||
R.drawable.ic_offer_tag)
|
||||
|
||||
// We display settings and edit icon for keyboard accessory using Android's
|
||||
// |VectorDrawableCompat|. We do not display these icons for autofill popup.
|
||||
DECLARE_RESOURCE_ID(IDR_ANDROID_AUTOFILL_SETTINGS, R.drawable.ic_settings_black)
|
||||
DECLARE_RESOURCE_ID(IDR_ANDROID_AUTOFILL_CREATE, R.drawable.ic_edit_24dp)
|
@ -14,6 +14,7 @@ enum {
|
||||
// Not used; just provides a starting value for the enum. These must
|
||||
// not conflict with IDR_* values, which top out at 2^16 - 1.
|
||||
ANDROID_COMPONENTS_RESOURCE_ID_NONE = 1 << 16,
|
||||
#include "components/resources/android/autofill_resource_id.h"
|
||||
#include "components/resources/android/blocked_content_resource_id.h"
|
||||
#include "components/resources/android/page_info_resource_id.h"
|
||||
#include "components/resources/android/permissions_resource_id.h"
|
||||
|
Reference in New Issue
Block a user