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