Provide a viewport parameter to disable clipping to the safe area
[WebKit-https.git] / Source / WebKit2 / UIProcess / API / Cocoa / WKWebViewPrivate.h
1 /*
2  * Copyright (C) 2014 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 <WebKit/WKWebView.h>
27
28 #if WK_API_ENABLED
29
30 #import <WebKit/_WKFindOptions.h>
31 #import <WebKit/_WKLayoutMode.h>
32 #import <WebKit/_WKRenderingProgressEvents.h>
33
34 typedef NS_ENUM(NSInteger, _WKPaginationMode) {
35     _WKPaginationModeUnpaginated,
36     _WKPaginationModeLeftToRight,
37     _WKPaginationModeRightToLeft,
38     _WKPaginationModeTopToBottom,
39     _WKPaginationModeBottomToTop,
40 } WK_API_AVAILABLE(macosx(10.10), ios(8.0));
41
42 typedef NS_OPTIONS(NSInteger, _WKMediaCaptureState) {
43     _WKMediaCaptureStateNone = 0,
44     _WKMediaCaptureStateActiveMicrophone = 1 << 0,
45     _WKMediaCaptureStateActiveCamera = 1 << 1,
46     _WKMediaCaptureStateMutedMicrophone = 1 << 2,
47     _WKMediaCaptureStateMutedCamera = 1 << 3,
48 } WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
49
50 typedef NS_OPTIONS(NSInteger, _WKMediaMutedState) {
51     _WKMediaNoneMuted = 0,
52     _WKMediaAudioMuted = 1 << 0,
53     _WKMediaCaptureDevicesMuted = 1 << 1,
54 } WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
55
56 #if !TARGET_OS_IPHONE
57
58 typedef NS_ENUM(NSInteger, _WKImmediateActionType) {
59     _WKImmediateActionNone,
60     _WKImmediateActionLinkPreview,
61     _WKImmediateActionDataDetectedItem,
62     _WKImmediateActionLookupText,
63     _WKImmediateActionMailtoLink,
64     _WKImmediateActionTelLink
65 } WK_API_AVAILABLE(macosx(10.12));
66
67 #endif
68
69 @class WKBrowsingContextHandle;
70 @class _WKFrameHandle;
71 @class _WKHitTestResult;
72 @class _WKIconLoadingDelegate;
73 @class _WKRemoteObjectRegistry;
74 @class _WKSessionState;
75 @class _WKWebsitePolicies;
76 @class _WKWebViewPrintFormatter;
77
78 @protocol WKHistoryDelegatePrivate;
79 @protocol _WKDiagnosticLoggingDelegate;
80 @protocol _WKFindDelegate;
81 @protocol _WKIconLoadingDelegate;
82 @protocol _WKInputDelegate;
83 @protocol _WKFullscreenDelegate;
84 @protocol _WKTestingDelegate;
85
86 @interface WKWebView (WKPrivate)
87
88 // FIXME: This should return a _WKRemoteObjectRegistry *.
89 @property (nonatomic, readonly) id _remoteObjectRegistry;
90 @property (nonatomic, readonly) WKBrowsingContextHandle *_handle;
91
92 @property (nonatomic, setter=_setObservedRenderingProgressEvents:) _WKRenderingProgressEvents _observedRenderingProgressEvents;
93
94 @property (nonatomic, weak, setter=_setHistoryDelegate:) id <WKHistoryDelegatePrivate> _historyDelegate;
95 @property (nonatomic, weak, setter=_setIconLoadingDelegate:) id <_WKIconLoadingDelegate> _iconLoadingDelegate;
96
97 @property (nonatomic, readonly) NSURL *_unreachableURL;
98
99 - (void)_loadAlternateHTMLString:(NSString *)string baseURL:(NSURL *)baseURL forUnreachableURL:(NSURL *)unreachableURL;
100 - (WKNavigation *)_loadData:(NSData *)data MIMEType:(NSString *)MIMEType characterEncodingName:(NSString *)characterEncodingName baseURL:(NSURL *)baseURL userData:(id)userData WK_API_AVAILABLE(macosx(10.12), ios(10.0));
101
102 @property (nonatomic, readonly) NSArray *_certificateChain WK_API_DEPRECATED_WITH_REPLACEMENT("certificateChain", macosx(10.10, 10.11), ios(8.0, 9.0));
103 @property (nonatomic, readonly) NSURL *_committedURL;
104 @property (nonatomic, readonly) NSString *_MIMEType;
105 @property (nonatomic, readonly) NSString *_userAgent WK_API_AVAILABLE(macosx(10.11), ios(9.0));
106
107 @property (copy, setter=_setApplicationNameForUserAgent:) NSString *_applicationNameForUserAgent;
108 @property (copy, setter=_setCustomUserAgent:) NSString *_customUserAgent;
109
110 @property (nonatomic, setter=_setUserContentExtensionsEnabled:) BOOL _userContentExtensionsEnabled WK_API_AVAILABLE(macosx(10.11), ios(9.0));
111
112 @property (nonatomic, readonly) pid_t _webProcessIdentifier;
113
114 @property (nonatomic, getter=_isEditable, setter=_setEditable:) BOOL _editable WK_API_AVAILABLE(macosx(10.11), ios(9.0));
115
116 // FIXME: Remove these once nobody is using them.
117 @property (nonatomic, readonly) NSData *_sessionStateData;
118 - (void)_restoreFromSessionStateData:(NSData *)sessionStateData;
119
120 @property (nonatomic, readonly) _WKSessionState *_sessionState;
121 - (WKNavigation *)_restoreSessionState:(_WKSessionState *)sessionState andNavigate:(BOOL)navigate;
122 - (_WKSessionState *)_sessionStateWithFilter:(BOOL (^)(WKBackForwardListItem *item))filter;
123
124 @property (nonatomic, setter=_setAllowsRemoteInspection:) BOOL _allowsRemoteInspection;
125 @property (nonatomic, copy, setter=_setRemoteInspectionNameOverride:) NSString *_remoteInspectionNameOverride WK_API_AVAILABLE(macosx(10.12), ios(10.0));
126
127 @property (nonatomic, setter=_setAddsVisitedLinks:) BOOL _addsVisitedLinks;
128
129 @property (nonatomic, readonly) BOOL _networkRequestsInProgress;
130
131 @property (nonatomic, readonly, getter=_isShowingNavigationGestureSnapshot) BOOL _showingNavigationGestureSnapshot;
132
133 - (void)_close;
134
135 - (void)_updateWebsitePolicies:(_WKWebsitePolicies *)websitePolicies;
136
137 @property (nonatomic, setter=_setLayoutMode:) _WKLayoutMode _layoutMode;
138 // For use with _layoutMode = _WKLayoutModeFixedSize:
139 @property (nonatomic, setter=_setFixedLayoutSize:) CGSize _fixedLayoutSize;
140
141 @property (nonatomic, setter=_setViewScale:) CGFloat _viewScale;
142
143 #if TARGET_OS_IPHONE
144 // DERECATED: The setters of the three following function are deprecated, please use overrideLayoutParameters.
145 // Define the smallest size a page take with a regular viewport.
146 @property (nonatomic, readonly) CGSize _minimumLayoutSizeOverride;
147 // Define the largest size the unobscured area can get for the current view bounds. This value is used to define viewport units.
148 @property (nonatomic, readonly) CGSize _maximumUnobscuredSizeOverride;
149
150 // Define the inset of the scrollview unusable by the web page.
151 @property (nonatomic, setter=_setObscuredInsets:) UIEdgeInsets _obscuredInsets;
152
153 @property (nonatomic, readonly) BOOL _contentMayDrawInObscuredInsets;
154
155 // Override the interface orientation. Clients using _beginAnimatedResizeWithUpdates: must update the interface orientation
156 // in the update block.
157 @property (nonatomic, setter=_setInterfaceOrientationOverride:) UIInterfaceOrientation _interfaceOrientationOverride;
158
159 @property (nonatomic, setter=_setAllowsViewportShrinkToFit:) BOOL _allowsViewportShrinkToFit;
160
161 @property (nonatomic, setter=_setBackgroundExtendsBeyondPage:) BOOL _backgroundExtendsBeyondPage;
162
163 // FIXME: Remove these three properties once we expose WKWebViewContentProvider as API.
164 @property (nonatomic, readonly, getter=_isDisplayingPDF) BOOL _displayingPDF;
165 @property (nonatomic, readonly) NSData *_dataForDisplayedPDF;
166 // FIXME: This can be removed once WKNavigation's response property is implemented.
167 @property (nonatomic, readonly) NSString *_suggestedFilenameForDisplayedPDF;
168
169 @property (nonatomic, readonly) _WKWebViewPrintFormatter *_webViewPrintFormatter;
170
171 - (void)_beginInteractiveObscuredInsetsChange;
172 - (void)_endInteractiveObscuredInsetsChange;
173 - (void)_hideContentUntilNextUpdate;
174
175 - (void)_beginAnimatedResizeWithUpdates:(void (^)(void))updateBlock;
176 - (void)_endAnimatedResize;
177 - (void)_resizeWhileHidingContentWithUpdates:(void (^)(void))updateBlock;
178
179 - (void)_snapshotRect:(CGRect)rectInViewCoordinates intoImageOfWidth:(CGFloat)imageWidth completionHandler:(void(^)(CGImageRef))completionHandler;
180
181 // Deprecated: Use [_overrideLayoutParametersWithMinimumLayoutSize:maximumUnobscuredSizeOverride:] instead.
182 // This function is kept for binary compatibility with iOS 8.0, it can be removed after the bincompat window.
183 - (void)_overrideLayoutParametersWithMinimumLayoutSize:(CGSize)minimumLayoutSize minimumLayoutSizeForMinimalUI:(CGSize)minimumLayoutSizeForMinimalUI maximumUnobscuredSizeOverride:(CGSize)maximumUnobscuredSizeOverride WK_API_DEPRECATED_WITH_REPLACEMENT("-_overrideLayoutParametersWithMinimumLayoutSize:maximumUnobscuredSizeOverride:", ios(8.0, 9.0));
184
185 - (void)_overrideLayoutParametersWithMinimumLayoutSize:(CGSize)minimumLayoutSize maximumUnobscuredSizeOverride:(CGSize)maximumUnobscuredSizeOverride WK_API_AVAILABLE(ios(9_0));
186
187 - (UIView *)_viewForFindUI;
188
189 - (void)_setOverlaidAccessoryViewsInset:(CGSize)inset;
190
191 - (void)_killWebContentProcess;
192 - (void)_didRelaunchProcess;
193
194 // Puts the view into a state where being taken out of the view hierarchy and resigning first responder
195 // will not count as becoming inactive and unfocused. The returned block must be called to exit the state.
196 - (void (^)(void))_retainActiveFocusedState WK_API_AVAILABLE(ios(9_0));
197
198 - (void)_becomeFirstResponderWithSelectionMovingForward:(BOOL)selectingForward completionHandler:(void (^)(BOOL didBecomeFirstResponder))completionHandler WK_API_AVAILABLE(ios(9_0));
199
200 - (id)_snapshotLayerContentsForBackForwardListItem:(WKBackForwardListItem *)item WK_API_AVAILABLE(ios(9_0));
201 - (NSArray *)_dataDetectionResults;
202
203 - (void)_accessibilityRetrieveSpeakSelectionContent;
204 - (void)_accessibilityDidGetSpeakSelectionContent:(NSString *)content;
205
206 #else
207 @property (readonly) NSColor *_pageExtendedBackgroundColor;
208 @property (nonatomic, setter=_setDrawsBackground:) BOOL _drawsBackground;
209 @property (nonatomic, setter=_setTopContentInset:) CGFloat _topContentInset;
210
211 @property (nonatomic, setter=_setAutomaticallyAdjustsContentInsets:) BOOL _automaticallyAdjustsContentInsets;
212
213 // Default value is 0. A value of 0 means the window's backing scale factor will be used and automatically update when the window moves screens.
214 @property (nonatomic, setter=_setOverrideDeviceScaleFactor:) CGFloat _overrideDeviceScaleFactor WK_API_AVAILABLE(macosx(10.11));
215
216 @property (nonatomic, setter=_setWindowOcclusionDetectionEnabled:) BOOL _windowOcclusionDetectionEnabled;
217
218 // Clients that want to maintain default behavior can return nil. To disable the immediate action entirely, return NSNull. And to
219 // do something custom, return an object that conforms to the NSImmediateActionAnimationController protocol.
220 - (id)_immediateActionAnimationControllerForHitTestResult:(_WKHitTestResult *)hitTestResult withType:(_WKImmediateActionType)type userData:(id<NSSecureCoding>)userData;
221
222 @property (nonatomic, setter=_setMinimumLayoutWidth:) CGFloat _minimumLayoutWidth WK_API_AVAILABLE(macosx(10.12));
223
224 // When using _minimumLayoutWidth, the web content will lay out to the intrinsic height
225 // of the content; use this property to force it to lay out to the height of the view instead.
226 @property (nonatomic, setter=_setShouldExpandContentToViewHeightForAutoLayout:) BOOL _shouldExpandContentToViewHeightForAutoLayout WK_API_AVAILABLE(macosx(10.12));
227
228 - (NSPrintOperation *)_printOperationWithPrintInfo:(NSPrintInfo *)printInfo;
229 - (NSPrintOperation *)_printOperationWithPrintInfo:(NSPrintInfo *)printInfo forFrame:(_WKFrameHandle *)frameHandle WK_API_AVAILABLE(macosx(10.12), ios(10.0));
230
231 // FIXME: This SPI should become a part of the WKUIDelegate. rdar://problem/26561537
232 @property (nonatomic, readwrite, setter=_setWantsMediaPlaybackControlsView:) BOOL _wantsMediaPlaybackControlsView WK_API_AVAILABLE(macosx(WK_MAC_TBA));
233 @property (nonatomic, readonly) id _mediaPlaybackControlsView WK_API_AVAILABLE(macosx(WK_MAC_TBA));
234 - (void)_addMediaPlaybackControlsView:(id)mediaPlaybackControlsView WK_API_AVAILABLE(macosx(WK_MAC_TBA));
235 - (void)_removeMediaPlaybackControlsView WK_API_AVAILABLE(macosx(WK_MAC_TBA));
236
237 - (void)_prepareForMoveToWindow:(NSWindow *)targetWindow completionHandler:(void(^)(void))completionHandler;
238
239 #endif
240
241 - (WKNavigation *)_reloadWithoutContentBlockers WK_API_AVAILABLE(macosx(10.12), ios(10.0));
242 - (WKNavigation *)_reloadExpiredOnly WK_API_AVAILABLE(macosx(10.13), ios(11.0));
243
244 - (void)_killWebContentProcessAndResetState;
245
246 - (void)_getMainResourceDataWithCompletionHandler:(void (^)(NSData *, NSError *))completionHandler;
247 - (void)_getWebArchiveDataWithCompletionHandler:(void (^)(NSData *, NSError *))completionHandler;
248 - (void)_getContentsAsStringWithCompletionHandler:(void (^)(NSString *, NSError *))completionHandler WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
249
250 @property (nonatomic, setter=_setPaginationMode:) _WKPaginationMode _paginationMode;
251 // Whether the column-break-{before,after} properties are respected instead of the
252 // page-break-{before,after} properties.
253 @property (nonatomic, setter=_setPaginationBehavesLikeColumns:) BOOL _paginationBehavesLikeColumns;
254 // Set to 0 to have the page length equal the view length.
255 @property (nonatomic, setter=_setPageLength:) CGFloat _pageLength;
256 @property (nonatomic, setter=_setGapBetweenPages:) CGFloat _gapBetweenPages;
257 @property (nonatomic, setter=_setPaginationLineGridEnabled:) BOOL _paginationLineGridEnabled;
258 @property (readonly) NSUInteger _pageCount;
259
260 @property (nonatomic, readonly) BOOL _supportsTextZoom;
261 @property (nonatomic, setter=_setTextZoomFactor:) double _textZoomFactor;
262 @property (nonatomic, setter=_setPageZoomFactor:) double _pageZoomFactor;
263
264 @property (nonatomic, weak, setter=_setDiagnosticLoggingDelegate:) id <_WKDiagnosticLoggingDelegate> _diagnosticLoggingDelegate WK_API_AVAILABLE(macosx(10.11), ios(9.0));
265 @property (nonatomic, weak, setter=_setFindDelegate:) id <_WKFindDelegate> _findDelegate;
266 - (void)_findString:(NSString *)string options:(_WKFindOptions)options maxCount:(NSUInteger)maxCount;
267 - (void)_countStringMatches:(NSString *)string options:(_WKFindOptions)options maxCount:(NSUInteger)maxCount;
268 - (void)_hideFindUI;
269
270 @property (nonatomic, weak, setter=_setInputDelegate:) id <_WKInputDelegate> _inputDelegate WK_API_AVAILABLE(macosx(10.12), ios(10.0));
271
272 @property (nonatomic, readonly, getter=_isDisplayingStandaloneImageDocument) BOOL _displayingStandaloneImageDocument;
273 @property (nonatomic, readonly, getter=_isDisplayingStandaloneMediaDocument) BOOL _displayingStandaloneMediaDocument;
274
275 @property (nonatomic, setter=_setScrollPerformanceDataCollectionEnabled:) BOOL _scrollPerformanceDataCollectionEnabled WK_API_AVAILABLE(macosx(10.11), ios(9.0));
276 @property (nonatomic, readonly) NSArray *_scrollPerformanceData WK_API_AVAILABLE(macosx(10.11), ios(9.0));
277
278 - (void)_saveBackForwardSnapshotForItem:(WKBackForwardListItem *)item WK_API_AVAILABLE(macosx(10.11), ios(9.0));
279
280 @property (nonatomic, getter=_allowsMediaDocumentInlinePlayback, setter=_setAllowsMediaDocumentInlinePlayback:) BOOL _allowsMediaDocumentInlinePlayback;
281
282 @property (nonatomic, readonly) BOOL _webProcessIsResponsive WK_API_AVAILABLE(macosx(10.12), ios(10.0));
283
284 @property (nonatomic, setter=_setFullscreenDelegate:) id<_WKFullscreenDelegate> _fullscreenDelegate WK_API_AVAILABLE(macosx(10.13));
285 @property (nonatomic, readonly) BOOL _isInFullscreen WK_API_AVAILABLE(macosx(WK_MAC_TBA));
286
287 - (void)_muteMediaCapture;
288 - (void)_setPageMuted:(_WKMediaMutedState)mutedState WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
289
290 @end
291
292 #if !TARGET_OS_IPHONE
293 @interface WKWebView (WKNSTextFinderClient) <NSTextFinderClient>
294 @end
295 #endif
296
297 @interface WKWebView (WKTesting)
298
299 - (NSDictionary *)_contentsOfUserInterfaceItem:(NSString *)userInterfaceItem WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
300 @property (nonatomic, weak, setter=_setTestingDelegate:) id<_WKTestingDelegate> _testingDelegate WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
301
302 #if TARGET_OS_IPHONE
303
304 @property (nonatomic, readonly) CGRect _contentVisibleRect WK_API_AVAILABLE(ios(10.0));
305 - (CGPoint)_convertPointFromContentsToView:(CGPoint)point WK_API_AVAILABLE(ios(10.0));
306 - (CGPoint)_convertPointFromViewToContents:(CGPoint)point WK_API_AVAILABLE(ios(10.0));
307
308 - (void)keyboardAccessoryBarNext WK_API_AVAILABLE(ios(10.0));
309 - (void)keyboardAccessoryBarPrevious WK_API_AVAILABLE(ios(10.0));
310 - (void)dismissFormAccessoryView WK_API_AVAILABLE(ios(WK_IOS_TBA));
311 - (void)selectFormAccessoryPickerRow:(int)rowIndex WK_API_AVAILABLE(ios(WK_IOS_TBA));
312
313 - (void)didStartFormControlInteraction WK_API_AVAILABLE(ios(WK_IOS_TBA));
314 - (void)didEndFormControlInteraction WK_API_AVAILABLE(ios(WK_IOS_TBA));
315
316 - (void)_didShowForcePressPreview WK_API_AVAILABLE(ios(WK_IOS_TBA));
317 - (void)_didDismissForcePressPreview WK_API_AVAILABLE(ios(WK_IOS_TBA));
318 - (void)_doAfterNextStablePresentationUpdate:(dispatch_block_t)updateBlock WK_API_AVAILABLE(ios(WK_IOS_TBA));
319
320 @property (nonatomic, readonly) NSArray<NSValue *> *_uiTextSelectionRects WK_API_AVAILABLE(ios(WK_IOS_TBA));
321 @property (nonatomic, readonly) CGRect _uiTextCaretRect WK_API_AVAILABLE(ios(WK_IOS_TBA));
322 @property (nonatomic, readonly) CGRect _inputViewBounds WK_API_AVAILABLE(ios(WK_IOS_TBA));
323
324 @property (nonatomic, readonly) NSString *_scrollingTreeAsText WK_API_AVAILABLE(ios(WK_IOS_TBA));
325
326 @property (nonatomic, readonly) NSNumber *_stableStateOverride WK_API_AVAILABLE(ios(WK_IOS_TBA));
327
328 - (NSDictionary *)_propertiesOfLayerWithID:(unsigned long long)layerID WK_API_AVAILABLE(ios(WK_IOS_TBA));
329
330 - (void)_simulateDataInteractionEntered:(id)info WK_API_AVAILABLE(ios(WK_IOS_TBA));
331 - (void)_simulateDataInteractionUpdated:(id)info WK_API_AVAILABLE(ios(WK_IOS_TBA));
332 - (void)_simulateDataInteractionPerformOperation:(id)info WK_API_AVAILABLE(ios(WK_IOS_TBA));
333 - (void)_simulateDataInteractionEnded:(id)info WK_API_AVAILABLE(ios(WK_IOS_TBA));
334 - (void)_simulateDataInteractionSessionDidEnd:(id)session WK_API_AVAILABLE(ios(WK_IOS_TBA));
335 - (void)_simulateWillBeginDataInteractionWithSession:(id)session WK_API_AVAILABLE(ios(WK_IOS_TBA));
336 - (NSArray *)_simulatedItemsForSession:(id)session WK_API_AVAILABLE(ios(WK_IOS_TBA));
337 - (void)_simulatePrepareForDataInteractionSession:(id)session completion:(dispatch_block_t)completion WK_API_AVAILABLE(ios(WK_IOS_TBA));
338
339 #endif // TARGET_OS_IPHONE
340
341 #if !TARGET_OS_IPHONE
342 @property (nonatomic, readonly) BOOL _hasActiveVideoForControlsManager WK_API_AVAILABLE(macosx(10.12));
343 - (void)_requestControlledElementID WK_API_AVAILABLE(macosx(WK_MAC_TBA));
344 - (void)_handleControlledElementIDResponse:(NSString *)identifier WK_API_AVAILABLE(macosx(WK_MAC_TBA));
345 - (void)_handleAcceptedCandidate:(NSTextCheckingResult *)candidate WK_API_AVAILABLE(macosx(WK_MAC_TBA));
346 - (void)_didHandleAcceptedCandidate WK_API_AVAILABLE(macosx(WK_MAC_TBA));
347 - (void)_forceRequestCandidates WK_API_AVAILABLE(macosx(WK_MAC_TBA));
348 - (void)_didUpdateCandidateListVisibility:(BOOL)visible WK_API_AVAILABLE(macosx(WK_MAC_TBA));
349 @property (nonatomic, readonly) BOOL _shouldRequestCandidates WK_API_AVAILABLE(macosx(WK_MAC_TBA));
350 - (void)_insertText:(id)string replacementRange:(NSRange)replacementRange WK_API_AVAILABLE(macosx(WK_MAC_TBA));
351
352 - (void)_setHeaderBannerHeight:(int)height WK_API_AVAILABLE(macosx(WK_MAC_TBA));
353 - (void)_setFooterBannerHeight:(int)height WK_API_AVAILABLE(macosx(WK_MAC_TBA));
354 #endif
355
356 - (void)_requestActiveNowPlayingSessionInfo WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
357 - (void)_handleActiveNowPlayingSessionInfoResponse:(BOOL)hasActiveSession title:(NSString *)title duration:(double)duration elapsedTime:(double)elapsedTime WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
358
359 - (void)_setPageScale:(CGFloat)scale withOrigin:(CGPoint)origin WK_API_AVAILABLE(ios(WK_IOS_TBA));
360 - (CGFloat)_pageScale WK_API_AVAILABLE(ios(WK_IOS_TBA));
361
362 - (void)_doAfterNextPresentationUpdate:(void (^)(void))updateBlock WK_API_AVAILABLE(macosx(10.12), ios(10.0));
363 - (void)_doAfterNextPresentationUpdateWithoutWaitingForPainting:(void (^)(void))updateBlock WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
364 - (void)_doAfterNextVisibleContentRectUpdate:(void (^)(void))updateBlock WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
365
366 - (void)_disableBackForwardSnapshotVolatilityForTesting WK_API_AVAILABLE(macosx(WK_MAC_TBA), ios(WK_IOS_TBA));
367
368 @end
369
370 #endif