Changeset 252449 in webkit
- Timestamp:
- Nov 13, 2019, 8:40:23 PM (7 years ago)
- Location:
- trunk/Tools
- Files:
-
- 5 edited
-
ChangeLog (modified) (1 diff)
-
TestWebKitAPI/Tests/ios/KeyboardInputTestsIOS.mm (modified) (1 diff)
-
TestWebKitAPI/Tests/ios/UIPasteboardTests.mm (modified) (1 diff)
-
TestWebKitAPI/ios/DragAndDropSimulatorIOS.mm (modified) (1 diff)
-
TestWebKitAPI/ios/UIKitSPI.h (modified) (10 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Tools/ChangeLog
r252446 r252449 1 2019-11-13 Megan Gardner <megan_gardner@apple.com> 2 3 Cleanup UIKitSPI for Testing 4 https://bugs.webkit.org/show_bug.cgi?id=204173 5 6 Reviewed by Simon Fraser. 7 8 Remove old staging for UIKit APIs that should not be needed now. 9 10 * TestWebKitAPI/Tests/ios/KeyboardInputTestsIOS.mm: 11 (TestWebKitAPI::TEST): 12 * TestWebKitAPI/Tests/ios/UIPasteboardTests.mm: 13 (TestWebKitAPI::TEST): 14 * TestWebKitAPI/ios/DragAndDropSimulatorIOS.mm: 15 (-[DragAndDropSimulator _concludeDropAndPerformOperationIfNecessary]): 16 * TestWebKitAPI/ios/UIKitSPI.h: 17 1 18 2019-11-13 Aakash Jain <aakash_jain@apple.com> 2 19 -
trunk/Tools/TestWebKitAPI/Tests/ios/KeyboardInputTestsIOS.mm
r248496 r252449 566 566 567 567 auto webView = adoptNS([[TestWKWebView alloc] initWithFrame:CGRectMake(0, 0, 320, 568)]); 568 auto contentView = (id <UITextInputPrivate _Staging_54140418>)[webView textInputContentView];568 auto contentView = (id <UITextInputPrivate>)[webView textInputContentView]; 569 569 [webView synchronouslyLoadHTMLString:@"<input id='input'></input><div contenteditable id='editor'></div><textarea id='textarea'></textarea>"]; 570 570 [webView _setInputDelegate:inputDelegate.get()]; -
trunk/Tools/TestWebKitAPI/Tests/ios/UIPasteboardTests.mm
r245637 r252449 152 152 153 153 bool done = false; 154 [(id <UIWKInteractionViewProtocol _Staging_49236384>)[webView textInputContentView] pasteWithCompletionHandler:[webView, &done] {154 [(id <UIWKInteractionViewProtocol>)[webView textInputContentView] pasteWithCompletionHandler:[webView, &done] { 155 155 [UIPasteboard generalPasteboard].items = @[ ]; 156 156 done = true; -
trunk/Tools/TestWebKitAPI/ios/DragAndDropSimulatorIOS.mm
r251941 r252449 497 497 } 498 498 499 id <UIDropInteractionDelegate_ Staging_31075005> delegate = (id <UIDropInteractionDelegate_Staging_31075005>)[_webView dropInteractionDelegate];499 id <UIDropInteractionDelegate_Private> delegate = (id <UIDropInteractionDelegate_Private>)[_webView dropInteractionDelegate]; 500 500 UIDropInteraction *interaction = [_webView dropInteraction]; 501 501 [_dropPreviews addObject:[delegate dropInteraction:interaction previewForDroppingItem:item withDefault:defaultPreview.get()] ?: NSNull.null]; -
trunk/Tools/TestWebKitAPI/ios/UIKitSPI.h
r249514 r252449 55 55 #import <UIKit/NSItemProvider+UIKitAdditions_Private.h> 56 56 #import <UIKit/UIDragInteraction_Private.h> 57 #import <UIKit/UITextAutofillSuggestion.h> 57 58 #endif // PLATFORM(IOS) 58 59 59 #else 60 #else // USE(APPLE_INTERNAL_SDK) 60 61 61 62 WTF_EXTERN_C_BEGIN … … 88 89 89 90 @protocol UITextInputPrivate <UITextInput, UITextInputTraits_Private> 91 @property (nonatomic, readonly) BOOL supportsImagePaste; 90 92 - (UITextInputTraits *)textInputTraits; 91 93 - (void)insertTextSuggestion:(UITextSuggestion *)textSuggestion; … … 97 99 98 100 @interface UIWebFormAccessory : UIInputView 101 - (void)setNextPreviousItemsVisible:(BOOL)visible; 99 102 @end 100 103 … … 108 111 - (BOOL)_restoreFocusWithToken:(id <NSCopying, NSSecureCoding>)token; 109 112 - (void)_clearToken:(id <NSCopying, NSSecureCoding>)token; 113 @end 114 115 @interface UITextAutofillSuggestion : UITextSuggestion 116 @property (nonatomic, assign) NSString *username; 117 @property (nonatomic, assign) NSString *password; 110 118 @end 111 119 … … 144 152 145 153 @interface UIWKDocumentRequest : NSObject 146 147 154 @property (nonatomic, assign) UIWKDocumentRequestFlags flags; 148 155 @property (nonatomic, assign) UITextGranularity surroundingGranularity; … … 150 157 @property (nonatomic, assign) CGRect documentRect; 151 158 @property (nonatomic, retain) id <NSCopying> inputElementIdentifier; 152 153 159 @end 154 160 … … 162 168 163 169 @protocol UIWKInteractionViewProtocol 170 - (void)pasteWithCompletionHandler:(void (^)(void))completionHandler; 164 171 - (void)requestAutocorrectionRectsForString:(NSString *)input withCompletionHandler:(void (^)(UIWKAutocorrectionRects *rectsForInput))completionHandler; 165 172 - (void)requestAutocorrectionContextWithCompletionHandler:(void (^)(UIWKAutocorrectionContext *autocorrectionContext))completionHandler; … … 167 174 @end 168 175 176 @interface UIViewController () 177 + (UIViewController *)_viewControllerForFullScreenPresentationFromView:(UIView *)view; 178 @end 179 169 180 IGNORE_WARNINGS_BEGIN("deprecated-implementations") 170 181 … … 182 193 @end 183 194 184 #endif 185 186 #if __has_include(<UIKit/UITextAutofillSuggestion.h>) 187 // FIXME: Move this import under USE(APPLE_INTERNAL_SDK) once <rdar://problem/34583628> lands in the SDK. 188 #import <UIKit/UITextAutofillSuggestion.h> 195 #endif // USE(APPLE_INTERNAL_SDK) 196 189 197 @interface UITextAutofillSuggestion () 190 198 + (instancetype)autofillSuggestionWithUsername:(NSString *)username password:(NSString *)password; 191 199 @end 192 #else 193 @interface UITextAutofillSuggestion : UITextSuggestion 194 @property (nonatomic, assign) NSString *username; 195 @property (nonatomic, assign) NSString *password; 196 + (instancetype)autofillSuggestionWithUsername:(NSString *)username password:(NSString *)password; 197 @end 198 #endif 200 201 @protocol UIDropInteractionDelegate_Private <UIDropInteractionDelegate> 202 - (void)_dropInteraction:(UIDropInteraction *)interaction delayedPreviewProviderForDroppingItem:(UIDragItem *)item previewProvider:(void(^)(UITargetedDragPreview *preview))previewProvider; 203 @end 199 204 200 205 @interface NSURL (UIKitSPI) 201 206 @property (nonatomic, copy, setter=_setTitle:) NSString *_title; 202 @end203 204 @interface UIViewController (UIKitSPI)205 + (UIViewController *)_viewControllerForFullScreenPresentationFromView:(UIView *)view;206 207 @end 207 208 … … 215 216 @end 216 217 217 @protocol UIWKInteractionViewProtocol_Staging_49236384 <UIWKInteractionViewProtocol>218 - (void)pasteWithCompletionHandler:(void (^)(void))completionHandler;219 @end220 221 @protocol UITextInputPrivate_Staging_54140418 <UITextInputPrivate>222 @property (nonatomic, readonly) BOOL supportsImagePaste;223 @end224 225 @interface UIWebFormAccessory (Staging_49666643)226 - (void)setNextPreviousItemsVisible:(BOOL)visible;227 @end228 229 218 #if PLATFORM(IOS) 230 231 @protocol UIDropInteractionDelegate_Staging_31075005 <UIDropInteractionDelegate>232 - (void)_dropInteraction:(UIDropInteraction *)interaction delayedPreviewProviderForDroppingItem:(UIDragItem *)item previewProvider:(void(^)(UITargetedDragPreview *preview))previewProvider;233 @end234 219 235 220 typedef NS_ENUM(NSUInteger, _UIClickInteractionEvent) {
Note:
See TracChangeset
for help on using the changeset viewer.