921217bc61d34c64fcf8c266408cb96c98f7fa50
[WebKit-https.git] / Source / WebKit / Platform / spi / ios / UIKitSPI.h
1 /*
2  * Copyright (C) 2014-2016 Apple Inc. All rights reserved.
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  * 1. Redistributions of source code must retain the above copyright
8  *    notice, this list of conditions and the following disclaimer.
9  * 2. Redistributions in binary form must reproduce the above copyright
10  *    notice, this list of conditions and the following disclaimer in the
11  *    documentation and/or other materials provided with the distribution.
12  *
13  * THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS''
14  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
15  * THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
16  * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS
17  * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
18  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
19  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
20  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
21  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
22  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF
23  * THE POSSIBILITY OF SUCH DAMAGE.
24  */
25
26 #import <UIKit/UIKit.h>
27
28 #if USE(APPLE_INTERNAL_SDK)
29
30 #import <UIKit/UIAlertController_Private.h>
31 #import <UIKit/UIApplication_Private.h>
32 #import <UIKit/UIBarButtonItem_Private.h>
33 #import <UIKit/UICalloutBar.h>
34 #import <UIKit/UIDatePicker_Private.h>
35 #import <UIKit/UIDevice_Private.h>
36 #import <UIKit/UIDocumentMenuViewController_Private.h>
37 #import <UIKit/UIDocumentPasswordView.h>
38 #import <UIKit/UIFont_Private.h>
39 #import <UIKit/UIGeometry_Private.h>
40 #import <UIKit/UIGestureRecognizer_Private.h>
41 #import <UIKit/UIImagePickerController_Private.h>
42 #import <UIKit/UIImage_Private.h>
43 #import <UIKit/UIInterface_Private.h>
44 #import <UIKit/UIKeyboardImpl.h>
45 #import <UIKit/UIKeyboardIntl.h>
46 #import <UIKit/UIKeyboard_Private.h>
47 #import <UIKit/UILongPressGestureRecognizer_Private.h>
48 #import <UIKit/UIPeripheralHost.h>
49 #import <UIKit/UIPeripheralHost_Private.h>
50 #import <UIKit/UIPickerContentView_Private.h>
51 #import <UIKit/UIPickerView_Private.h>
52 #import <UIKit/UIPresentationController_Private.h>
53 #import <UIKit/UIResponder_Private.h>
54 #import <UIKit/UIScrollView_Private.h>
55 #import <UIKit/UIStringDrawing_Private.h>
56 #import <UIKit/UITableViewCell_Private.h>
57 #import <UIKit/UITapGestureRecognizer_Private.h>
58 #import <UIKit/UITextEffectsWindow.h>
59 #import <UIKit/UITextInput_Private.h>
60 #import <UIKit/UITextInteractionAssistant_Private.h>
61 #import <UIKit/UIViewControllerTransitioning_Private.h>
62 #import <UIKit/UIViewController_Private.h>
63 #import <UIKit/UIViewController_ViewService.h>
64 #import <UIKit/UIView_Private.h>
65 #import <UIKit/UIWKSelectionAssistant.h>
66 #import <UIKit/UIWKTextInteractionAssistant.h>
67 #import <UIKit/UIWebBrowserView.h>
68 #import <UIKit/UIWebDocumentView.h>
69 #import <UIKit/UIWebFormAccessory.h>
70 #import <UIKit/UIWebGeolocationPolicyDecider.h>
71 #import <UIKit/UIWebScrollView.h>
72 #import <UIKit/UIWebTiledView.h>
73 #import <UIKit/UIWebTouchEventsGestureRecognizer.h>
74 #import <UIKit/UIWindow_Private.h>
75 #import <UIKit/_UIBackdropViewSettings.h>
76 #import <UIKit/_UIBackdropView_Private.h>
77 #import <UIKit/_UIHighlightView.h>
78 #import <UIKit/_UINavigationInteractiveTransition.h>
79 #import <UIKit/_UINavigationParallaxTransition.h>
80
81 #if HAVE(LINK_PREVIEW)
82 #import <UIKit/UIPreviewItemController.h>
83 #endif
84
85 #if ENABLE(DRAG_SUPPORT)
86 #import <UIKit/NSItemProvider+UIKitAdditions_Private.h>
87 #import <UIKit/UIItemProvider_Private.h>
88 #endif
89
90 #if ENABLE(DRAG_SUPPORT)
91 #import <UIKit/UIDragInteraction.h>
92 #import <UIKit/UIDragInteraction_Private.h>
93 #import <UIKit/UIDragPreviewParameters.h>
94 #import <UIKit/UIDragPreview_Private.h>
95 #import <UIKit/UIDragSession.h>
96 #import <UIKit/UIDragging.h>
97 #import <UIKit/UIDropInteraction.h>
98 #import <UIKit/UIPreviewInteraction.h>
99 #import <UIKit/UIURLDragPreviewView.h>
100 #import <UIKit/_UITextDragCaretView.h>
101 #endif
102
103 #else
104
105 #if HAVE(LINK_PREVIEW)
106 typedef NS_ENUM(NSInteger, UIPreviewItemType) {
107     UIPreviewItemTypeNone,
108     UIPreviewItemTypeClientCustom,
109     UIPreviewItemTypeLink,
110     UIPreviewItemTypeImage,
111     UIPreviewItemTypeText,
112     UIPreviewItemTypeAttachment,
113 };
114
115 @class UIPreviewItemController;
116
117 @protocol UIPreviewItemDelegate <NSObject>
118 - (NSDictionary *)_dataForPreviewItemController:(UIPreviewItemController *)controller atPosition:(CGPoint)position type:(UIPreviewItemType *)type;
119 @optional
120 - (BOOL)_interactionShouldBeginFromPreviewItemController:(UIPreviewItemController *)controller forPosition:(CGPoint)position;
121 - (void)_interactionStartedFromPreviewItemController:(UIPreviewItemController *)controller;
122 - (void)_interactionStoppedFromPreviewItemController:(UIPreviewItemController *)controller;
123 - (UIViewController *)_presentedViewControllerForPreviewItemController:(UIPreviewItemController *)controller;
124 - (void)_previewItemController:(UIPreviewItemController *)controller didDismissPreview:(UIViewController *)viewController committing:(BOOL)committing;
125 - (void)_previewItemController:(UIPreviewItemController *)controller commitPreview:(UIViewController *)viewController;
126 - (void)_previewItemControllerDidCancelPreview:(UIPreviewItemController *)controller;
127 - (UIImage *)_presentationSnapshotForPreviewItemController:(UIPreviewItemController *)controller;
128 - (NSArray *)_presentationRectsForPreviewItemController:(UIPreviewItemController *)controller;
129 - (CGRect)_presentationRectForPreviewItemController:(UIPreviewItemController *)controller;
130 @end
131
132 @interface UIPreviewItemController : NSObject
133 - (instancetype)initWithView:(UIView *)view;
134 @property (assign, nonatomic) id<UIPreviewItemDelegate> delegate;
135 @property (assign, nonatomic, readonly) UIPreviewItemType type;
136 @property (strong, nonatomic, readonly) NSDictionary *previewData;
137 @property (strong, nonatomic, readonly) UIGestureRecognizer *presentationGestureRecognizer;
138 @property (strong, nonatomic, readonly) UIGestureRecognizer *presentationSecondaryGestureRecognizer;
139 @end
140 #endif
141
142 @interface UIAlertController ()
143 - (void)_addActionWithTitle:(NSString *)title style:(UIAlertActionStyle)style handler:(void (^)(void))handler;
144 - (void)_addActionWithTitle:(NSString *)title style:(UIAlertActionStyle)style handler:(void (^)(void))handler shouldDismissHandler:(BOOL (^)(void))shouldDismissHandler;
145 @property (nonatomic) UIAlertControllerStyle preferredStyle;
146 @end
147
148 @interface UIApplication ()
149 - (UIInterfaceOrientation)interfaceOrientation;
150 - (void)_cancelAllTouches;
151 - (CGFloat)statusBarHeight;
152 - (BOOL)isSuspendedUnderLock;
153 @end
154
155 typedef NS_ENUM(NSInteger, UIDatePickerPrivateMode)  {
156     UIDatePickerModeYearAndMonth = 4269,
157 };
158
159 @interface UIDatePicker ()
160 @property (nonatomic, readonly, getter=_contentWidth) CGFloat contentWidth;
161 @end
162
163 #define UICurrentUserInterfaceIdiomIsPad() ([[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad)
164
165 @interface UIDevice ()
166 @property (nonatomic, readonly, retain) NSString *buildVersion;
167 @end
168
169 typedef enum {
170     kUIKeyboardInputRepeat                 = 1 << 0,
171     kUIKeyboardInputPopupVariant           = 1 << 1,
172     kUIKeyboardInputMultitap               = 1 << 2,
173     kUIKeyboardInputSkipCandidateSelection = 1 << 3,
174     kUIKeyboardInputDeadKey                = 1 << 4,
175     kUIKeyboardInputModifierFlagsChanged   = 1 << 5,
176     kUIKeyboardInputFlick                  = 1 << 6,
177     kUIKeyboardInputPreProcessed           = 1 << 7,
178 } UIKeyboardInputFlags;
179
180 @interface UIEvent ()
181 @property (nonatomic, readonly) UIKeyboardInputFlags _inputFlags;
182 - (void *)_hidEvent;
183 - (NSString *)_unmodifiedInput;
184 - (NSString *)_modifiedInput;
185 - (NSInteger)_modifierFlags;
186 - (BOOL)_isKeyDown;
187 @end
188
189 typedef enum {
190     UIFontTraitPlain = 0x00000000,
191 } UIFontTrait;
192
193 @interface UIFont ()
194 + (UIFont *)fontWithFamilyName:(NSString *)familyName traits:(UIFontTrait)traits size:(CGFloat)fontSize;
195 @end
196
197 typedef enum {
198     UIAllCorners = 0xFF,
199 } UIRectCorners;
200
201 @interface UIImagePickerController ()
202 @property (nonatomic, setter=_setAllowsMultipleSelection:) BOOL _allowsMultipleSelection;
203 @end
204
205 @interface UIImage ()
206 - (id)initWithCGImage:(CGImageRef)CGImage imageOrientation:(UIImageOrientation)imageOrientation;
207 @end
208
209 @interface UIKeyCommand ()
210 @property (nonatomic, readonly) UIEvent *_triggeringEvent;
211 @end
212
213 @protocol UIKeyboardImplGeometryDelegate
214 @property (nonatomic, readwrite, getter=isMinimized) BOOL minimized;
215 - (void)prepareForImplBoundsHeightChange:(CGFloat)endDelta suppressNotification:(BOOL)suppressNotification;
216 - (void)implBoundsHeightChangeDone:(CGFloat)endDelta suppressNotification:(BOOL)suppressNotification;
217 - (BOOL)shouldSaveMinimizationState;
218 - (BOOL)canDismiss;
219 - (BOOL)isActive;
220 @end
221
222 @protocol UIKeyboardCandidateListDelegate <NSObject>
223 @optional
224 - (void)setCandidateList:(id)candidateList updateCandidateView:(BOOL)updateCandidateView;
225 - (void)candidateListAcceptCandidate:(id)candidateList;
226 - (void)candidateListSelectionDidChange:(id)candidateList;
227 - (void)candidateListShouldBeDismissed:(id)candidateList;
228 @end
229
230 // FIXME: https://bugs.webkit.org/show_bug.cgi?id=173341
231 #ifndef _WEBKIT_UIKITSPI_UIKEYBOARD
232 #define _WEBKIT_UIKITSPI_UIKEYBOARD 1
233 @interface UIKeyboard : UIView <UIKeyboardImplGeometryDelegate>
234 @end
235 #endif
236
237 @interface UIKeyboard ()
238 + (CGSize)defaultSizeForInterfaceOrientation:(UIInterfaceOrientation)orientation;
239 - (void)activate;
240 - (void)geometryChangeDone:(BOOL)keyboardVisible;
241 - (void)prepareForGeometryChange;
242 @end
243
244 @interface UIKeyboardImpl : UIView <UIKeyboardCandidateListDelegate>
245 @end
246
247 @interface UIKeyboardImpl ()
248 + (UIKeyboardImpl *)activeInstance;
249 + (UIKeyboardImpl *)sharedInstance;
250 + (CGSize)defaultSizeForInterfaceOrientation:(UIInterfaceOrientation)orientation;
251 - (void)addInputString:(NSString *)string withFlags:(NSUInteger)flags;
252 - (void)addInputString:(NSString *)string withFlags:(NSUInteger)flags withInputManagerHint:(NSString *)hint;
253 - (BOOL)autocorrectSpellingEnabled;
254 - (void)deleteFromInput;
255 - (void)deleteFromInputWithFlags:(NSUInteger)flags;
256 - (void)replaceText:(id)replacement;
257 @property (nonatomic, readwrite, retain) UIResponder <UIKeyInput> *delegate;
258 @end
259
260 @interface UILongPressGestureRecognizer ()
261 @property (nonatomic) CFTimeInterval delay;
262 @property (nonatomic, readonly) CGPoint startPoint;
263 @property (nonatomic, assign, setter=_setRequiresQuietImpulse:) BOOL _requiresQuietImpulse;
264 @end
265
266 @interface _UIWebHighlightLongPressGestureRecognizer : UILongPressGestureRecognizer
267 @end
268
269 @interface _UIWebHighlightLongPressGestureRecognizer ()
270 - (void)cancel;
271 @end
272
273 @interface UIPeripheralHost : NSObject <UIGestureRecognizerDelegate>
274 @end
275
276 @class UIKeyboardRotationState;
277
278 @interface UIPeripheralHost ()
279 + (UIPeripheralHost *)sharedInstance;
280 + (UIPeripheralHost *)activeInstance;
281 + (CGRect)visiblePeripheralFrame;
282 - (BOOL)isOnScreen;
283 - (UIKeyboardRotationState *)rotationState;
284 @end
285
286 @interface UIPickerContentView : UIView
287 @end
288
289 @interface UIPickerContentView ()
290 +(CGFloat)_checkmarkOffset;
291 -(CGFloat)labelWidthForBounds:(CGRect)bounds;
292 @property (nonatomic, getter=isChecked) BOOL checked;
293 @property (nonatomic, readonly) UILabel *titleLabel;
294 @end
295
296 @interface UIPickerView ()
297 + (CGSize)defaultSizeForCurrentOrientation;
298 - (void)_setUsesCheckedSelection:(BOOL)usesCheckedSelection;
299 @property (nonatomic, setter=_setMagnifierEnabled:) BOOL _magnifierEnabled;
300 @end
301
302 @interface UIResponder ()
303 - (void)_handleKeyUIEvent:(UIEvent *)event;
304 @end
305
306 @class CADisplay;
307 @interface UIScreen ()
308 - (CADisplay *)_display;
309 @end
310
311 @interface UIScrollView ()
312 - (void)_stopScrollingAndZoomingAnimations;
313 - (void)_zoomToCenter:(CGPoint)center scale:(CGFloat)scale duration:(CFTimeInterval)duration force:(BOOL)force;
314 - (void)_zoomToCenter:(CGPoint)center scale:(CGFloat)scale duration:(CFTimeInterval)duration;
315 @property (nonatomic, getter=isZoomEnabled) BOOL zoomEnabled;
316 @property (nonatomic, readonly, getter=_isAnimatingZoom) BOOL isAnimatingZoom;
317 @property (nonatomic, readonly, getter=_isAnimatingScroll) BOOL isAnimatingScroll;
318 @property (nonatomic) CGFloat horizontalScrollDecelerationFactor;
319 @property (nonatomic) CGFloat verticalScrollDecelerationFactor;
320 @property (nonatomic, readonly) BOOL _isInterruptingDeceleration;
321 #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000
322 @property (nonatomic, readonly) UIEdgeInsets _systemContentInset;
323 #endif
324 @end
325
326 @interface NSString (UIKitDetails)
327 - (CGSize)_legacy_sizeWithFont:(UIFont *)font forWidth:(CGFloat)width lineBreakMode:(NSLineBreakMode)lineBreakMode;
328 - (CGSize)_legacy_sizeWithFont:(UIFont *)font minFontSize:(CGFloat)minFontSize actualFontSize:(CGFloat *)actualFontSize forWidth:(CGFloat)width lineBreakMode:(NSLineBreakMode)lineBreakMode;
329 @end
330
331 @interface UITapGestureRecognizer ()
332 @property (nonatomic, getter=_allowableSeparation, setter=_setAllowableSeparation:) CGFloat allowableSeparation;
333 @property (nonatomic, readonly) CGPoint location;
334 @property (nonatomic) CGFloat allowableMovement;
335 @property (nonatomic, readonly) CGPoint centroid;
336 @end
337
338 @class WebEvent;
339
340 typedef enum {
341     UITextShortcutConversionTypeDefault = 0,
342     UITextShortcutConversionTypeNo = 1,
343     UITextShortcutConversionTypeYes = 2,
344 } UITextShortcutConversionType;
345
346 @protocol UITextInputTraits_Private <NSObject, UITextInputTraits>
347 - (void)takeTraitsFrom:(id <UITextInputTraits>)traits;
348 @optional
349 @property (nonatomic) UITextShortcutConversionType shortcutConversionType;
350 @end
351
352 @class UITextInputArrowKeyHistory;
353
354 @protocol UITextInputPrivate <UITextInput, UITextInputTokenizer, UITextInputTraits_Private>
355 @optional
356 - (BOOL)requiresKeyEvents;
357 - (NSArray *)metadataDictionariesForDictationResults;
358 - (UIColor *)textColorForCaretSelection;
359 - (UIFont *)fontForCaretSelection;
360 - (UIView *)automaticallySelectedOverlay;
361 - (void)handleKeyWebEvent:(WebEvent *)event;
362 - (void)insertDictationResult:(NSArray *)dictationResult withCorrectionIdentifier:(id)correctionIdentifier;
363 - (void)replaceRangeWithTextWithoutClosingTyping:(UITextRange *)range replacementText:(NSString *)text;
364 - (void)setBottomBufferHeight:(CGFloat)bottomBuffer;
365 @property (nonatomic) UITextGranularity selectionGranularity;
366 @required
367 - (BOOL)hasContent;
368 - (BOOL)hasSelection;
369 - (void)selectAll;
370 @end
371
372 @interface UITextInputTraits : NSObject <UITextInputTraits, UITextInputTraits_Private, NSCopying>
373 @end
374
375 @interface UITextInteractionAssistant : NSObject
376 @end
377
378 @interface UITextInteractionAssistant ()
379 - (void)activateSelection;
380 - (void)deactivateSelection;
381 - (void)didEndScrollingOverflow;
382 - (void)selectionChanged;
383 - (void)setGestureRecognizers;
384 - (void)willStartScrollingOverflow;
385 @end
386
387 @class UITextSuggestion;
388
389 @protocol UITextInputSuggestionDelegate <UITextInputDelegate>
390 - (void)setSuggestions:(NSArray <UITextSuggestion*> *)suggestions;
391 @end
392
393 @interface UIViewController ()
394 + (UIViewController *)_viewControllerForFullScreenPresentationFromView:(UIView *)view;
395 + (UIViewController *)viewControllerForView:(UIView *)view;
396 @end
397
398 @interface UIViewController (ViewService)
399 - (pid_t)_hostProcessIdentifier;
400 @end
401
402 @protocol UIViewControllerContextTransitioningEx <UIViewControllerContextTransitioning>
403 - (void)__runAlongsideAnimations;
404 - (void)_interactivityDidChange:(BOOL)isInteractive;
405 @property (nonatomic, assign, setter=_setAllowUserInteraction:, getter=_allowUserInteraction) BOOL _allowUserInteraction;
406 @property (nonatomic, assign, setter=_setPercentOffset:) CGFloat _percentOffset;
407 @property (nonatomic, retain, setter=_setContainerViews:) NSArray *_containerViews;
408 @end
409
410 @interface _UIViewControllerTransitionContext : NSObject <UIViewControllerContextTransitioningEx>
411 @end
412
413 // FIXME: Separate the parts we are simply re-declaring from the ones we are overriding.
414 @interface _UIViewControllerTransitionContext (Details)
415 - (void) _setTransitionIsInFlight:(BOOL)flag;
416 @property (nonatomic, assign, setter=_setAllowUserInteraction:, getter=_allowUserInteraction) BOOL _allowUserInteraction;
417 @property (nonatomic, assign, setter=_setAnimator:) id <UIViewControllerAnimatedTransitioning> _animator;
418 @property (nonatomic, assign, setter=_setContainerView:) UIView *containerView;
419 @property (nonatomic, assign, setter=_setInteractor:) id <UIViewControllerInteractiveTransitioning> _interactor;
420 @property (nonatomic, assign, setter=_setPercentOffset:) CGFloat _percentOffset;
421 @property (nonatomic, copy, setter=_setCompletionHandler:)  void (^_completionHandler)(_UIViewControllerTransitionContext *context, BOOL transitionCompleted);
422 @property (nonatomic, retain, setter=_setContainerViews:) NSArray *_containerViews;
423 @end
424
425 @interface _UIViewControllerOneToOneTransitionContext : _UIViewControllerTransitionContext
426 @end
427
428 @interface _UIViewControllerOneToOneTransitionContext ()
429 @property (nonatomic, assign, setter=_setFromEndFrame:) CGRect fromEndFrame;
430 @property (nonatomic, assign, setter=_setFromStartFrame:) CGRect fromStartFrame;
431 @property (nonatomic, assign, setter=_setToEndFrame:) CGRect toEndFrame;
432 @property (nonatomic, assign, setter=_setToStartFrame:) CGRect toStartFrame;
433 @property (nonatomic, retain, setter=_setFromViewController:) UIViewController *fromViewController;
434 @property (nonatomic, retain, setter=_setToViewController:) UIViewController *toViewController;
435 @end
436
437 @protocol UIViewControllerAnimatedTransitioningEx <UIViewControllerAnimatedTransitioning>
438 - (BOOL)interactionAborted;
439 - (UINavigationControllerOperation) operation;
440 - (UIPercentDrivenInteractiveTransition *)interactionController;
441 - (void)setInteractionAborted:(BOOL)aborted;
442 - (void)setInteractionController:(UIPercentDrivenInteractiveTransition *)controller;
443 - (void)setOperation:(UINavigationControllerOperation)operation;
444 @optional
445 - (UIWindow *)window;
446 @end
447
448 typedef NS_ENUM (NSInteger, _UIBackdropMaskViewFlags) {
449     _UIBackdropMaskViewNone = 0,
450     _UIBackdropMaskViewGrayscaleTint = 1 << 0,
451     _UIBackdropMaskViewColorTint = 1 << 1,
452     _UIBackdropMaskViewFilters = 1 << 2,
453     _UIBackdropMaskViewAll = _UIBackdropMaskViewGrayscaleTint | _UIBackdropMaskViewColorTint | _UIBackdropMaskViewFilters,
454 };
455
456 @interface UIView ()
457 + (BOOL)_isInAnimationBlock;
458 - (CGSize)size;
459 - (void)setFrameOrigin:(CGPoint)origin;
460 - (void)setSize:(CGSize)size;
461 @property (nonatomic, assign, setter=_setBackdropMaskViewFlags:) NSInteger _backdropMaskViewFlags;
462 - (void)_populateArchivedSubviews:(NSMutableSet *)encodedViews;
463 #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 110000
464 - (void)safeAreaInsetsDidChange;
465 #endif
466 @end
467
468 @interface UIWebSelectionView : UIView
469 @end
470
471 @interface UIWebSelectionAssistant : NSObject <UIGestureRecognizerDelegate>
472 @end
473
474 @protocol UISelectionInteractionAssistant
475 - (void)showSelectionCommands;
476 @end
477
478 @interface UIWebSelectionAssistant ()
479 - (BOOL)isSelectionGestureRecognizer:(UIGestureRecognizer *)gestureRecognizer;
480 - (id)initWithView:(UIView *)view;
481 - (void)clearSelection;
482 - (void)didEndScrollingOrZoomingPage;
483 - (void)didEndScrollingOverflow;
484 - (void)resignedFirstResponder;
485 - (void)selectionChanged;
486 - (void)setGestureRecognizers;
487 - (void)willStartScrollingOrZoomingPage;
488 - (void)willStartScrollingOverflow;
489 @property (nonatomic, retain) UIWebSelectionView *selectionView;
490 @property (nonatomic, readonly) CGRect selectionFrame;
491 @end
492
493 typedef NS_ENUM(NSInteger, UIWKSelectionTouch) {
494     UIWKSelectionTouchStarted = 0,
495     UIWKSelectionTouchMoved = 1,
496     UIWKSelectionTouchEnded = 2,
497     UIWKSelectionTouchEndedMovingForward = 3,
498     UIWKSelectionTouchEndedMovingBackward = 4,
499     UIWKSelectionTouchEndedNotMoving = 5,
500 };
501
502 typedef NS_ENUM(NSInteger, UIWKSelectionFlags) {
503     UIWKNone = 0,
504     UIWKWordIsNearTap = 1,
505     UIWKIsBlockSelection = 2,
506     UIWKPhraseBoundaryChanged = 4,
507 };
508
509 typedef NS_ENUM(NSInteger, UIWKGestureType) {
510     UIWKGestureLoupe = 0,
511     UIWKGestureOneFingerTap = 1,
512     UIWKGestureTapAndAHalf = 2,
513     UIWKGestureDoubleTap = 3,
514     UIWKGestureTapAndHalf = 4,
515     UIWKGestureDoubleTapInUneditable = 5,
516     UIWKGestureOneFingerTapInUneditable = 6,
517     UIWKGestureOneFingerTapSelectsAll = 7,
518     UIWKGestureOneFingerDoubleTap = 8,
519     UIWKGestureOneFingerTripleTap = 9,
520     UIWKGestureTwoFingerSingleTap = 10,
521     UIWKGestureTwoFingerRangedSelectGesture = 11,
522     UIWKGestureTapOnLinkWithGesture = 12,
523     UIWKGestureMakeWebSelection = 13,
524     UIWKGesturePhraseBoundary = 14,
525 };
526
527 @interface UIWKSelectionAssistant : UIWebSelectionAssistant
528 @end
529
530 @interface UIWKSelectionAssistant ()
531 - (BOOL)shouldHandleSingleTapAtPoint:(CGPoint)point;
532 - (void)blockSelectionChangedWithTouch:(UIWKSelectionTouch)touch withFlags:(UIWKSelectionFlags)flags growThreshold:(CGFloat)grow shrinkThreshold:(CGFloat)shrink;
533 - (void)selectionChangedWithGestureAt:(CGPoint)point withGesture:(UIWKGestureType)gestureType withState:(UIGestureRecognizerState)gestureState withFlags:(UIWKSelectionFlags)flags;
534 - (void)selectionChangedWithTouchAt:(CGPoint)point withSelectionTouch:(UIWKSelectionTouch)touch withFlags:(UIWKSelectionFlags)flags;
535 - (void)selectionChangedWithTouchAt:(CGPoint)point withSelectionTouch:(UIWKSelectionTouch)touch;
536 - (void)showDictionaryFor:(NSString *)selectedTerm fromRect:(CGRect)presentationRect;
537 - (void)showShareSheetFor:(NSString *)selectedTerm fromRect:(CGRect)presentationRect;
538 - (void)showTextServiceFor:(NSString *)selectedTerm fromRect:(CGRect)presentationRect;
539 - (void)lookup:(NSString *)textWithContext withRange:(NSRange)range fromRect:(CGRect)presentationRect;
540 @property (nonatomic, readonly) UILongPressGestureRecognizer *selectionLongPressRecognizer;
541 @end
542
543 typedef NS_ENUM(NSInteger, UIWKHandlePosition) {
544     UIWKHandleTop = 0,
545     UIWKHandleRight = 1,
546     UIWKHandleBottom = 2,
547     UIWKHandleLeft = 3,
548 };
549
550 @interface UIWKAutocorrectionRects : NSObject
551 @end
552
553 @interface UIWKAutocorrectionRects (UIWKAutocorrectionRectsDetails)
554 @property (nonatomic, assign) CGRect firstRect;
555 @property (nonatomic, assign) CGRect lastRect;
556 @end
557
558 @interface UIWKAutocorrectionContext : NSObject
559 @end
560
561 @interface UIWKAutocorrectionContext (UIWKAutocorrectionContextDetails)
562 @property (nonatomic, copy) NSString *contextBeforeSelection;
563 @property (nonatomic, copy) NSString *selectedText;
564 @property (nonatomic, copy) NSString *contextAfterSelection;
565 @property (nonatomic, copy) NSString *markedText;
566 @property (nonatomic, assign) NSRange rangeInMarkedText;
567 @end
568
569 @interface UIWKTextInteractionAssistant : UITextInteractionAssistant <UIResponderStandardEditActions>
570 @end
571
572 @interface UIWKTextInteractionAssistant ()
573 - (void)selectionChangedWithGestureAt:(CGPoint)point withGesture:(UIWKGestureType)gestureType withState:(UIGestureRecognizerState)gestureState withFlags:(UIWKSelectionFlags)flags;
574 - (void)showDictionaryFor:(NSString *)selectedTerm fromRect:(CGRect)presentationRect;
575 - (void)selectionChangedWithTouchAt:(CGPoint)point withSelectionTouch:(UIWKSelectionTouch)touch withFlags:(UIWKSelectionFlags)flags;
576 - (void)selectionChangedWithTouchAt:(CGPoint)point withSelectionTouch:(UIWKSelectionTouch)touch;
577 - (void)showTextStyleOptions;
578 - (void)hideTextStyleOptions;
579 - (void)lookup:(NSString *)textWithContext withRange:(NSRange)range fromRect:(CGRect)presentationRect;
580 - (void)showShareSheetFor:(NSString *)selectedTerm fromRect:(CGRect)presentationRect;
581 - (void)showTextServiceFor:(NSString *)selectedTerm fromRect:(CGRect)presentationRect;
582 - (void)scheduleReplacementsForText:(NSString *)text;
583 - (void)scheduleChineseTransliterationForText:(NSString *)text;
584
585 @property (nonatomic, readonly, assign) UILongPressGestureRecognizer *loupeGesture;
586 @property (nonatomic, readonly, assign) UITapGestureRecognizer *singleTapGesture;
587 @end
588
589 @protocol UIWKInteractionViewProtocol
590 - (void)changeSelectionWithGestureAt:(CGPoint)point withGesture:(UIWKGestureType)gestureType withState:(UIGestureRecognizerState)state;
591
592 - (void)changeSelectionWithTouchAt:(CGPoint)point withSelectionTouch:(UIWKSelectionTouch)touch baseIsStart:(BOOL)baseIsStart withFlags:(UIWKSelectionFlags)flags;
593 - (void)changeSelectionWithTouchesFrom:(CGPoint)from to:(CGPoint)to withGesture:(UIWKGestureType)gestureType withState:(UIGestureRecognizerState)gestureState;
594 - (CGRect)textFirstRect;
595 - (CGRect)textLastRect;
596
597 - (void)requestAutocorrectionContextWithCompletionHandler:(void (^)(UIWKAutocorrectionContext *autocorrectionContext))completionHandler;
598
599 - (void)requestAutocorrectionRectsForString:(NSString *)input withCompletionHandler:(void (^)(UIWKAutocorrectionRects *rectsForInput))completionHandler;
600
601 - (void)applyAutocorrection:(NSString *)correction toString:(NSString *)input withCompletionHandler:(void (^)(UIWKAutocorrectionRects *rectsForCorrection))completionHandler;
602
603 - (NSString *)markedText;
604 - (BOOL)hasMarkedText;
605
606 - (BOOL)hasSelectablePositionAtPoint:(CGPoint)point;
607 #if __IPHONE_OS_VERSION_MAX_ALLOWED < 110000
608 - (BOOL)pointIsInAssistedNode:(CGPoint)point;
609 #endif
610 - (NSArray *)webSelectionRects;
611 - (void)_cancelLongPressGestureRecognizer;
612
613 @optional
614
615 - (void)changeBlockSelectionWithTouchAt:(CGPoint)point withSelectionTouch:(UIWKSelectionTouch)touch forHandle:(UIWKHandlePosition)handle;
616 - (void)clearSelection;
617 - (void)replaceDictatedText:(NSString *)oldText withText:(NSString *)newText;
618 - (void)requestDictationContext:(void (^)(NSString *selectedText, NSString *prefixText, NSString *postfixText))completionHandler;
619 - (BOOL)pointIsNearMarkedText:(CGPoint)point;
620 - (NSString *)selectedText;
621 - (void)replaceText:(NSString *)text withText:(NSString *)word;
622 - (void)selectWordForReplacement;
623 - (BOOL)isReplaceAllowed;
624 - (void)selectWordBackward;
625 - (UIView *)unscaledView;
626 - (CGFloat)inverseScale;
627 - (CGRect)unobscuredContentRect;
628 @end
629
630 typedef enum {
631     UIWebSelectionModeWeb = 0,
632     UIWebSelectionModeTextOnly = 1,
633 } UIWebSelectionMode;
634
635 @protocol UIWebFormAccessoryDelegate;
636
637 @interface UIWebFormAccessory : UIInputView
638 @end
639
640 @interface UIWebFormAccessory ()
641 - (void)hideAutoFillButton;
642 - (void)setClearVisible:(BOOL)flag;
643 - (void)showAutoFillButtonWithTitle:(NSString *)title;
644 @property (nonatomic, retain) UIBarButtonItem *_autofill;
645 @property (nonatomic, assign) id <UIWebFormAccessoryDelegate> delegate;
646
647 @property (nonatomic, assign, getter=isNextEnabled) BOOL nextEnabled;
648 @property (nonatomic, assign, getter=isPreviousEnabled) BOOL previousEnabled;
649 - (id)initWithInputAssistantItem:(UITextInputAssistantItem *)inputAssistantItem;
650 @end
651
652 @protocol UIWebFormAccessoryDelegate
653 - (void)accessoryAutoFill;
654 - (void)accessoryClear;
655 - (void)accessoryDone;
656 - (void)accessoryTab:(BOOL)isNext;
657 @end
658
659 @interface UIWebGeolocationPolicyDecider : NSObject
660 @end
661
662 @interface UIWebGeolocationPolicyDecider ()
663 + (instancetype)sharedPolicyDecider;
664 - (void)decidePolicyForGeolocationRequestFromOrigin:(id)securityOrigin requestingURL:(NSURL *)requestingURL window:(UIWindow *)window listener:(id)listener;
665 @end
666
667 typedef enum {
668     UIWebTouchEventTouchBegin = 0,
669     UIWebTouchEventTouchChange = 1,
670     UIWebTouchEventTouchEnd = 2,
671     UIWebTouchEventTouchCancel = 3,
672 } UIWebTouchEventType;
673
674 typedef enum {
675     UIWebTouchPointTypeDirect = 0,
676     UIWebTouchPointTypeStylus
677 } UIWebTouchPointType;
678
679 struct _UIWebTouchPoint {
680     CGPoint locationInScreenCoordinates;
681     CGPoint locationInDocumentCoordinates;
682     unsigned identifier;
683     UITouchPhase phase;
684 #if __IPHONE_OS_VERSION_MIN_REQUIRED > 100000
685     CGFloat majorRadiusInScreenCoordinates;
686     CGFloat force;
687     CGFloat altitudeAngle;
688     CGFloat azimuthAngle;
689     UIWebTouchPointType touchType;
690 #endif
691 };
692
693 struct _UIWebTouchEvent {
694     UIWebTouchEventType type;
695     NSTimeInterval timestamp;
696     CGPoint locationInScreenCoordinates;
697     CGPoint locationInDocumentCoordinates;
698     CGFloat scale;
699     CGFloat rotation;
700
701     bool inJavaScriptGesture;
702
703     struct _UIWebTouchPoint* touchPoints;
704     unsigned touchPointCount;
705
706     bool isPotentialTap;
707 };
708
709 @class UIWebTouchEventsGestureRecognizer;
710
711 @protocol UIWebTouchEventsGestureRecognizerDelegate <NSObject>
712 - (BOOL)isAnyTouchOverActiveArea:(NSSet *)touches;
713 @optional
714 - (BOOL)gestureRecognizer:(UIWebTouchEventsGestureRecognizer *)gestureRecognizer shouldIgnoreWebTouchWithEvent:(UIEvent *)event;
715 @end
716
717 @interface UIWebTouchEventsGestureRecognizer : UIGestureRecognizer
718 @end
719
720 @interface UIWebTouchEventsGestureRecognizer ()
721 - (id)initWithTarget:(id)target action:(SEL)action touchDelegate:(id <UIWebTouchEventsGestureRecognizerDelegate>)delegate;
722 @property (nonatomic, getter=isDefaultPrevented) BOOL defaultPrevented;
723 @property (nonatomic, readonly) BOOL inJavaScriptGesture;
724 @property (nonatomic, readonly) CGPoint locationInWindow;
725 @property (nonatomic, readonly) UIWebTouchEventType type;
726 @property (nonatomic, readonly) const struct _UIWebTouchEvent *lastTouchEvent;
727 @end
728
729 typedef NS_ENUM(NSInteger, _UIBackdropViewStylePrivate) {
730     _UIBackdropViewStyle_Light = 2020,
731     _UIBackdropViewStyle_Dark = 2030
732 };
733
734 @interface _UIBackdropViewSettings : NSObject
735 @end
736
737 @interface _UIBackdropViewSettings ()
738 + (_UIBackdropViewSettings *)settingsForPrivateStyle:(_UIBackdropViewStylePrivate)style;
739 @property (nonatomic, assign) CGFloat scale;
740 @end
741
742 @interface _UIBackdropView : UIView
743 @end
744
745 @interface _UIBackdropView ()
746 - (instancetype)initWithPrivateStyle:(_UIBackdropViewStylePrivate)style;
747 - (instancetype)initWithSettings:(_UIBackdropViewSettings *)settings;
748 - (instancetype)initWithFrame:(CGRect)frame privateStyle:(_UIBackdropViewStylePrivate)style;
749 @property (nonatomic, strong, readonly) UIView *contentView;
750 @end
751
752 @interface _UIHighlightView : UIView
753 @end
754
755 @interface _UIHighlightView ()
756 - (void)setColor:(UIColor *)aColor;
757 - (void)setCornerRadii:(NSArray *)cornerRadii;
758 - (void)setCornerRadius:(CGFloat)aCornerRadius;
759 - (void)setFrames:(NSArray *)frames boundaryRect:(CGRect)aBoundarRect;
760 - (void)setQuads:(NSArray *)quads boundaryRect:(CGRect)aBoundaryRect;
761 @end
762
763 @interface _UINavigationParallaxTransition : NSObject <UIViewControllerAnimatedTransitioningEx>
764 @end
765
766 @interface _UINavigationParallaxTransition ()
767 - (instancetype) initWithCurrentOperation:(UINavigationControllerOperation)operation;
768 @end
769
770 @protocol _UINavigationInteractiveTransitionBaseDelegate;
771
772 @interface _UINavigationInteractiveTransitionBase : UIPercentDrivenInteractiveTransition <UIGestureRecognizerDelegate>
773 @end
774
775 @interface _UINavigationInteractiveTransitionBase ()
776 - (id)initWithGestureRecognizerView:(UIView *)gestureRecognizerView animator:(id<UIViewControllerAnimatedTransitioning>)animator delegate:(id<_UINavigationInteractiveTransitionBaseDelegate>)delegate;
777 @property (nonatomic, weak) UIPanGestureRecognizer *gestureRecognizer;
778 @property (nonatomic, assign) BOOL shouldReverseTranslation;
779 @property (nonatomic, retain) _UINavigationParallaxTransition *animationController;
780 @end
781
782 @protocol _UINavigationInteractiveTransitionBaseDelegate <NSObject>
783 - (void)startInteractiveTransition:(_UINavigationInteractiveTransitionBase *)interactiveTransition;
784 - (BOOL)shouldBeginInteractiveTransition:(_UINavigationInteractiveTransitionBase *)interactiveTransition;
785 - (BOOL)interactiveTransition:(_UINavigationInteractiveTransitionBase *)interactiveTransition gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldRecognizeSimultaneouslyWithGestureRecognizer:(UIGestureRecognizer *)otherGestureRecognizer;
786 - (BOOL)interactiveTransition:(_UINavigationInteractiveTransitionBase *)interactiveTransition gestureRecognizer:(UIGestureRecognizer *)gestureRecognizer shouldReceiveTouch:(UITouch *)touch;
787 - (UIPanGestureRecognizer *)gestureRecognizerForInteractiveTransition:(_UINavigationInteractiveTransitionBase *)interactiveTransition WithTarget:(id)target action:(SEL)action;
788 @end
789
790 @class BKSAnimationFenceHandle;
791
792 @interface UIWindow ()
793 + (BKSAnimationFenceHandle *)_synchronizedDrawingFence;
794 + (mach_port_t)_synchronizeDrawingAcrossProcesses;
795 - (void)_setWindowResolution:(CGFloat)resolution displayIfChanged:(BOOL)displayIfChanged;
796 @end
797
798 @interface UIWebScrollView : UIScrollView
799 @end
800
801 @interface UIWebTiledView : UIView
802 @end
803
804 @class WAKWindow;
805
806 @interface UIWebTiledView ()
807 - (void)setWAKWindow:(WAKWindow *)window;
808 @end
809
810 @interface UIWebDocumentView : UIWebTiledView
811 @end
812
813 typedef enum {
814     UIEveryDocumentMask = 0xFFFFFF,
815 } UIDocumentMask;
816
817 @interface UIWebDocumentView ()
818 - (void)setDelegate:(id)delegate;
819 - (void)setAutoresizes:(BOOL)flag;
820 - (void)setMinimumSize:(CGSize)aSize;
821 - (void)setInitialScale:(float)aScale forDocumentTypes:(UIDocumentMask)aDocumentMask;
822 - (void)setViewportSize:(CGSize)aSize forDocumentTypes:(UIDocumentMask)aDocumentMask;
823 - (void)setMinimumScale:(float)aScale forDocumentTypes:(UIDocumentMask)aDocumentMask;
824 - (void)setMaximumScale:(float)aScale forDocumentTypes:(UIDocumentMask)aDocumentMask;
825 @end
826
827 @interface UIWebBrowserView : UIWebDocumentView
828 @end
829
830 @class WebView;
831
832 @interface UIWebBrowserView ()
833 - (WebView *)webView;
834 - (void)setPaused:(BOOL)paused;
835 - (void)sendScrollEventIfNecessaryWasUserScroll:(BOOL)userScroll;
836 @property (nonatomic) BOOL inputViewObeysDOMFocus;
837 @end
838
839 @interface UIDocumentMenuViewController ()
840 - (instancetype)_initIgnoringApplicationEntitlementForImportOfTypes:(NSArray *)types;
841 @end
842
843 @protocol UIDocumentPasswordViewDelegate;
844
845 @interface UIDocumentPasswordView : UIView <UITextFieldDelegate>
846 @end
847
848 @interface UIDocumentPasswordView ()
849
850 - (id)initWithDocumentName:(NSString *)documentName;
851
852 @property (nonatomic, assign) NSObject<UIDocumentPasswordViewDelegate> *passwordDelegate;
853 @property (nonatomic, readonly) UITextField *passwordField;
854
855 @end
856
857 @protocol UIDocumentPasswordViewDelegate
858
859 @required
860
861 - (void)userDidEnterPassword:(NSString *)password forPasswordView:(UIDocumentPasswordView *)passwordView;
862
863 @optional
864
865 - (void)didBeginEditingPassword:(UITextField *)passwordField inView:(UIDocumentPasswordView *)passwordView;
866 - (void)didEndEditingPassword:(UITextField *)passwordField inView:(UIDocumentPasswordView *)passwordView;
867
868 @end
869
870 @interface UIViewControllerPreviewAction : NSObject <NSCopying>
871 @end
872
873 @interface UIViewControllerPreviewAction ()
874 + (instancetype)actionWithTitle:(NSString *)title handler:(void (^)(UIViewControllerPreviewAction *action, UIViewController *previewViewController))handler;
875 @end
876
877 #if ENABLE(DRAG_SUPPORT)
878
879 @interface UIItemProvider : NSItemProvider
880 @property (nonatomic) CGSize preferredPresentationSize;
881 @end
882
883 WTF_EXTERN_C_BEGIN
884
885 NSTimeInterval _UIDragInteractionDefaultLiftDelay();
886
887 WTF_EXTERN_C_END
888
889 typedef NS_OPTIONS(NSUInteger, UIDragOperation)
890 {
891     UIDragOperationNone = 0,
892     UIDragOperationEvery = NSUIntegerMax,
893 };
894
895 @interface UIDragInteraction ()
896 @property (nonatomic, assign, getter=_liftDelay, setter=_setLiftDelay:) NSTimeInterval liftDelay;
897 @end
898
899 @protocol UITextInput;
900 @interface _UITextDragCaretView : UIView
901 - (instancetype)initWithTextInputView:(UIView<UITextInput> *)textInputView;
902 -(void)insertAtPosition:(UITextPosition *)position;
903 -(void)updateToPosition:(UITextPosition *)position;
904 -(void)remove;
905 @end
906
907 @interface UICalloutBar : UIView
908 + (void)fadeSharedCalloutBar;
909 @end
910
911 @interface UIApplicationRotationFollowingWindow : UIWindow
912 @end
913 @interface UIAutoRotatingWindow : UIApplicationRotationFollowingWindow
914 @end
915
916 @interface UITextEffectsWindow : UIAutoRotatingWindow
917 + (UITextEffectsWindow *)sharedTextEffectsWindow;
918 @end
919
920 #endif
921
922 #endif // USE(APPLE_INTERNAL_SDK)
923
924 @interface UIColor (IPI)
925 + (UIColor *)insertionPointColor;
926 @end
927
928 @interface UIView (IPI)
929 - (UIScrollView *)_scroller;
930 - (CGPoint)accessibilityConvertPointFromSceneReferenceCoordinates:(CGPoint)point;
931 - (CGRect)accessibilityConvertRectToSceneReferenceCoordinates:(CGRect)rect;
932 @end
933
934 @interface UIPeripheralHost (IPI)
935 - (void)_beginIgnoringReloadInputViews;
936 - (int)_endIgnoringReloadInputViews;
937 - (void)forceReloadInputViews;
938 @end
939
940 @interface UIResponder ()
941 - (UIResponder *)firstResponder;
942 @end
943
944 WTF_EXTERN_C_BEGIN
945
946 BOOL UIKeyboardEnabledInputModesAllowOneToManyShortcuts();
947 BOOL UIKeyboardEnabledInputModesAllowChineseTransliterationForText(NSString *);
948 BOOL UIKeyboardCurrentInputModeAllowsChineseOrJapaneseReanalysisForText(NSString *);
949
950 extern const float UITableCellDefaultFontSize;
951 extern const float UITableViewCellDefaultFontSize;
952
953 extern NSString * const UIWindowDidMoveToScreenNotification;
954 extern NSString * const UIWindowDidRotateNotification;
955 extern NSString * const UIWindowNewScreenUserInfoKey;
956 extern NSString * const UIWindowWillRotateNotification;
957
958 extern NSString * const UIKeyboardIsLocalUserInfoKey;
959
960 extern UIApplication *UIApp;
961 BOOL _UIApplicationIsExtension(void);
962 void _UIApplicationLoadWebKit(void);
963 BOOL _UIApplicationUsesLegacyUI(void);
964
965 void UIImageDataWriteToSavedPhotosAlbum(NSData *imageData, id completionTarget, SEL completionSelector, void *contextInfo);
966
967 UIImage* _UIImageGetWebKitPhotoLibraryIcon(void);
968 UIImage* _UIImageGetWebKitTakePhotoOrVideoIcon(void);
969
970 extern const float UIWebViewGrowsAndShrinksToFitHeight;
971 extern const float UIWebViewScalesToFitScale;
972 extern const float UIWebViewStandardViewportWidth;
973
974 extern NSString *const UIKeyInputPageUp;
975 extern NSString *const UIKeyInputPageDown;
976
977 extern const NSString *UIPreviewDataLink;
978 extern const NSString *UIPreviewDataDDResult;
979 extern const NSString *UIPreviewDataDDContext;
980
981 extern const NSString *UIPreviewDataAttachmentList;
982 extern const NSString *UIPreviewDataAttachmentIndex;
983
984 UIEdgeInsets UIEdgeInsetsAdd(UIEdgeInsets lhs, UIEdgeInsets rhs, UIRectEdge);
985
986 WTF_EXTERN_C_END