afa1d67bb10130482a28c89db2e65077e7bb1472
[WebKit-https.git] / Source / WebKit / UIProcess / WebPageProxy.messages.in
1 # Copyright (C) 2010-2019 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, Optional<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(URL url) -> (uint32_t loadPolicy) Delayed
38     ResolveWebGLPolicyForURL(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_FAMILY)
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     AccessibilityScreenToRootView(WebCore::IntPoint screenPoint) -> (WebCore::IntPoint windowPoint) LegacySync
65     RootViewToAccessibilityScreen(WebCore::IntRect rect) -> (WebCore::IntRect screenFrame) LegacySync
66
67 #if PLATFORM(COCOA)
68     ShowValidationMessage(WebCore::IntRect anchorRect, String message)
69     HideValidationMessage()
70 #endif
71
72     RunBeforeUnloadConfirmPanel(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message) -> (bool shouldClose) Delayed
73     PageDidScroll()
74     RunOpenPanel(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, struct WebCore::FileChooserSettings parameters)
75     ShowShareSheet(struct WebCore::ShareDataWithParsedURL shareData, uint64_t callbackID)
76     PrintFrame(uint64_t frameID) -> () LegacySync
77     RunModal()
78     NotifyScrollerThumbIsVisibleInRect(WebCore::IntRect scrollerThumb)
79     RecommendedScrollbarStyleDidChange(int32_t newStyle)
80     DidChangeScrollbarsForMainFrame(bool hasHorizontalScrollbar, bool hasVerticalScrollbar)
81     DidChangeScrollOffsetPinningForMainFrame(bool pinnedToLeftSide, bool pinnedToRightSide, bool pinnedToTopSide, bool pinnedToBottomSide)
82     DidChangePageCount(unsigned pageCount)
83     PageExtendedBackgroundColorDidChange(WebCore::Color backgroundColor)
84 #if ENABLE(NETSCAPE_PLUGIN_API)
85     DidFailToInitializePlugin(String mimeType, String frameURLString, String pageURLString)
86     DidBlockInsecurePluginVersion(String mimeType, String pluginURLString, String frameURLString, String pageURLString, bool replacementObscured)
87 #endif // ENABLE(NETSCAPE_PLUGIN_API)
88     SetCanShortCircuitHorizontalWheelEvents(bool canShortCircuitHorizontalWheelEvents)
89
90     DidChangeContentSize(WebCore::IntSize newSize)
91
92 #if ENABLE(INPUT_TYPE_COLOR)
93     ShowColorPicker(WebCore::Color initialColor, WebCore::IntRect elementRect, Vector<WebCore::Color> suggestions);
94     SetColorPickerColor(WebCore::Color color);
95     EndColorPicker();
96 #endif
97
98 #if ENABLE(DATALIST_ELEMENT)
99     ShowDataListSuggestions(struct WebCore::DataListSuggestionInformation suggestionInformation);
100     HandleKeydownInDataList(String key);
101     EndDataListSuggestions();
102 #endif
103
104     # Policy messages
105     DecidePolicyForResponse(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, WebCore::PolicyCheckIdentifier policyCheckIdentifier, uint64_t navigationID, WebCore::ResourceResponse response, WebCore::ResourceRequest request, bool canShowMIMEType, uint64_t listenerID, WebKit::UserData userData)
106     DecidePolicyForNavigationActionAsync(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, WebCore::PolicyCheckIdentifier policyCheckIdentifier, uint64_t navigationID, struct WebKit::NavigationActionData navigationActionData, struct WebKit::FrameInfoData originatingFrameInfoData, uint64_t originatingPageID, WebCore::ResourceRequest originalRequest, WebCore::ResourceRequest request, IPC::FormDataReference requestBody, WebCore::ResourceResponse redirectResponse, WebKit::UserData userData, uint64_t listenerID)
107     DecidePolicyForNavigationActionSync(uint64_t frameID, bool isMainFrame, struct WebCore::SecurityOriginData frameSecurityOrigin, WebCore::PolicyCheckIdentifier policyCheckIdentifier, uint64_t navigationID, struct WebKit::NavigationActionData navigationActionData, struct WebKit::FrameInfoData originatingFrameInfoData, uint64_t originatingPageID, WebCore::ResourceRequest originalRequest, WebCore::ResourceRequest request, IPC::FormDataReference requestBody, WebCore::ResourceResponse redirectResponse, WebKit::UserData userData) -> (WebCore::PolicyCheckIdentifier policyCheckIdentifier, enum:uint8_t WebCore::PolicyAction policyAction, uint64_t newNavigationID, WebKit::DownloadID downloadID, Optional<WebKit::WebsitePoliciesData> websitePolicies) Delayed
108     DecidePolicyForNewWindowAction(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, WebCore::PolicyCheckIdentifier policyCheckIdentifier, struct WebKit::NavigationActionData navigationActionData, WebCore::ResourceRequest request, String frameName, uint64_t listenerID, WebKit::UserData userData)
109     UnableToImplementPolicy(uint64_t frameID, WebCore::ResourceError error, WebKit::UserData userData)
110
111     # Progress messages
112     DidChangeProgress(double value)
113     DidFinishProgress()
114     DidStartProgress()
115
116     SetNetworkRequestsInProgress(bool networkRequestsInProgress)
117
118     # Frame lifetime messages
119     DidCreateMainFrame(uint64_t frameID)
120     DidCreateSubframe(uint64_t frameID)
121
122     DidCreateWindow(uint64_t frameID, struct WebCore::GlobalWindowIdentifier windowIdentifier)
123
124     # Frame load messages
125     DidStartProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, URL url, URL unreachableURL, WebKit::UserData userData)
126     DidReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, WebCore::ResourceRequest request, WebKit::UserData userData)
127     WillPerformClientRedirectForFrame(uint64_t frameID, String url, double delay, enum:bool WebCore::LockBackForwardList lockBackForwardList)
128     DidCancelClientRedirectForFrame(uint64_t frameID)
129     DidChangeProvisionalURLForFrame(uint64_t frameID, uint64_t navigationID, URL url)
130     DidFailProvisionalLoadForFrame(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, uint64_t navigationID, String provisionalURL, WebCore::ResourceError error, WebKit::UserData userData)
131     DidCommitLoadForFrame(uint64_t frameID, uint64_t navigationID, String mimeType, bool hasCustomContentProvider, uint32_t loadType, WebCore::CertificateInfo certificateInfo, bool containsPluginDocument, Optional<WebCore::HasInsecureContent> forcedHasInsecureContent, WebKit::UserData userData)
132     DidFailLoadForFrame(uint64_t frameID, uint64_t navigationID, WebCore::ResourceError error, WebKit::UserData userData)
133     DidFinishDocumentLoadForFrame(uint64_t frameID, uint64_t navigationID, WebKit::UserData userData)
134     DidFinishLoadForFrame(uint64_t frameID, uint64_t navigationID, WebKit::UserData userData)
135     DidFirstLayoutForFrame(uint64_t frameID, WebKit::UserData userData)
136     DidFirstVisuallyNonEmptyLayoutForFrame(uint64_t frameID, WebKit::UserData userData)
137     DidReachLayoutMilestone(OptionSet<WebCore::LayoutMilestone> layoutMilestones)
138     DidReceiveTitleForFrame(uint64_t frameID, String title, WebKit::UserData userData)
139     DidDisplayInsecureContentForFrame(uint64_t frameID, WebKit::UserData userData)
140     DidRunInsecureContentForFrame(uint64_t frameID, WebKit::UserData userData)
141     DidDetectXSSForFrame(uint64_t frameID, WebKit::UserData userData)
142     DidSameDocumentNavigationForFrame(uint64_t frameID, uint64_t navigationID, uint32_t type, URL url, WebKit::UserData userData)
143     DidChangeMainDocument(uint64_t frameID);
144     DidDestroyNavigation(uint64_t navigationID)
145
146     HasInsecureContent() -> (enum:bool WebCore::HasInsecureContent hasInsecureContent) LegacySync
147
148     MainFramePluginHandlesPageScaleGestureDidChange(bool mainFramePluginHandlesPageScaleGesture)
149
150     FrameDidBecomeFrameSet(uint64_t frameID, bool value)
151
152     # History client messages.
153     DidNavigateWithNavigationData(struct WebKit::WebNavigationDataStore store, uint64_t frameID)
154     DidPerformClientRedirect(String sourceURLString, String destinationURLString, uint64_t frameID)
155     DidPerformServerRedirect(String sourceURLString, String destinationURLString, uint64_t frameID)
156     DidUpdateHistoryTitle(String title, String url, uint64_t frameID)
157
158     # Custom representations
159     DidFinishLoadingDataForCustomContentProvider(String suggestedFilename, IPC::DataReference data)
160
161     # Forms messages
162     WillSubmitForm(uint64_t frameID, uint64_t sourceFrameID, Vector<std::pair<String, String>> textFieldValues, uint64_t listenerID, WebKit::UserData userData)
163
164     # Callback messages
165     VoidCallback(WebKit::CallbackID callbackID)
166     DataCallback(IPC::SharedBufferDataReference resultData, WebKit::CallbackID callbackID)
167     ImageCallback(WebKit::ShareableBitmap::Handle bitmapHandle, WebKit::CallbackID callbackID)
168     StringCallback(String resultString, WebKit::CallbackID callbackID)
169     InvalidateStringCallback(WebKit::CallbackID callbackID)
170     ScriptValueCallback(IPC::DataReference resultData, bool hadException, struct WebCore::ExceptionDetails details, WebKit::CallbackID callbackID)
171     ComputedPagesCallback(Vector<WebCore::IntRect> pageRects, double totalScaleFactorForPrinting, WebKit::CallbackID callbackID)
172     ValidateCommandCallback(String command, bool isEnabled, int32_t state, WebKit::CallbackID callbackID)
173     EditingRangeCallback(struct WebKit::EditingRange range, WebKit::CallbackID callbackID)
174     UnsignedCallback(uint64_t result, WebKit::CallbackID callbackID)
175     RectForCharacterRangeCallback(WebCore::IntRect rect, struct WebKit::EditingRange actualRange, WebKit::CallbackID callbackID)
176 #if ENABLE(APPLICATION_MANIFEST)
177     ApplicationManifestCallback(Optional<WebCore::ApplicationManifest> manifest, WebKit::CallbackID callbackID)
178 #endif
179 #if PLATFORM(MAC)
180     AttributedStringForCharacterRangeCallback(struct WebKit::AttributedString string, struct WebKit::EditingRange actualRange, WebKit::CallbackID callbackID)
181     FontAtSelectionCallback(String fontName, double fontSize, bool selectioHasMultipleFonts, WebKit::CallbackID callbackID)
182 #endif
183     FontAttributesCallback(struct WebCore::FontAttributes attributes, WebKit::CallbackID callbackID)
184 #if PLATFORM(IOS_FAMILY)
185     GestureCallback(WebCore::IntPoint point, uint32_t gestureType, uint32_t gestureState, uint32_t flags, WebKit::CallbackID callbackID)
186     TouchesCallback(WebCore::IntPoint point, uint32_t touches, uint32_t flags, WebKit::CallbackID callbackID)
187     AutocorrectionDataCallback(Vector<WebCore::FloatRect> textRects, String fontName, double fontSize, uint64_t traits, WebKit::CallbackID callbackID)
188     AutocorrectionContextCallback(struct WebKit::WebAutocorrectionContext context, WebKit::CallbackID callbackID)
189     SelectionContextCallback(String selectedText, String beforeText, String afterText, WebKit::CallbackID callbackID)
190     InterpretKeyEvent(struct WebKit::EditorState state, bool isCharEvent) -> (bool handled) LegacySync
191     DidReceivePositionInformation(struct WebKit::InteractionInformationAtPosition information)
192     SaveImageToLibrary(WebKit::SharedMemory::Handle handle, uint64_t size)
193     ShowPlaybackTargetPicker(bool hasVideo, WebCore::IntRect elementRect, enum:uint8_t WebCore::RouteSharingPolicy policy, String routingContextUID)
194     CommitPotentialTapFailed()
195     DidNotHandleTapAsClick(WebCore::IntPoint point)
196     DidCompleteSyntheticClick()
197     DisableDoubleTapGesturesDuringTapIfNecessary(uint64_t requestID)
198     DrawToPDFCallback(IPC::DataReference pdfData, WebKit::CallbackID callbackID)
199     SelectionRectsCallback(Vector<WebCore::SelectionRect> selectionRects, WebKit::CallbackID callbackID);
200 #endif
201 #if ENABLE(DATA_DETECTION)
202     SetDataDetectionResult(struct WebKit::DataDetectionResult dataDetectionResult)
203 #endif
204 #if PLATFORM(GTK)
205     PrintFinishedCallback(WebCore::ResourceError error, WebKit::CallbackID callbackID)
206 #endif
207 #if PLATFORM(COCOA)
208     MachSendRightCallback(MachSendRight sendRight, WebKit::CallbackID callbackID)
209     NowPlayingInfoCallback(bool active, bool registeredAsNowPlayingApplication, String title, double duration, double elapsedTime, uint64_t uniqueIdentifier, WebKit::CallbackID callbackID)
210 #endif
211
212     PageScaleFactorDidChange(double scaleFactor)
213     PluginScaleFactorDidChange(double zoomFactor)
214     PluginZoomFactorDidChange(double zoomFactor)
215
216 #if PLATFORM(GTK)
217     # Support for connecting the Accessibility worlds of the UI and the Web processes
218     BindAccessibilityTree(String plugID)
219
220     SetInputMethodState(bool enabled);
221 #endif
222
223     # BackForward messages
224     BackForwardAddItem(struct WebKit::BackForwardListItemState itemState)
225     BackForwardGoToItem(struct WebCore::BackForwardItemIdentifier itemID) -> (WebKit::SandboxExtension::Handle sandboxExtensionHandle) LegacySync
226     BackForwardItemAtIndex(int32_t itemIndex) -> (Optional<WebCore::BackForwardItemIdentifier> itemID) LegacySync
227     BackForwardBackListCount() -> (uint32_t count) LegacySync
228     BackForwardForwardListCount() -> (uint32_t count) LegacySync
229     BackForwardClear()
230     WillGoToBackForwardListItem(struct WebCore::BackForwardItemIdentifier itemID, bool inPageCache)
231
232     # Undo/Redo messages
233     RegisterEditCommandForUndo(uint64_t commandID, String label)
234     ClearAllEditCommands()
235     RegisterInsertionUndoGrouping()
236     CanUndoRedo(enum:bool WebKit::UndoOrRedo undoOrRedo) -> (bool result) LegacySync
237     ExecuteUndoRedo(enum:bool WebKit::UndoOrRedo undoOrRedo) -> () LegacySync
238
239     # Diagnostic messages logging
240     LogDiagnosticMessage(String message, String description, enum:bool WebCore::ShouldSample shouldSample)
241     LogDiagnosticMessageWithResult(String message, String description, uint32_t result, enum:bool WebCore::ShouldSample shouldSample)
242     LogDiagnosticMessageWithValue(String message, String description, double value, unsigned significantFigures, enum:bool WebCore::ShouldSample shouldSample)
243     LogDiagnosticMessageWithEnhancedPrivacy(String message, String description, enum:bool WebCore::ShouldSample shouldSample)
244
245     # Performance logging
246     LogScrollingEvent(uint32_t eventType, MonotonicTime timestamp, uint64_t data)
247
248     # Editor notifications
249     EditorStateChanged(struct WebKit::EditorState editorState)
250     CompositionWasCanceled()
251     SetHasHadSelectionChangesFromUserInteraction(bool hasHadUserSelectionChanges)
252     SetNeedsHiddenContentEditableQuirk(bool needsHiddenContentEditableQuirk)
253     SetNeedsPlainTextQuirk(bool needsPlainTextQuirk)
254     RequestDOMPasteAccess(WebCore::IntRect elementRect, String originIdentifier) -> (enum:uint8_t WebCore::DOMPasteAccessResponse response) Delayed
255
256     # Find messages
257     DidCountStringMatches(String string, uint32_t matchCount)
258     SetTextIndicator(struct WebCore::TextIndicatorData indicator, uint64_t lifetime)
259     ClearTextIndicator()
260     DidFindString(String string, Vector<WebCore::IntRect> matchRect, uint32_t matchCount, int32_t matchIndex, bool didWrapAround)
261     DidFailToFindString(String string)
262     DidFindStringMatches(String string, Vector<Vector<WebCore::IntRect>> matches, int32_t firstIndexAfterSelection)
263     DidGetImageForFindMatch(WebKit::ShareableBitmap::Handle contentImageHandle, uint32_t matchIndex)
264
265     # PopupMenu messages
266     ShowPopupMenu(WebCore::IntRect rect, uint64_t textDirection, Vector<WebKit::WebPopupItem> items, int32_t selectedIndex, struct WebKit::PlatformPopupMenuData data)
267     HidePopupMenu()
268
269 #if ENABLE(CONTEXT_MENUS)
270     ShowContextMenu(WebKit::ContextMenuContextData contextMenuContextData, WebKit::UserData userData)
271 #endif
272
273     # Database messages
274     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
275
276     # Application cache messages
277     ReachedApplicationCacheOriginQuota(String originIdentifier, uint64_t currentQuota, uint64_t totalBytesNeeded) -> (uint64_t newQuota) Delayed
278
279     # Geolocation messages
280     RequestGeolocationPermissionForFrame(uint64_t geolocationID, uint64_t frameID, String originIdentifier)
281     
282 #if ENABLE(MEDIA_STREAM)
283     # MediaSteam messages
284     RequestUserMediaPermissionForFrame(uint64_t userMediaID, uint64_t frameID, struct WebCore::SecurityOriginData userMediaDocumentOriginIdentifier, struct WebCore::SecurityOriginData topLevelDocumentOriginIdentifier, struct WebCore::MediaStreamRequest request)
285     EnumerateMediaDevicesForFrame(uint64_t userMediaID, uint64_t frameID, struct WebCore::SecurityOriginData userMediaDocumentOriginIdentifier, struct WebCore::SecurityOriginData topLevelDocumentOriginIdentifier)
286     BeginMonitoringCaptureDevices()
287 #endif
288
289     # Notification messages
290     RequestNotificationPermission(uint64_t requestID, String originIdentifier)
291     ShowNotification(String title, String body, String iconURL, String tag, String lang, enum:uint8_t WebCore::NotificationDirection dir, String originIdentifier, uint64_t notificationID)
292     CancelNotification(uint64_t notificationID)
293     ClearNotifications(Vector<uint64_t> notificationIDs)
294     DidDestroyNotification(uint64_t notificationID)
295
296     # Spelling and grammar messages
297 #if USE(UNIFIED_TEXT_CHECKING)  
298     CheckTextOfParagraph(String text, OptionSet<WebCore::TextCheckingType> checkingTypes, int32_t insertionPoint) -> (Vector<WebCore::TextCheckingResult> results) LegacySync
299 #endif
300     CheckSpellingOfString(String text) -> (int32_t misspellingLocation, int32_t misspellingLength) LegacySync
301     CheckGrammarOfString(String text) -> (Vector<WebCore::GrammarDetail> results, int32_t badGrammarLocation, int32_t badGrammarLength) LegacySync
302     SpellingUIIsShowing() -> (bool isShowing) LegacySync
303     UpdateSpellingUIWithMisspelledWord(String misspelledWord)
304     UpdateSpellingUIWithGrammarString(String badGrammarPhrase, struct WebCore::GrammarDetail grammarDetail)
305     GetGuessesForWord(String word, String context, int32_t insertionPoint) -> (Vector<String> guesses) LegacySync
306     LearnWord(String word)
307     IgnoreWord(String word)
308     RequestCheckingOfString(uint64_t requestID, WebCore::TextCheckingRequestData request, int32_t insertionPoint)
309
310     # Drag and drop messages
311 #if ENABLE(DRAG_SUPPORT)
312     DidPerformDragControllerAction(uint64_t dragOperation, enum:uint8_t WebCore::DragHandlingMethod dragHandlingMethod, bool mouseIsOverFileInput, unsigned numberOfItemsToBeAccepted, WebCore::IntRect insertionRect, WebCore::IntRect editableElementRect)
313     DidEndDragging();
314 #endif
315 #if PLATFORM(COCOA) && ENABLE(DRAG_SUPPORT)
316     StartDrag(struct WebCore::DragItem dragItem, WebKit::ShareableBitmap::Handle dragImage)
317     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)
318 #endif
319 #if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
320     StartDrag(struct WebKit::WebSelectionData selection, uint64_t dragOperation, WebKit::ShareableBitmap::Handle dragImage)
321 #endif
322
323 #if ENABLE(DRAG_SUPPORT)
324     DidPerformDragOperation(bool handled)
325 #endif
326
327 #if ENABLE(DATA_INTERACTION)
328     DidHandleDragStartRequest(bool started)
329     DidHandleAdditionalDragItemsRequest(bool added)
330     DidConcludeEditDrag(Optional<WebCore::TextIndicatorData> textIndicator)
331 #endif
332
333 #if PLATFORM(COCOA)
334     # Dictionary support.
335     DidPerformDictionaryLookup(struct WebCore::DictionaryPopupInfo dictionaryPopupInfo)
336
337     # Keyboard input support messages
338     ExecuteSavedCommandBySelector(String selector) -> (bool handled) LegacySync
339
340     # Remote accessibility messages
341     RegisterWebProcessAccessibilityToken(IPC::DataReference data)
342
343     # Plug-in complex text input support messages
344     PluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus)
345     SetPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, uint64_t complexTextInputState)
346
347     # Speech messages
348     GetIsSpeaking() -> (bool isSpeaking) LegacySync
349     Speak(String string)
350     StopSpeaking()
351
352     MakeFirstResponder()
353     AssistiveTechnologyMakeFirstResponder()
354
355     # Spotlight
356     SearchWithSpotlight(String string)
357
358     SearchTheWeb(String string)
359
360     TouchBarMenuDataChanged(WebKit::TouchBarMenuData touchBarMenuData)
361     TouchBarMenuItemDataAdded(struct WebKit::TouchBarMenuItemData touchBarMenuItemData)
362     TouchBarMenuItemDataRemoved(struct WebKit::TouchBarMenuItemData touchBarMenuItemData)
363 #endif
364
365 #if USE(APPKIT)
366     SubstitutionsPanelIsShowing() -> (bool isShowing) LegacySync
367 #endif
368 #if USE(AUTOMATIC_TEXT_REPLACEMENT)
369     toggleSmartInsertDelete()
370     toggleAutomaticQuoteSubstitution()
371     toggleAutomaticLinkDetection()
372     toggleAutomaticDashSubstitution()
373     toggleAutomaticTextReplacement()
374 #endif
375 #if PLATFORM(MAC)
376     # Autocorrection messages
377     ShowCorrectionPanel(int32_t panelType, WebCore::FloatRect boundingBoxOfReplacedString, String replacedString, String replacementString, Vector<String> alternativeReplacementStrings)
378     DismissCorrectionPanel(int32_t reason)
379     DismissCorrectionPanelSoon(int32_t reason) -> (String result) LegacySync
380     RecordAutocorrectionResponse(int32_t response, String replacedString, String replacementString);
381
382     SetEditableElementIsFocused(bool editableElementIsFocused)
383 #endif
384
385 #if USE(DICTATION_ALTERNATIVES)
386     ShowDictationAlternativeUI(WebCore::FloatRect boundingBoxOfDictatedText, uint64_t dictationContext)
387     RemoveDictationAlternatives(uint64_t dictationContext)
388     DictationAlternatives(uint64_t dictationContext) -> (Vector<String> alternatives) LegacySync
389 #endif
390
391 #if PLATFORM(X11)
392     # X11 windowed plugin messages
393     CreatePluginContainer() -> (uint64_t windowID) LegacySync
394     WindowedPluginGeometryDidChange(WebCore::IntRect frameRect, WebCore::IntRect clipRect, uint64_t windowID)
395     WindowedPluginVisibilityDidChange(bool isVisible, uint64_t windowID)
396 #endif
397
398 #if PLATFORM(IOS_FAMILY)
399     CouldNotRestorePageState()
400     RestorePageState(Optional<WebCore::FloatPoint> scrollPosition, WebCore::FloatPoint scrollOrigin, WebCore::RectEdges<float> obscuredInsetsOnSave, double scale)
401     RestorePageCenterAndScale(Optional<WebCore::FloatPoint> unobscuredCenter, double scale)
402     DidGetTapHighlightGeometries(uint64_t requestID, WebCore::Color color, Vector<WebCore::FloatQuad> geometries, WebCore::IntSize topLeftRadius, WebCore::IntSize topRightRadius, WebCore::IntSize bottomLeftRadius, WebCore::IntSize bottomRightRadius, bool nodeHasBuiltInClickHandling)
403
404     ElementDidFocus(struct WebKit::FocusedElementInformation information, bool userIsInteracting, bool blurPreviousNode, bool changingActivityState, WebKit::UserData userData)
405     ElementDidBlur()
406     FocusedElementDidChangeInputMode(enum:uint8_t WebCore::InputMode mode)
407     ScrollingNodeScrollWillStartScroll()
408     ScrollingNodeScrollDidEndScroll()
409     ShowInspectorHighlight(struct WebCore::Highlight highlight)
410     HideInspectorHighlight()
411     FocusedElementInformationCallback(struct WebKit::FocusedElementInformation information, WebKit::CallbackID callbackID)
412
413     ShowInspectorIndication()
414     HideInspectorIndication()
415
416     EnableInspectorNodeSearch()
417     DisableInspectorNodeSearch()
418
419     UpdateStringForFind(String findString)
420     HandleAutocorrectionContext(struct WebKit::WebAutocorrectionContext context)
421 #endif
422
423     DidChangeInspectorFrontendCount(uint64_t count)
424
425     CreateInspectorTarget(String targetId, enum:uint8_t Inspector::InspectorTargetType type)
426     DestroyInspectorTarget(String targetId)
427     SendMessageToInspectorFrontend(String targetId, String message)
428
429     # Search popup menus
430     SaveRecentSearches(String name, Vector<WebCore::RecentSearch> searchItems)
431     LoadRecentSearches(String name) -> (Vector<WebCore::RecentSearch> result) LegacySync
432
433     SavePDFToFileInDownloadsFolder(String suggestedFilename, URL originatingURL, IPC::DataReference data)
434
435 #if PLATFORM(COCOA)
436     SavePDFToTemporaryFolderAndOpenWithNativeApplication(String suggestedFilename, String originatingURLString, IPC::DataReference data, String pdfUUID)
437     OpenPDFFromTemporaryFolderWithNativeApplication(String pdfUUID)
438 #endif
439
440 #if ENABLE(PDFKIT_PLUGIN)
441     ShowPDFContextMenu(struct WebKit::PDFContextMenu contextMenu) -> (Optional<int32_t> selectedItem) LegacySync
442 #endif
443
444 #if ENABLE(NETSCAPE_PLUGIN_API)
445     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) Delayed
446 #endif
447
448     DidUpdateActivityState()
449
450     DidSaveToPageCache()
451
452 #if ENABLE(WEB_CRYPTO)
453     WrapCryptoKey(Vector<uint8_t> key) -> (bool succeeded, Vector<uint8_t> wrappedKey) LegacySync
454     UnwrapCryptoKey(Vector<uint8_t> wrappedKey) -> (bool succeeded, Vector<uint8_t> key) LegacySync
455 #endif
456
457
458 #if ENABLE(TELEPHONE_NUMBER_DETECTION)
459 #if PLATFORM(MAC)
460     ShowTelephoneNumberMenu(String telephoneNumber, WebCore::IntPoint point)
461 #endif
462 #endif
463
464 #if USE(QUICK_LOOK)
465     DidStartLoadForQuickLookDocumentInMainFrame(String fileName, String uti)
466     DidFinishLoadForQuickLookDocumentInMainFrame(WebKit::QuickLookDocumentData data)
467     DidRequestPasswordForQuickLookDocumentInMainFrame(String fileName)
468 #endif
469
470 #if ENABLE(CONTENT_FILTERING)
471     ContentFilterDidBlockLoadForFrame(WebCore::ContentFilterUnblockHandler unblockHandler, uint64_t frameID)
472 #endif
473
474     IsPlayingMediaDidChange(unsigned state, uint64_t sourceElementID)
475     HandleAutoplayEvent(enum:uint8_t WebCore::AutoplayEvent event, OptionSet<WebCore::AutoplayEventFlags> flags)
476
477 #if ENABLE(MEDIA_SESSION)
478     HasMediaSessionWithActiveMediaElementsDidChange(bool state)
479     MediaSessionMetadataDidChange(WebCore::MediaSessionMetadata metadata);
480     FocusedContentMediaElementDidChange(uint64_t elementID)
481 #endif
482
483 #if PLATFORM(MAC)
484     DidPerformImmediateActionHitTest(struct WebKit::WebHitTestResultData result, bool contentPreventsDefault, WebKit::UserData userData)
485 #endif
486     HandleMessage(String messageName, WebKit::UserData messageBody) WantsConnection
487     HandleSynchronousMessage(String messageName, WebKit::UserData messageBody) -> (WebKit::UserData returnData) LegacySync WantsConnection
488
489     HandleAutoFillButtonClick(WebKit::UserData userData)
490
491     DidResignInputElementStrongPasswordAppearance(WebKit::UserData userData)
492
493     ContentRuleListNotification(URL url, Vector<String> identifiers, Vector<String> notifications)
494
495 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
496     AddPlaybackTargetPickerClient(uint64_t contextId)
497     RemovePlaybackTargetPickerClient(uint64_t contextId)
498     ShowPlaybackTargetPicker(uint64_t clientId, WebCore::FloatRect pickerLocation, bool hasVideo)
499     PlaybackTargetPickerClientStateDidChange(uint64_t contextId, unsigned mediaState)
500     SetMockMediaPlaybackTargetPickerEnabled(bool enabled)
501     SetMockMediaPlaybackTargetPickerState(String name, unsigned pickerState)
502 #endif
503
504 #if ENABLE(POINTER_LOCK)
505     RequestPointerLock()
506     RequestPointerUnlock()
507 #endif
508
509     DidFailToSuspendAfterProcessSwap()
510     DidSuspendAfterProcessSwap()
511
512     ImageOrMediaDocumentSizeChanged(WebCore::IntSize newSize)
513
514     UseFixedLayoutDidChange(bool useFixedLayout)
515     FixedLayoutSizeDidChange(WebCore::IntSize fixedLayoutSize)
516
517 #if ENABLE(VIDEO) && USE(GSTREAMER)
518     RequestInstallMissingMediaPlugins(String details, String description)
519 #endif
520
521     DidRestoreScrollPosition()
522
523     GetLoadDecisionForIcon(struct WebCore::LinkIcon icon, WebKit::CallbackID callbackID)
524     FinishedLoadingIcon(WebKit::CallbackID callbackID, IPC::DataReference data);
525
526 #if PLATFORM(MAC)
527     DidHandleAcceptedCandidate()
528 #endif
529
530     SetIsUsingHighPerformanceWebGL(bool isUsingHighPerformanceWebGL)
531
532     StartURLSchemeTask(struct WebKit::URLSchemeTaskParameters parameters)
533     StopURLSchemeTask(uint64_t handlerIdentifier, uint64_t taskIdentifier)
534     LoadSynchronousURLSchemeTask(struct WebKit::URLSchemeTaskParameters parameters) -> (WebCore::ResourceResponse response, WebCore::ResourceError error, IPC::DataReference data) Delayed
535
536 #if ENABLE(ATTACHMENT_ELEMENT)
537     RegisterAttachmentIdentifierFromData(String identifier, String contentType, String preferredFileName, IPC::SharedBufferDataReference data)
538     RegisterAttachmentIdentifierFromFilePath(String identifier, String contentType, String filePath)
539     RegisterAttachmentIdentifier(String identifier)
540     registerAttachmentsFromSerializedData(Vector<WebCore::SerializedAttachmentData> data)
541     CloneAttachmentData(String fromIdentifier, String toIdentifier)
542     DidInsertAttachmentWithIdentifier(String identifier, String source, bool hasEnclosingImage)
543     DidRemoveAttachmentWithIdentifier(String identifier)
544     SerializedAttachmentDataForIdentifiers(Vector<String> identifiers) -> (Vector<WebCore::SerializedAttachmentData> seralizedData) LegacySync
545 #endif
546
547     SignedPublicKeyAndChallengeString(unsigned keySizeIndex, String challengeString, URL url) -> (String result) LegacySync
548
549 }