Assert that callback ID is not 0 or -1 during encoding and decoding
[WebKit-https.git] / Source / WebKit2 / WebProcess / WebPage / WebPage.messages.in
1 # Copyright (C) 2010-2016 Apple Inc. All rights reserved.
2 #
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions
5 # are met:
6 # 1.  Redistributions of source code must retain the above copyright
7 #     notice, this list of conditions and the following disclaimer.
8 # 2.  Redistributions in binary form must reproduce the above copyright
9 #     notice, this list of conditions and the following disclaimer in the
10 #     documentation and/or other materials provided with the distribution.
11 #
12 # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
13 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15 # DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
16 # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
18 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
19 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
20 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
21 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22
23 messages -> WebPage LegacyReceiver {
24     SetInitialFocus(bool forward, bool isKeyboardEventValid, WebKit::WebKeyboardEvent event, WebKit::CallbackID callbackID)
25     SetActivityState(unsigned activityState, bool wantsDidUpdateActivityState, Vector<WebKit::CallbackID> callbackIDs)
26     SetLayerHostingMode(enum WebKit::LayerHostingMode layerHostingMode)
27
28     SetDrawsBackground(bool drawsBackground)
29
30 #if HAVE(COREANIMATION_FENCES)
31     SetTopContentInsetFenced(float contentInset, IPC::Attachment fencePort)
32 #endif
33     SetTopContentInset(float contentInset)
34
35     SetUnderlayColor(WebCore::Color color)
36
37     ViewWillStartLiveResize()
38     ViewWillEndLiveResize()
39
40     KeyEvent(WebKit::WebKeyboardEvent event)
41     MouseEvent(WebKit::WebMouseEvent event)
42 #if PLATFORM(IOS)
43     SetViewportConfigurationMinimumLayoutSize(WebCore::FloatSize size)
44     SetMaximumUnobscuredSize(WebCore::FloatSize size)
45     SetDeviceOrientation(int32_t deviceOrientation)
46     DynamicViewportSizeUpdate(WebCore::FloatSize minimumLayoutSize, WebCore::FloatSize maximumUnobscuredSize, WebCore::FloatRect targetExposedContentRect, WebCore::FloatRect targetUnobscuredRect, WebCore::FloatRect targetUnobscuredRectInScrollViewCoordinates, double scale, int32_t deviceOrientation, uint64_t dynamicViewportSizeUpdateID)
47     SynchronizeDynamicViewportUpdate() -> (double newTargetScale, WebCore::FloatPoint newScrollPosition, uint64_t nextValidLayerTreeTransactionID)
48
49     HandleTap(WebCore::IntPoint point, uint64_t lastLayerTreeTransactionId)
50     PotentialTapAtPosition(uint64_t requestID, WebCore::FloatPoint point)
51     CommitPotentialTap(uint64_t lastLayerTreeTransactionId)
52     CancelPotentialTap()
53     TapHighlightAtPosition(uint64_t requestID, WebCore::FloatPoint point)
54     InspectorNodeSearchMovedToPosition(WebCore::FloatPoint point)
55     InspectorNodeSearchEndedAtPosition(WebCore::FloatPoint point)
56     BlurAssistedNode()
57     SelectWithGesture(WebCore::IntPoint point, uint32_t granularity, uint32_t gestureType, uint32_t gestureState, bool isInteractingWithAssistedNode, WebKit::CallbackID callbackID)
58     UpdateSelectionWithTouches(WebCore::IntPoint point, uint32_t touches, bool baseIsStart, WebKit::CallbackID callbackID)
59     UpdateBlockSelectionWithTouch(WebCore::IntPoint point, uint32_t touch, uint32_t handlePosition)
60     SelectWithTwoTouches(WebCore::IntPoint from, WebCore::IntPoint to, uint32_t gestureType, uint32_t gestureState, WebKit::CallbackID callbackID)
61     ExtendSelection(uint32_t granularity)
62     SelectWordBackward()
63     MoveSelectionByOffset(int32_t offset, WebKit::CallbackID callbackID)
64     SelectTextWithGranularityAtPoint(WebCore::IntPoint point, uint32_t granularity, bool isInteractingWithAssistedNode, WebKit::CallbackID callbackID)
65     SelectPositionAtBoundaryWithDirection(WebCore::IntPoint point, uint32_t granularity, uint32_t direction, bool isInteractingWithAssistedNode, WebKit::CallbackID callbackID)
66     MoveSelectionAtBoundaryWithDirection(uint32_t granularity, uint32_t direction, WebKit::CallbackID callbackID)
67     SelectPositionAtPoint(WebCore::IntPoint point, bool isInteractingWithAssistedNode, WebKit::CallbackID callbackID)
68     BeginSelectionInDirection(uint32_t direction, WebKit::CallbackID callbackID)
69     UpdateSelectionWithExtentPoint(WebCore::IntPoint point, bool isInteractingWithAssistedNode, WebKit::CallbackID callbackID)
70     UpdateSelectionWithExtentPointAndBoundary(WebCore::IntPoint point, uint32_t granularity, bool isInteractingWithAssistedNode, WebKit::CallbackID callbackID)
71     RequestDictationContext(WebKit::CallbackID callbackID)
72     ReplaceDictatedText(String oldText, String newText)
73     ReplaceSelectedText(String oldText, String newText)
74     RequestAutocorrectionData(String textForAutocorrection, WebKit::CallbackID callbackID)
75     ApplyAutocorrection(String correction, String originalText, WebKit::CallbackID callbackID)
76     SyncApplyAutocorrection(String correction, String originalText) -> (bool autocorrectionApplied)
77     RequestAutocorrectionContext(WebKit::CallbackID callbackID)
78     GetAutocorrectionContext() -> (String beforeContext, String markedText, String selectedText, String afterContext, uint64_t location, uint64_t length) 
79     GetPositionInformation(struct WebKit::InteractionInformationRequest request) -> (struct WebKit::InteractionInformationAtPosition information)
80     RequestPositionInformation(struct WebKit::InteractionInformationRequest request)
81     StartInteractionWithElementAtPosition(WebCore::IntPoint point)
82     StopInteraction()
83     PerformActionOnElement(uint32_t action)
84     FocusNextAssistedNode(bool isForward, WebKit::CallbackID callbackID)
85     SetAssistedNodeValue(String value)
86     SetAssistedNodeValueAsNumber(double value)
87     SetAssistedNodeSelectedIndex(uint32_t index, bool allowMultipleSelection)
88     ApplicationWillResignActive()
89     ApplicationDidEnterBackground(bool isSuspendedUnderLock)
90     ApplicationDidFinishSnapshottingAfterEnteringBackground()
91     ApplicationWillEnterForeground(bool isSuspendedUnderLock)
92     ApplicationDidBecomeActive()
93     ContentSizeCategoryDidChange(String contentSizeCategory)
94     ExecuteEditCommandWithCallback(String name, WebKit::CallbackID callbackID)
95     GetSelectionContext(WebKit::CallbackID callbackID)
96     SetAllowsMediaDocumentInlinePlayback(bool allows)
97     HandleTwoFingerTapAtPoint(WebCore::IntPoint point, uint64_t requestID)
98     SetForceAlwaysUserScalable(bool userScalable)
99     GetRectsForGranularityWithSelectionOffset(uint32_t granularity, int32_t offset, WebKit::CallbackID callbackID);
100     GetRectsAtSelectionOffsetWithText(int32_t offset, String text, WebKit::CallbackID callbackID);
101 #endif
102
103     SetControlledByAutomation(bool controlled)
104
105 #if ENABLE(REMOTE_INSPECTOR)
106     SetAllowsRemoteInspection(bool allow)
107     SetRemoteInspectionNameOverride(String name)
108 #endif
109
110 #if ENABLE(IOS_TOUCH_EVENTS)
111     TouchEventSync(WebKit::WebTouchEvent event) -> (bool handled)
112 #endif
113 #if !ENABLE(IOS_TOUCH_EVENTS) && ENABLE(TOUCH_EVENTS)
114     TouchEvent(WebKit::WebTouchEvent event)
115 #endif
116
117 #if ENABLE(INPUT_TYPE_COLOR)
118     DidEndColorPicker()
119     DidChooseColor(WebCore::Color color)
120 #endif
121
122 #if ENABLE(CONTEXT_MENUS)
123     ContextMenuHidden()
124     ContextMenuForKeyEvent()
125 #endif
126
127     ScrollBy(uint32_t scrollDirection, uint32_t scrollGranularity)
128     CenterSelectionInVisibleArea()
129
130     GoBack(uint64_t navigationID, uint64_t backForwardItemID)
131     GoForward(uint64_t navigationID, uint64_t backForwardItemID)
132     GoToBackForwardItem(uint64_t navigationID, uint64_t backForwardItemID)
133     TryRestoreScrollPosition()
134
135     LoadURLInFrame(String url, uint64_t frameID)
136     LoadRequest(struct WebKit::LoadParameters loadParameters)
137     LoadData(struct WebKit::LoadParameters loadParameters)
138     LoadString(struct WebKit::LoadParameters loadParameters)
139     LoadAlternateHTMLString(struct WebKit::LoadParameters loadParameters)
140
141     NavigateToPDFLinkWithSimulatedClick(String url, WebCore::IntPoint documentPoint, WebCore::IntPoint screenPoint)
142
143     Reload(uint64_t navigationID, uint32_t reloadOptions, WebKit::SandboxExtension::Handle sandboxExtensionHandle)
144     StopLoading()
145
146     StopLoadingFrame(uint64_t frameID)
147     
148     RestoreSession(Vector<WebKit::BackForwardListItemState> itemStates)
149
150     DidRemoveBackForwardItem(uint64_t backForwardItemID)
151
152     UpdateWebsitePolicies(struct WebKit::WebsitePolicies websitePolicies)
153     DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, uint32_t policyAction, uint64_t navigationID, WebKit::DownloadID downloadID)
154
155     ClearSelection()
156     RestoreSelectionInFocusedEditableElement()
157
158     # Callbacks.
159     GetContentsAsString(WebKit::CallbackID callbackID)
160 #if ENABLE(MHTML)
161     GetContentsAsMHTMLData(WebKit::CallbackID callbackID)
162 #endif
163     GetMainResourceDataOfFrame(uint64_t frameID, WebKit::CallbackID callbackID)
164     GetResourceDataFromFrame(uint64_t frameID, String resourceURL, WebKit::CallbackID callbackID)
165     GetRenderTreeExternalRepresentation(WebKit::CallbackID callbackID)
166     GetSelectionOrContentsAsString(WebKit::CallbackID callbackID)
167     GetSelectionAsWebArchiveData(WebKit::CallbackID callbackID)
168     GetSourceForFrame(uint64_t frameID, WebKit::CallbackID callbackID)
169     GetWebArchiveOfFrame(uint64_t frameID, WebKit::CallbackID callbackID)
170     RunJavaScriptInMainFrame(String script, WebKit::CallbackID callbackID)
171     ForceRepaint(WebKit::CallbackID callbackID)
172
173 #if PLATFORM(COCOA)
174     # Dictionary support.
175     PerformDictionaryLookupAtLocation(WebCore::FloatPoint point)
176 #endif
177
178 #if PLATFORM(MAC)
179     PerformDictionaryLookupOfCurrentSelection()
180     SetFont(String fontFamily, double fontSize, uint64_t fontTraits)
181 #endif
182
183     PreferencesDidChange(struct WebKit::WebPreferencesStore store)
184
185     SetUserAgent(String userAgent)
186     SetCustomTextEncodingName(String encodingName)
187
188     SuspendActiveDOMObjectsAndAnimations()
189     ResumeActiveDOMObjectsAndAnimations()
190
191     Close()
192     TryClose()
193
194     SetEditable(bool editable)
195     ValidateCommand(String name, WebKit::CallbackID callbackID)
196     ExecuteEditCommand(String name, String argument)
197
198     DidRemoveEditCommand(uint64_t commandID)
199     ReapplyEditCommand(uint64_t commandID)
200     UnapplyEditCommand(uint64_t commandID)
201
202     SetPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor)
203     SetPageZoomFactor(double zoomFactor)
204     SetTextZoomFactor(double zoomFactor)
205     WindowScreenDidChange(uint32_t displayID)
206
207     AccessibilitySettingsDidChange()
208
209     ScalePage(double scale, WebCore::IntPoint origin)
210     ScalePageInViewCoordinates(double scale, WebCore::IntPoint centerInViewCoordinates)
211     ScaleView(double scale)
212
213     SetUseFixedLayout(bool fixed)
214     SetFixedLayoutSize(WebCore::IntSize size)
215     ListenForLayoutMilestones(uint32_t milestones)
216     SetSuppressScrollbarAnimations(bool suppressAnimations)
217
218     SetEnableVerticalRubberBanding(bool enableVerticalRubberBanding)
219     SetEnableHorizontalRubberBanding(bool enableHorizontalRubberBanding)
220
221     SetBackgroundExtendsBeyondPage(bool backgroundExtendsBeyondPage)
222
223     SetPaginationMode(uint32_t mode)
224     SetPaginationBehavesLikeColumns(bool behavesLikeColumns)
225     SetPageLength(double pageLength)
226     SetGapBetweenPages(double gap)
227     SetPaginationLineGridEnabled(bool lineGridEnabled)
228
229     PostInjectedBundleMessage(String messageName, WebKit::UserData messageBody)
230
231     # Find.
232     FindString(String string, uint32_t findOptions, unsigned maxMatchCount)
233     FindStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
234     GetImageForFindMatch(uint32_t matchIndex)
235     SelectFindMatch(uint32_t matchIndex)
236     HideFindUI()
237     CountStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
238     
239     AddMIMETypeWithCustomContentProvider(String mimeType)
240
241     # Drag and drop.
242 #if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
243     PerformDragControllerAction(uint64_t action, WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t draggingSourceOperationMask, struct WebKit::WebSelectionData selection, uint32_t flags)
244 #endif
245 #if !PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
246     PerformDragControllerAction(uint64_t action, WebCore::DragData dragData, WebKit::SandboxExtension::Handle sandboxExtensionHandle, WebKit::SandboxExtension::HandleArray sandboxExtensionsForUpload)
247 #endif
248 #if ENABLE(DRAG_SUPPORT)
249     DidStartDrag()
250     DragEnded(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t operation)
251     DragCancelled()
252 #endif
253
254 #if ENABLE(DATA_INTERACTION)
255     RequestStartDataInteraction(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition)
256 #endif
257
258     # Popup menu.
259     DidChangeSelectedIndexForActivePopupMenu(int32_t newIndex)
260     SetTextForActivePopupMenu(int32_t index)
261 #if PLATFORM(GTK)
262     FailedToShowPopupMenu()
263 #endif
264
265 #if ENABLE(CONTEXT_MENUS)
266     # Context menu.
267     DidSelectItemFromActiveContextMenu(WebKit::WebContextMenuItemData menuItem)
268 #endif
269
270     # Open panel.
271 #if PLATFORM(IOS)
272     DidChooseFilesForOpenPanelWithDisplayStringAndIcon(Vector<String> fileURLs, String displayString, IPC::DataReference iconData)
273 #endif
274     DidChooseFilesForOpenPanel(Vector<String> fileURLs)
275     DidCancelForOpenPanel()
276 #if ENABLE(SANDBOX_EXTENSIONS)
277     ExtendSandboxForFileFromOpenPanel(WebKit::SandboxExtension::Handle sandboxExtensionHandle)
278 #endif
279
280     # Spelling and grammar.
281     AdvanceToNextMisspelling(bool startBeforeSelection)
282     ChangeSpellingToWord(String word)
283     DidFinishCheckingText(uint64_t requestID, Vector<WebCore::TextCheckingResult> result)
284     DidCancelCheckingText(uint64_t requestID)
285 #if USE(APPKIT)
286     UppercaseWord()
287     LowercaseWord()
288     CapitalizeWord()
289 #endif
290 #if PLATFORM(COCOA)
291     SetSmartInsertDeleteEnabled(bool isSmartInsertDeleteEnabled)
292 #endif
293
294 #if ENABLE(GEOLOCATION)
295     # Geolocation
296     DidReceiveGeolocationPermissionDecision(uint64_t geolocationID, bool allowed)
297 #endif
298
299 #if ENABLE(MEDIA_STREAM)
300     # MediaSteam
301     UserMediaAccessWasGranted(uint64_t userMediaID, String audioDeviceUID, String videoDeviceUID, String mediaDeviceIdentifierHashSalt)
302     UserMediaAccessWasDenied(uint64_t userMediaID, uint64_t reason, String invalidConstraint)
303     DidCompleteMediaDeviceEnumeration(uint64_t userMediaID, Vector<WebCore::CaptureDevice> devices, String mediaDeviceIdentifierHashSalt, bool hasPersistentAccess)
304 #if ENABLE(SANDBOX_EXTENSIONS)
305     GrantUserMediaDeviceSandboxExtensions(WebKit::MediaDeviceSandboxExtensions sandboxExtensions)
306     RevokeUserMediaDeviceSandboxExtensions(Vector<String> sandboxExtensionIDs)
307 #endif
308 #endif
309
310 #if ENABLE(WEB_RTC)
311     DisableICECandidateFiltering()
312     EnableICECandidateFiltering()
313 #endif
314 #if ENABLE(WEB_RTC) && USE(LIBWEBRTC)
315     EnableEnumeratingAllNetworkInterfaces()
316     DisableEnumeratingAllNetworkInterfaces()
317 #endif
318
319     # Notification
320     DidReceiveNotificationPermissionDecision(uint64_t notificationID, bool allowed)
321
322     # Printing.
323     BeginPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo)
324     EndPrinting()
325     ComputePagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID)
326 #if PLATFORM(COCOA)
327     DrawRectToImage(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebCore::IntRect rect, WebCore::IntSize imageSize, WebKit::CallbackID callbackID)
328     DrawPagesToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint32_t first, uint32_t count, WebKit::CallbackID callbackID)
329 #if PLATFORM(IOS)
330     ComputePagesForPrintingAndDrawToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID) -> (uint32_t pageCount) Delayed
331 #endif
332 #endif
333 #if PLATFORM(GTK)
334     DrawPagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID)
335 #endif
336
337     # Media
338     SetMediaVolume(float volume)
339     SetMuted(WebCore::MediaProducer::MutedStateFlags muted)
340     SetMayStartMediaWhenInWindow(bool mayStartMedia)
341     StopMediaCapture()
342
343 #if ENABLE(MEDIA_SESSION)
344     HandleMediaEvent(uint32_t eventType)
345     SetVolumeOfMediaElement(double volume, uint64_t elementID)
346 #endif
347
348     // FIXME: This a dummy message, to avoid breaking the build for platforms that don't require
349     // any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed.
350     Dummy() -> (bool dummyReturn)
351
352     SetCanRunBeforeUnloadConfirmPanel(bool canRunBeforeUnloadConfirmPanel)
353     SetCanRunModal(bool canRunModal)
354
355 #if PLATFORM(GTK)
356     SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd)
357     ConfirmComposition(String text, int64_t selectionStart, int64_t selectionLength)
358     CancelComposition()
359
360     CollapseSelectionInFrame(uint64_t frameID)
361 #endif
362
363 #if PLATFORM (GTK) && HAVE(GTK_GESTURES)
364     GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center)
365 #endif
366
367 #if PLATFORM(COCOA)
368     # Complex text input support for plug-ins.
369     SendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, String textInput)
370
371     WindowAndViewFramesChanged(WebCore::FloatRect windowFrameInScreenCoordinates, WebCore::FloatRect windowFrameInUnflippedScreenCoordinates, WebCore::FloatRect viewFrameInWindowCoordinates, WebCore::FloatPoint accessibilityViewCoordinates)
372     SetMainFrameIsScrollable(bool isScrollable)
373     RegisterUIProcessAccessibilityTokens(IPC::DataReference elemenToken, IPC::DataReference windowToken)
374     GetStringSelectionForPasteboard() -> (String stringValue)
375     GetDataSelectionForPasteboard(String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size)
376     ReadSelectionFromPasteboard(String pasteboardName) -> (bool result)
377
378 #if ENABLE(SERVICE_CONTROLS)
379     ReplaceSelectionWithPasteboardData(Vector<String> types, IPC::DataReference data)
380 #endif
381
382     ShouldDelayWindowOrderingEvent(WebKit::WebMouseEvent event) -> (bool result)
383     AcceptsFirstMouse(int eventNumber, WebKit::WebMouseEvent event) -> (bool result)
384
385     InsertTextAsync(String text, struct WebKit::EditingRange replacementRange, bool registerUndoGroup, uint32_t editingRangeIsRelativeTo, bool suppressSelectionUpdate)
386     GetMarkedRangeAsync(WebKit::CallbackID callbackID)
387     GetSelectedRangeAsync(WebKit::CallbackID callbackID)
388     CharacterIndexForPointAsync(WebCore::IntPoint point, WebKit::CallbackID callbackID);
389     FirstRectForCharacterRangeAsync(struct WebKit::EditingRange range, WebKit::CallbackID callbackID);
390     SetCompositionAsync(String text, Vector<WebCore::CompositionUnderline> underlines, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange)
391     ConfirmCompositionAsync()
392 #endif
393 #if PLATFORM(MAC)
394     InsertDictatedTextAsync(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives, bool registerUndoGroup)
395     AttributedSubstringForCharacterRangeAsync(struct WebKit::EditingRange range, WebKit::CallbackID callbackID);
396     FontAtSelection(WebKit::CallbackID callbackID);
397 #endif
398
399     SetMinimumLayoutSize(WebCore::IntSize minimumLayoutSize)
400     SetAutoSizingShouldExpandToViewHeight(bool shouldExpand)
401
402     SetViewportSizeForCSSViewportUnits(std::optional<WebCore::IntSize> viewportSize)
403
404 #if PLATFORM(COCOA)
405     HandleAlternativeTextUIResult(String result)
406 #endif
407
408 #if PLATFORM(IOS)
409     WillStartUserTriggeredZooming();
410 #endif
411
412     SetScrollPinningBehavior(uint32_t pinning)
413     SetScrollbarOverlayStyle(std::optional<uint32_t> scrollbarStyle)
414
415     GetBytecodeProfile(WebKit::CallbackID callbackID)
416
417     GetSamplingProfilerOutput(WebKit::CallbackID callbackID)
418     
419     TakeSnapshot(WebCore::IntRect snapshotRect, WebCore::IntSize bitmapSize, uint32_t options, WebKit::CallbackID callbackID)
420 #if PLATFORM(MAC)
421     PerformImmediateActionHitTestAtLocation(WebCore::FloatPoint location)
422     ImmediateActionDidUpdate()
423     ImmediateActionDidCancel()
424     ImmediateActionDidComplete()
425
426     DataDetectorsDidPresentUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
427     DataDetectorsDidChangeUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
428     DataDetectorsDidHideUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
429
430     HandleAcceptedCandidate(struct WebCore::TextCheckingResult acceptedCandidate)
431
432     SetHeaderBannerHeightForTesting(int height);
433     SetFooterBannerHeightForTesting(int height);
434 #endif
435
436 #if PLATFORM(COCOA)
437     RequestActiveNowPlayingSessionInfo()
438 #endif
439
440     SetShouldDispatchFakeMouseMoveEvents(bool shouldDispatchFakeMouseMoveEvents)
441
442 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
443     PlaybackTargetSelected(uint64_t contextId, WebCore::MediaPlaybackTargetContext target)
444     PlaybackTargetAvailabilityDidChange(uint64_t contextId, bool available)
445     SetShouldPlayToPlaybackTarget(uint64_t contextId, bool shouldPlay)
446 #endif
447
448 #if ENABLE(POINTER_LOCK)
449     DidAcquirePointerLock()
450     DidNotAcquirePointerLock()
451     DidLosePointerLock()
452 #endif
453
454     ClearWheelEventTestTrigger()
455     SetShouldScaleViewToFitDocument(bool shouldScaleViewToFitDocument)
456
457 #if ENABLE(VIDEO) && USE(GSTREAMER)
458     DidEndRequestInstallMissingMediaPlugins(uint32_t result)
459 #endif
460
461     SetResourceCachingDisabled(bool disabled)
462
463     SetUserInterfaceLayoutDirection(uint32_t direction)
464
465     DidGetLoadDecisionForIcon(bool decision, WebKit::CallbackID loadIdentifier, WebKit::OptionalCallbackID newCallbackID)
466     SetUseIconLoadingClient(bool useIconLoadingClient)
467
468 #if ENABLE(GAMEPAD)
469     GamepadActivity(Vector<WebKit::GamepadData> gamepadDatas, bool shouldMakeGamepadsVisible)
470 #endif
471
472 #if USE(QUICK_LOOK)
473     DidReceivePasswordForQuickLookDocument(String password)
474 #endif
475
476     RegisterURLSchemeHandler(uint64_t identifier, String scheme)
477
478     URLSchemeTaskDidPerformRedirection(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceResponse response, WebCore::ResourceRequest request)
479     URLSchemeTaskDidReceiveResponse(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceResponse response)
480     URLSchemeTaskDidReceiveData(uint64_t handlerIdentifier, uint64_t taskIdentifier, IPC::DataReference data)
481     URLSchemeTaskDidComplete(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceError error)
482 }