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