a3c716f954170d412dc4852d0b0c6cdbceb1a63d
[WebKit-https.git] / Source / WebKit / 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 PLATFORM(COCOA)
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     ExecuteEditCommandWithCallback(String name, String argument, WebKit::CallbackID callbackID)
41     KeyEvent(WebKit::WebKeyboardEvent event)
42     MouseEvent(WebKit::WebMouseEvent event)
43 #if PLATFORM(IOS)
44     SetViewportConfigurationMinimumLayoutSize(WebCore::FloatSize size, WebCore::FloatSize viewSize)
45     SetMaximumUnobscuredSize(WebCore::FloatSize size)
46     SetDeviceOrientation(int32_t deviceOrientation)
47     DynamicViewportSizeUpdate(WebCore::FloatSize minimumLayoutSize, WebCore::FloatSize viewSize, WebCore::FloatSize maximumUnobscuredSize, WebCore::FloatRect targetExposedContentRect, WebCore::FloatRect targetUnobscuredRect, WebCore::FloatRect targetUnobscuredRectInScrollViewCoordinates, WebCore::RectEdges<float> targetUnobscuredSafeAreaInsets, double scale, int32_t deviceOrientation, uint64_t dynamicViewportSizeUpdateID)
48     SynchronizeDynamicViewportUpdate() -> (double newTargetScale, WebCore::FloatPoint newScrollPosition, uint64_t nextValidLayerTreeTransactionID)
49
50     HandleTap(WebCore::IntPoint point, uint64_t lastLayerTreeTransactionId)
51     PotentialTapAtPosition(uint64_t requestID, WebCore::FloatPoint point)
52     CommitPotentialTap(uint64_t lastLayerTreeTransactionId)
53     CancelPotentialTap()
54     TapHighlightAtPosition(uint64_t requestID, WebCore::FloatPoint point)
55     InspectorNodeSearchMovedToPosition(WebCore::FloatPoint point)
56     InspectorNodeSearchEndedAtPosition(WebCore::FloatPoint point)
57     BlurAssistedNode()
58     SelectWithGesture(WebCore::IntPoint point, uint32_t granularity, uint32_t gestureType, uint32_t gestureState, bool isInteractingWithAssistedNode, WebKit::CallbackID callbackID)
59     UpdateSelectionWithTouches(WebCore::IntPoint point, uint32_t touches, bool baseIsStart, WebKit::CallbackID callbackID)
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     AutofillLoginCredentials(String username, String password)
87     SetAssistedNodeValueAsNumber(double value)
88     SetAssistedNodeSelectedIndex(uint32_t index, bool allowMultipleSelection)
89     ApplicationWillResignActive()
90     ApplicationDidEnterBackground(bool isSuspendedUnderLock)
91     ApplicationDidFinishSnapshottingAfterEnteringBackground()
92     ApplicationWillEnterForeground(bool isSuspendedUnderLock)
93     ApplicationDidBecomeActive()
94     ContentSizeCategoryDidChange(String contentSizeCategory)
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     StoreSelectionForAccessibility(bool shouldStore)
102     StartAutoscrollAtPosition(WebCore::FloatPoint positionInWindow)
103     CancelAutoscroll()
104     RequestAssistedNodeInformation(WebKit::CallbackID callbackID)
105 #endif
106
107     SetControlledByAutomation(bool controlled)
108
109 #if ENABLE(REMOTE_INSPECTOR)
110     SetAllowsRemoteInspection(bool allow)
111     SetRemoteInspectionNameOverride(String name)
112 #endif
113
114 #if ENABLE(IOS_TOUCH_EVENTS)
115     TouchEventSync(WebKit::WebTouchEvent event) -> (bool handled)
116 #endif
117 #if !ENABLE(IOS_TOUCH_EVENTS) && ENABLE(TOUCH_EVENTS)
118     TouchEvent(WebKit::WebTouchEvent event)
119 #endif
120
121 #if ENABLE(INPUT_TYPE_COLOR)
122     DidEndColorPicker()
123     DidChooseColor(WebCore::Color color)
124 #endif
125
126 #if ENABLE(CONTEXT_MENUS)
127     ContextMenuHidden()
128     ContextMenuForKeyEvent()
129 #endif
130
131     ScrollBy(uint32_t scrollDirection, uint32_t scrollGranularity)
132     CenterSelectionInVisibleArea()
133
134     GoToBackForwardItem(uint64_t navigationID, uint64_t backForwardItemID, enum WebCore::FrameLoadType backForwardType, enum WebCore::NavigationPolicyCheck navigationPolicyCheck)
135     TryRestoreScrollPosition()
136
137     LoadURLInFrame(WebCore::URL url, uint64_t frameID)
138     LoadRequest(struct WebKit::LoadParameters loadParameters)
139     LoadData(struct WebKit::LoadParameters loadParameters)
140     LoadString(struct WebKit::LoadParameters loadParameters)
141     LoadAlternateHTMLString(struct WebKit::LoadParameters loadParameters)
142
143     NavigateToPDFLinkWithSimulatedClick(String url, WebCore::IntPoint documentPoint, WebCore::IntPoint screenPoint)
144
145     Reload(uint64_t navigationID, uint32_t reloadOptions, WebKit::SandboxExtension::Handle sandboxExtensionHandle)
146     StopLoading()
147
148     StopLoadingFrame(uint64_t frameID)
149     
150     RestoreSession(Vector<WebKit::BackForwardListItemState> itemStates)
151
152     DidRemoveBackForwardItem(uint64_t backForwardItemID)
153
154     UpdateWebsitePolicies(struct WebKit::WebsitePoliciesData websitePolicies)
155     DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, enum WebCore::PolicyAction policyAction, uint64_t navigationID, WebKit::DownloadID downloadID, std::optional<WebKit::WebsitePoliciesData> websitePolicies)
156     ContinueWillSubmitForm(uint64_t frameID, uint64_t listenerID)
157
158     ClearSelection()
159     RestoreSelectionInFocusedEditableElement()
160
161     # Callbacks.
162     GetContentsAsString(WebKit::CallbackID callbackID)
163 #if ENABLE(MHTML)
164     GetContentsAsMHTMLData(WebKit::CallbackID callbackID)
165 #endif
166     GetMainResourceDataOfFrame(uint64_t frameID, WebKit::CallbackID callbackID)
167     GetResourceDataFromFrame(uint64_t frameID, String resourceURL, WebKit::CallbackID callbackID)
168     GetRenderTreeExternalRepresentation(WebKit::CallbackID callbackID)
169     GetSelectionOrContentsAsString(WebKit::CallbackID callbackID)
170     GetSelectionAsWebArchiveData(WebKit::CallbackID callbackID)
171     GetSourceForFrame(uint64_t frameID, WebKit::CallbackID callbackID)
172     GetWebArchiveOfFrame(uint64_t frameID, WebKit::CallbackID callbackID)
173     RunJavaScriptInMainFrame(String script, bool forceUserGesture, WebKit::CallbackID callbackID)
174     ForceRepaint(WebKit::CallbackID callbackID)
175
176 #if PLATFORM(COCOA)
177     # Dictionary support.
178     PerformDictionaryLookupAtLocation(WebCore::FloatPoint point)
179 #endif
180
181 #if PLATFORM(MAC)
182     PerformDictionaryLookupOfCurrentSelection()
183     SetFont(String fontFamily, double fontSize, uint64_t fontTraits)
184 #endif
185
186     PreferencesDidChange(struct WebKit::WebPreferencesStore store)
187
188     SetUserAgent(String userAgent)
189     SetCustomTextEncodingName(String encodingName)
190
191     SuspendActiveDOMObjectsAndAnimations()
192     ResumeActiveDOMObjectsAndAnimations()
193
194     Close()
195     TryClose()
196
197     SetEditable(bool editable)
198     ValidateCommand(String name, WebKit::CallbackID callbackID)
199     ExecuteEditCommand(String name, String argument)
200
201     DidRemoveEditCommand(uint64_t commandID)
202     ReapplyEditCommand(uint64_t commandID)
203     UnapplyEditCommand(uint64_t commandID)
204
205     SetPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor)
206     SetPageZoomFactor(double zoomFactor)
207     SetTextZoomFactor(double zoomFactor)
208     WindowScreenDidChange(uint32_t displayID)
209
210     AccessibilitySettingsDidChange()
211 #if ENABLE(ACCESSIBILITY_EVENTS)
212     UpdateAccessibilityEventsEnabled(bool enabled)
213 #endif
214
215     ScalePage(double scale, WebCore::IntPoint origin)
216     ScalePageInViewCoordinates(double scale, WebCore::IntPoint centerInViewCoordinates)
217     ScaleView(double scale)
218
219     SetUseFixedLayout(bool fixed)
220     SetFixedLayoutSize(WebCore::IntSize size)
221     ListenForLayoutMilestones(uint32_t milestones)
222     SetSuppressScrollbarAnimations(bool suppressAnimations)
223
224     SetEnableVerticalRubberBanding(bool enableVerticalRubberBanding)
225     SetEnableHorizontalRubberBanding(bool enableHorizontalRubberBanding)
226
227     SetBackgroundExtendsBeyondPage(bool backgroundExtendsBeyondPage)
228
229     SetPaginationMode(uint32_t mode)
230     SetPaginationBehavesLikeColumns(bool behavesLikeColumns)
231     SetPageLength(double pageLength)
232     SetGapBetweenPages(double gap)
233     SetPaginationLineGridEnabled(bool lineGridEnabled)
234
235     PostInjectedBundleMessage(String messageName, WebKit::UserData messageBody)
236
237     # Find.
238     FindString(String string, uint32_t findOptions, unsigned maxMatchCount)
239     FindStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
240     GetImageForFindMatch(uint32_t matchIndex)
241     SelectFindMatch(uint32_t matchIndex)
242     HideFindUI()
243     CountStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
244     
245     AddMIMETypeWithCustomContentProvider(String mimeType)
246
247     # Drag and drop.
248 #if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
249     PerformDragControllerAction(enum WebKit::DragControllerAction action, WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t draggingSourceOperationMask, struct WebKit::WebSelectionData selection, uint32_t flags)
250 #endif
251 #if !PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
252     PerformDragControllerAction(enum WebKit::DragControllerAction action, WebCore::DragData dragData, WebKit::SandboxExtension::Handle sandboxExtensionHandle, WebKit::SandboxExtension::HandleArray sandboxExtensionsForUpload)
253 #endif
254 #if ENABLE(DRAG_SUPPORT)
255     DidStartDrag()
256     DragEnded(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t operation)
257     DragCancelled()
258 #endif
259
260 #if ENABLE(DATA_INTERACTION)
261     RequestStartDataInteraction(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition)
262     RequestAdditionalItemsForDragSession(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition)
263 #endif
264
265     # Popup menu.
266     DidChangeSelectedIndexForActivePopupMenu(int32_t newIndex)
267     SetTextForActivePopupMenu(int32_t index)
268 #if PLATFORM(GTK)
269     FailedToShowPopupMenu()
270 #endif
271
272 #if ENABLE(CONTEXT_MENUS)
273     # Context menu.
274     DidSelectItemFromActiveContextMenu(WebKit::WebContextMenuItemData menuItem)
275 #endif
276
277     # Open panel.
278 #if PLATFORM(IOS)
279     DidChooseFilesForOpenPanelWithDisplayStringAndIcon(Vector<String> fileURLs, String displayString, IPC::DataReference iconData)
280 #endif
281     DidChooseFilesForOpenPanel(Vector<String> fileURLs)
282     DidCancelForOpenPanel()
283 #if ENABLE(SANDBOX_EXTENSIONS)
284     ExtendSandboxForFilesFromOpenPanel(WebKit::SandboxExtension::HandleArray sandboxExtensions)
285 #endif
286
287     # Spelling and grammar.
288     AdvanceToNextMisspelling(bool startBeforeSelection)
289     ChangeSpellingToWord(String word)
290     DidFinishCheckingText(uint64_t requestID, Vector<WebCore::TextCheckingResult> result)
291     DidCancelCheckingText(uint64_t requestID)
292 #if USE(APPKIT)
293     UppercaseWord()
294     LowercaseWord()
295     CapitalizeWord()
296 #endif
297 #if PLATFORM(COCOA)
298     SetSmartInsertDeleteEnabled(bool isSmartInsertDeleteEnabled)
299 #endif
300
301 #if ENABLE(GEOLOCATION)
302     # Geolocation
303     DidReceiveGeolocationPermissionDecision(uint64_t geolocationID, bool allowed)
304 #endif
305
306 #if ENABLE(MEDIA_STREAM)
307     # MediaSteam
308     UserMediaAccessWasGranted(uint64_t userMediaID, WebCore::CaptureDevice audioDevice, WebCore::CaptureDevice videoDevice, String mediaDeviceIdentifierHashSalt)
309     UserMediaAccessWasDenied(uint64_t userMediaID, uint64_t reason, String invalidConstraint)
310     DidCompleteMediaDeviceEnumeration(uint64_t userMediaID, Vector<WebCore::CaptureDevice> devices, String mediaDeviceIdentifierHashSalt, bool hasPersistentAccess)
311 #if ENABLE(SANDBOX_EXTENSIONS)
312     GrantUserMediaDeviceSandboxExtensions(WebKit::MediaDeviceSandboxExtensions sandboxExtensions)
313     RevokeUserMediaDeviceSandboxExtensions(Vector<String> sandboxExtensionIDs)
314 #endif
315 #endif
316
317 #if ENABLE(WEB_RTC)
318     DisableICECandidateFiltering()
319     EnableICECandidateFiltering()
320 #endif
321 #if ENABLE(WEB_RTC) && USE(LIBWEBRTC)
322     EnableEnumeratingAllNetworkInterfaces()
323     DisableEnumeratingAllNetworkInterfaces()
324 #endif
325
326     # Notification
327     DidReceiveNotificationPermissionDecision(uint64_t notificationID, bool allowed)
328
329     # Printing.
330     BeginPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo)
331     EndPrinting()
332     ComputePagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID)
333 #if PLATFORM(COCOA)
334     DrawRectToImage(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebCore::IntRect rect, WebCore::IntSize imageSize, WebKit::CallbackID callbackID)
335     DrawPagesToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint32_t first, uint32_t count, WebKit::CallbackID callbackID)
336 #if PLATFORM(IOS)
337     ComputePagesForPrintingAndDrawToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID) -> (uint32_t pageCount) Delayed
338 #endif
339 #endif
340 #if PLATFORM(GTK)
341     DrawPagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID)
342 #endif
343
344     # Media
345     SetMediaVolume(float volume)
346     SetMuted(WebCore::MediaProducer::MutedStateFlags muted)
347     SetMayStartMediaWhenInWindow(bool mayStartMedia)
348     StopMediaCapture()
349
350 #if ENABLE(MEDIA_SESSION)
351     HandleMediaEvent(uint32_t eventType)
352     SetVolumeOfMediaElement(double volume, uint64_t elementID)
353 #endif
354
355     // FIXME: This a dummy message, to avoid breaking the build for platforms that don't require
356     // any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed.
357     Dummy() -> (bool dummyReturn)
358
359     SetCanRunBeforeUnloadConfirmPanel(bool canRunBeforeUnloadConfirmPanel)
360     SetCanRunModal(bool canRunModal)
361
362 #if PLATFORM(GTK)
363     SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd)
364     ConfirmComposition(String text, int64_t selectionStart, int64_t selectionLength)
365     CancelComposition()
366
367     CollapseSelectionInFrame(uint64_t frameID)
368 #endif
369
370 #if PLATFORM (GTK) && HAVE(GTK_GESTURES)
371     GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center)
372 #endif
373
374 #if PLATFORM(COCOA)
375     # Complex text input support for plug-ins.
376     SendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, String textInput)
377
378     WindowAndViewFramesChanged(WebCore::FloatRect windowFrameInScreenCoordinates, WebCore::FloatRect windowFrameInUnflippedScreenCoordinates, WebCore::FloatRect viewFrameInWindowCoordinates, WebCore::FloatPoint accessibilityViewCoordinates)
379     SetMainFrameIsScrollable(bool isScrollable)
380     RegisterUIProcessAccessibilityTokens(IPC::DataReference elemenToken, IPC::DataReference windowToken)
381     GetStringSelectionForPasteboard() -> (String stringValue)
382     GetDataSelectionForPasteboard(String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size)
383     ReadSelectionFromPasteboard(String pasteboardName) -> (bool result)
384
385 #if ENABLE(SERVICE_CONTROLS)
386     ReplaceSelectionWithPasteboardData(Vector<String> types, IPC::DataReference data)
387 #endif
388
389     ShouldDelayWindowOrderingEvent(WebKit::WebMouseEvent event) -> (bool result)
390     AcceptsFirstMouse(int eventNumber, WebKit::WebMouseEvent event) -> (bool result)
391
392     SetTextAsync(String text)
393     InsertTextAsync(String text, struct WebKit::EditingRange replacementRange, bool registerUndoGroup, uint32_t editingRangeIsRelativeTo, bool suppressSelectionUpdate)
394     GetMarkedRangeAsync(WebKit::CallbackID callbackID)
395     GetSelectedRangeAsync(WebKit::CallbackID callbackID)
396     CharacterIndexForPointAsync(WebCore::IntPoint point, WebKit::CallbackID callbackID);
397     FirstRectForCharacterRangeAsync(struct WebKit::EditingRange range, WebKit::CallbackID callbackID);
398     SetCompositionAsync(String text, Vector<WebCore::CompositionUnderline> underlines, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange)
399     ConfirmCompositionAsync()
400 #endif
401 #if PLATFORM(MAC)
402     InsertDictatedTextAsync(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives, bool registerUndoGroup)
403     AttributedSubstringForCharacterRangeAsync(struct WebKit::EditingRange range, WebKit::CallbackID callbackID);
404     FontAtSelection(WebKit::CallbackID callbackID);
405 #endif
406
407     SetAlwaysShowsHorizontalScroller(bool alwaysShowsHorizontalScroller)
408     SetAlwaysShowsVerticalScroller(bool alwaysShowsVerticalScroller)
409
410     SetMinimumLayoutSize(WebCore::IntSize minimumLayoutSize)
411     SetAutoSizingShouldExpandToViewHeight(bool shouldExpand)
412
413     SetViewportSizeForCSSViewportUnits(std::optional<WebCore::IntSize> viewportSize)
414
415 #if PLATFORM(COCOA)
416     HandleAlternativeTextUIResult(String result)
417 #endif
418
419 #if PLATFORM(IOS)
420     WillStartUserTriggeredZooming();
421 #endif
422
423     SetScrollPinningBehavior(uint32_t pinning)
424     SetScrollbarOverlayStyle(std::optional<uint32_t> scrollbarStyle)
425
426     GetBytecodeProfile(WebKit::CallbackID callbackID)
427
428     GetSamplingProfilerOutput(WebKit::CallbackID callbackID)
429     
430     TakeSnapshot(WebCore::IntRect snapshotRect, WebCore::IntSize bitmapSize, uint32_t options, WebKit::CallbackID callbackID)
431 #if PLATFORM(MAC)
432     PerformImmediateActionHitTestAtLocation(WebCore::FloatPoint location)
433     ImmediateActionDidUpdate()
434     ImmediateActionDidCancel()
435     ImmediateActionDidComplete()
436
437     DataDetectorsDidPresentUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
438     DataDetectorsDidChangeUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
439     DataDetectorsDidHideUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
440
441     HandleAcceptedCandidate(struct WebCore::TextCheckingResult acceptedCandidate)
442
443     SetUseSystemAppearance(bool useSystemAppearance);
444     SetDefaultAppearance(bool defaultAppearance);
445
446     SetHeaderBannerHeightForTesting(int height);
447     SetFooterBannerHeightForTesting(int height);
448 #endif
449
450 #if PLATFORM(COCOA)
451     RequestActiveNowPlayingSessionInfo(WebKit::CallbackID callbackID)
452 #endif
453
454     SetShouldDispatchFakeMouseMoveEvents(bool shouldDispatchFakeMouseMoveEvents)
455
456 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
457     PlaybackTargetSelected(uint64_t contextId, WebCore::MediaPlaybackTargetContext target)
458     PlaybackTargetAvailabilityDidChange(uint64_t contextId, bool available)
459     SetShouldPlayToPlaybackTarget(uint64_t contextId, bool shouldPlay)
460 #endif
461
462 #if ENABLE(POINTER_LOCK)
463     DidAcquirePointerLock()
464     DidNotAcquirePointerLock()
465     DidLosePointerLock()
466 #endif
467
468     ClearWheelEventTestTrigger()
469     SetShouldScaleViewToFitDocument(bool shouldScaleViewToFitDocument)
470
471 #if ENABLE(VIDEO) && USE(GSTREAMER)
472     DidEndRequestInstallMissingMediaPlugins(uint32_t result)
473 #endif
474
475     SetResourceCachingDisabled(bool disabled)
476
477     SetUserInterfaceLayoutDirection(uint32_t direction)
478
479     DidGetLoadDecisionForIcon(bool decision, WebKit::CallbackID loadIdentifier, WebKit::OptionalCallbackID newCallbackID)
480     SetUseIconLoadingClient(bool useIconLoadingClient)
481
482 #if ENABLE(GAMEPAD)
483     GamepadActivity(Vector<WebKit::GamepadData> gamepadDatas, bool shouldMakeGamepadsVisible)
484 #endif
485
486 #if USE(QUICK_LOOK)
487     DidReceivePasswordForQuickLookDocument(String password)
488 #endif
489
490     FrameBecameRemote(uint64_t frameID, struct WebCore::GlobalFrameIdentifier remoteFrameIdentifier, struct WebCore::GlobalWindowIdentifier remoteWindowIdentifier)
491
492     RegisterURLSchemeHandler(uint64_t identifier, String scheme)
493
494     URLSchemeTaskDidPerformRedirection(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceResponse response, WebCore::ResourceRequest request)
495     URLSchemeTaskDidReceiveResponse(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceResponse response)
496     URLSchemeTaskDidReceiveData(uint64_t handlerIdentifier, uint64_t taskIdentifier, IPC::DataReference data)
497     URLSchemeTaskDidComplete(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceError error)
498
499     SetIsSuspended(bool suspended)
500
501 #if HAVE(CFNETWORK_STORAGE_PARTITIONING)
502     StorageAccessResponse(bool wasGranted, uint64_t contextId)
503 #endif
504
505 #if ENABLE(ATTACHMENT_ELEMENT)
506     InsertAttachment(String identifier, struct WebCore::AttachmentDisplayOptions options, String filename, std::optional<String> contentType, IPC::DataReference data, WebKit::CallbackID callbackID)
507     RequestAttachmentInfo(String identifier, WebKit::CallbackID callbackID)
508     SetAttachmentDisplayOptions(String identifier, struct WebCore::AttachmentDisplayOptions options, WebKit::CallbackID callbackID)
509     SetAttachmentDataAndContentType(String identifier, IPC::DataReference data, std::optional<String> newContentType, std::optional<String> newFilename, WebKit::CallbackID callbackID)
510 #endif
511
512 #if ENABLE(APPLICATION_MANIFEST)
513     GetApplicationManifest(WebKit::CallbackID callbackID)
514 #endif
515
516 #if PLATFORM(MAC) && ENABLE(WEBPROCESS_WINDOWSERVER_BLOCKING)
517     OpenGLDisplayMaskChanged(uint32_t displayMask)
518 #endif
519 }