[iOS] Input field on ddg.gg is auto focused when url is entered with the software...
[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) Synchronous
26     ShowPage()
27     ClosePage(bool stopResponsivenessTimer)
28     RunJavaScriptAlert(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message) -> () Synchronous
29     RunJavaScriptConfirm(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message) -> (bool result) Synchronous
30     RunJavaScriptPrompt(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, String message, String defaultValue) -> (String result) Synchronous
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) Synchronous
38     ResolveWebGLPolicyForURL(URL url) -> (uint32_t loadPolicy) Synchronous
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) Synchronous
55     SetMenuBarIsVisible(bool menuBarIsVisible)
56     GetMenuBarIsVisible() -> (bool menuBarIsVisible) Synchronous
57     SetStatusBarIsVisible(bool statusBarIsVisible)
58     GetStatusBarIsVisible() -> (bool statusBarIsVisible) Synchronous
59     SetIsResizable(bool isResizable)
60     SetWindowFrame(WebCore::FloatRect windowFrame)
61     GetWindowFrame() -> (WebCore::FloatRect windowFrame) Synchronous
62     ScreenToRootView(WebCore::IntPoint screenPoint) -> (WebCore::IntPoint windowPoint) Synchronous
63     RootViewToScreen(WebCore::IntRect rect) -> (WebCore::IntRect screenFrame) Synchronous
64     AccessibilityScreenToRootView(WebCore::IntPoint screenPoint) -> (WebCore::IntPoint windowPoint) Synchronous
65     RootViewToAccessibilityScreen(WebCore::IntRect rect) -> (WebCore::IntRect screenFrame) Synchronous
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) Synchronous
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) -> () Synchronous
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, String downloadAttribute, 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) Synchronous
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, enum:bool WebCore::WillContinueLoading willContinueLoading, 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     DidExplicitOpenForFrame(uint64_t frameID, URL url)
145     DidDestroyNavigation(uint64_t navigationID)
146
147     HasInsecureContent() -> (enum:bool WebCore::HasInsecureContent hasInsecureContent) Synchronous
148
149     MainFramePluginHandlesPageScaleGestureDidChange(bool mainFramePluginHandlesPageScaleGesture)
150
151     FrameDidBecomeFrameSet(uint64_t frameID, bool value)
152
153     # History client messages.
154     DidNavigateWithNavigationData(struct WebKit::WebNavigationDataStore store, uint64_t frameID)
155     DidPerformClientRedirect(String sourceURLString, String destinationURLString, uint64_t frameID)
156     DidPerformServerRedirect(String sourceURLString, String destinationURLString, uint64_t frameID)
157     DidUpdateHistoryTitle(String title, String url, uint64_t frameID)
158
159     # Custom representations
160     DidFinishLoadingDataForCustomContentProvider(String suggestedFilename, IPC::DataReference data)
161
162     # Forms messages
163     WillSubmitForm(uint64_t frameID, uint64_t sourceFrameID, Vector<std::pair<String, String>> textFieldValues, uint64_t listenerID, WebKit::UserData userData)
164
165     # Callback messages
166     VoidCallback(WebKit::CallbackID callbackID)
167     DataCallback(IPC::SharedBufferDataReference resultData, WebKit::CallbackID callbackID)
168     ImageCallback(WebKit::ShareableBitmap::Handle bitmapHandle, WebKit::CallbackID callbackID)
169     StringCallback(String resultString, WebKit::CallbackID callbackID)
170     InvalidateStringCallback(WebKit::CallbackID callbackID)
171     ScriptValueCallback(IPC::DataReference resultData, bool hadException, struct WebCore::ExceptionDetails details, WebKit::CallbackID callbackID)
172     ComputedPagesCallback(Vector<WebCore::IntRect> pageRects, double totalScaleFactorForPrinting, WebCore::RectEdges<float> computedPageMargin, WebKit::CallbackID callbackID)
173     ValidateCommandCallback(String command, bool isEnabled, int32_t state, WebKit::CallbackID callbackID)
174     EditingRangeCallback(struct WebKit::EditingRange range, WebKit::CallbackID callbackID)
175     UnsignedCallback(uint64_t result, WebKit::CallbackID callbackID)
176     RectForCharacterRangeCallback(WebCore::IntRect rect, struct WebKit::EditingRange actualRange, WebKit::CallbackID callbackID)
177 #if ENABLE(APPLICATION_MANIFEST)
178     ApplicationManifestCallback(Optional<WebCore::ApplicationManifest> manifest, WebKit::CallbackID callbackID)
179 #endif
180 #if PLATFORM(MAC)
181     AttributedStringForCharacterRangeCallback(struct WebKit::AttributedString string, struct WebKit::EditingRange actualRange, WebKit::CallbackID callbackID)
182     FontAtSelectionCallback(String fontName, double fontSize, bool selectioHasMultipleFonts, WebKit::CallbackID callbackID)
183 #endif
184     FontAttributesCallback(struct WebCore::FontAttributes attributes, WebKit::CallbackID callbackID)
185 #if PLATFORM(IOS_FAMILY)
186     GestureCallback(WebCore::IntPoint point, uint32_t gestureType, uint32_t gestureState, uint32_t flags, WebKit::CallbackID callbackID)
187     TouchesCallback(WebCore::IntPoint point, uint32_t touches, uint32_t flags, WebKit::CallbackID callbackID)
188     AutocorrectionDataCallback(Vector<WebCore::FloatRect> textRects, String fontName, double fontSize, uint64_t traits, WebKit::CallbackID callbackID)
189     AutocorrectionContextCallback(struct WebKit::WebAutocorrectionContext context, WebKit::CallbackID callbackID)
190     SelectionContextCallback(String selectedText, String beforeText, String afterText, WebKit::CallbackID callbackID)
191     InterpretKeyEvent(struct WebKit::EditorState state, bool isCharEvent) -> (bool handled) Synchronous
192     DidReceivePositionInformation(struct WebKit::InteractionInformationAtPosition information)
193     SaveImageToLibrary(WebKit::SharedMemory::Handle handle, uint64_t size)
194     ShowPlaybackTargetPicker(bool hasVideo, WebCore::IntRect elementRect, enum:uint8_t WebCore::RouteSharingPolicy policy, String routingContextUID)
195     CommitPotentialTapFailed()
196     DidNotHandleTapAsClick(WebCore::IntPoint point)
197     DidCompleteSyntheticClick()
198     DisableDoubleTapGesturesDuringTapIfNecessary(uint64_t requestID)
199     HandleSmartMagnificationInformationForPotentialTap(uint64_t requestID, WebCore::FloatRect renderRect, bool fitEntireRect, double viewportMinimumScale, double viewportMaximumScale)
200     DrawToPDFCallback(IPC::DataReference pdfData, WebKit::CallbackID callbackID)
201     SelectionRectsCallback(Vector<WebCore::SelectionRect> selectionRects, WebKit::CallbackID callbackID);
202 #endif
203 #if ENABLE(DATA_DETECTION)
204     SetDataDetectionResult(struct WebKit::DataDetectionResult dataDetectionResult)
205 #endif
206 #if PLATFORM(GTK)
207     PrintFinishedCallback(WebCore::ResourceError error, WebKit::CallbackID callbackID)
208 #endif
209 #if PLATFORM(COCOA)
210     MachSendRightCallback(MachSendRight sendRight, WebKit::CallbackID callbackID)
211     NowPlayingInfoCallback(bool active, bool registeredAsNowPlayingApplication, String title, double duration, double elapsedTime, uint64_t uniqueIdentifier, WebKit::CallbackID callbackID)
212 #endif
213
214     PageScaleFactorDidChange(double scaleFactor)
215     PluginScaleFactorDidChange(double zoomFactor)
216     PluginZoomFactorDidChange(double zoomFactor)
217
218 #if PLATFORM(GTK)
219     # Support for connecting the Accessibility worlds of the UI and the Web processes
220     BindAccessibilityTree(String plugID)
221
222     SetInputMethodState(bool enabled);
223 #endif
224
225     # BackForward messages
226     BackForwardAddItem(struct WebKit::BackForwardListItemState itemState)
227     BackForwardGoToItem(struct WebCore::BackForwardItemIdentifier itemID) -> (WebKit::SandboxExtension::Handle sandboxExtensionHandle) Synchronous
228     BackForwardItemAtIndex(int32_t itemIndex) -> (Optional<WebCore::BackForwardItemIdentifier> itemID) Synchronous
229     BackForwardBackListCount() -> (uint32_t count) Synchronous
230     BackForwardForwardListCount() -> (uint32_t count) Synchronous
231     BackForwardClear()
232     WillGoToBackForwardListItem(struct WebCore::BackForwardItemIdentifier itemID, bool inPageCache)
233
234     # Undo/Redo messages
235     RegisterEditCommandForUndo(uint64_t commandID, String label)
236     ClearAllEditCommands()
237     RegisterInsertionUndoGrouping()
238     CanUndoRedo(enum:bool WebKit::UndoOrRedo undoOrRedo) -> (bool result) Synchronous
239     ExecuteUndoRedo(enum:bool WebKit::UndoOrRedo undoOrRedo) -> () Synchronous
240
241     # Diagnostic messages logging
242     LogDiagnosticMessage(String message, String description, enum:bool WebCore::ShouldSample shouldSample)
243     LogDiagnosticMessageWithResult(String message, String description, uint32_t result, enum:bool WebCore::ShouldSample shouldSample)
244     LogDiagnosticMessageWithValue(String message, String description, double value, unsigned significantFigures, enum:bool WebCore::ShouldSample shouldSample)
245     LogDiagnosticMessageWithEnhancedPrivacy(String message, String description, enum:bool WebCore::ShouldSample shouldSample)
246     LogDiagnosticMessageWithValueDictionary(String message, String description, WebCore::DiagnosticLoggingClient::ValueDictionary value, 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     SetIsTouchBarUpdateSupressedForHiddenContentEditable(bool isTouchBarUpdateSupressed)
256     SetIsNeverRichlyEditableForTouchBar(bool isNeverRichlyEditable)
257     RequestDOMPasteAccess(WebCore::IntRect elementRect, String originIdentifier) -> (enum:uint8_t WebCore::DOMPasteAccessResponse response) Synchronous
258
259     # Find messages
260     DidCountStringMatches(String string, uint32_t matchCount)
261     SetTextIndicator(struct WebCore::TextIndicatorData indicator, uint64_t lifetime)
262     ClearTextIndicator()
263     DidFindString(String string, Vector<WebCore::IntRect> matchRect, uint32_t matchCount, int32_t matchIndex, bool didWrapAround)
264     DidFailToFindString(String string)
265     DidFindStringMatches(String string, Vector<Vector<WebCore::IntRect>> matches, int32_t firstIndexAfterSelection)
266     DidGetImageForFindMatch(WebKit::ShareableBitmap::Handle contentImageHandle, uint32_t matchIndex)
267
268     # PopupMenu messages
269     ShowPopupMenu(WebCore::IntRect rect, uint64_t textDirection, Vector<WebKit::WebPopupItem> items, int32_t selectedIndex, struct WebKit::PlatformPopupMenuData data)
270     HidePopupMenu()
271
272 #if ENABLE(CONTEXT_MENUS)
273     ShowContextMenu(WebKit::ContextMenuContextData contextMenuContextData, WebKit::UserData userData)
274 #endif
275
276     # Database messages
277     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) Synchronous
278
279     # Application cache messages
280     ReachedApplicationCacheOriginQuota(String originIdentifier, uint64_t currentQuota, uint64_t totalBytesNeeded) -> (uint64_t newQuota) Synchronous
281
282     # Geolocation messages
283     RequestGeolocationPermissionForFrame(uint64_t geolocationID, uint64_t frameID, String originIdentifier)
284     
285 #if ENABLE(MEDIA_STREAM)
286     # MediaSteam messages
287     RequestUserMediaPermissionForFrame(uint64_t userMediaID, uint64_t frameID, struct WebCore::SecurityOriginData userMediaDocumentOriginIdentifier, struct WebCore::SecurityOriginData topLevelDocumentOriginIdentifier, struct WebCore::MediaStreamRequest request)
288     EnumerateMediaDevicesForFrame(uint64_t userMediaID, uint64_t frameID, struct WebCore::SecurityOriginData userMediaDocumentOriginIdentifier, struct WebCore::SecurityOriginData topLevelDocumentOriginIdentifier)
289     BeginMonitoringCaptureDevices()
290 #endif
291
292     # Notification messages
293     RequestNotificationPermission(uint64_t requestID, String originIdentifier)
294     ShowNotification(String title, String body, String iconURL, String tag, String lang, enum:uint8_t WebCore::NotificationDirection dir, String originIdentifier, uint64_t notificationID)
295     CancelNotification(uint64_t notificationID)
296     ClearNotifications(Vector<uint64_t> notificationIDs)
297     DidDestroyNotification(uint64_t notificationID)
298
299     # Spelling and grammar messages
300 #if USE(UNIFIED_TEXT_CHECKING)  
301     CheckTextOfParagraph(String text, OptionSet<WebCore::TextCheckingType> checkingTypes, int32_t insertionPoint) -> (Vector<WebCore::TextCheckingResult> results) Synchronous
302 #endif
303     CheckSpellingOfString(String text) -> (int32_t misspellingLocation, int32_t misspellingLength) Synchronous
304     CheckGrammarOfString(String text) -> (Vector<WebCore::GrammarDetail> results, int32_t badGrammarLocation, int32_t badGrammarLength) Synchronous
305     SpellingUIIsShowing() -> (bool isShowing) Synchronous
306     UpdateSpellingUIWithMisspelledWord(String misspelledWord)
307     UpdateSpellingUIWithGrammarString(String badGrammarPhrase, struct WebCore::GrammarDetail grammarDetail)
308     GetGuessesForWord(String word, String context, int32_t insertionPoint) -> (Vector<String> guesses) Synchronous
309     LearnWord(String word)
310     IgnoreWord(String word)
311     RequestCheckingOfString(uint64_t requestID, WebCore::TextCheckingRequestData request, int32_t insertionPoint)
312
313     # Drag and drop messages
314 #if ENABLE(DRAG_SUPPORT)
315     DidPerformDragControllerAction(uint64_t dragOperation, enum:uint8_t WebCore::DragHandlingMethod dragHandlingMethod, bool mouseIsOverFileInput, unsigned numberOfItemsToBeAccepted, WebCore::IntRect insertionRect, WebCore::IntRect editableElementRect)
316     DidEndDragging();
317 #endif
318 #if PLATFORM(COCOA) && ENABLE(DRAG_SUPPORT)
319     StartDrag(struct WebCore::DragItem dragItem, WebKit::ShareableBitmap::Handle dragImage)
320     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)
321 #endif
322 #if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
323     StartDrag(struct WebKit::WebSelectionData selection, uint64_t dragOperation, WebKit::ShareableBitmap::Handle dragImage)
324 #endif
325
326 #if ENABLE(DRAG_SUPPORT)
327     DidPerformDragOperation(bool handled)
328 #endif
329
330 #if ENABLE(DATA_INTERACTION)
331     DidHandleDragStartRequest(bool started)
332     DidHandleAdditionalDragItemsRequest(bool added)
333     DidConcludeEditDrag(Optional<WebCore::TextIndicatorData> textIndicator)
334 #endif
335
336 #if PLATFORM(COCOA)
337     # Dictionary support.
338     DidPerformDictionaryLookup(struct WebCore::DictionaryPopupInfo dictionaryPopupInfo)
339
340     # Keyboard input support messages
341     ExecuteSavedCommandBySelector(String selector) -> (bool handled) Synchronous
342
343     # Remote accessibility messages
344     RegisterWebProcessAccessibilityToken(IPC::DataReference data)
345
346     # Plug-in complex text input support messages
347     PluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus)
348     SetPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, uint64_t complexTextInputState)
349
350     # Speech messages
351     GetIsSpeaking() -> (bool isSpeaking) Synchronous
352     Speak(String string)
353     StopSpeaking()
354
355     MakeFirstResponder()
356     AssistiveTechnologyMakeFirstResponder()
357
358     # Spotlight
359     SearchWithSpotlight(String string)
360
361     SearchTheWeb(String string)
362
363     TouchBarMenuDataChanged(WebKit::TouchBarMenuData touchBarMenuData)
364     TouchBarMenuItemDataAdded(struct WebKit::TouchBarMenuItemData touchBarMenuItemData)
365     TouchBarMenuItemDataRemoved(struct WebKit::TouchBarMenuItemData touchBarMenuItemData)
366 #endif
367
368 #if USE(APPKIT)
369     SubstitutionsPanelIsShowing() -> (bool isShowing) Synchronous
370 #endif
371 #if USE(AUTOMATIC_TEXT_REPLACEMENT)
372     toggleSmartInsertDelete()
373     toggleAutomaticQuoteSubstitution()
374     toggleAutomaticLinkDetection()
375     toggleAutomaticDashSubstitution()
376     toggleAutomaticTextReplacement()
377 #endif
378 #if PLATFORM(MAC)
379     # Autocorrection messages
380     ShowCorrectionPanel(int32_t panelType, WebCore::FloatRect boundingBoxOfReplacedString, String replacedString, String replacementString, Vector<String> alternativeReplacementStrings)
381     DismissCorrectionPanel(int32_t reason)
382     DismissCorrectionPanelSoon(int32_t reason) -> (String result) Synchronous
383     RecordAutocorrectionResponse(int32_t response, String replacedString, String replacementString);
384
385     SetEditableElementIsFocused(bool editableElementIsFocused)
386 #endif
387
388 #if USE(DICTATION_ALTERNATIVES)
389     ShowDictationAlternativeUI(WebCore::FloatRect boundingBoxOfDictatedText, uint64_t dictationContext)
390     RemoveDictationAlternatives(uint64_t dictationContext)
391     DictationAlternatives(uint64_t dictationContext) -> (Vector<String> alternatives) Synchronous
392 #endif
393
394 #if PLATFORM(X11)
395     # X11 windowed plugin messages
396     CreatePluginContainer() -> (uint64_t windowID) Synchronous
397     WindowedPluginGeometryDidChange(WebCore::IntRect frameRect, WebCore::IntRect clipRect, uint64_t windowID)
398     WindowedPluginVisibilityDidChange(bool isVisible, uint64_t windowID)
399 #endif
400
401 #if PLATFORM(IOS_FAMILY)
402     CouldNotRestorePageState()
403     RestorePageState(Optional<WebCore::FloatPoint> scrollPosition, WebCore::FloatPoint scrollOrigin, WebCore::RectEdges<float> obscuredInsetsOnSave, double scale)
404     RestorePageCenterAndScale(Optional<WebCore::FloatPoint> unobscuredCenter, double scale)
405     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)
406
407     ElementDidFocus(struct WebKit::FocusedElementInformation information, bool userIsInteracting, bool blurPreviousNode, OptionSet<WebCore::ActivityState::Flag> activityStateChanges, WebKit::UserData userData)
408     ElementDidBlur()
409     FocusedElementDidChangeInputMode(enum:uint8_t WebCore::InputMode mode)
410     ScrollingNodeScrollWillStartScroll()
411     ScrollingNodeScrollDidEndScroll()
412     ShowInspectorHighlight(struct WebCore::Highlight highlight)
413     HideInspectorHighlight()
414     FocusedElementInformationCallback(struct WebKit::FocusedElementInformation information, WebKit::CallbackID callbackID)
415
416     ShowInspectorIndication()
417     HideInspectorIndication()
418
419     EnableInspectorNodeSearch()
420     DisableInspectorNodeSearch()
421
422     UpdateStringForFind(String findString)
423     HandleAutocorrectionContext(struct WebKit::WebAutocorrectionContext context)
424 #endif
425
426     DidChangeInspectorFrontendCount(uint64_t count)
427
428     CreateInspectorTarget(String targetId, enum:uint8_t Inspector::InspectorTargetType type)
429     DestroyInspectorTarget(String targetId)
430     SendMessageToInspectorFrontend(String targetId, String message)
431
432     # Search popup menus
433     SaveRecentSearches(String name, Vector<WebCore::RecentSearch> searchItems)
434     LoadRecentSearches(String name) -> (Vector<WebCore::RecentSearch> result) Synchronous
435
436     SavePDFToFileInDownloadsFolder(String suggestedFilename, URL originatingURL, IPC::DataReference data)
437
438 #if PLATFORM(COCOA)
439     SavePDFToTemporaryFolderAndOpenWithNativeApplication(String suggestedFilename, String originatingURLString, IPC::DataReference data, String pdfUUID)
440     OpenPDFFromTemporaryFolderWithNativeApplication(String pdfUUID)
441 #endif
442
443 #if ENABLE(PDFKIT_PLUGIN)
444     ShowPDFContextMenu(struct WebKit::PDFContextMenu contextMenu) -> (Optional<int32_t> selectedItem) Synchronous
445 #endif
446
447 #if ENABLE(NETSCAPE_PLUGIN_API)
448     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) Synchronous
449 #endif
450
451     DidUpdateActivityState()
452
453     DidSaveToPageCache()
454
455 #if ENABLE(WEB_CRYPTO)
456     WrapCryptoKey(Vector<uint8_t> key) -> (bool succeeded, Vector<uint8_t> wrappedKey) Synchronous
457     UnwrapCryptoKey(Vector<uint8_t> wrappedKey) -> (bool succeeded, Vector<uint8_t> key) Synchronous
458 #endif
459
460
461 #if ENABLE(TELEPHONE_NUMBER_DETECTION)
462 #if PLATFORM(MAC)
463     ShowTelephoneNumberMenu(String telephoneNumber, WebCore::IntPoint point)
464 #endif
465 #endif
466
467 #if USE(QUICK_LOOK)
468     DidStartLoadForQuickLookDocumentInMainFrame(String fileName, String uti)
469     DidFinishLoadForQuickLookDocumentInMainFrame(WebKit::QuickLookDocumentData data)
470     DidRequestPasswordForQuickLookDocumentInMainFrame(String fileName)
471 #endif
472
473 #if ENABLE(CONTENT_FILTERING)
474     ContentFilterDidBlockLoadForFrame(WebCore::ContentFilterUnblockHandler unblockHandler, uint64_t frameID)
475 #endif
476
477     IsPlayingMediaDidChange(unsigned state, uint64_t sourceElementID)
478     HandleAutoplayEvent(enum:uint8_t WebCore::AutoplayEvent event, OptionSet<WebCore::AutoplayEventFlags> flags)
479
480 #if ENABLE(MEDIA_SESSION)
481     HasMediaSessionWithActiveMediaElementsDidChange(bool state)
482     MediaSessionMetadataDidChange(WebCore::MediaSessionMetadata metadata);
483     FocusedContentMediaElementDidChange(uint64_t elementID)
484 #endif
485
486 #if PLATFORM(MAC)
487     DidPerformImmediateActionHitTest(struct WebKit::WebHitTestResultData result, bool contentPreventsDefault, WebKit::UserData userData)
488 #endif
489     HandleMessage(String messageName, WebKit::UserData messageBody) WantsConnection
490     HandleSynchronousMessage(String messageName, WebKit::UserData messageBody) -> (WebKit::UserData returnData) Synchronous WantsConnection
491
492     HandleAutoFillButtonClick(WebKit::UserData userData)
493
494     DidResignInputElementStrongPasswordAppearance(WebKit::UserData userData)
495
496     ContentRuleListNotification(URL url, struct WebCore::ContentRuleListResults results)
497
498 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
499     AddPlaybackTargetPickerClient(uint64_t contextId)
500     RemovePlaybackTargetPickerClient(uint64_t contextId)
501     ShowPlaybackTargetPicker(uint64_t clientId, WebCore::FloatRect pickerLocation, bool hasVideo)
502     PlaybackTargetPickerClientStateDidChange(uint64_t contextId, unsigned mediaState)
503     SetMockMediaPlaybackTargetPickerEnabled(bool enabled)
504     SetMockMediaPlaybackTargetPickerState(String name, unsigned pickerState)
505 #endif
506
507 #if ENABLE(POINTER_LOCK)
508     RequestPointerLock()
509     RequestPointerUnlock()
510 #endif
511
512     DidFailToSuspendAfterProcessSwap()
513     DidSuspendAfterProcessSwap()
514
515     ImageOrMediaDocumentSizeChanged(WebCore::IntSize newSize)
516
517     UseFixedLayoutDidChange(bool useFixedLayout)
518     FixedLayoutSizeDidChange(WebCore::IntSize fixedLayoutSize)
519
520 #if ENABLE(VIDEO) && USE(GSTREAMER)
521     RequestInstallMissingMediaPlugins(String details, String description)
522 #endif
523
524     DidRestoreScrollPosition()
525
526     GetLoadDecisionForIcon(struct WebCore::LinkIcon icon, WebKit::CallbackID callbackID)
527     FinishedLoadingIcon(WebKit::CallbackID callbackID, IPC::DataReference data);
528
529 #if PLATFORM(MAC)
530     DidHandleAcceptedCandidate()
531 #endif
532
533     SetIsUsingHighPerformanceWebGL(bool isUsingHighPerformanceWebGL)
534
535     StartURLSchemeTask(struct WebKit::URLSchemeTaskParameters parameters)
536     StopURLSchemeTask(uint64_t handlerIdentifier, uint64_t taskIdentifier)
537     LoadSynchronousURLSchemeTask(struct WebKit::URLSchemeTaskParameters parameters) -> (WebCore::ResourceResponse response, WebCore::ResourceError error, IPC::DataReference data) Synchronous
538
539 #if ENABLE(DEVICE_ORIENTATION)
540     ShouldAllowDeviceOrientationAndMotionAccess(uint64_t frameID, struct WebCore::SecurityOriginData origin, bool mayPrompt) -> (enum:uint8_t WebCore::DeviceOrientationOrMotionPermissionState permissionState) Async
541 #endif
542
543 #if ENABLE(ATTACHMENT_ELEMENT)
544     RegisterAttachmentIdentifierFromData(String identifier, String contentType, String preferredFileName, IPC::SharedBufferDataReference data)
545     RegisterAttachmentIdentifierFromFilePath(String identifier, String contentType, String filePath)
546     RegisterAttachmentIdentifier(String identifier)
547     registerAttachmentsFromSerializedData(Vector<WebCore::SerializedAttachmentData> data)
548     CloneAttachmentData(String fromIdentifier, String toIdentifier)
549     DidInsertAttachmentWithIdentifier(String identifier, String source, bool hasEnclosingImage)
550     DidRemoveAttachmentWithIdentifier(String identifier)
551     SerializedAttachmentDataForIdentifiers(Vector<String> identifiers) -> (Vector<WebCore::SerializedAttachmentData> seralizedData) Synchronous
552 #endif
553
554     SignedPublicKeyAndChallengeString(unsigned keySizeIndex, String challengeString, URL url) -> (String result) Synchronous
555
556 #if ENABLE(SPEECH_SYNTHESIS)
557     SpeechSynthesisVoiceList() -> (Vector<WebKit::WebSpeechSynthesisVoice> voiceList) Synchronous
558     SpeechSynthesisSpeak(String text, String lang, float volume, float rate, float pitch, MonotonicTime startTime, String voiceURI, String voiceName, String voiceLang, bool localService, bool defaultVoice) -> () Async
559     SpeechSynthesisCancel()
560     SpeechSynthesisPause() -> () Async
561     SpeechSynthesisResume() -> () Async
562 #endif
563
564     ConfigureLoggingChannel(String channelName, enum:uint8_t WTFLogChannelState state, enum:uint8_t WTFLogLevel level)
565 }