Add support for converting a local window to a remote window
[WebKit-https.git] / Source / WebKit / UIProcess / WebPageProxy.messages.in
1 # Copyright (C) 2010-2018 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 -> WebPageProxy {
24     # UI messages
25     CreateNewPage(struct WebKit::FrameInfoData originatingFrameInfoData, uint64_t originatingPageID, WebCore::ResourceRequest request, struct WebCore::WindowFeatures windowFeatures, struct WebKit::NavigationActionData navigationActionData) -> (uint64_t newPageID, struct WebKit::WebPageCreationParameters newPageParameters) Delayed
26     ShowPage()
27     ClosePage(bool stopResponsivenessTimer)
28     RunJavaScriptAlert(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message) -> () Delayed
29     RunJavaScriptConfirm(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message) -> (bool result) Delayed
30     RunJavaScriptPrompt(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message, String defaultValue) -> (String result) Delayed
31     MouseDidMoveOverElement(struct WebKit::WebHitTestResultData hitTestResultData, uint32_t modifiers, WebKit::UserData userData)
32
33 #if ENABLE(NETSCAPE_PLUGIN_API)
34     UnavailablePluginButtonClicked(uint32_t pluginUnavailabilityReason, String mimeType, String pluginURLString, String pluginspageAttributeURLString, String frameURLString, String pageURLString)
35 #endif // ENABLE(NETSCAPE_PLUGIN_API)
36 #if ENABLE(WEBGL)
37     WebGLPolicyForURL(WebCore::URL url) -> (uint32_t loadPolicy) Delayed
38     ResolveWebGLPolicyForURL(WebCore::URL url) -> (uint32_t loadPolicy) Delayed
39 #endif // ENABLE(WEBGL)
40     DidChangeViewportProperties(struct WebCore::ViewportAttributes attributes)
41     DidReceiveEvent(uint32_t type, bool handled)
42 #if !PLATFORM(IOS)
43     SetCursor(WebCore::Cursor cursor)
44     SetCursorHiddenUntilMouseMoves(bool hiddenUntilMouseMoves)
45 #endif
46     SetStatusText(String statusText)
47     SetToolTip(String toolTip)
48     SetFocus(bool focused)
49     TakeFocus(uint32_t direction)
50     FocusedFrameChanged(uint64_t frameID)
51     FrameSetLargestFrameChanged(uint64_t frameID)
52     SetRenderTreeSize(uint64_t treeSize)
53     SetToolbarsAreVisible(bool toolbarsAreVisible)
54     GetToolbarsAreVisible() -> (bool toolbarsAreVisible) Delayed
55     SetMenuBarIsVisible(bool menuBarIsVisible)
56     GetMenuBarIsVisible() -> (bool menuBarIsVisible) Delayed
57     SetStatusBarIsVisible(bool statusBarIsVisible)
58     GetStatusBarIsVisible() -> (bool statusBarIsVisible) Delayed
59     SetIsResizable(bool isResizable)
60     SetWindowFrame(WebCore::FloatRect windowFrame)
61     GetWindowFrame() -> (WebCore::FloatRect windowFrame) Delayed
62     ScreenToRootView(WebCore::IntPoint screenPoint) -> (WebCore::IntPoint windowPoint) Delayed
63     RootViewToScreen(WebCore::IntRect rect) -> (WebCore::IntRect screenFrame) Delayed
64
65 #if PLATFORM(COCOA)
66     ShowValidationMessage(WebCore::IntRect anchorRect, String message)
67     HideValidationMessage()
68 #endif
69
70 #if PLATFORM(IOS)
71     AccessibilityScreenToRootView(WebCore::IntPoint screenPoint) -> (WebCore::IntPoint windowPoint)
72     RootViewToAccessibilityScreen(WebCore::IntRect rect) -> (WebCore::IntRect screenFrame)
73 #endif
74
75     RunBeforeUnloadConfirmPanel(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message) -> (bool shouldClose) Delayed
76     PageDidScroll()
77     RunOpenPanel(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, struct WebCore::FileChooserSettings parameters)
78     PrintFrame(uint64_t frameID) -> ()
79     RunModal()
80     NotifyScrollerThumbIsVisibleInRect(WebCore::IntRect scrollerThumb)
81     RecommendedScrollbarStyleDidChange(int32_t newStyle)
82     DidChangeScrollbarsForMainFrame(bool hasHorizontalScrollbar, bool hasVerticalScrollbar)
83     DidChangeScrollOffsetPinningForMainFrame(bool pinnedToLeftSide, bool pinnedToRightSide, bool pinnedToTopSide, bool pinnedToBottomSide)
84     DidChangePageCount(unsigned pageCount)
85     PageExtendedBackgroundColorDidChange(WebCore::Color backgroundColor)
86 #if ENABLE(NETSCAPE_PLUGIN_API)
87     DidFailToInitializePlugin(String mimeType, String frameURLString, String pageURLString)
88     DidBlockInsecurePluginVersion(String mimeType, String pluginURLString, String frameURLString, String pageURLString, bool replacementObscured)
89 #endif // ENABLE(NETSCAPE_PLUGIN_API)
90     SetCanShortCircuitHorizontalWheelEvents(bool canShortCircuitHorizontalWheelEvents)
91
92     DidChangeContentSize(WebCore::IntSize newSize)
93
94 #if ENABLE(INPUT_TYPE_COLOR)
95     ShowColorPicker(WebCore::Color initialColor, WebCore::IntRect elementRect);
96     SetColorPickerColor(WebCore::Color color);
97     EndColorPicker();
98 #endif
99
100     # Policy messages
101     DecidePolicyForResponse(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, uint64_t navigationID, WebCore::ResourceResponse response, WebCore::ResourceRequest request, bool canShowMIMEType, uint64_t listenerID, WebKit::UserData userData)
102     DecidePolicyForNavigationAction(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, uint64_t navigationID, struct WebKit::NavigationActionData navigationActionData, struct WebKit::FrameInfoData originatingFrameInfoData, uint64_t originatingPageID, WebCore::ResourceRequest originalRequest, WebCore::ResourceRequest request, uint64_t listenerID, WebKit::UserData userData)
103     DecidePolicyForNavigationActionSync(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, uint64_t navigationID, struct WebKit::NavigationActionData navigationActionData, struct WebKit::FrameInfoData originatingFrameInfoData, uint64_t originatingPageID, WebCore::ResourceRequest originalRequest, WebCore::ResourceRequest request, uint64_t listenerID, WebKit::UserData userData) -> (uint64_t newNavigationID, enum WebCore::PolicyAction policyAction, WebKit::DownloadID downloadID, std::optional<WebKit::WebsitePoliciesData> websitePolicies) Delayed
104     DecidePolicyForNewWindowAction(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, struct WebKit::NavigationActionData navigationActionData, WebCore::ResourceRequest request, String frameName, uint64_t listenerID, WebKit::UserData userData)
105     UnableToImplementPolicy(uint64_t frameID, WebCore::ResourceError error, WebKit::UserData userData)
106
107     # Progress messages
108     DidChangeProgress(double value)
109     DidFinishProgress()
110     DidStartProgress()
111
112     SetNetworkRequestsInProgress(bool networkRequestsInProgress)
113
114     # Frame lifetime messages
115     DidCreateMainFrame(uint64_t frameID)
116     DidCreateSubframe(uint64_t frameID)
117
118     DidCreateWindow(uint64_t frameID, struct WebCore::GlobalWindowIdentifier windowIdentifier)
119
120     # Frame load messages
121     DidStartProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, WebCore::URL url, WebCore::URL unreachableURL, WebKit::UserData userData)
122     DidReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, WebCore::ResourceRequest request, WebKit::UserData userData)
123     WillPerformClientRedirectForFrame(uint64_t frameID, String url, double delay)
124     DidCancelClientRedirectForFrame(uint64_t frameID)
125     DidChangeProvisionalURLForFrame(uint64_t frameID, uint64_t navigationID, WebCore::URL url)
126     DidFailProvisionalLoadForFrame(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, uint64_t navigationID, String provisionalURL, WebCore::ResourceError error, WebKit::UserData userData)
127     DidCommitLoadForFrame(uint64_t frameID, uint64_t navigationID, String mimeType, bool hasCustomContentProvider, uint32_t loadType, WebCore::CertificateInfo certificateInfo, bool containsPluginDocument, std::optional<WebCore::HasInsecureContent> forcedHasInsecureContent, WebKit::UserData userData)
128     DidFailLoadForFrame(uint64_t frameID, uint64_t navigationID, WebCore::ResourceError error, WebKit::UserData userData)
129     DidFinishDocumentLoadForFrame(uint64_t frameID, uint64_t navigationID, WebKit::UserData userData)
130     DidFinishLoadForFrame(uint64_t frameID, uint64_t navigationID, WebKit::UserData userData)
131     DidFirstLayoutForFrame(uint64_t frameID, WebKit::UserData userData)
132     DidFirstVisuallyNonEmptyLayoutForFrame(uint64_t frameID, WebKit::UserData userData)
133     DidReachLayoutMilestone(uint32_t type)
134     DidReceiveTitleForFrame(uint64_t frameID, String title, WebKit::UserData userData)
135     DidDisplayInsecureContentForFrame(uint64_t frameID, WebKit::UserData userData)
136     DidRunInsecureContentForFrame(uint64_t frameID, WebKit::UserData userData)
137     DidDetectXSSForFrame(uint64_t frameID, WebKit::UserData userData)
138     DidSameDocumentNavigationForFrame(uint64_t frameID, uint64_t navigationID, uint32_t type, WebCore::URL url, WebKit::UserData userData)
139     DidChangeMainDocument(uint64_t frameID);
140     DidDestroyNavigation(uint64_t navigationID)
141
142     HasInsecureContent() -> (enum WebCore::HasInsecureContent hasInsecureContent)
143
144     MainFramePluginHandlesPageScaleGestureDidChange(bool mainFramePluginHandlesPageScaleGesture)
145
146     FrameDidBecomeFrameSet(uint64_t frameID, bool value)
147
148     # History client messages.
149     DidNavigateWithNavigationData(struct WebKit::WebNavigationDataStore store, uint64_t frameID)
150     DidPerformClientRedirect(String sourceURLString, String destinationURLString, uint64_t frameID)
151     DidPerformServerRedirect(String sourceURLString, String destinationURLString, uint64_t frameID)
152     DidUpdateHistoryTitle(String title, String url, uint64_t frameID)
153
154     # Custom representations
155     DidFinishLoadingDataForCustomContentProvider(String suggestedFilename, IPC::DataReference data)
156
157     # Forms messages
158     WillSubmitForm(uint64_t frameID, uint64_t sourceFrameID, Vector<std::pair<String, String>> textFieldValues, uint64_t listenerID, WebKit::UserData userData)
159
160     # Callback messages
161     VoidCallback(WebKit::CallbackID callbackID)
162     DataCallback(IPC::DataReference resultData, WebKit::CallbackID callbackID)
163     ImageCallback(WebKit::ShareableBitmap::Handle bitmapHandle, WebKit::CallbackID callbackID)
164     StringCallback(String resultString, WebKit::CallbackID callbackID)
165     InvalidateStringCallback(WebKit::CallbackID callbackID)
166     ScriptValueCallback(IPC::DataReference resultData, bool hadException, struct WebCore::ExceptionDetails details, WebKit::CallbackID callbackID)
167     ComputedPagesCallback(Vector<WebCore::IntRect> pageRects, double totalScaleFactorForPrinting, WebKit::CallbackID callbackID)
168     ValidateCommandCallback(String command, bool isEnabled, int32_t state, WebKit::CallbackID callbackID)
169     EditingRangeCallback(struct WebKit::EditingRange range, WebKit::CallbackID callbackID)
170     UnsignedCallback(uint64_t result, WebKit::CallbackID callbackID)
171     RectForCharacterRangeCallback(WebCore::IntRect rect, struct WebKit::EditingRange actualRange, WebKit::CallbackID callbackID)
172 #if ENABLE(ATTACHMENT_ELEMENT)
173     AttachmentInfoCallback(struct WebCore::AttachmentInfo info, WebKit::CallbackID callbackID);
174 #endif
175 #if ENABLE(APPLICATION_MANIFEST)
176     ApplicationManifestCallback(std::optional<WebCore::ApplicationManifest> manifest, WebKit::CallbackID callbackID)
177 #endif
178 #if PLATFORM(MAC)
179     AttributedStringForCharacterRangeCallback(struct WebKit::AttributedString string, struct WebKit::EditingRange actualRange, WebKit::CallbackID callbackID)
180     FontAtSelectionCallback(String fontName, double fontSize, bool selectioHasMultipleFonts, WebKit::CallbackID callbackID)
181 #endif
182 #if PLATFORM(IOS)
183     GestureCallback(WebCore::IntPoint point, uint32_t gestureType, uint32_t gestureState, uint32_t flags, WebKit::CallbackID callbackID)
184     TouchesCallback(WebCore::IntPoint point, uint32_t touches, uint32_t flags, WebKit::CallbackID callbackID)
185     AutocorrectionDataCallback(Vector<WebCore::FloatRect> textRects, String fontName, double fontSize, uint64_t traits, WebKit::CallbackID callbackID)
186     AutocorrectionContextCallback(String beforeText, String markedText, String selectedText, String afterText, uint64_t location, uint64_t length, WebKit::CallbackID callbackID)
187     SelectionContextCallback(String selectedText, String beforeText, String afterText, WebKit::CallbackID callbackID)
188     InterpretKeyEvent(struct WebKit::EditorState state, bool isCharEvent) -> (bool handled)
189     DidReceivePositionInformation(struct WebKit::InteractionInformationAtPosition information)
190     SaveImageToLibrary(WebKit::SharedMemory::Handle handle, uint64_t size)
191     ShowPlaybackTargetPicker(bool hasVideo, WebCore::IntRect elementRect)
192     CommitPotentialTapFailed()
193     DidNotHandleTapAsClick(WebCore::IntPoint point)
194     DidCompleteSyntheticClick()
195     DisableDoubleTapGesturesDuringTapIfNecessary(uint64_t requestID)
196     DrawToPDFCallback(IPC::DataReference pdfData, WebKit::CallbackID callbackID)
197     SelectionRectsCallback(Vector<WebCore::SelectionRect> selectionRects, WebKit::CallbackID callbackID);
198 #endif
199 #if ENABLE(DATA_DETECTION)
200     SetDataDetectionResult(struct WebKit::DataDetectionResult dataDetectionResult)
201 #endif
202 #if PLATFORM(GTK)
203     PrintFinishedCallback(WebCore::ResourceError error, WebKit::CallbackID callbackID)
204 #endif
205 #if PLATFORM(COCOA)
206     MachSendRightCallback(MachSendRight sendRight, WebKit::CallbackID callbackID)
207     NowPlayingInfoCallback(bool active, bool registeredAsNowPlayingApplication, String title, double duration, double elapsedTime, uint64_t uniqueIdentifier, WebKit::CallbackID callbackID)
208 #endif
209
210     PageScaleFactorDidChange(double scaleFactor)
211     PluginScaleFactorDidChange(double zoomFactor)
212     PluginZoomFactorDidChange(double zoomFactor)
213
214 #if PLATFORM(GTK)
215     # Support for connecting the Accessibility worlds of the UI and the Web processes
216     BindAccessibilityTree(String plugID)
217
218     SetInputMethodState(bool enabled);
219 #endif
220
221     # BackForward messages
222     BackForwardAddItem(uint64_t itemID)
223     BackForwardGoToItem(uint64_t itemID) -> (WebKit::SandboxExtension::Handle sandboxExtensionHandle)
224     BackForwardItemAtIndex(int32_t itemIndex) -> (uint64_t itemID)
225     BackForwardBackListCount() -> (int32_t count)
226     BackForwardForwardListCount() -> (int32_t count)
227     BackForwardClear()
228     WillGoToBackForwardListItem(uint64_t itemID, bool inPageCache, WebKit::UserData userData)
229
230     # Undo/Redo messages
231     RegisterEditCommandForUndo(uint64_t commandID, uint32_t editAction)
232     ClearAllEditCommands()
233     RegisterInsertionUndoGrouping()
234     CanUndoRedo(uint32_t action) -> (bool result)
235     ExecuteUndoRedo(uint32_t action) -> (bool result)
236
237     # Diagnostic messages logging
238     LogDiagnosticMessage(String message, String description, enum WebCore::ShouldSample shouldSample)
239     LogDiagnosticMessageWithResult(String message, String description, uint32_t result, enum WebCore::ShouldSample shouldSample)
240     LogDiagnosticMessageWithValue(String message, String description, double value, unsigned significantFigures, enum WebCore::ShouldSample shouldSample)
241     LogDiagnosticMessageWithEnhancedPrivacy(String message, String description, enum WebCore::ShouldSample shouldSample)
242
243     # Performance logging
244     LogScrollingEvent(uint32_t eventType, MonotonicTime timestamp, uint64_t data)
245
246     # Editor notifications
247     EditorStateChanged(struct WebKit::EditorState editorState)
248     CompositionWasCanceled()
249     SetHasHadSelectionChangesFromUserInteraction(bool hasHadUserSelectionChanges)
250     SetNeedsHiddenContentEditableQuirk(bool needsHiddenContentEditableQuirk)
251     SetNeedsPlainTextQuirk(bool needsPlainTextQuirk)
252
253     # Find messages
254     DidCountStringMatches(String string, uint32_t matchCount)
255     SetTextIndicator(struct WebCore::TextIndicatorData indicator, uint64_t lifetime)
256     ClearTextIndicator()
257     DidFindString(String string, Vector<WebCore::IntRect> matchRect, uint32_t matchCount, int32_t matchIndex, bool didWrapAround)
258     DidFailToFindString(String string)
259     DidFindStringMatches(String string, Vector<Vector<WebCore::IntRect>> matches, int32_t firstIndexAfterSelection)
260     DidGetImageForFindMatch(WebKit::ShareableBitmap::Handle contentImageHandle, uint32_t matchIndex)
261
262     # PopupMenu messages
263     ShowPopupMenu(WebCore::IntRect rect, uint64_t textDirection, Vector<WebKit::WebPopupItem> items, int32_t selectedIndex, struct WebKit::PlatformPopupMenuData data)
264     HidePopupMenu()
265
266 #if ENABLE(CONTEXT_MENUS)
267     ShowContextMenu(WebKit::ContextMenuContextData contextMenuContextData, WebKit::UserData userData)
268 #endif
269
270     # Database messages
271     ExceededDatabaseQuota(uint64_t frameID, String originIdentifier, String databaseName, String databaseDisplayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage) -> (uint64_t newQuota) Delayed
272
273     # Application cache messages
274     ReachedApplicationCacheOriginQuota(String originIdentifier, uint64_t currentQuota, uint64_t totalBytesNeeded) -> (uint64_t newQuota) Delayed
275
276     # Geolocation messages
277     RequestGeolocationPermissionForFrame(uint64_t geolocationID, uint64_t frameID, String originIdentifier)
278     
279 #if ENABLE(MEDIA_STREAM)
280     # MediaSteam messages
281     RequestUserMediaPermissionForFrame(uint64_t userMediaID, uint64_t frameID, struct WebCore::SecurityOriginData userMediaDocumentOriginIdentifier, struct WebCore::SecurityOriginData topLevelDocumentOriginIdentifier, struct WebCore::MediaStreamRequest request)
282     EnumerateMediaDevicesForFrame(uint64_t userMediaID, uint64_t frameID, struct WebCore::SecurityOriginData userMediaDocumentOriginIdentifier, struct WebCore::SecurityOriginData topLevelDocumentOriginIdentifier)
283 #endif
284
285     # Notification messages
286     RequestNotificationPermission(uint64_t requestID, String originIdentifier)
287     ShowNotification(String title, String body, String iconURL, String tag, String lang, enum WebCore::NotificationDirection dir, String originIdentifier, uint64_t notificationID)
288     CancelNotification(uint64_t notificationID)
289     ClearNotifications(Vector<uint64_t> notificationIDs)
290     DidDestroyNotification(uint64_t notificationID)
291
292     # Spelling and grammar messages
293 #if USE(UNIFIED_TEXT_CHECKING)  
294     CheckTextOfParagraph(String text, uint64_t checkingTypes, int32_t insertionPoint) -> (Vector<WebCore::TextCheckingResult> results)
295 #endif
296     CheckSpellingOfString(String text) -> (int32_t misspellingLocation, int32_t misspellingLength)
297     CheckGrammarOfString(String text) -> (Vector<WebCore::GrammarDetail> results, int32_t badGrammarLocation, int32_t badGrammarLength)
298     SpellingUIIsShowing() -> (bool isShowing)
299     UpdateSpellingUIWithMisspelledWord(String misspelledWord)
300     UpdateSpellingUIWithGrammarString(String badGrammarPhrase, struct WebCore::GrammarDetail grammarDetail)
301     GetGuessesForWord(String word, String context, int32_t insertionPoint) -> (Vector<String> guesses)
302     LearnWord(String word);
303     IgnoreWord(String word);
304     RequestCheckingOfString(uint64_t requestID, WebCore::TextCheckingRequestData request, int32_t insertionPoint)
305
306     # Drag and drop messages
307 #if ENABLE(DRAG_SUPPORT)
308     DidPerformDragControllerAction(uint64_t dragOperation, bool mouseIsOverFileInput, unsigned numberOfItemsToBeAccepted, WebCore::IntRect insertionRect)
309     DidEndDragging();
310 #endif
311 #if PLATFORM(COCOA) && ENABLE(DRAG_SUPPORT)
312     StartDrag(struct WebCore::DragItem dragItem, WebKit::ShareableBitmap::Handle dragImage)
313     SetPromisedDataForImage(String pasteboardName, WebKit::SharedMemory::Handle imageHandle, uint64_t imageSize, String filename, String extension, String title, String url, String visibleURL, WebKit::SharedMemory::Handle archiveHandle, uint64_t archiveSize)
314 #endif
315 #if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
316     StartDrag(struct WebKit::WebSelectionData selection, uint64_t dragOperation, WebKit::ShareableBitmap::Handle dragImage)
317 #endif
318
319 #if ENABLE(DATA_INTERACTION)
320     DidPerformDataInteractionControllerOperation(bool handled)
321     DidHandleStartDataInteractionRequest(bool started)
322     DidHandleAdditionalDragItemsRequest(bool added)
323     DidConcludeEditDataInteraction(std::optional<WebCore::TextIndicatorData> textIndicator)
324 #endif
325
326 #if PLATFORM(COCOA)
327     # Dictionary support.
328     DidPerformDictionaryLookup(struct WebCore::DictionaryPopupInfo dictionaryPopupInfo)
329
330     # Keyboard input support messages
331     ExecuteSavedCommandBySelector(String selector) -> (bool handled)
332
333     # Remote accessibility messages
334     RegisterWebProcessAccessibilityToken(IPC::DataReference data)
335
336     # Plug-in complex text input support messages
337     PluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus)
338     SetPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, uint64_t complexTextInputState)
339
340     # Speech messages
341     GetIsSpeaking() -> (bool isSpeaking)
342     Speak(String string)
343     StopSpeaking()
344
345     MakeFirstResponder()
346     AssistiveTechnologyMakeFirstResponder()
347
348     # Spotlight
349     SearchWithSpotlight(String string)
350
351     SearchTheWeb(String string)
352
353     TouchBarMenuDataChanged(WebKit::TouchBarMenuData touchBarMenuData)
354     TouchBarMenuItemDataAdded(struct WebKit::TouchBarMenuItemData touchBarMenuItemData)
355     TouchBarMenuItemDataRemoved(struct WebKit::TouchBarMenuItemData touchBarMenuItemData)
356 #endif
357
358 #if USE(APPKIT)
359     SubstitutionsPanelIsShowing() -> (bool isShowing)
360 #endif
361 #if USE(AUTOMATIC_TEXT_REPLACEMENT)
362     toggleSmartInsertDelete()
363     toggleAutomaticQuoteSubstitution()
364     toggleAutomaticLinkDetection()
365     toggleAutomaticDashSubstitution()
366     toggleAutomaticTextReplacement()
367 #endif
368 #if PLATFORM(MAC)
369     # Autocorrection messages
370     ShowCorrectionPanel(int32_t panelType, WebCore::FloatRect boundingBoxOfReplacedString, String replacedString, String replacementString, Vector<String> alternativeReplacementStrings)
371     DismissCorrectionPanel(int32_t reason)
372     DismissCorrectionPanelSoon(int32_t reason) -> (String result)
373     RecordAutocorrectionResponse(int32_t response, String replacedString, String replacementString);
374
375     SetEditableElementIsFocused(bool editableElementIsFocused)
376 #endif
377
378 #if USE(DICTATION_ALTERNATIVES)
379     ShowDictationAlternativeUI(WebCore::FloatRect boundingBoxOfDictatedText, uint64_t dictationContext)
380     RemoveDictationAlternatives(uint64_t dictationContext)
381     DictationAlternatives(uint64_t dictationContext) -> (Vector<String> alternatives)
382 #endif
383
384 #if PLATFORM(X11)
385     # X11 windowed plugin messages
386     CreatePluginContainer() -> (uint64_t windowID)
387     WindowedPluginGeometryDidChange(WebCore::IntRect frameRect, WebCore::IntRect clipRect, uint64_t windowID)
388     WindowedPluginVisibilityDidChange(bool isVisible, uint64_t windowID)
389 #endif
390
391 #if PLATFORM(IOS)
392     DynamicViewportUpdateChangedTarget(double newTargetScale, WebCore::FloatPoint newScrollPosition, uint64_t dynamicViewportSizeUpdateID)
393     CouldNotRestorePageState()
394     RestorePageState(std::optional<WebCore::FloatPoint> scrollPosition, WebCore::FloatPoint scrollOrigin, WebCore::RectEdges<float> obscuredInsetsOnSave, double scale)
395     RestorePageCenterAndScale(std::optional<WebCore::FloatPoint> unobscuredCenter, double scale)
396     DidGetTapHighlightGeometries(uint64_t requestID, WebCore::Color color, Vector<WebCore::FloatQuad> geometries, WebCore::IntSize topLeftRadius, WebCore::IntSize topRightRadius, WebCore::IntSize bottomLeftRadius, WebCore::IntSize bottomRightRadius)
397
398     StartAssistingNode(struct WebKit::AssistedNodeInformation information, bool userIsInteracting, bool blurPreviousNode, bool changingActivityState, WebKit::UserData userData)
399     StopAssistingNode()
400     OverflowScrollWillStartScroll()
401     OverflowScrollDidEndScroll()
402     ShowInspectorHighlight(struct WebCore::Highlight highlight)
403     HideInspectorHighlight()
404     AssistedNodeInformationCallback(struct WebKit::AssistedNodeInformation information, WebKit::CallbackID callbackID)
405
406     ShowInspectorIndication()
407     HideInspectorIndication()
408
409     EnableInspectorNodeSearch()
410     DisableInspectorNodeSearch()
411 #endif
412
413     # Search popup menus
414     SaveRecentSearches(String name, Vector<WebCore::RecentSearch> searchItems)
415     LoadRecentSearches(String name) -> (Vector<WebCore::RecentSearch> result)
416
417     SavePDFToFileInDownloadsFolder(String suggestedFilename, WebCore::URL originatingURL, IPC::DataReference data)
418
419 #if PLATFORM(COCOA)
420     SavePDFToTemporaryFolderAndOpenWithNativeApplication(String suggestedFilename, String originatingURLString, IPC::DataReference data, String pdfUUID)
421     OpenPDFFromTemporaryFolderWithNativeApplication(String pdfUUID)
422 #endif
423
424 #if ENABLE(NETSCAPE_PLUGIN_API)
425     FindPlugin(String mimeType, uint32_t processType, String urlString, String frameURLString, String pageURLString, bool allowOnlyApplicationPlugins) -> (uint64_t pluginProcessToken, String newMIMEType, uint32_t pluginLoadPolicy, String unavailabilityDescription, bool isUnsupported)
426 #endif
427
428     DidUpdateActivityState()
429
430     DidSaveToPageCache()
431
432 #if ENABLE(SUBTLE_CRYPTO)
433     WrapCryptoKey(Vector<uint8_t> key) -> (bool succeeded, Vector<uint8_t> wrappedKey)
434     UnwrapCryptoKey(Vector<uint8_t> wrappedKey) -> (bool succeeded, Vector<uint8_t> key)
435 #endif
436
437
438 #if ENABLE(TELEPHONE_NUMBER_DETECTION)
439 #if PLATFORM(MAC)
440     ShowTelephoneNumberMenu(String telephoneNumber, WebCore::IntPoint point)
441 #endif
442 #endif
443
444 #if USE(QUICK_LOOK)
445     DidStartLoadForQuickLookDocumentInMainFrame(String fileName, String uti)
446     DidFinishLoadForQuickLookDocumentInMainFrame(WebKit::QuickLookDocumentData data)
447     DidRequestPasswordForQuickLookDocumentInMainFrame(String fileName)
448 #endif
449
450 #if ENABLE(CONTENT_FILTERING)
451     ContentFilterDidBlockLoadForFrame(WebCore::ContentFilterUnblockHandler unblockHandler, uint64_t frameID)
452 #endif
453
454     IsPlayingMediaDidChange(unsigned state, uint64_t sourceElementID)
455     HandleAutoplayEvent(enum WebCore::AutoplayEvent event, OptionSet<WebCore::AutoplayEventFlags> flags)
456
457 #if ENABLE(MEDIA_SESSION)
458     HasMediaSessionWithActiveMediaElementsDidChange(bool state)
459     MediaSessionMetadataDidChange(WebCore::MediaSessionMetadata metadata);
460     FocusedContentMediaElementDidChange(uint64_t elementID)
461 #endif
462
463 #if PLATFORM(MAC)
464     DidPerformImmediateActionHitTest(struct WebKit::WebHitTestResultData result, bool contentPreventsDefault, WebKit::UserData userData)
465 #endif
466     HandleMessage(String messageName, WebKit::UserData messageBody) WantsConnection
467     HandleSynchronousMessage(String messageName, WebKit::UserData messageBody) -> (WebKit::UserData returnData) WantsConnection
468
469     HandleAutoFillButtonClick(WebKit::UserData userData);
470     ContentRuleListNotification(WebCore::URL url, Vector<String> identifiers, Vector<String> notifications)
471
472 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
473     AddPlaybackTargetPickerClient(uint64_t contextId)
474     RemovePlaybackTargetPickerClient(uint64_t contextId)
475     ShowPlaybackTargetPicker(uint64_t clientId, WebCore::FloatRect pickerLocation, bool hasVideo)
476     PlaybackTargetPickerClientStateDidChange(uint64_t contextId, unsigned mediaState)
477     SetMockMediaPlaybackTargetPickerEnabled(bool enabled)
478     SetMockMediaPlaybackTargetPickerState(String name, unsigned pickerState)
479 #endif
480
481 #if ENABLE(POINTER_LOCK)
482     RequestPointerLock()
483     RequestPointerUnlock()
484 #endif
485
486     ImageOrMediaDocumentSizeChanged(WebCore::IntSize newSize)
487
488     UseFixedLayoutDidChange(bool useFixedLayout)
489     FixedLayoutSizeDidChange(WebCore::IntSize fixedLayoutSize)
490
491 #if ENABLE(VIDEO) && USE(GSTREAMER)
492     RequestInstallMissingMediaPlugins(String details, String description)
493 #endif
494
495     DidRestoreScrollPosition()
496
497     GetLoadDecisionForIcon(struct WebCore::LinkIcon icon, WebKit::CallbackID callbackID)
498     FinishedLoadingIcon(WebKit::CallbackID callbackID, IPC::DataReference data);
499
500 #if PLATFORM(MAC)
501     DidHandleAcceptedCandidate()
502 #endif
503
504     SetIsUsingHighPerformanceWebGL(bool isUsingHighPerformanceWebGL)
505
506     StartURLSchemeTask(struct WebKit::URLSchemeTaskParameters parameters)
507     StopURLSchemeTask(uint64_t handlerIdentifier, uint64_t taskIdentifier)
508
509 #if HAVE(CFNETWORK_STORAGE_PARTITIONING)
510     HasStorageAccess(String subFrameHost, String topFrameHost, uint64_t frameID, uint64_t pageID, uint64_t contextID)
511     RequestStorageAccess(String subFrameHost, String topFrameHost, uint64_t frameID, uint64_t pageID, uint64_t contextID)
512 #endif
513
514 #if ENABLE(ATTACHMENT_ELEMENT)
515     DidInsertAttachment(String identifier, String source)
516     DidRemoveAttachment(String identifier)
517 #endif
518
519 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
520     StartDisplayLink(unsigned observerID)
521     StopDisplayLink(unsigned observerID)
522 #endif
523 }