Changeset 230122 in webkit
- Timestamp:
- Mar 30, 2018 5:12:36 PM (6 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r230120 r230122 1 2018-03-30 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 [Extra zoom mode] Adopt list view controller UI for numeric input types 4 https://bugs.webkit.org/show_bug.cgi?id=184184 5 <rdar://problem/37238916> 6 7 Reviewed by Timothy Hatcher. 8 9 Add a localized string for the OK button shown on number pads in extra zoomed form controls. 10 11 * English.lproj/Localizable.strings: 12 * platform/LocalizedStrings.cpp: 13 (WebCore::numberPadOKButtonTitle): 14 * platform/LocalizedStrings.h: 15 1 16 2018-03-30 Ryosuke Niwa <rniwa@webkit.org> 2 17 -
trunk/Source/WebCore/English.lproj/Localizable.strings
r230054 r230122 440 440 "Numbered list" = "Numbered list"; 441 441 442 /* Title of the OK button for the number pad in zoomed form controls. */ 443 "OK (OK button title in extra zoomed number pad)" = "OK"; 444 442 445 /* OK button label in document password failure alert */ 443 446 "OK (document password failure alert)" = "OK"; … … 1205 1208 "stop displaying closed captions" = "stop displaying closed captions"; 1206 1209 1210 /* Label for the strong password auto fill button inside a text field. */ 1211 "strong password auto fill" = "strong password auto fill"; 1212 1207 1213 /* Label for the strong password confirmation auto fill button inside a text field. */ 1208 1214 "strong password confirmation auto fill" = "strong password confirmation auto fill"; 1209 1215 1210 /* Label for the strong password auto fill button inside a text field. */1211 "strong password auto fill" = "strong password auto fill";1212 1213 1216 /* The suboptimal value description for a meter element. */ 1214 1217 "suboptimal value" = "suboptimal value"; -
trunk/Source/WebCore/platform/LocalizedStrings.cpp
r230054 r230122 1037 1037 #if ENABLE(EXTRA_ZOOM_MODE) 1038 1038 1039 String numberPadOKButtonTitle() 1040 { 1041 return WEB_UI_STRING_KEY("OK", "OK (OK button title in extra zoomed number pad)", "Title of the OK button for the number pad in zoomed form controls."); 1042 } 1043 1039 1044 String formControlDoneButtonTitle() 1040 1045 { -
trunk/Source/WebCore/platform/LocalizedStrings.h
r229939 r230122 318 318 319 319 #if ENABLE(EXTRA_ZOOM_MODE) 320 WEBCORE_EXPORT String numberPadOKButtonTitle(); 320 321 WEBCORE_EXPORT String formControlCancelButtonTitle(); 321 322 WEBCORE_EXPORT String formControlDoneButtonTitle(); -
trunk/Source/WebKit/ChangeLog
r230121 r230122 1 2018-03-30 Wenson Hsieh <wenson_hsieh@apple.com> 2 3 [Extra zoom mode] Adopt list view controller UI for numeric input types 4 https://bugs.webkit.org/show_bug.cgi?id=184184 5 <rdar://problem/37238916> 6 7 Reviewed by Timothy Hatcher. 8 9 Remove existing logic for presenting a number pad view controller, since number pads will now be handled as a 10 special case of general text form controls in extra zoom mode. 11 12 * UIProcess/ios/WKContentViewInteraction.h: 13 * UIProcess/ios/WKContentViewInteraction.mm: 14 (-[WKContentView presentViewControllerForCurrentAssistedNode]): 15 (-[WKContentView dismissAllInputViewControllers]): 16 (-[WKContentView _wheelChangedWithEvent:]): 17 1 18 2018-03-30 Dan Bernstein <mitz@apple.com> 2 19 -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.h
r229961 r230122 87 87 @class WKDatePickerViewController; 88 88 @class WKFocusedFormControlViewController; 89 @class WKNumberPadViewController;90 89 @class WKSelectMenuListViewController; 91 90 @class WKTextInputListViewController; … … 256 255 RetainPtr<WKTextInputListViewController> _textInputListViewController; 257 256 RetainPtr<WKFocusedFormControlViewController> _focusedFormControlViewController; 258 RetainPtr<WKNumberPadViewController> _numberPadViewController;259 257 RetainPtr<WKSelectMenuListViewController> _selectMenuListViewController; 260 258 RetainPtr<WKTimePickerViewController> _timePickerViewController; -
trunk/Source/WebKit/UIProcess/ios/WKContentViewInteraction.mm
r230029 r230122 50 50 #import "WKInspectorNodeSearchGestureRecognizer.h" 51 51 #import "WKNSURLExtras.h" 52 #import "WKNumberPadViewController.h"53 52 #import "WKPreviewActionItemIdentifiers.h" 54 53 #import "WKPreviewActionItemInternal.h" … … 4223 4222 4224 4223 switch (_assistedNodeInformation.elementType) { 4225 case InputType::Number:4226 case InputType::NumberPad:4227 case InputType::Phone:4228 if (!_numberPadViewController) {4229 _numberPadViewController = adoptNS([[WKNumberPadViewController alloc] initWithText:_assistedNodeInformation.value textSuggestions:@[]]);4230 [_numberPadViewController setDelegate:self];4231 [_focusedFormControlViewController presentViewController:_numberPadViewController.get() animated:YES completion:nil];4232 }4233 break;4234 4224 case InputType::Select: 4235 4225 if (!_selectMenuListViewController) { … … 4269 4259 [controller dismissViewControllerAnimated:YES completion:nil]; 4270 4260 4271 if (auto controller = WTFMove(_numberPadViewController))4272 [controller dismissViewControllerAnimated:YES completion:nil];4273 4274 4261 if (auto controller = WTFMove(_selectMenuListViewController)) 4275 4262 [controller dismissViewControllerAnimated:YES completion:nil]; … … 4475 4462 { 4476 4463 #if ENABLE(EXTRA_ZOOM_MODE) 4477 if ([_numberPadViewController handleWheelEvent:event])4478 return;4479 4480 4464 if ([_timePickerViewController handleWheelEvent:event]) 4481 4465 return;
Note: See TracChangeset
for help on using the changeset viewer.