[WTF] Import std::optional reference implementation as WTF::Optional
[WebKit-https.git] / Source / WebKit2 / UIProcess / WebPageProxy.messages.in
1 # Copyright (C) 2010-2016 Apple Inc. All rights reserved.
2 #
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions
5 # are met:
6 # 1.  Redistributions of source code must retain the above copyright
7 #     notice, this list of conditions and the following disclaimer.
8 # 2.  Redistributions in binary form must reproduce the above copyright
9 #     notice, this list of conditions and the following disclaimer in the
10 #     documentation and/or other materials provided with the distribution.
11 #
12 # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
13 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15 # DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
16 # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
18 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
19 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
20 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
21 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22
23 messages -> WebPageProxy {
24     # UI messages
25     CreateNewPage(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, WebCore::ResourceRequest request, struct WebCore::WindowFeatures windowFeatures, struct WebKit::NavigationActionData navigationActionData) -> (uint64_t newPageID, struct WebKit::WebPageCreationParameters newPageParameters)
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(String url) -> (uint32_t loadPolicy)
38     ResolveWebGLPolicyForURL(String url) -> (uint32_t loadPolicy)
39 #endif // ENABLE(WEBGL)
40     DidChangeViewportProperties(struct WebCore::ViewportAttributes attributes)
41     DidReceiveEvent(uint32_t type, bool handled)
42     StopResponsivenessTimer()
43 #if !PLATFORM(IOS)
44     SetCursor(WebCore::Cursor cursor)
45     SetCursorHiddenUntilMouseMoves(bool hiddenUntilMouseMoves)
46 #endif
47     SetStatusText(String statusText)
48     SetToolTip(String toolTip)
49     SetFocus(bool focused)
50     TakeFocus(uint32_t direction)
51     FocusedFrameChanged(uint64_t frameID)
52     FrameSetLargestFrameChanged(uint64_t frameID)
53     SetRenderTreeSize(uint64_t treeSize)
54     SetToolbarsAreVisible(bool toolbarsAreVisible)
55     GetToolbarsAreVisible() -> (bool toolbarsAreVisible)
56     SetMenuBarIsVisible(bool menuBarIsVisible);
57     GetMenuBarIsVisible() -> (bool menuBarIsVisible);
58     SetStatusBarIsVisible(bool statusBarIsVisible)
59     GetStatusBarIsVisible() -> (bool statusBarIsVisible)
60     SetIsResizable(bool isResizable)
61     GetIsResizable() -> (bool isResizable)
62     SetWindowFrame(WebCore::FloatRect windowFrame)
63     GetWindowFrame() -> (WebCore::FloatRect windowFrame)
64     ScreenToRootView(WebCore::IntPoint screenPoint) -> (WebCore::IntPoint windowPoint)
65     RootViewToScreen(WebCore::IntRect rect) -> (WebCore::IntRect screenFrame)
66
67 #if PLATFORM(COCOA)
68     ShowValidationMessage(WebCore::IntRect anchorRect, String message)
69     HideValidationMessage()
70 #endif
71
72 #if PLATFORM(IOS)
73     AccessibilityScreenToRootView(WebCore::IntPoint screenPoint) -> (WebCore::IntPoint windowPoint)
74     RootViewToAccessibilityScreen(WebCore::IntRect rect) -> (WebCore::IntRect screenFrame)
75 #endif
76
77     RunBeforeUnloadConfirmPanel(String message, uint64_t frameID) -> (bool shouldClose) Delayed
78     PageDidScroll()
79     RunOpenPanel(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, struct WebCore::FileChooserSettings parameters)
80     PrintFrame(uint64_t frameID) -> ()
81     RunModal()
82     NotifyScrollerThumbIsVisibleInRect(WebCore::IntRect scrollerThumb)
83     RecommendedScrollbarStyleDidChange(int32_t newStyle)
84     DidChangeScrollbarsForMainFrame(bool hasHorizontalScrollbar, bool hasVerticalScrollbar)
85     DidChangeScrollOffsetPinningForMainFrame(bool pinnedToLeftSide, bool pinnedToRightSide, bool pinnedToTopSide, bool pinnedToBottomSide)
86     DidChangePageCount(unsigned pageCount)
87     PageExtendedBackgroundColorDidChange(WebCore::Color backgroundColor)
88 #if ENABLE(NETSCAPE_PLUGIN_API)
89     DidFailToInitializePlugin(String mimeType, String frameURLString, String pageURLString)
90     DidBlockInsecurePluginVersion(String mimeType, String pluginURLString, String frameURLString, String pageURLString, bool replacementObscured)
91 #endif // ENABLE(NETSCAPE_PLUGIN_API)
92     SetCanShortCircuitHorizontalWheelEvents(bool canShortCircuitHorizontalWheelEvents)
93
94 #if PLATFORM(EFL)
95     HandleInputMethodKeydown() -> (bool handled)
96 #endif
97
98 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
99     PageDidRequestScroll(WebCore::IntPoint point)
100     PageTransitionViewportReady()
101     DidFindZoomableArea(WebCore::IntPoint target, WebCore::IntRect area)
102 #endif
103
104     DidChangeContentSize(WebCore::IntSize newSize)
105
106 #if ENABLE(INPUT_TYPE_COLOR)
107     ShowColorPicker(WebCore::Color initialColor, WebCore::IntRect elementRect);
108     SetColorPickerColor(WebCore::Color color);
109     EndColorPicker();
110 #endif
111
112     # Policy messages
113     DecidePolicyForResponseSync(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, WebCore::ResourceResponse response, WebCore::ResourceRequest request, bool canShowMIMEType, uint64_t listenerID, WebKit::UserData userData) -> (bool receivedPolicyAction, uint64_t policyAction, WebKit::DownloadID downloadID)
114     DecidePolicyForNavigationAction(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, uint64_t navigationID, struct WebKit::NavigationActionData navigationActionData, uint64_t originatingFrameID, struct WebCore::SecurityOriginData originatingFrameSecurityOrigin, WebCore::ResourceRequest originalRequest, WebCore::ResourceRequest request, uint64_t listenerID, WebKit::UserData userData) -> (bool receivedPolicyAction, uint64_t newNavigationID, uint64_t policyAction, WebKit::DownloadID downloadID)
115     DecidePolicyForNewWindowAction(uint64_t frameID, struct WebCore::SecurityOriginData frameSecurityOrigin, struct WebKit::NavigationActionData navigationActionData, WebCore::ResourceRequest request, String frameName, uint64_t listenerID, WebKit::UserData userData)
116     UnableToImplementPolicy(uint64_t frameID, WebCore::ResourceError error, WebKit::UserData userData)
117
118     # Progress messages
119     DidChangeProgress(double value)
120     DidFinishProgress()
121     DidStartProgress()
122
123     SetNetworkRequestsInProgress(bool networkRequestsInProgress)
124
125     # Frame lifetime messages
126     DidCreateMainFrame(uint64_t frameID)
127     DidCreateSubframe(uint64_t frameID)
128
129     # Frame load messages
130     DidStartProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, String url, String unreachableURL, WebKit::UserData userData)
131     DidReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, uint64_t navigationID, String url, WebKit::UserData userData)
132     DidChangeProvisionalURLForFrame(uint64_t frameID, uint64_t navigationID, String 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, std::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(uint32_t type)
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, String url, WebKit::UserData userData)
146     DidDestroyNavigation(uint64_t navigationID)
147
148     HasInsecureContent() -> (enum WebCore::HasInsecureContent hasInsecureContent)
149
150     MainFramePluginHandlesPageScaleGestureDidChange(bool mainFramePluginHandlesPageScaleGesture)
151
152     FrameDidBecomeFrameSet(uint64_t frameID, bool value)
153
154     # History client messages.
155     DidNavigateWithNavigationData(struct WebKit::WebNavigationDataStore store, uint64_t frameID)
156     DidPerformClientRedirect(String sourceURLString, String destinationURLString, uint64_t frameID)
157     DidPerformServerRedirect(String sourceURLString, String destinationURLString, uint64_t frameID)
158     DidUpdateHistoryTitle(String title, String url, uint64_t frameID)
159
160     # Custom representations
161     DidFinishLoadingDataForCustomContentProvider(String suggestedFilename, IPC::DataReference data)
162
163     # Forms messages
164     WillSubmitForm(uint64_t frameID, uint64_t sourceFrameID, Vector<std::pair<String, String>> textFieldValues, uint64_t listenerID, WebKit::UserData userData)
165
166     # Callback messages
167     VoidCallback(uint64_t callbackID)
168     DataCallback(IPC::DataReference resultData, uint64_t callbackID)
169     ImageCallback(WebKit::ShareableBitmap::Handle bitmapHandle, uint64_t callbackID)
170     StringCallback(String resultString, uint64_t callbackID)
171     InvalidateStringCallback(uint64_t callbackID)
172     ScriptValueCallback(IPC::DataReference resultData, bool hadException, struct WebCore::ExceptionDetails details, uint64_t callbackID)
173     ComputedPagesCallback(Vector<WebCore::IntRect> pageRects, double totalScaleFactorForPrinting, uint64_t callbackID)
174     ValidateCommandCallback(String command, bool isEnabled, int32_t state, uint64_t callbackID)
175     EditingRangeCallback(struct WebKit::EditingRange range, uint64_t callbackID)
176     UnsignedCallback(uint64_t result, uint64_t callbackID)
177     RectForCharacterRangeCallback(WebCore::IntRect rect, struct WebKit::EditingRange actualRange, uint64_t callbackID)
178 #if PLATFORM(MAC)
179     AttributedStringForCharacterRangeCallback(struct WebKit::AttributedString string, struct WebKit::EditingRange actualRange, uint64_t callbackID)
180     FontAtSelectionCallback(String fontName, double fontSize, bool selectioHasMultipleFonts, uint64_t callbackID)
181 #endif
182 #if PLATFORM(IOS)
183     GestureCallback(WebCore::IntPoint point, uint32_t gestureType, uint32_t gestureState, uint32_t flags, uint64_t callbackID)
184     TouchesCallback(WebCore::IntPoint point, uint32_t touches, uint32_t flags, uint64_t callbackID)
185     AutocorrectionDataCallback(Vector<WebCore::FloatRect> textRects, String fontName, double fontSize, uint64_t traits, uint64_t callbackID)
186     AutocorrectionContextCallback(String beforeText, String markedText, String selectedText, String afterText, uint64_t location, uint64_t length, uint64_t callbackID)
187     SelectionContextCallback(String selectedText, String beforeText, String afterText, uint64_t callbackID)
188     InterpretKeyEvent(struct WebKit::EditorState state, bool isCharEvent) -> (bool handled)
189     DidReceivePositionInformation(struct WebKit::InteractionInformationAtPosition information)
190     SaveImageToLibrary(WebKit::SharedMemory::Handle handle, uint64_t size)
191     DidUpdateBlockSelectionWithTouch(uint32_t touch, uint32_t flags, float growThreshold, float shrinkThreshold)
192     ShowPlaybackTargetPicker(bool hasVideo, WebCore::IntRect elementRect)
193     ZoomToRect(WebCore::FloatRect rect, double minimumScale, double maximumScale)
194     CommitPotentialTapFailed()
195     DidNotHandleTapAsClick(WebCore::IntPoint point)
196     DisableDoubleTapGesturesDuringTapIfNecessary(uint64_t requestID)
197     DrawToPDFCallback(IPC::DataReference pdfData, uint64_t callbackID)
198 #endif
199 #if ENABLE(DATA_DETECTION)
200     SetDataDetectionResult(struct WebKit::DataDetectionResult dataDetectionResult)
201 #endif
202 #if PLATFORM(GTK)
203     PrintFinishedCallback(WebCore::ResourceError error, uint64_t callbackID)
204 #endif
205 #if PLATFORM(COCOA)
206     MachSendRightCallback(WebCore::MachSendRight sendRight, uint64_t callbackID)
207 #endif
208
209     PageScaleFactorDidChange(double scaleFactor)
210     PluginScaleFactorDidChange(double zoomFactor)
211     PluginZoomFactorDidChange(double zoomFactor)
212
213 #if PLATFORM(GTK)
214     # Support for connecting the Accessibility worlds of the UI and the Web processes
215     BindAccessibilityTree(String plugID)
216
217     SetInputMethodState(bool enabled);
218 #endif
219
220     # BackForward messages
221     BackForwardAddItem(uint64_t itemID)
222     BackForwardGoToItem(uint64_t itemID) -> (WebKit::SandboxExtension::Handle sandboxExtensionHandle)
223     BackForwardItemAtIndex(int32_t itemIndex) -> (uint64_t itemID)
224     BackForwardBackListCount() -> (int32_t count)
225     BackForwardForwardListCount() -> (int32_t count)
226     BackForwardClear()
227     WillGoToBackForwardListItem(uint64_t itemID, WebKit::UserData userData)
228
229     # Undo/Redo messages
230     RegisterEditCommandForUndo(uint64_t commandID, uint32_t editAction)
231     ClearAllEditCommands()
232     RegisterInsertionUndoGrouping()
233     CanUndoRedo(uint32_t action) -> (bool result)
234     ExecuteUndoRedo(uint32_t action) -> (bool result)
235
236     # Diagnostic messages logging
237     LogSampledDiagnosticMessage(String message, String description)
238     LogSampledDiagnosticMessageWithResult(String message, String description, uint32_t result)
239     LogSampledDiagnosticMessageWithValue(String message, String description, String value)
240
241     # Editor notifications
242     EditorStateChanged(struct WebKit::EditorState editorState)
243     CompositionWasCanceled()
244     SetHasHadSelectionChangesFromUserInteraction(bool hasHadUserSelectionChanges)
245     SetNeedsHiddenContentEditableQuirk(bool needsHiddenContentEditableQuirk)
246     SetNeedsPlainTextQuirk(bool needsPlainTextQuirk)
247
248     # Find messages
249     DidCountStringMatches(String string, uint32_t matchCount)
250     SetTextIndicator(struct WebCore::TextIndicatorData indicator, uint64_t lifetime)
251     ClearTextIndicator()
252     DidFindString(String string, Vector<WebCore::IntRect> matchRect, uint32_t matchCount, int32_t matchIndex)
253     DidFailToFindString(String string)
254     DidFindStringMatches(String string, Vector<Vector<WebCore::IntRect>> matches, int32_t firstIndexAfterSelection)
255     DidGetImageForFindMatch(WebKit::ShareableBitmap::Handle contentImageHandle, uint32_t matchIndex)
256
257     # PopupMenu messages
258     ShowPopupMenu(WebCore::IntRect rect, uint64_t textDirection, Vector<WebKit::WebPopupItem> items, int32_t selectedIndex, struct WebKit::PlatformPopupMenuData data)
259     HidePopupMenu()
260
261 #if ENABLE(CONTEXT_MENUS)
262     ShowContextMenu(WebKit::ContextMenuContextData contextMenuContextData, WebKit::UserData userData)
263 #endif
264
265     # Authentication messages
266     DidReceiveAuthenticationChallenge(uint64_t frameID, WebCore::AuthenticationChallenge challenge, uint64_t challengeID)
267
268     # Database messages
269     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
270
271     # Application cache messages
272     ReachedApplicationCacheOriginQuota(String originIdentifier, uint64_t currentQuota, uint64_t totalBytesNeeded) -> (uint64_t newQuota) Delayed
273
274     # Geolocation messages
275     RequestGeolocationPermissionForFrame(uint64_t geolocationID, uint64_t frameID, String originIdentifier)
276     
277 #if ENABLE(MEDIA_STREAM)
278     # MediaSteam messages
279     RequestUserMediaPermissionForFrame(uint64_t userMediaID, uint64_t frameID, String userMediaDocumentOriginIdentifier, String topLevelDocumentOriginIdentifier, struct WebCore::MediaConstraintsData audioConstraintsData, struct WebCore::MediaConstraintsData videoConstraintsData)
280     EnumerateMediaDevicesForFrame(uint64_t userMediaID, uint64_t frameID, String userMediaDocumentOriginIdentifier, String topLevelDocumentOriginIdentifier)
281 #endif
282
283     # Notification messages
284     RequestNotificationPermission(uint64_t requestID, String originIdentifier)
285     ShowNotification(String title, String body, String iconURL, String tag, String lang, String dir, String originIdentifier, uint64_t notificationID)
286     CancelNotification(uint64_t notificationID)
287     ClearNotifications(Vector<uint64_t> notificationIDs)
288     DidDestroyNotification(uint64_t notificationID)
289
290     # Spelling and grammar messages
291 #if USE(UNIFIED_TEXT_CHECKING)  
292     CheckTextOfParagraph(String text, uint64_t checkingTypes, int32_t insertionPoint) -> (Vector<WebCore::TextCheckingResult> results)
293 #endif
294     CheckSpellingOfString(String text) -> (int32_t misspellingLocation, int32_t misspellingLength)
295     CheckGrammarOfString(String text) -> (Vector<WebCore::GrammarDetail> results, int32_t badGrammarLocation, int32_t badGrammarLength)
296     SpellingUIIsShowing() -> (bool isShowing)
297     UpdateSpellingUIWithMisspelledWord(String misspelledWord)
298     UpdateSpellingUIWithGrammarString(String badGrammarPhrase, struct WebCore::GrammarDetail grammarDetail)
299     GetGuessesForWord(String word, String context, int32_t insertionPoint) -> (Vector<String> guesses)
300     LearnWord(String word);
301     IgnoreWord(String word);
302     RequestCheckingOfString(uint64_t requestID, WebCore::TextCheckingRequestData request, int32_t insertionPoint)
303
304     # Drag and drop messages
305 #if ENABLE(DRAG_SUPPORT)
306     DidPerformDragControllerAction(uint64_t dragOperation, bool mouseIsOverFileInput, unsigned numberOfItemsToBeAccepted)
307 #endif
308 #if PLATFORM(COCOA) && ENABLE(DRAG_SUPPORT)
309     SetDragImage(WebCore::IntPoint clientPosition, WebKit::ShareableBitmap::Handle dragImage, bool linkDrag)
310     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)
311 #if ENABLE(ATTACHMENT_ELEMENT)
312     SetPromisedDataForAttachment(String pasteboardName, String filename, String extension, String title, String url, String visibleURL)
313 #endif
314 #endif
315 #if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
316     StartDrag(struct WebKit::WebSelectionData selection, uint64_t dragOperation, WebKit::ShareableBitmap::Handle dragImage)
317 #endif
318
319 #if PLATFORM(COCOA)
320     # Dictionary support.
321     DidPerformDictionaryLookup(struct WebCore::DictionaryPopupInfo dictionaryPopupInfo)
322
323     # Keyboard input support messages
324     ExecuteSavedCommandBySelector(String selector) -> (bool handled)
325
326     # Remote accessibility messages
327     RegisterWebProcessAccessibilityToken(IPC::DataReference data)
328
329     # Plug-in complex text input support messages
330     PluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus)
331     SetPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, uint64_t complexTextInputState)
332
333     # Speech messages
334     GetIsSpeaking() -> (bool isSpeaking)
335     Speak(String string)
336     StopSpeaking()
337
338     MakeFirstResponder()
339
340     # Spotlight
341     SearchWithSpotlight(String string)
342
343     SearchTheWeb(String string)
344 #endif
345
346 #if USE(APPKIT)
347     SubstitutionsPanelIsShowing() -> (bool isShowing)
348 #endif
349 #if USE(AUTOMATIC_TEXT_REPLACEMENT)
350     toggleSmartInsertDelete()
351     toggleAutomaticQuoteSubstitution()
352     toggleAutomaticLinkDetection()
353     toggleAutomaticDashSubstitution()
354     toggleAutomaticTextReplacement()
355 #endif
356 #if PLATFORM(MAC)
357     # Autocorrection messages
358     ShowCorrectionPanel(int32_t panelType, WebCore::FloatRect boundingBoxOfReplacedString, String replacedString, String replacementString, Vector<String> alternativeReplacementStrings)
359     DismissCorrectionPanel(int32_t reason)
360     DismissCorrectionPanelSoon(int32_t reason) -> (String result)
361     RecordAutocorrectionResponse(int32_t responseType, String replacedString, String replacementString);
362
363     SetEditableElementIsFocused(bool editableElementIsFocused)
364 #endif
365
366 #if USE(DICTATION_ALTERNATIVES)
367     ShowDictationAlternativeUI(WebCore::FloatRect boundingBoxOfDictatedText, uint64_t dictationContext)
368     RemoveDictationAlternatives(uint64_t dictationContext)
369     DictationAlternatives(uint64_t dictationContext) -> (Vector<String> alternatives)
370 #endif
371
372 #if PLUGIN_ARCHITECTURE(X11)
373     # X11 windowed plugin messages
374     CreatePluginContainer() -> (uint64_t windowID)
375     WindowedPluginGeometryDidChange(WebCore::IntRect frameRect, WebCore::IntRect clipRect, uint64_t windowID)
376     WindowedPluginVisibilityDidChange(bool isVisible, uint64_t windowID)
377 #endif
378
379 #if PLATFORM(IOS)
380     DynamicViewportUpdateChangedTarget(double newTargetScale, WebCore::FloatPoint newScrollPosition, uint64_t dynamicViewportSizeUpdateID)
381     CouldNotRestorePageState()
382     RestorePageState(WebCore::FloatPoint scrollPosition, WebCore::FloatPoint scrollOrigin, WebCore::FloatSize obscuredInsetOnSave, double scale)
383     RestorePageCenterAndScale(WebCore::FloatPoint unobscuredCenter, double scale)
384     DidGetTapHighlightGeometries(uint64_t requestID, WebCore::Color color, Vector<WebCore::FloatQuad> geometries, WebCore::IntSize topLeftRadius, WebCore::IntSize topRightRadius, WebCore::IntSize bottomLeftRadius, WebCore::IntSize bottomRightRadius)
385
386     StartAssistingNode(struct WebKit::AssistedNodeInformation information, bool userIsInteracting, bool blurPreviousNode, WebKit::UserData userData)
387     StopAssistingNode()
388     OverflowScrollWillStartScroll()
389     OverflowScrollDidEndScroll()
390     ShowInspectorHighlight(struct WebCore::Highlight highlight)
391     HideInspectorHighlight()
392
393     ShowInspectorIndication()
394     HideInspectorIndication()
395
396     EnableInspectorNodeSearch()
397     DisableInspectorNodeSearch()
398 #endif
399
400     # Search popup menus
401     SaveRecentSearches(String name, Vector<WebCore::RecentSearch> searchItems)
402     LoadRecentSearches(String name) -> (Vector<WebCore::RecentSearch> result)
403
404     SavePDFToFileInDownloadsFolder(String suggestedFilename, String originatingURLString, IPC::DataReference data)
405
406 #if PLATFORM(COCOA)
407     SavePDFToTemporaryFolderAndOpenWithNativeApplication(String suggestedFilename, String originatingURLString, IPC::DataReference data, String pdfUUID)
408     OpenPDFFromTemporaryFolderWithNativeApplication(String pdfUUID)
409 #endif
410
411 #if ENABLE(NETSCAPE_PLUGIN_API)
412     FindPlugin(String mimeType, uint32_t processType, String urlString, String frameURLString, String pageURLString, bool allowOnlyApplicationPlugins) -> (uint64_t pluginProcessToken, String newMIMEType, uint32_t pluginLoadPolicy, String unavailabilityDescription)
413 #endif
414
415     DidUpdateActivityState()
416
417     DidSaveToPageCache()
418
419 #if ENABLE(SUBTLE_CRYPTO)
420     WrapCryptoKey(Vector<uint8_t> key) -> (bool succeeded, Vector<uint8_t> wrappedKey)
421     UnwrapCryptoKey(Vector<uint8_t> wrappedKey) -> (bool succeeded, Vector<uint8_t> key)
422 #endif
423
424
425 #if ENABLE(TELEPHONE_NUMBER_DETECTION)
426 #if PLATFORM(MAC)
427     ShowTelephoneNumberMenu(String telephoneNumber, WebCore::IntPoint point)
428 #endif
429 #endif
430
431 #if USE(QUICK_LOOK)
432     DidStartLoadForQuickLookDocumentInMainFrame(String fileName, String uti)
433     DidFinishLoadForQuickLookDocumentInMainFrame(WebKit::QuickLookDocumentData data)
434 #endif
435
436 #if ENABLE(CONTENT_FILTERING)
437     ContentFilterDidBlockLoadForFrame(WebCore::ContentFilterUnblockHandler unblockHandler, uint64_t frameID)
438 #endif
439
440     IsPlayingMediaDidChange(unsigned state, uint64_t sourceElementID)
441
442 #if ENABLE(MEDIA_SESSION)
443     HasMediaSessionWithActiveMediaElementsDidChange(bool state)
444     MediaSessionMetadataDidChange(WebCore::MediaSessionMetadata metadata);
445     FocusedContentMediaElementDidChange(uint64_t elementID)
446 #endif
447
448 #if PLATFORM(MAC)
449     DidPerformImmediateActionHitTest(struct WebKit::WebHitTestResultData result, bool contentPreventsDefault, WebKit::UserData userData)
450 #endif
451     HandleMessage(String messageName, WebKit::UserData messageBody) WantsConnection
452     HandleSynchronousMessage(String messageName, WebKit::UserData messageBody) -> (WebKit::UserData returnData) WantsConnection
453
454     HandleAutoFillButtonClick(WebKit::UserData userData);
455
456 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
457     AddPlaybackTargetPickerClient(uint64_t contextId)
458     RemovePlaybackTargetPickerClient(uint64_t contextId)
459     ShowPlaybackTargetPicker(uint64_t clientId, WebCore::FloatRect pickerLocation, bool hasVideo)
460     PlaybackTargetPickerClientStateDidChange(uint64_t contextId, unsigned mediaState)
461     SetMockMediaPlaybackTargetPickerEnabled(bool enabled)
462     SetMockMediaPlaybackTargetPickerState(String name, unsigned pickerState)
463 #endif
464
465 #if ENABLE(POINTER_LOCK)
466     RequestPointerLock()
467     RequestPointerUnlock()
468 #endif
469
470     ImageOrMediaDocumentSizeChanged(WebCore::IntSize newSize)
471
472     UseFixedLayoutDidChange(bool useFixedLayout)
473     FixedLayoutSizeDidChange(WebCore::IntSize fixedLayoutSize)
474
475 #if ENABLE(VIDEO) && USE(GSTREAMER)
476     RequestInstallMissingMediaPlugins(String details, String description)
477 #endif
478
479     DidRestoreScrollPosition()
480
481     GetLoadDecisionForIcon(struct WebCore::LinkIcon icon, uint64_t callbackID)
482     FinishedLoadingIcon(uint64_t callbackIdentifier, IPC::DataReference data);
483
484 #if PLATFORM(MAC)
485     DidHandleAcceptedCandidate()
486     HandleActiveNowPlayingSessionInfoResponse(bool hasActiveSession, String title, double duration, double elapsedTime)
487 #endif
488 }