[iOS] Shift + Tab does not focus previous field
[WebKit-https.git] / Source / WebKit / UIProcess / ios / WKContentViewInteraction.h
1 /*
2  * Copyright (C) 2012-2018 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 #if PLATFORM(IOS_FAMILY)
27
28 #import "WKContentView.h"
29
30 #if !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
31 #import "WKShareSheet.h"
32 #endif
33
34 #import "AssistedNodeInformation.h"
35 #import "DragDropInteractionState.h"
36 #import "EditorState.h"
37 #import "GestureTypes.h"
38 #import "InteractionInformationAtPosition.h"
39 #import "UIKitSPI.h"
40 #import "WKActionSheetAssistant.h"
41 #import "WKAirPlayRoutePicker.h"
42 #import "WKFileUploadPanel.h"
43 #import "WKFormPeripheral.h"
44 #import "WKKeyboardScrollingAnimator.h"
45 #import "WKShareSheet.h"
46 #import "WKSyntheticClickTapGestureRecognizer.h"
47 #import "_WKFormInputSession.h"
48 #import <UIKit/UIView.h>
49 #import <WebCore/Color.h>
50 #import <WebCore/FloatQuad.h>
51 #import <wtf/BlockPtr.h>
52 #import <wtf/Forward.h>
53 #import <wtf/OptionSet.h>
54 #import <wtf/Vector.h>
55 #import <wtf/WeakObjCPtr.h>
56 #import <wtf/text/WTFString.h>
57
58 namespace API {
59 class OpenPanelParameters;
60 }
61
62 namespace WTF {
63 class TextStream;
64 }
65
66 namespace WebCore {
67 class Color;
68 class FloatQuad;
69 class IntSize;
70 class SelectionRect;
71 struct PromisedAttachmentInfo;
72 struct ShareDataWithParsedURL;
73 enum class RouteSharingPolicy : uint8_t;
74 }
75
76 #if ENABLE(DRAG_SUPPORT)
77 namespace WebCore {
78 struct DragItem;
79 }
80 #endif
81
82 namespace WebKit {
83 class InputViewUpdateDeferrer;
84 class NativeWebTouchEvent;
85 class SmartMagnificationController;
86 class WebOpenPanelResultListenerProxy;
87 class WebPageProxy;
88 }
89
90 @class _UIHighlightView;
91 @class _UIWebHighlightLongPressGestureRecognizer;
92 @class UIHoverGestureRecognizer;
93 @class WebEvent;
94 @class WKActionSheetAssistant;
95 @class WKFocusedFormControlView;
96 @class WKFormInputControl;
97 @class WKFormInputSession;
98 @class WKInspectorNodeSearchGestureRecognizer;
99
100 typedef void (^UIWKAutocorrectionCompletionHandler)(UIWKAutocorrectionRects *rectsForInput);
101 typedef void (^UIWKAutocorrectionContextHandler)(UIWKAutocorrectionContext *autocorrectionContext);
102 typedef void (^UIWKDictationContextHandler)(NSString *selectedText, NSString *beforeText, NSString *afterText);
103 typedef void (^UIWKSelectionCompletionHandler)(void);
104 typedef void (^UIWKSelectionWithDirectionCompletionHandler)(BOOL selectionEndIsMoving);
105
106 typedef BlockPtr<void(WebKit::InteractionInformationAtPosition)> InteractionInformationCallback;
107 typedef std::pair<WebKit::InteractionInformationRequest, InteractionInformationCallback> InteractionInformationRequestAndCallback;
108
109 #define FOR_EACH_WKCONTENTVIEW_ACTION(M) \
110     M(_addShortcut) \
111     M(_define) \
112     M(_lookup) \
113     M(_promptForReplace) \
114     M(_share) \
115     M(_showTextStyleOptions) \
116     M(_transliterateChinese) \
117     M(_nextAccessoryTab) \
118     M(_previousAccessoryTab) \
119     M(copy) \
120     M(cut) \
121     M(paste) \
122     M(replace) \
123     M(select) \
124     M(selectAll) \
125     M(toggleBoldface) \
126     M(toggleItalics) \
127     M(toggleUnderline) \
128     M(increaseSize) \
129     M(decreaseSize) \
130     M(toggleStrikeThrough) \
131     M(insertUnorderedList) \
132     M(insertOrderedList) \
133     M(indent) \
134     M(outdent) \
135     M(alignLeft) \
136     M(alignRight) \
137     M(alignCenter) \
138     M(alignJustified) \
139     M(pasteAndMatchStyle) \
140     M(makeTextWritingDirectionNatural)
141
142 #define FOR_EACH_PRIVATE_WKCONTENTVIEW_ACTION(M) \
143     M(_alignCenter) \
144     M(_alignJustified) \
145     M(_alignLeft) \
146     M(_alignRight) \
147     M(_indent) \
148     M(_outdent) \
149     M(_toggleStrikeThrough) \
150     M(_insertOrderedList) \
151     M(_insertUnorderedList) \
152     M(_insertNestedOrderedList) \
153     M(_insertNestedUnorderedList) \
154     M(_increaseListLevel) \
155     M(_decreaseListLevel) \
156     M(_changeListType) \
157     M(_pasteAsQuotation) \
158     M(_pasteAndMatchStyle)
159
160 namespace WebKit {
161
162 enum SuppressSelectionAssistantReason : uint8_t {
163     FocusedElementIsTransparent = 1 << 0,
164     DropAnimationIsRunning = 1 << 1
165 };
166
167 struct WKSelectionDrawingInfo {
168     enum class SelectionType { None, Plugin, Range };
169     WKSelectionDrawingInfo();
170     explicit WKSelectionDrawingInfo(const EditorState&);
171     SelectionType type;
172     WebCore::IntRect caretRect;
173     Vector<WebCore::SelectionRect> selectionRects;
174 };
175
176 WTF::TextStream& operator<<(WTF::TextStream&, const WKSelectionDrawingInfo&);
177
178 struct WKAutoCorrectionData {
179     String fontName;
180     CGFloat fontSize;
181     uint64_t fontTraits;
182     CGRect textFirstRect;
183     CGRect textLastRect;
184     UIWKAutocorrectionCompletionHandler autocorrectionHandler;
185     UIWKAutocorrectionContextHandler autocorrectionContextHandler;
186 };
187
188 }
189
190 @class WKFocusedElementInfo;
191 @protocol WKFormControl;
192
193 @interface WKFormInputSession : NSObject <_WKFormInputSession>
194
195 - (instancetype)initWithContentView:(WKContentView *)view focusedElementInfo:(WKFocusedElementInfo *)elementInfo requiresStrongPasswordAssistance:(BOOL)requiresStrongPasswordAssistance;
196 - (void)endEditing;
197 - (void)invalidate;
198
199 @end
200
201 @interface WKContentView () {
202     RetainPtr<UIWebTouchEventsGestureRecognizer> _touchEventGestureRecognizer;
203
204     BOOL _canSendTouchEventsAsynchronously;
205
206     RetainPtr<WKSyntheticClickTapGestureRecognizer> _singleTapGestureRecognizer;
207     RetainPtr<_UIWebHighlightLongPressGestureRecognizer> _highlightLongPressGestureRecognizer;
208     RetainPtr<UILongPressGestureRecognizer> _longPressGestureRecognizer;
209     RetainPtr<UITapGestureRecognizer> _doubleTapGestureRecognizer;
210     RetainPtr<UITapGestureRecognizer> _nonBlockingDoubleTapGestureRecognizer;
211     RetainPtr<UITapGestureRecognizer> _twoFingerDoubleTapGestureRecognizer;
212     RetainPtr<UITapGestureRecognizer> _twoFingerSingleTapGestureRecognizer;
213     RetainPtr<WKInspectorNodeSearchGestureRecognizer> _inspectorNodeSearchGestureRecognizer;
214
215 #if PLATFORM(IOSMAC)
216     RetainPtr<UIHoverGestureRecognizer> _hoverGestureRecognizer;
217 #endif
218
219     RetainPtr<UIWKTextInteractionAssistant> _textSelectionAssistant;
220     OptionSet<WebKit::SuppressSelectionAssistantReason> _suppressSelectionAssistantReasons;
221
222     RetainPtr<UITextInputTraits> _traits;
223     RetainPtr<UIWebFormAccessory> _formAccessoryView;
224     RetainPtr<_UIHighlightView> _highlightView;
225     RetainPtr<UIView> _interactionViewsContainerView;
226     RetainPtr<NSString> _markedText;
227     RetainPtr<WKActionSheetAssistant> _actionSheetAssistant;
228 #if ENABLE(AIRPLAY_PICKER)
229     RetainPtr<WKAirPlayRoutePicker> _airPlayRoutePicker;
230 #endif
231     RetainPtr<WKFormInputSession> _formInputSession;
232     RetainPtr<WKFileUploadPanel> _fileUploadPanel;
233 #if !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
234     RetainPtr<WKShareSheet> _shareSheet;
235 #endif
236     RetainPtr<UIGestureRecognizer> _previewGestureRecognizer;
237     RetainPtr<UIGestureRecognizer> _previewSecondaryGestureRecognizer;
238     Vector<bool> _focusStateStack;
239 #if HAVE(LINK_PREVIEW)
240     RetainPtr<UIPreviewItemController> _previewItemController;
241 #endif
242
243     std::unique_ptr<WebKit::SmartMagnificationController> _smartMagnificationController;
244
245     WeakObjCPtr<id <UITextInputDelegate>> _inputDelegate;
246
247     uint64_t _latestTapID;
248     struct TapHighlightInformation {
249         WebCore::Color color;
250         Vector<WebCore::FloatQuad> quads;
251         WebCore::IntSize topLeftRadius;
252         WebCore::IntSize topRightRadius;
253         WebCore::IntSize bottomLeftRadius;
254         WebCore::IntSize bottomRightRadius;
255     };
256     TapHighlightInformation _tapHighlightInformation;
257
258     WebKit::WKAutoCorrectionData _autocorrectionData;
259     WebKit::InteractionInformationAtPosition _positionInformation;
260     WebKit::AssistedNodeInformation _assistedNodeInformation;
261     RetainPtr<NSObject<WKFormPeripheral>> _inputPeripheral;
262     RetainPtr<UIEvent> _uiEventBeingResent;
263     BlockPtr<void(::WebEvent *, BOOL)> _keyWebEventHandler;
264
265     CGPoint _lastInteractionLocation;
266     uint64_t _layerTreeTransactionIdAtLastTouchStart;
267
268     WebKit::WKSelectionDrawingInfo _lastSelectionDrawingInfo;
269
270     std::optional<WebKit::InteractionInformationRequest> _outstandingPositionInformationRequest;
271
272     uint64_t _positionInformationCallbackDepth;
273     Vector<std::optional<InteractionInformationRequestAndCallback>> _pendingPositionInformationHandlers;
274     
275     std::unique_ptr<WebKit::InputViewUpdateDeferrer> _inputViewUpdateDeferrer;
276
277     RetainPtr<WKKeyboardScrollViewAnimator> _keyboardScrollingAnimator;
278
279 #if ENABLE(DATALIST_ELEMENT)
280     RetainPtr<UIView <WKFormControl>> _dataListTextSuggestionsInputView;
281     RetainPtr<NSArray<UITextSuggestion *>> _dataListTextSuggestions;
282 #endif
283
284     BOOL _isEditable;
285     BOOL _showingTextStyleOptions;
286     BOOL _hasValidPositionInformation;
287     BOOL _isTapHighlightIDValid;
288     BOOL _potentialTapInProgress;
289     BOOL _isDoubleTapPending;
290     BOOL _highlightLongPressCanClick;
291     BOOL _hasTapHighlightForPotentialTap;
292     BOOL _selectionNeedsUpdate;
293     BOOL _shouldRestoreSelection;
294     BOOL _usingGestureForSelection;
295     BOOL _inspectorNodeSearchEnabled;
296     BOOL _didAccessoryTabInitiateFocus;
297     BOOL _isExpectingFastSingleTapCommit;
298     BOOL _showDebugTapHighlightsForFastClicking;
299
300     BOOL _becomingFirstResponder;
301     BOOL _resigningFirstResponder;
302     BOOL _needsDeferredEndScrollingSelectionUpdate;
303     BOOL _isChangingFocus;
304     BOOL _isBlurringFocusedNode;
305
306     BOOL _focusRequiresStrongPasswordAssistance;
307
308     BOOL _hasSetUpInteractions;
309
310 #if ENABLE(DATA_INTERACTION)
311     WebKit::DragDropInteractionState _dragDropInteractionState;
312     RetainPtr<UIDragInteraction> _dragInteraction;
313     RetainPtr<UIDropInteraction> _dropInteraction;
314     BOOL _shouldRestoreCalloutBarAfterDrop;
315     BOOL _isAnimatingConcludeEditDrag;
316     RetainPtr<UIView> _visibleContentViewSnapshot;
317     RetainPtr<_UITextDragCaretView> _editDropCaretView;
318 #endif
319
320 #if PLATFORM(WATCHOS)
321     RetainPtr<WKFocusedFormControlView> _focusedFormControlView;
322     RetainPtr<UIViewController> _presentedFullScreenInputViewController;
323     RetainPtr<UINavigationController> _inputNavigationViewControllerForFullScreenInputs;
324
325     BOOL _shouldRestoreFirstResponderStatusAfterLosingFocus;
326     BlockPtr<void()> _activeFocusedStateRetainBlock;
327 #endif
328 }
329
330 @end
331
332 @interface WKContentView (WKInteraction) <UIGestureRecognizerDelegate, UITextAutoscrolling, UITextInputMultiDocument, UITextInputPrivate, UIWebFormAccessoryDelegate, UIWebTouchEventsGestureRecognizerDelegate, UIWKInteractionViewProtocol, WKActionSheetAssistantDelegate, WKFileUploadPanelDelegate, WKKeyboardScrollViewAnimatorDelegate
333 #if !PLATFORM(WATCHOS) && !PLATFORM(APPLETV)
334     , WKShareSheetDelegate
335 #endif
336 #if ENABLE(DATA_INTERACTION)
337     , UIDragInteractionDelegate, UIDropInteractionDelegate
338 #endif
339 >
340
341 @property (nonatomic, readonly) CGPoint lastInteractionLocation;
342 @property (nonatomic, readonly) BOOL isEditable;
343 @property (nonatomic, readonly) BOOL shouldHideSelectionWhenScrolling;
344 @property (nonatomic, readonly) const WebKit::InteractionInformationAtPosition& positionInformation;
345 @property (nonatomic, readonly) const WebKit::WKAutoCorrectionData& autocorrectionData;
346 @property (nonatomic, readonly) const WebKit::AssistedNodeInformation& assistedNodeInformation;
347 @property (nonatomic, readonly) UIWebFormAccessory *formAccessoryView;
348 @property (nonatomic, readonly) UITextInputAssistantItem *inputAssistantItemForWebView;
349
350 #if ENABLE(DATALIST_ELEMENT)
351 @property (nonatomic, strong) UIView <WKFormControl> *dataListTextSuggestionsInputView;
352 @property (nonatomic, strong) NSArray<UITextSuggestion *> *dataListTextSuggestions;
353 #endif
354
355 - (void)setupInteraction;
356 - (void)cleanupInteraction;
357
358 - (void)scrollViewWillStartPanOrPinchGesture;
359
360 - (BOOL)canBecomeFirstResponderForWebView;
361 - (BOOL)becomeFirstResponderForWebView;
362 - (BOOL)resignFirstResponderForWebView;
363 - (BOOL)canPerformActionForWebView:(SEL)action withSender:(id)sender;
364 - (id)targetForActionForWebView:(SEL)action withSender:(id)sender;
365
366 #define DECLARE_WKCONTENTVIEW_ACTION_FOR_WEB_VIEW(_action) \
367     - (void)_action ## ForWebView:(id)sender;
368 FOR_EACH_WKCONTENTVIEW_ACTION(DECLARE_WKCONTENTVIEW_ACTION_FOR_WEB_VIEW)
369 FOR_EACH_PRIVATE_WKCONTENTVIEW_ACTION(DECLARE_WKCONTENTVIEW_ACTION_FOR_WEB_VIEW)
370 #undef DECLARE_WKCONTENTVIEW_ACTION_FOR_WEB_VIEW
371
372 - (void)setFontForWebView:(UIFont *)fontFamily sender:(id)sender;
373 - (void)setFontSizeForWebView:(CGFloat)fontSize sender:(id)sender;
374 - (void)setTextColorForWebView:(UIColor *)color sender:(id)sender;
375
376 #if ENABLE(TOUCH_EVENTS)
377 - (void)_webTouchEvent:(const WebKit::NativeWebTouchEvent&)touchEvent preventsNativeGestures:(BOOL)preventsDefault;
378 #endif
379 - (void)_commitPotentialTapFailed;
380 - (void)_didNotHandleTapAsClick:(const WebCore::IntPoint&)point;
381 - (void)_didCompleteSyntheticClick;
382 - (void)_didGetTapHighlightForRequest:(uint64_t)requestID color:(const WebCore::Color&)color quads:(const Vector<WebCore::FloatQuad>&)highlightedQuads topLeftRadius:(const WebCore::IntSize&)topLeftRadius topRightRadius:(const WebCore::IntSize&)topRightRadius bottomLeftRadius:(const WebCore::IntSize&)bottomLeftRadius bottomRightRadius:(const WebCore::IntSize&)bottomRightRadius;
383
384 - (BOOL)_mayDisableDoubleTapGesturesDuringSingleTap;
385 - (void)_disableDoubleTapGesturesDuringTapIfNecessary:(uint64_t)requestID;
386 - (void)_startAssistingNode:(const WebKit::AssistedNodeInformation&)information userIsInteracting:(BOOL)userIsInteracting blurPreviousNode:(BOOL)blurPreviousNode changingActivityState:(BOOL)changingActivityState userObject:(NSObject <NSSecureCoding> *)userObject;
387 - (void)_stopAssistingNode;
388 - (void)_selectionChanged;
389 - (void)_updateChangedSelection;
390 - (BOOL)_interpretKeyEvent:(::WebEvent *)theEvent isCharEvent:(BOOL)isCharEvent;
391 - (void)_positionInformationDidChange:(const WebKit::InteractionInformationAtPosition&)info;
392 - (void)_attemptClickAtLocation:(CGPoint)location;
393 - (void)_willStartScrollingOrZooming;
394 - (void)_didScroll;
395 - (void)_didEndScrollingOrZooming;
396 - (void)_scrollingNodeScrollingWillBegin;
397 - (void)_scrollingNodeScrollingDidEnd;
398 - (void)_showPlaybackTargetPicker:(BOOL)hasVideo fromRect:(const WebCore::IntRect&)elementRect routeSharingPolicy:(WebCore::RouteSharingPolicy)policy routingContextUID:(NSString *)contextUID;
399 - (void)_showRunOpenPanel:(API::OpenPanelParameters*)parameters resultListener:(WebKit::WebOpenPanelResultListenerProxy*)listener;
400 - (void)_showShareSheet:(const WebCore::ShareDataWithParsedURL&)shareData completionHandler:(WTF::CompletionHandler<void(bool)>&&)completionHandler;
401 - (void)accessoryDone;
402 - (void)_didHandleKeyEvent:(::WebEvent *)event eventWasHandled:(BOOL)eventWasHandled;
403 - (Vector<WebKit::OptionItem>&) assistedNodeSelectOptions;
404 - (void)_enableInspectorNodeSearch;
405 - (void)_disableInspectorNodeSearch;
406 - (void)_becomeFirstResponderWithSelectionMovingForward:(BOOL)selectingForward completionHandler:(void (^)(BOOL didBecomeFirstResponder))completionHandler;
407 - (void)_setDoubleTapGesturesEnabled:(BOOL)enabled;
408 #if ENABLE(DATA_DETECTION)
409 - (NSArray *)_dataDetectionResults;
410 #endif
411 - (NSArray<NSValue *> *)_uiTextSelectionRects;
412 - (void)accessibilityRetrieveSpeakSelectionContent;
413 - (void)_accessibilityRetrieveRectsEnclosingSelectionOffset:(NSInteger)offset withGranularity:(UITextGranularity)granularity;
414 - (void)_accessibilityRetrieveRectsAtSelectionOffset:(NSInteger)offset withText:(NSString *)text completionHandler:(void (^)(const Vector<WebCore::SelectionRect>& rects))completionHandler;
415 - (void)_accessibilityRetrieveRectsAtSelectionOffset:(NSInteger)offset withText:(NSString *)text;
416 - (void)_accessibilityStoreSelection;
417 - (void)_accessibilityClearSelection;
418 - (WKFormInputSession *)_formInputSession;
419
420 @property (nonatomic, readonly) WebKit::InteractionInformationAtPosition currentPositionInformation;
421 - (void)doAfterPositionInformationUpdate:(void (^)(WebKit::InteractionInformationAtPosition))action forRequest:(WebKit::InteractionInformationRequest)request;
422 - (BOOL)ensurePositionInformationIsUpToDate:(WebKit::InteractionInformationRequest)request;
423
424 #if ENABLE(DATA_INTERACTION)
425 - (void)_didChangeDragInteractionPolicy;
426 - (void)_didPerformDragOperation:(BOOL)handled;
427 - (void)_didHandleStartDataInteractionRequest:(BOOL)started;
428 - (void)_didHandleAdditionalDragItemsRequest:(BOOL)added;
429 - (void)_startDrag:(RetainPtr<CGImageRef>)image item:(const WebCore::DragItem&)item;
430 - (void)_didConcludeEditDataInteraction:(std::optional<WebCore::TextIndicatorData>)data;
431 - (void)_didChangeDataInteractionCaretRect:(CGRect)previousRect currentRect:(CGRect)rect;
432 #endif
433
434 - (void)reloadContextViewForPresentedListViewController;
435
436 #if ENABLE(DATALIST_ELEMENT)
437 - (void)updateTextSuggestionsForInputDelegate;
438 #endif
439
440 @end
441
442 @interface WKContentView (WKTesting)
443
444 - (void)_simulateLongPressActionAtLocation:(CGPoint)location;
445 - (void)_simulateTextEntered:(NSString *)text;
446 - (void)selectFormAccessoryPickerRow:(NSInteger)rowIndex;
447 - (void)setTimePickerValueToHour:(NSInteger)hour minute:(NSInteger)minute;
448 - (NSDictionary *)_contentsOfUserInterfaceItem:(NSString *)userInterfaceItem;
449
450 @property (nonatomic, readonly) NSString *textContentTypeForTesting;
451 @property (nonatomic, readonly) NSString *selectFormPopoverTitle;
452 @property (nonatomic, readonly) NSString *formInputLabel;
453 @property (nonatomic, readonly) WKFormInputControl *formInputControl;
454
455 @end
456
457 #if HAVE(LINK_PREVIEW)
458 @interface WKContentView (WKInteractionPreview) <UIPreviewItemDelegate>
459
460 - (void)_registerPreview;
461 - (void)_unregisterPreview;
462 @end
463 #endif
464
465 @interface WKContentView (WKFileUploadPanel)
466 + (Class)_fileUploadPanelClass;
467 @end
468
469 #endif // PLATFORM(IOS_FAMILY)