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