⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 197829 in webkit


Ignore:
Timestamp:
Mar 8, 2016, 6:27:18 PM (11 years ago)
Author:
weinig@apple.com
Message:

Roll r197632 back in now that the bots have caught up.

  • UIProcess/ios/WKContentViewInteraction.mm:

(-[WKContentView textInputTraits]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r197816 r197829  
     12016-03-08  Sam Weinig  <sam@webkit.org>
     2
     3        Roll r197632 back in now that the bots have caught up.
     4
     5        * UIProcess/ios/WKContentViewInteraction.mm:
     6        (-[WKContentView textInputTraits]):
     7
    182016-03-08  Oliver Hunt  <oliver@apple.com>
    29
  • trunk/Source/WebKit2/UIProcess/ios/WKContentViewInteraction.mm

    r197656 r197829  
    28232823    }
    28242824
     2825#if __IPHONE_OS_VERSION_MIN_REQUIRED >= 100000
     2826    switch (_assistedNodeInformation.autofillFieldName) {
     2827    case WebCore::AutofillFieldName::Name:
     2828        [_traits setTextContentType:UITextContentTypeName];
     2829        break;
     2830    case WebCore::AutofillFieldName::HonorificPrefix:
     2831        [_traits setTextContentType:UITextContentTypeNamePrefix];
     2832        break;
     2833    case WebCore::AutofillFieldName::GivenName:
     2834        [_traits setTextContentType:UITextContentTypeMiddleName];
     2835        break;
     2836    case WebCore::AutofillFieldName::AdditionalName:
     2837        [_traits setTextContentType:UITextContentTypeMiddleName];
     2838        break;
     2839    case WebCore::AutofillFieldName::FamilyName:
     2840        [_traits setTextContentType:UITextContentTypeFamilyName];
     2841        break;
     2842    case WebCore::AutofillFieldName::HonorificSuffix:
     2843        [_traits setTextContentType:UITextContentTypeNameSuffix];
     2844        break;
     2845    case WebCore::AutofillFieldName::Nickname:
     2846        [_traits setTextContentType:UITextContentTypeNickname];
     2847        break;
     2848    case WebCore::AutofillFieldName::OrganizationTitle:
     2849        [_traits setTextContentType:UITextContentTypeJobTitle];
     2850        break;
     2851    case WebCore::AutofillFieldName::Organization:
     2852        [_traits setTextContentType:UITextContentTypeOrganizationName];
     2853        break;
     2854    case WebCore::AutofillFieldName::StreetAddress:
     2855        [_traits setTextContentType:UITextContentTypeFullStreetAddress];
     2856        break;
     2857    case WebCore::AutofillFieldName::AddressLine1:
     2858        [_traits setTextContentType:UITextContentTypeStreetAddressLine1];
     2859        break;
     2860    case WebCore::AutofillFieldName::AddressLine2:
     2861        [_traits setTextContentType:UITextContentTypeStreetAddressLine2];
     2862        break;
     2863    case WebCore::AutofillFieldName::AddressLevel3:
     2864        [_traits setTextContentType:UITextContentTypeSublocality];
     2865        break;
     2866    case WebCore::AutofillFieldName::AddressLevel2:
     2867        [_traits setTextContentType:UITextContentTypeAddressCity];
     2868        break;
     2869    case WebCore::AutofillFieldName::AddressLevel1:
     2870        [_traits setTextContentType:UITextContentTypeAddressState];
     2871        break;
     2872    case WebCore::AutofillFieldName::CountryName:
     2873        [_traits setTextContentType:UITextContentTypeCountryName];
     2874        break;
     2875    case WebCore::AutofillFieldName::PostalCode:
     2876        [_traits setTextContentType:UITextContentTypePostalCode];
     2877        break;
     2878    case WebCore::AutofillFieldName::Tel:
     2879        [_traits setTextContentType:UITextContentTypeTelephoneNumber];
     2880        break;
     2881    case WebCore::AutofillFieldName::Email:
     2882        [_traits setTextContentType:UITextContentTypeEmailAddress];
     2883        break;
     2884    case WebCore::AutofillFieldName::URL:
     2885        [_traits setTextContentType:UITextContentTypeURL];
     2886        break;
     2887    case WebCore::AutofillFieldName::None:
     2888    case WebCore::AutofillFieldName::Username:
     2889    case WebCore::AutofillFieldName::NewPassword:
     2890    case WebCore::AutofillFieldName::CurrentPassword:
     2891    case WebCore::AutofillFieldName::AddressLine3:
     2892    case WebCore::AutofillFieldName::AddressLevel4:
     2893    case WebCore::AutofillFieldName::Country:
     2894    case WebCore::AutofillFieldName::CcName:
     2895    case WebCore::AutofillFieldName::CcGivenName:
     2896    case WebCore::AutofillFieldName::CcAdditionalName:
     2897    case WebCore::AutofillFieldName::CcFamilyName:
     2898    case WebCore::AutofillFieldName::CcNumber:
     2899    case WebCore::AutofillFieldName::CcExp:
     2900    case WebCore::AutofillFieldName::CcExpMonth:
     2901    case WebCore::AutofillFieldName::CcExpYear:
     2902    case WebCore::AutofillFieldName::CcCsc:
     2903    case WebCore::AutofillFieldName::CcType:
     2904    case WebCore::AutofillFieldName::TransactionCurrency:
     2905    case WebCore::AutofillFieldName::TransactionAmount:
     2906    case WebCore::AutofillFieldName::Language:
     2907    case WebCore::AutofillFieldName::Bday:
     2908    case WebCore::AutofillFieldName::BdayDay:
     2909    case WebCore::AutofillFieldName::BdayMonth:
     2910    case WebCore::AutofillFieldName::BdayYear:
     2911    case WebCore::AutofillFieldName::Sex:
     2912    case WebCore::AutofillFieldName::Photo:
     2913    case WebCore::AutofillFieldName::TelCountryCode:
     2914    case WebCore::AutofillFieldName::TelNational:
     2915    case WebCore::AutofillFieldName::TelAreaCode:
     2916    case WebCore::AutofillFieldName::TelLocal:
     2917    case WebCore::AutofillFieldName::TelLocalPrefix:
     2918    case WebCore::AutofillFieldName::TelLocalSuffix:
     2919    case WebCore::AutofillFieldName::TelExtension:
     2920    case WebCore::AutofillFieldName::Impp:
     2921        break;
     2922    };
     2923#endif
     2924
    28252925    return _traits.get();
    28262926}
Note: See TracChangeset for help on using the changeset viewer.