Web Inspector: Keep Web Inspector window alive across process swaps (PSON) (Local...
[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     HardwareKeyboardAvailabilityChanged()
110 #endif
111
112     SetControlledByAutomation(bool controlled)
113
114     ConnectInspector(String targetId, Inspector::FrontendChannel::ConnectionType connectionType)
115     DisconnectInspector(String targetId)
116     SendMessageToTargetBackend(String targetId, String message)
117
118 #if ENABLE(REMOTE_INSPECTOR)
119     SetIndicating(bool indicating);
120 #endif
121
122 #if ENABLE(IOS_TOUCH_EVENTS)
123     TouchEventSync(WebKit::WebTouchEvent event) -> (bool handled) LegacySync
124 #endif
125 #if !ENABLE(IOS_TOUCH_EVENTS) && ENABLE(TOUCH_EVENTS)
126     TouchEvent(WebKit::WebTouchEvent event)
127 #endif
128
129 #if ENABLE(INPUT_TYPE_COLOR)
130     DidEndColorPicker()
131     DidChooseColor(WebCore::Color color)
132 #endif
133
134 #if ENABLE(DATALIST_ELEMENT)
135     DidSelectDataListOption(String selectedOption);
136     DidCloseSuggestions();
137 #endif
138
139 #if ENABLE(CONTEXT_MENUS)
140     ContextMenuHidden()
141     ContextMenuForKeyEvent()
142 #endif
143
144     ScrollBy(uint32_t scrollDirection, uint32_t scrollGranularity)
145     CenterSelectionInVisibleArea()
146
147     GoToBackForwardItem(uint64_t navigationID, struct WebCore::BackForwardItemIdentifier backForwardItemID, enum:uint8_t WebCore::FrameLoadType backForwardType, enum:bool WebCore::ShouldTreatAsContinuingLoad shouldTreatAsContinuingLoad)
148     TryRestoreScrollPosition()
149
150     LoadURLInFrame(WebCore::URL url, uint64_t frameID)
151     LoadRequest(struct WebKit::LoadParameters loadParameters)
152     LoadData(struct WebKit::LoadParameters loadParameters)
153     LoadAlternateHTML(struct WebKit::LoadParameters loadParameters)
154
155     NavigateToPDFLinkWithSimulatedClick(String url, WebCore::IntPoint documentPoint, WebCore::IntPoint screenPoint)
156
157     Reload(uint64_t navigationID, uint32_t reloadOptions, WebKit::SandboxExtension::Handle sandboxExtensionHandle)
158     StopLoading()
159
160     StopLoadingFrame(uint64_t frameID)
161     
162     RestoreSession(Vector<WebKit::BackForwardListItemState> itemStates)
163     UpdateBackForwardListForReattach(Vector<WebKit::BackForwardListItemState> itemStates)
164     SetCurrentHistoryItemForReattach(struct WebKit::BackForwardListItemState itemState)
165
166     DidRemoveBackForwardItem(struct WebCore::BackForwardItemIdentifier backForwardItemID)
167
168     UpdateWebsitePolicies(struct WebKit::WebsitePoliciesData websitePolicies)
169     DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, enum:uint8_t WebCore::PolicyAction policyAction, uint64_t navigationID, WebKit::DownloadID downloadID, std::optional<WebKit::WebsitePoliciesData> websitePolicies)
170     ContinueWillSubmitForm(uint64_t frameID, uint64_t listenerID)
171
172     ClearSelection()
173     RestoreSelectionInFocusedEditableElement()
174
175     # Callbacks.
176     GetContentsAsString(WebKit::CallbackID callbackID)
177 #if ENABLE(MHTML)
178     GetContentsAsMHTMLData(WebKit::CallbackID callbackID)
179 #endif
180     GetMainResourceDataOfFrame(uint64_t frameID, WebKit::CallbackID callbackID)
181     GetResourceDataFromFrame(uint64_t frameID, String resourceURL, WebKit::CallbackID callbackID)
182     GetRenderTreeExternalRepresentation(WebKit::CallbackID callbackID)
183     GetSelectionOrContentsAsString(WebKit::CallbackID callbackID)
184     GetSelectionAsWebArchiveData(WebKit::CallbackID callbackID)
185     GetSourceForFrame(uint64_t frameID, WebKit::CallbackID callbackID)
186     GetWebArchiveOfFrame(uint64_t frameID, WebKit::CallbackID callbackID)
187     RunJavaScriptInMainFrame(String script, bool forceUserGesture, WebKit::CallbackID callbackID)
188     RunJavaScriptInMainFrameScriptWorld(String script, bool forceUserGesture, String worldName, WebKit::CallbackID callbackID)
189     ForceRepaint(WebKit::CallbackID callbackID)
190
191 #if PLATFORM(COCOA)
192     # Dictionary support.
193     PerformDictionaryLookupAtLocation(WebCore::FloatPoint point)
194 #endif
195
196 #if PLATFORM(MAC)
197     PerformDictionaryLookupOfCurrentSelection()
198 #endif
199
200     ChangeFont(WebCore::FontChanges changes)
201     ChangeFontAttributes(WebCore::FontAttributeChanges changes)
202
203     PreferencesDidChange(struct WebKit::WebPreferencesStore store)
204
205     SetUserAgent(String userAgent)
206     SetCustomTextEncodingName(String encodingName)
207
208     SuspendActiveDOMObjectsAndAnimations()
209     ResumeActiveDOMObjectsAndAnimations()
210
211     Close()
212     TryClose()
213
214     SetEditable(bool editable)
215     ValidateCommand(String name, WebKit::CallbackID callbackID)
216     ExecuteEditCommand(String name, String argument)
217
218     IncreaseListLevel()
219     DecreaseListLevel()
220     ChangeListType()
221
222     SetNeedsFontAttributes(bool needsFontAttributes)
223
224     RequestFontAttributesAtSelectionStart(WebKit::CallbackID callbackID)
225
226     DidRemoveEditCommand(uint64_t commandID)
227     ReapplyEditCommand(uint64_t commandID)
228     UnapplyEditCommand(uint64_t commandID)
229
230     SetPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor)
231     SetPageZoomFactor(double zoomFactor)
232     SetTextZoomFactor(double zoomFactor)
233     WindowScreenDidChange(uint32_t displayID)
234
235     AccessibilitySettingsDidChange()
236 #if ENABLE(ACCESSIBILITY_EVENTS)
237     UpdateAccessibilityEventsEnabled(bool enabled)
238 #endif
239
240     ScalePage(double scale, WebCore::IntPoint origin)
241     ScalePageInViewCoordinates(double scale, WebCore::IntPoint centerInViewCoordinates)
242     ScaleView(double scale)
243
244     SetUseFixedLayout(bool fixed)
245     SetFixedLayoutSize(WebCore::IntSize size)
246     ListenForLayoutMilestones(OptionSet<WebCore::LayoutMilestone> layoutMilestones)
247     SetSuppressScrollbarAnimations(bool suppressAnimations)
248
249     SetEnableVerticalRubberBanding(bool enableVerticalRubberBanding)
250     SetEnableHorizontalRubberBanding(bool enableHorizontalRubberBanding)
251
252     SetBackgroundExtendsBeyondPage(bool backgroundExtendsBeyondPage)
253
254     SetPaginationMode(uint32_t mode)
255     SetPaginationBehavesLikeColumns(bool behavesLikeColumns)
256     SetPageLength(double pageLength)
257     SetGapBetweenPages(double gap)
258     SetPaginationLineGridEnabled(bool lineGridEnabled)
259
260     PostInjectedBundleMessage(String messageName, WebKit::UserData messageBody)
261
262     # Find.
263     FindString(String string, uint32_t findOptions, unsigned maxMatchCount)
264     FindStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
265     GetImageForFindMatch(uint32_t matchIndex)
266     SelectFindMatch(uint32_t matchIndex)
267     HideFindUI()
268     CountStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
269     
270     AddMIMETypeWithCustomContentProvider(String mimeType)
271
272     # Drag and drop.
273 #if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
274     PerformDragControllerAction(enum:uint8_t WebKit::DragControllerAction action, WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t draggingSourceOperationMask, struct WebKit::WebSelectionData selection, uint32_t flags)
275 #endif
276 #if !PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
277     PerformDragControllerAction(enum:uint8_t WebKit::DragControllerAction action, WebCore::DragData dragData, WebKit::SandboxExtension::Handle sandboxExtensionHandle, WebKit::SandboxExtension::HandleArray sandboxExtensionsForUpload)
278 #endif
279 #if ENABLE(DRAG_SUPPORT)
280     DidStartDrag()
281     DragEnded(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t operation)
282     DragCancelled()
283 #endif
284
285 #if ENABLE(DATA_INTERACTION)
286     RequestStartDataInteraction(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition)
287     RequestAdditionalItemsForDragSession(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition)
288 #endif
289
290     # Popup menu.
291     DidChangeSelectedIndexForActivePopupMenu(int32_t newIndex)
292     SetTextForActivePopupMenu(int32_t index)
293 #if PLATFORM(GTK)
294     FailedToShowPopupMenu()
295 #endif
296
297 #if ENABLE(CONTEXT_MENUS)
298     # Context menu.
299     DidSelectItemFromActiveContextMenu(WebKit::WebContextMenuItemData menuItem)
300 #endif
301
302     # Open panel.
303 #if PLATFORM(IOS_FAMILY)
304     DidChooseFilesForOpenPanelWithDisplayStringAndIcon(Vector<String> fileURLs, String displayString, IPC::DataReference iconData)
305 #endif
306     DidChooseFilesForOpenPanel(Vector<String> fileURLs)
307     DidCancelForOpenPanel()
308     DidCompleteShareSheet(bool wasGranted, uint64_t callbackID)
309 #if ENABLE(SANDBOX_EXTENSIONS)
310     ExtendSandboxForFilesFromOpenPanel(WebKit::SandboxExtension::HandleArray sandboxExtensions)
311 #endif
312
313     # Spelling and grammar.
314     AdvanceToNextMisspelling(bool startBeforeSelection)
315     ChangeSpellingToWord(String word)
316     DidFinishCheckingText(uint64_t requestID, Vector<WebCore::TextCheckingResult> result)
317     DidCancelCheckingText(uint64_t requestID)
318 #if USE(APPKIT)
319     UppercaseWord()
320     LowercaseWord()
321     CapitalizeWord()
322 #endif
323 #if PLATFORM(COCOA)
324     SetSmartInsertDeleteEnabled(bool isSmartInsertDeleteEnabled)
325 #endif
326
327 #if ENABLE(GEOLOCATION)
328     # Geolocation
329     DidReceiveGeolocationPermissionDecision(uint64_t geolocationID, bool allowed)
330 #endif
331
332 #if ENABLE(MEDIA_STREAM)
333     # MediaSteam
334     UserMediaAccessWasGranted(uint64_t userMediaID, WebCore::CaptureDevice audioDevice, WebCore::CaptureDevice videoDevice, String mediaDeviceIdentifierHashSalt)
335     UserMediaAccessWasDenied(uint64_t userMediaID, uint64_t reason, String invalidConstraint)
336     DidCompleteMediaDeviceEnumeration(uint64_t userMediaID, Vector<WebCore::CaptureDevice> devices, String mediaDeviceIdentifierHashSalt, bool hasPersistentAccess)
337     CaptureDevicesChanged(enum:uint8_t WebKit::DeviceAccessState accessState)
338 #if ENABLE(SANDBOX_EXTENSIONS)
339     GrantUserMediaDeviceSandboxExtensions(WebKit::MediaDeviceSandboxExtensions sandboxExtensions)
340     RevokeUserMediaDeviceSandboxExtensions(Vector<String> sandboxExtensionIDs)
341 #endif
342 #endif
343
344 #if ENABLE(WEB_RTC)
345     DisableICECandidateFiltering()
346     EnableICECandidateFiltering()
347 #endif
348 #if ENABLE(WEB_RTC) && USE(LIBWEBRTC)
349     EnableEnumeratingAllNetworkInterfaces()
350     DisableEnumeratingAllNetworkInterfaces()
351 #endif
352
353     # Notification
354     DidReceiveNotificationPermissionDecision(uint64_t notificationID, bool allowed)
355
356     # Printing.
357     BeginPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo)
358     EndPrinting()
359     ComputePagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID)
360 #if PLATFORM(COCOA)
361     DrawRectToImage(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebCore::IntRect rect, WebCore::IntSize imageSize, WebKit::CallbackID callbackID)
362     DrawPagesToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint32_t first, uint32_t count, WebKit::CallbackID callbackID)
363 #if PLATFORM(IOS_FAMILY)
364     ComputePagesForPrintingAndDrawToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID) -> (uint32_t pageCount) Delayed
365 #endif
366 #endif
367 #if PLATFORM(GTK)
368     DrawPagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID)
369 #endif
370
371     # Media
372     SetMediaVolume(float volume)
373     SetMuted(WebCore::MediaProducer::MutedStateFlags muted)
374     SetMayStartMediaWhenInWindow(bool mayStartMedia)
375     StopMediaCapture()
376
377 #if ENABLE(MEDIA_SESSION)
378     HandleMediaEvent(uint32_t eventType)
379     SetVolumeOfMediaElement(double volume, uint64_t elementID)
380 #endif
381
382     SetCanRunBeforeUnloadConfirmPanel(bool canRunBeforeUnloadConfirmPanel)
383     SetCanRunModal(bool canRunModal)
384
385 #if PLATFORM(GTK)
386     SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd)
387     ConfirmComposition(String text, int64_t selectionStart, int64_t selectionLength)
388     CancelComposition()
389
390     CollapseSelectionInFrame(uint64_t frameID)
391 #endif
392
393 #if PLATFORM (GTK) && HAVE(GTK_GESTURES)
394     GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center) LegacySync
395 #endif
396
397 #if PLATFORM(COCOA)
398     # Complex text input support for plug-ins.
399     SendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, String textInput)
400
401     WindowAndViewFramesChanged(WebCore::FloatRect windowFrameInScreenCoordinates, WebCore::FloatRect windowFrameInUnflippedScreenCoordinates, WebCore::FloatRect viewFrameInWindowCoordinates, WebCore::FloatPoint accessibilityViewCoordinates)
402     SetMainFrameIsScrollable(bool isScrollable)
403     RegisterUIProcessAccessibilityTokens(IPC::DataReference elemenToken, IPC::DataReference windowToken)
404     GetStringSelectionForPasteboard() -> (String stringValue) LegacySync
405     GetDataSelectionForPasteboard(String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size) LegacySync
406     ReadSelectionFromPasteboard(String pasteboardName) -> (bool result) LegacySync
407
408 #if ENABLE(SERVICE_CONTROLS)
409     ReplaceSelectionWithPasteboardData(Vector<String> types, IPC::DataReference data)
410 #endif
411
412     ShouldDelayWindowOrderingEvent(WebKit::WebMouseEvent event) -> (bool result) LegacySync
413     AcceptsFirstMouse(int eventNumber, WebKit::WebMouseEvent event) -> (bool result) LegacySync
414
415     SetTextAsync(String text)
416     InsertTextAsync(String text, struct WebKit::EditingRange replacementRange, bool registerUndoGroup, uint32_t editingRangeIsRelativeTo, bool suppressSelectionUpdate)
417     GetMarkedRangeAsync(WebKit::CallbackID callbackID)
418     GetSelectedRangeAsync(WebKit::CallbackID callbackID)
419     CharacterIndexForPointAsync(WebCore::IntPoint point, WebKit::CallbackID callbackID);
420     FirstRectForCharacterRangeAsync(struct WebKit::EditingRange range, WebKit::CallbackID callbackID);
421     SetCompositionAsync(String text, Vector<WebCore::CompositionUnderline> underlines, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange)
422     ConfirmCompositionAsync()
423 #endif
424 #if PLATFORM(MAC)
425     InsertDictatedTextAsync(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives, bool registerUndoGroup)
426     AttributedSubstringForCharacterRangeAsync(struct WebKit::EditingRange range, WebKit::CallbackID callbackID);
427     FontAtSelection(WebKit::CallbackID callbackID);
428 #endif
429
430     SetAlwaysShowsHorizontalScroller(bool alwaysShowsHorizontalScroller)
431     SetAlwaysShowsVerticalScroller(bool alwaysShowsVerticalScroller)
432
433     SetViewLayoutSize(WebCore::IntSize viewLayoutSize)
434     SetAutoSizingShouldExpandToViewHeight(bool shouldExpand)
435
436     SetViewportSizeForCSSViewportUnits(std::optional<WebCore::IntSize> viewportSize)
437
438 #if PLATFORM(COCOA)
439     HandleAlternativeTextUIResult(String result)
440 #endif
441
442 #if PLATFORM(IOS_FAMILY)
443     WillStartUserTriggeredZooming();
444 #endif
445
446     SetScrollPinningBehavior(uint32_t pinning)
447     SetScrollbarOverlayStyle(std::optional<uint32_t> scrollbarStyle)
448
449     GetBytecodeProfile(WebKit::CallbackID callbackID)
450
451     GetSamplingProfilerOutput(WebKit::CallbackID callbackID)
452     
453     TakeSnapshot(WebCore::IntRect snapshotRect, WebCore::IntSize bitmapSize, uint32_t options, WebKit::CallbackID callbackID)
454 #if PLATFORM(MAC)
455     PerformImmediateActionHitTestAtLocation(WebCore::FloatPoint location)
456     ImmediateActionDidUpdate()
457     ImmediateActionDidCancel()
458     ImmediateActionDidComplete()
459
460     DataDetectorsDidPresentUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
461     DataDetectorsDidChangeUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
462     DataDetectorsDidHideUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
463
464     HandleAcceptedCandidate(struct WebCore::TextCheckingResult acceptedCandidate)
465
466     SetUseSystemAppearance(bool useSystemAppearance);
467     SetUseDarkAppearance(bool useDarkAppearance);
468
469     SetHeaderBannerHeightForTesting(int height);
470     SetFooterBannerHeightForTesting(int height);
471 #endif
472
473 #if PLATFORM(COCOA)
474     RequestActiveNowPlayingSessionInfo(WebKit::CallbackID callbackID)
475 #endif
476
477     SetShouldDispatchFakeMouseMoveEvents(bool shouldDispatchFakeMouseMoveEvents)
478
479 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
480     PlaybackTargetSelected(uint64_t contextId, WebCore::MediaPlaybackTargetContext target)
481     PlaybackTargetAvailabilityDidChange(uint64_t contextId, bool available)
482     SetShouldPlayToPlaybackTarget(uint64_t contextId, bool shouldPlay)
483 #endif
484
485 #if ENABLE(POINTER_LOCK)
486     DidAcquirePointerLock()
487     DidNotAcquirePointerLock()
488     DidLosePointerLock()
489 #endif
490
491     ClearWheelEventTestTrigger()
492     SetShouldScaleViewToFitDocument(bool shouldScaleViewToFitDocument)
493
494 #if ENABLE(VIDEO) && USE(GSTREAMER)
495     DidEndRequestInstallMissingMediaPlugins(uint32_t result)
496 #endif
497
498     SetResourceCachingDisabled(bool disabled)
499
500     SetUserInterfaceLayoutDirection(uint32_t direction)
501
502     DidGetLoadDecisionForIcon(bool decision, WebKit::CallbackID loadIdentifier, WebKit::OptionalCallbackID newCallbackID)
503     SetUseIconLoadingClient(bool useIconLoadingClient)
504
505 #if ENABLE(GAMEPAD)
506     GamepadActivity(Vector<WebKit::GamepadData> gamepadDatas, bool shouldMakeGamepadsVisible)
507 #endif
508
509 #if USE(QUICK_LOOK)
510     DidReceivePasswordForQuickLookDocument(String password)
511 #endif
512
513     FrameBecameRemote(uint64_t frameID, struct WebCore::GlobalFrameIdentifier remoteFrameIdentifier, struct WebCore::GlobalWindowIdentifier remoteWindowIdentifier)
514
515     RegisterURLSchemeHandler(uint64_t identifier, String scheme)
516
517     URLSchemeTaskDidPerformRedirection(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceResponse response, WebCore::ResourceRequest request)
518     URLSchemeTaskDidReceiveResponse(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceResponse response)
519     URLSchemeTaskDidReceiveData(uint64_t handlerIdentifier, uint64_t taskIdentifier, IPC::SharedBufferDataReference data)
520     URLSchemeTaskDidComplete(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceError error)
521
522     SetIsSuspended(bool suspended)
523
524 #if ENABLE(RESOURCE_LOAD_STATISTICS)
525     StorageAccessResponse(bool wasGranted, uint64_t contextId)
526 #endif
527
528 #if ENABLE(ATTACHMENT_ELEMENT)
529     InsertAttachment(String identifier, std::optional<uint64_t> fileSize, String fileName, String contentType, WebKit::CallbackID callbackID)
530     UpdateAttachmentAttributes(String identifier, std::optional<uint64_t> fileSize, String contentType, String fileName, IPC::SharedBufferDataReference enclosingImageData, WebKit::CallbackID callbackID)
531 #endif
532
533 #if ENABLE(APPLICATION_MANIFEST)
534     GetApplicationManifest(WebKit::CallbackID callbackID)
535 #endif
536
537     SetDefersLoading(bool defersLoading)
538
539     UpdateCurrentModifierState(OptionSet<WebCore::PlatformEvent::Modifier> modifiers)
540 }