10826e83eSopenharmony_ci/* 20826e83eSopenharmony_ci * Copyright (c) 2024 Huawei Device Co., Ltd. 30826e83eSopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License"); 40826e83eSopenharmony_ci * you may not use this file except in compliance with the License. 50826e83eSopenharmony_ci * You may obtain a copy of the License at 60826e83eSopenharmony_ci * 70826e83eSopenharmony_ci * http://www.apache.org/licenses/LICENSE-2.0 80826e83eSopenharmony_ci * 90826e83eSopenharmony_ci * Unless required by applicable law or agreed to in writing, software 100826e83eSopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS, 110826e83eSopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 120826e83eSopenharmony_ci * See the License for the specific language governing permissions and 130826e83eSopenharmony_ci * limitations under the License. 140826e83eSopenharmony_ci */ 150826e83eSopenharmony_ci 160826e83eSopenharmony_ci#ifndef NWEB_AUTOFILL_H 170826e83eSopenharmony_ci#define NWEB_AUTOFILL_H 180826e83eSopenharmony_ci 190826e83eSopenharmony_ci#include <string> 200826e83eSopenharmony_ci 210826e83eSopenharmony_cinamespace OHOS::NWeb { 220826e83eSopenharmony_ci 230826e83eSopenharmony_ciconst std::string NWEB_VIEW_DATA_KEY_FOCUS = "focus"; 240826e83eSopenharmony_ciconst std::string NWEB_VIEW_DATA_KEY_RECT_X = "x"; 250826e83eSopenharmony_ciconst std::string NWEB_VIEW_DATA_KEY_RECT_Y = "y"; 260826e83eSopenharmony_ciconst std::string NWEB_VIEW_DATA_KEY_RECT_W = "width"; 270826e83eSopenharmony_ciconst std::string NWEB_VIEW_DATA_KEY_RECT_H = "height"; 280826e83eSopenharmony_ciconst std::string NWEB_VIEW_DATA_KEY_VALUE = "value"; 290826e83eSopenharmony_ciconst std::string NWEB_VIEW_DATA_KEY_PLACEHOLDER = "placeholder"; 300826e83eSopenharmony_ci 310826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_EVENT_SAVE = "save"; 320826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_EVENT_FILL = "fill"; 330826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_EVENT_UPDATE = "update"; 340826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_EVENT_CLOSE = "close"; 350826e83eSopenharmony_ci 360826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_EVENT_TYPE = "event"; 370826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_PAGE_URL = "pageUrl"; 380826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_IS_USER_SELECTED = "isUserSelected"; 390826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_IS_OTHER_ACCOUNT = "isOtherAccount"; 400826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_EVENT_SOURCE = "source"; 410826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_FOR_LOGIN = "login"; 420826e83eSopenharmony_ci 430826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_STREET_ADDRESS = "street-address"; 440826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_ADDRESS_LEVEL_3 = "address-level3"; 450826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_ADDRESS_LEVEL_2 = "address-level2"; 460826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_ADDRESS_LEVEL_1 = "address-level1"; 470826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_COUNTRY = "country"; 480826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_NAME = "name"; 490826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_FAMILY_NAME = "family-name"; 500826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_GIVEN_NAME = "given-name"; 510826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_TEL_NATIONAL = "tel-national"; 520826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_TEL = "tel"; 530826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_TEL_COUNTRY_CODE = "tel-country-code"; 540826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_EMAIL = "email"; 550826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_CC_NUMBER = "cc-number"; 560826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_ID_CARD_NUMBER = "id-card-number"; 570826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_DETAIL_INFO_WITHOUT_STREET = "detail-info-without-street"; 580826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_FORMAT_ADDRESS = "format-address"; 590826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_NICKNAME = "nickname"; 600826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_USERNAME = "username"; 610826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_PASSWORD = "password"; 620826e83eSopenharmony_ciconst std::string NWEB_AUTOFILL_NEW_PASSWORD = "new-password"; 630826e83eSopenharmony_ci 640826e83eSopenharmony_cienum NWebAutofillEvent { 650826e83eSopenharmony_ci UNKNOWN = 0, 660826e83eSopenharmony_ci SAVE, 670826e83eSopenharmony_ci FILL, 680826e83eSopenharmony_ci UPDATE, 690826e83eSopenharmony_ci CLOSE, 700826e83eSopenharmony_ci}; 710826e83eSopenharmony_ci 720826e83eSopenharmony_ci} // namespace OHOS::NWeb 730826e83eSopenharmony_ci 740826e83eSopenharmony_ci#endif // NWEB_AUTOFILL_H