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