Have insertDictatedTextAsync() take an InsertTextOptions
[WebKit-https.git] / Source / WebKit / WebProcess / WebPage / WebPage.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 -> WebPage LegacyReceiver {
24     SetInitialFocus(bool forward, bool isKeyboardEventValid, WebKit::WebKeyboardEvent event, WebKit::CallbackID callbackID)
25     SetActivityState(OptionSet<WebCore::ActivityState::Flag> activityState, WebKit::ActivityStateChangeID activityStateChangeID, Vector<WebKit::CallbackID> callbackIDs)
26     SetLayerHostingMode(enum:uint8_t WebKit::LayerHostingMode layerHostingMode)
27
28     SetBackgroundColor(Optional<WebCore::Color> color)
29
30     AddConsoleMessage(WebCore::FrameIdentifier frameID, enum:uint8_t JSC::MessageSource messageSource, enum:uint8_t JSC::MessageLevel messageLevel, String message, uint64_t requestID)
31     SendCSPViolationReport(WebCore::FrameIdentifier frameID, URL reportURL, IPC::FormDataReference reportData)
32     EnqueueSecurityPolicyViolationEvent(WebCore::FrameIdentifier frameID, WebCore::SecurityPolicyViolationEvent::Init eventInit)
33
34     TestProcessIncomingSyncMessagesWhenWaitingForSyncReply() -> (bool handled) Synchronous
35
36 #if PLATFORM(COCOA)
37     SetTopContentInsetFenced(float contentInset, IPC::Attachment fencePort)
38 #endif
39     SetTopContentInset(float contentInset)
40
41     SetUnderlayColor(WebCore::Color color)
42
43     ViewWillStartLiveResize()
44     ViewWillEndLiveResize()
45
46     ExecuteEditCommandWithCallback(String name, String argument, WebKit::CallbackID callbackID)
47     KeyEvent(WebKit::WebKeyboardEvent event)
48     MouseEvent(WebKit::WebMouseEvent event)
49 #if PLATFORM(IOS_FAMILY)
50     SetViewportConfigurationViewLayoutSize(WebCore::FloatSize size, double scaleFactor, double minimumEffectiveDeviceWidth)
51     SetMaximumUnobscuredSize(WebCore::FloatSize size)
52     SetDeviceOrientation(int32_t deviceOrientation)
53     SetOverrideViewportArguments(Optional<WebCore::ViewportArguments> arguments)
54     DynamicViewportSizeUpdate(WebCore::FloatSize viewLayoutSize, WebCore::FloatSize maximumUnobscuredSize, WebCore::FloatRect targetExposedContentRect, WebCore::FloatRect targetUnobscuredRect, WebCore::FloatRect targetUnobscuredRectInScrollViewCoordinates, WebCore::RectEdges<float> targetUnobscuredSafeAreaInsets, double scale, int32_t deviceOrientation, double minimumEffectiveDeviceWidth, uint64_t dynamicViewportSizeUpdateID)
55
56     HandleTap(WebCore::IntPoint point, OptionSet<WebKit::WebEvent::Modifier> modifiers, WebKit::TransactionID lastLayerTreeTransactionId)
57     PotentialTapAtPosition(uint64_t requestID, WebCore::FloatPoint point, bool shouldRequestMagnificationInformation)
58     CommitPotentialTap(OptionSet<WebKit::WebEvent::Modifier> modifiers, WebKit::TransactionID lastLayerTreeTransactionId, WebCore::PointerID pointerId)
59     CancelPotentialTap()
60     TapHighlightAtPosition(uint64_t requestID, WebCore::FloatPoint point)
61     DidRecognizeLongPress()
62     HandleDoubleTapForDoubleClickAtPoint(WebCore::IntPoint point, OptionSet<WebKit::WebEvent::Modifier> modifiers, WebKit::TransactionID lastLayerTreeTransactionId)
63     InspectorNodeSearchMovedToPosition(WebCore::FloatPoint point)
64     InspectorNodeSearchEndedAtPosition(WebCore::FloatPoint point)
65     BlurFocusedElement()
66     SelectWithGesture(WebCore::IntPoint point, uint32_t granularity, uint32_t gestureType, uint32_t gestureState, bool isInteractingWithFocusedElement, WebKit::CallbackID callbackID)
67     UpdateSelectionWithTouches(WebCore::IntPoint point, uint32_t touches, bool baseIsStart, WebKit::CallbackID callbackID)
68     SelectWithTwoTouches(WebCore::IntPoint from, WebCore::IntPoint to, uint32_t gestureType, uint32_t gestureState, WebKit::CallbackID callbackID)
69     ExtendSelection(uint32_t granularity)
70     SelectWordBackward()
71     MoveSelectionByOffset(int32_t offset, WebKit::CallbackID callbackID)
72     SelectTextWithGranularityAtPoint(WebCore::IntPoint point, uint32_t granularity, bool isInteractingWithFocusedElement, WebKit::CallbackID callbackID)
73     SelectPositionAtBoundaryWithDirection(WebCore::IntPoint point, uint32_t granularity, uint32_t direction, bool isInteractingWithFocusedElement, WebKit::CallbackID callbackID)
74     MoveSelectionAtBoundaryWithDirection(uint32_t granularity, uint32_t direction, WebKit::CallbackID callbackID)
75     SelectPositionAtPoint(WebCore::IntPoint point, bool isInteractingWithFocusedElement, WebKit::CallbackID callbackID)
76     BeginSelectionInDirection(uint32_t direction, WebKit::CallbackID callbackID)
77     UpdateSelectionWithExtentPoint(WebCore::IntPoint point, bool isInteractingWithFocusedElement, enum:bool WebKit::RespectSelectionAnchor respectSelectionAnchor, WebKit::CallbackID callbackID)
78     UpdateSelectionWithExtentPointAndBoundary(WebCore::IntPoint point, uint32_t granularity, bool isInteractingWithFocusedElement, WebKit::CallbackID callbackID)
79     RequestDictationContext(WebKit::CallbackID callbackID)
80     ReplaceDictatedText(String oldText, String newText)
81     ReplaceSelectedText(String oldText, String newText)
82     RequestAutocorrectionData(String textForAutocorrection) -> (struct WebKit::WebAutocorrectionData data) Async
83     ApplyAutocorrection(String correction, String originalText, WebKit::CallbackID callbackID)
84     SyncApplyAutocorrection(String correction, String originalText) -> (bool autocorrectionApplied) Synchronous
85     RequestAutocorrectionContext()
86     RequestEvasionRectsAboveSelection() -> (Vector<WebCore::FloatRect> rects) Async
87     GetPositionInformation(struct WebKit::InteractionInformationRequest request) -> (struct WebKit::InteractionInformationAtPosition information) Synchronous
88     RequestPositionInformation(struct WebKit::InteractionInformationRequest request)
89     StartInteractionWithElementContextOrPosition(Optional<WebCore::ElementContext> elementContext, WebCore::IntPoint point)
90     StopInteraction()
91     PerformActionOnElement(uint32_t action)
92     FocusNextFocusedElement(bool isForward, WebKit::CallbackID callbackID)
93     SetFocusedElementValue(String value)
94     AutofillLoginCredentials(String username, String password)
95     SetFocusedElementValueAsNumber(double value)
96     SetFocusedElementSelectedIndex(uint32_t index, bool allowMultipleSelection)
97     ApplicationWillResignActive()
98     ApplicationDidEnterBackground(bool isSuspendedUnderLock)
99     ApplicationDidFinishSnapshottingAfterEnteringBackground()
100     ApplicationWillEnterForeground(bool isSuspendedUnderLock)
101     ApplicationDidBecomeActive()
102     ApplicationDidEnterBackgroundForMedia(bool isSuspendedUnderLock)
103     ApplicationWillEnterForegroundForMedia(bool isSuspendedUnderLock)
104     ContentSizeCategoryDidChange(String contentSizeCategory)
105     GetSelectionContext(WebKit::CallbackID callbackID)
106     SetAllowsMediaDocumentInlinePlayback(bool allows)
107     HandleTwoFingerTapAtPoint(WebCore::IntPoint point, OptionSet<WebKit::WebEvent::Modifier> modifiers, uint64_t requestID)
108     HandleStylusSingleTapAtPoint(WebCore::IntPoint point, uint64_t requestID)
109     SetForceAlwaysUserScalable(bool userScalable)
110     GetRectsForGranularityWithSelectionOffset(uint32_t granularity, int32_t offset, WebKit::CallbackID callbackID)
111     GetRectsAtSelectionOffsetWithText(int32_t offset, String text, WebKit::CallbackID callbackID)
112     StoreSelectionForAccessibility(bool shouldStore)
113     StartAutoscrollAtPosition(WebCore::FloatPoint positionInWindow)
114     CancelAutoscroll()
115     RequestFocusedElementInformation(WebKit::CallbackID callbackID)
116     HardwareKeyboardAvailabilityChanged(bool keyboardIsAttached)
117     SetIsShowingInputViewForFocusedElement(bool showingInputView)
118     UpdateSelectionWithDelta(int64_t locationDelta, int64_t lengthDelta) -> () Async
119     RequestDocumentEditingContext(struct WebKit::DocumentEditingContextRequest request) -> (struct WebKit::DocumentEditingContext response) Async
120 GenerateSyntheticEditingCommand(enum:uint8_t WebKit::SyntheticEditingCommandType command)
121     SetShouldRevealCurrentSelectionAfterInsertion(bool shouldRevealCurrentSelectionAfterInsertion)
122     InsertTextPlaceholder(WebCore::IntSize size) -> (Optional<WebCore::ElementContext> placeholder) Async
123     RemoveTextPlaceholder(struct WebCore::ElementContext placeholder) -> () Async
124 #endif
125
126     SetControlledByAutomation(bool controlled)
127
128     ConnectInspector(String targetId, Inspector::FrontendChannel::ConnectionType connectionType)
129     DisconnectInspector(String targetId)
130     SendMessageToTargetBackend(String targetId, String message)
131
132 #if ENABLE(REMOTE_INSPECTOR)
133     SetIndicating(bool indicating);
134 #endif
135
136 #if ENABLE(IOS_TOUCH_EVENTS)
137     ResetPotentialTapSecurityOrigin()
138     TouchEventSync(WebKit::WebTouchEvent event) -> (bool handled) Synchronous
139 #endif
140 #if !ENABLE(IOS_TOUCH_EVENTS) && ENABLE(TOUCH_EVENTS)
141     TouchEvent(WebKit::WebTouchEvent event)
142 #endif
143
144     CancelPointer(WebCore::PointerID pointerId, WebCore::IntPoint documentPoint)
145     TouchWithIdentifierWasRemoved(WebCore::PointerID pointerId)
146
147 #if ENABLE(INPUT_TYPE_COLOR)
148     DidEndColorPicker()
149     DidChooseColor(WebCore::Color color)
150 #endif
151
152 #if ENABLE(DATALIST_ELEMENT)
153     DidSelectDataListOption(String selectedOption);
154     DidCloseSuggestions();
155 #endif
156
157 #if ENABLE(CONTEXT_MENUS)
158     ContextMenuHidden()
159     ContextMenuForKeyEvent()
160 #endif
161
162     ScrollBy(uint32_t scrollDirection, uint32_t scrollGranularity)
163     CenterSelectionInVisibleArea()
164
165     GoToBackForwardItem(uint64_t navigationID, struct WebCore::BackForwardItemIdentifier backForwardItemID, enum:uint8_t WebCore::FrameLoadType backForwardType, enum:bool WebCore::ShouldTreatAsContinuingLoad shouldTreatAsContinuingLoad, Optional<WebKit::WebsitePoliciesData> websitePolicies)
166     TryRestoreScrollPosition()
167
168     LoadURLInFrame(URL url, String referrer, WebCore::FrameIdentifier frameID)
169     LoadDataInFrame(IPC::DataReference data, String MIMEType, String encodingName, URL baseURL, WebCore::FrameIdentifier frameID)
170     LoadRequest(struct WebKit::LoadParameters loadParameters)
171     LoadRequestWaitingForProcessLaunch(struct WebKit::LoadParameters loadParameters, URL resourceDirectoryURL, WebKit::WebPageProxyIdentifier pageID, bool checkAssumedReadAccessToResourceURL)
172     LoadData(struct WebKit::LoadParameters loadParameters)
173     LoadAlternateHTML(struct WebKit::LoadParameters loadParameters)
174
175     NavigateToPDFLinkWithSimulatedClick(String url, WebCore::IntPoint documentPoint, WebCore::IntPoint screenPoint)
176
177     Reload(uint64_t navigationID, uint32_t reloadOptions, WebKit::SandboxExtension::Handle sandboxExtensionHandle)
178     StopLoading()
179
180     StopLoadingFrame(WebCore::FrameIdentifier frameID)
181     
182     RestoreSession(Vector<WebKit::BackForwardListItemState> itemStates)
183     UpdateBackForwardListForReattach(Vector<WebKit::BackForwardListItemState> itemStates)
184     SetCurrentHistoryItemForReattach(struct WebKit::BackForwardListItemState itemState)
185
186     DidRemoveBackForwardItem(struct WebCore::BackForwardItemIdentifier backForwardItemID)
187
188     UpdateWebsitePolicies(struct WebKit::WebsitePoliciesData websitePolicies)
189     DidReceivePolicyDecision(WebCore::FrameIdentifier frameID, uint64_t listenerID, struct WebKit::PolicyDecision policyDecision)
190
191     ContinueWillSubmitForm(WebCore::FrameIdentifier frameID, uint64_t listenerID)
192
193     ClearSelection()
194     RestoreSelectionInFocusedEditableElement()
195
196     # Callbacks.
197     GetContentsAsString(enum:bool WebKit::ContentAsStringIncludesChildFrames inChildFrames, WebKit::CallbackID callbackID)
198     GetAllFrames() -> (struct WebKit::FrameTreeNodeData mainFrame) Async
199 #if PLATFORM(COCOA)
200     GetContentsAsAttributedString() -> (struct WebKit::AttributedString result) Async
201 #endif
202 #if ENABLE(MHTML)
203     GetContentsAsMHTMLData(WebKit::CallbackID callbackID)
204 #endif
205     GetMainResourceDataOfFrame(WebCore::FrameIdentifier frameID, WebKit::CallbackID callbackID)
206     GetResourceDataFromFrame(WebCore::FrameIdentifier frameID, String resourceURL, WebKit::CallbackID callbackID)
207     GetRenderTreeExternalRepresentation(WebKit::CallbackID callbackID)
208     GetSelectionOrContentsAsString(WebKit::CallbackID callbackID)
209     GetSelectionAsWebArchiveData(WebKit::CallbackID callbackID)
210     GetSourceForFrame(WebCore::FrameIdentifier frameID, WebKit::CallbackID callbackID)
211     GetWebArchiveOfFrame(WebCore::FrameIdentifier frameID, WebKit::CallbackID callbackID)
212
213     // FIXME: This should use sendWithAsyncReply instead of callbackIDs
214     RunJavaScriptInFrameInScriptWorld(struct WebCore::RunJavaScriptParameters parameters, Optional<WebCore::FrameIdentifier> frameID, std::pair<WebKit::ContentWorldIdentifier, String> world, WebKit::CallbackID callbackID)
215
216     ForceRepaint(WebKit::CallbackID callbackID)
217     SelectAll()
218     ScheduleFullEditorStateUpdate()
219
220 #if PLATFORM(COCOA)
221     # Dictionary support.
222     PerformDictionaryLookupOfCurrentSelection()
223     PerformDictionaryLookupAtLocation(WebCore::FloatPoint point)
224 #endif
225
226 #if ENABLE(DATA_DETECTION)
227     DetectDataInAllFrames(uint64_t types) -> (struct WebKit::DataDetectionResult result) Async
228     RemoveDataDetectedLinks() -> (struct WebKit::DataDetectionResult result) Async
229 #endif
230
231     ChangeFont(WebCore::FontChanges changes)
232     ChangeFontAttributes(WebCore::FontAttributeChanges changes)
233
234     PreferencesDidChange(struct WebKit::WebPreferencesStore store)
235
236     SetUserAgent(String userAgent)
237     SetCustomTextEncodingName(String encodingName)
238
239     SuspendActiveDOMObjectsAndAnimations()
240     ResumeActiveDOMObjectsAndAnimations()
241
242     Close()
243     TryClose() -> (bool shouldClose) Async
244
245     SetEditable(bool editable)
246     ValidateCommand(String name, WebKit::CallbackID callbackID)
247     ExecuteEditCommand(String name, String argument)
248
249     IncreaseListLevel()
250     DecreaseListLevel()
251     ChangeListType()
252
253     SetBaseWritingDirection(enum:uint8_t WebCore::WritingDirection direction)
254
255     SetNeedsFontAttributes(bool needsFontAttributes)
256
257     RequestFontAttributesAtSelectionStart(WebKit::CallbackID callbackID)
258
259     DidRemoveEditCommand(uint64_t commandID)
260     ReapplyEditCommand(uint64_t commandID)
261     UnapplyEditCommand(uint64_t commandID)
262
263     SetPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor)
264     SetPageZoomFactor(double zoomFactor)
265     SetTextZoomFactor(double zoomFactor)
266     WindowScreenDidChange(uint32_t displayID)
267
268     AccessibilitySettingsDidChange()
269
270     ScalePage(double scale, WebCore::IntPoint origin)
271     ScalePageInViewCoordinates(double scale, WebCore::IntPoint centerInViewCoordinates)
272     ScaleView(double scale)
273
274     SetUseFixedLayout(bool fixed)
275     SetFixedLayoutSize(WebCore::IntSize size)
276     ListenForLayoutMilestones(OptionSet<WebCore::LayoutMilestone> layoutMilestones)
277     SetSuppressScrollbarAnimations(bool suppressAnimations)
278
279     SetEnableVerticalRubberBanding(bool enableVerticalRubberBanding)
280     SetEnableHorizontalRubberBanding(bool enableHorizontalRubberBanding)
281
282     SetBackgroundExtendsBeyondPage(bool backgroundExtendsBeyondPage)
283
284     SetPaginationMode(uint32_t mode)
285     SetPaginationBehavesLikeColumns(bool behavesLikeColumns)
286     SetPageLength(double pageLength)
287     SetGapBetweenPages(double gap)
288     SetPaginationLineGridEnabled(bool lineGridEnabled)
289
290     PostInjectedBundleMessage(String messageName, WebKit::UserData messageBody)
291
292     # Find.
293     FindString(String string, uint32_t findOptions, unsigned maxMatchCount, Optional<WebKit::CallbackID> callbackID)
294     FindStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
295     GetImageForFindMatch(uint32_t matchIndex)
296     SelectFindMatch(uint32_t matchIndex)
297     IndicateFindMatch(uint32_t matchIndex)
298     HideFindUI()
299     CountStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
300     ReplaceMatches(Vector<uint32_t> matchIndices, String replacementText, bool selectionOnly, WebKit::CallbackID callbackID)
301     
302     AddMIMETypeWithCustomContentProvider(String mimeType)
303
304     # Drag and drop.
305 #if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
306     PerformDragControllerAction(enum:uint8_t WebKit::DragControllerAction action, WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t draggingSourceOperationMask, struct WebKit::WebSelectionData selection, uint32_t flags)
307 #endif
308 #if !PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
309     PerformDragControllerAction(enum:uint8_t WebKit::DragControllerAction action, WebCore::DragData dragData, WebKit::SandboxExtension::Handle sandboxExtensionHandle, WebKit::SandboxExtension::HandleArray sandboxExtensionsForUpload)
310 #endif
311 #if ENABLE(DRAG_SUPPORT)
312     DidStartDrag()
313     DragEnded(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t operation)
314     DragCancelled()
315 #endif
316
317 #if PLATFORM(IOS_FAMILY) && ENABLE(DRAG_SUPPORT)
318     RequestDragStart(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t allowedActions)
319     RequestAdditionalItemsForDragSession(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t allowedActions)
320     InsertDroppedImagePlaceholders(Vector<WebCore::IntSize> imageSize) -> (Vector<WebCore::IntRect> dropPreviewRects, Optional<WebCore::TextIndicatorData> textIndicator) Async
321     DidConcludeDrop()
322 #endif
323
324     # Popup menu.
325     DidChangeSelectedIndexForActivePopupMenu(int32_t newIndex)
326     SetTextForActivePopupMenu(int32_t index)
327 #if PLATFORM(GTK)
328     FailedToShowPopupMenu()
329 #endif
330
331 #if ENABLE(CONTEXT_MENUS)
332     # Context menu.
333     DidSelectItemFromActiveContextMenu(WebKit::WebContextMenuItemData menuItem)
334 #endif
335
336     # Open panel.
337 #if PLATFORM(IOS_FAMILY)
338     DidChooseFilesForOpenPanelWithDisplayStringAndIcon(Vector<String> fileURLs, String displayString, IPC::DataReference iconData)
339 #endif
340     DidChooseFilesForOpenPanel(Vector<String> fileURLs)
341     DidCancelForOpenPanel()
342     DidCompleteShareSheet(bool wasGranted, uint64_t callbackID)
343 #if ENABLE(SANDBOX_EXTENSIONS)
344     ExtendSandboxForFilesFromOpenPanel(WebKit::SandboxExtension::HandleArray sandboxExtensions)
345 #endif
346
347     # Spelling and grammar.
348     AdvanceToNextMisspelling(bool startBeforeSelection)
349     ChangeSpellingToWord(String word)
350     DidFinishCheckingText(uint64_t requestID, Vector<WebCore::TextCheckingResult> result)
351     DidCancelCheckingText(uint64_t requestID)
352 #if USE(APPKIT)
353     UppercaseWord()
354     LowercaseWord()
355     CapitalizeWord()
356 #endif
357 #if PLATFORM(COCOA)
358     SetSmartInsertDeleteEnabled(bool isSmartInsertDeleteEnabled)
359 #endif
360
361 #if ENABLE(GEOLOCATION)
362     # Geolocation
363     DidReceiveGeolocationPermissionDecision(uint64_t geolocationID, String authorizationToken)
364 #endif
365
366 #if ENABLE(MEDIA_STREAM)
367     # MediaSteam
368     UserMediaAccessWasGranted(uint64_t userMediaID, WebCore::CaptureDevice audioDevice, WebCore::CaptureDevice videoDevice, String mediaDeviceIdentifierHashSalt, WebKit::SandboxExtension::Handle sandboxExtensionHandle) -> () Async
369     UserMediaAccessWasDenied(uint64_t userMediaID, uint64_t reason, String invalidConstraint)
370     CaptureDevicesChanged()
371 #endif
372
373     StopAllMediaPlayback();
374     SuspendAllMediaPlayback();
375     ResumeAllMediaPlayback();
376
377     # Notification
378     DidReceiveNotificationPermissionDecision(uint64_t notificationID, bool allowed)
379
380     FreezeLayerTreeDueToSwipeAnimation()
381     UnfreezeLayerTreeDueToSwipeAnimation()
382
383     # Printing.
384     BeginPrinting(WebCore::FrameIdentifier frameID, struct WebKit::PrintInfo printInfo)
385     EndPrinting()
386     ComputePagesForPrinting(WebCore::FrameIdentifier frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID)
387 #if PLATFORM(COCOA)
388     DrawRectToImage(WebCore::FrameIdentifier frameID, struct WebKit::PrintInfo printInfo, WebCore::IntRect rect, WebCore::IntSize imageSize, WebKit::CallbackID callbackID)
389     DrawPagesToPDF(WebCore::FrameIdentifier frameID, struct WebKit::PrintInfo printInfo, uint32_t first, uint32_t count, WebKit::CallbackID callbackID)
390 #if PLATFORM(IOS_FAMILY)
391     ComputePagesForPrintingAndDrawToPDF(WebCore::FrameIdentifier frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID) -> (uint32_t pageCount) Synchronous
392 #endif
393     DrawToPDF(WebCore::FrameIdentifier frameID, Optional<WebCore::FloatRect> rect, WebKit::CallbackID callbackID)
394 #endif
395 #if PLATFORM(GTK)
396     DrawPagesForPrinting(WebCore::FrameIdentifier frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID)
397 #endif
398
399     # Media
400     SetMediaVolume(float volume)
401     SetMuted(WebCore::MediaProducer::MutedStateFlags muted)
402     SetMayStartMediaWhenInWindow(bool mayStartMedia)
403     StopMediaCapture()
404
405 #if ENABLE(MEDIA_SESSION)
406     HandleMediaEvent(uint32_t eventType)
407     SetVolumeOfMediaElement(double volume, uint64_t elementID)
408 #endif
409
410     SetCanRunBeforeUnloadConfirmPanel(bool canRunBeforeUnloadConfirmPanel)
411     SetCanRunModal(bool canRunModal)
412
413 #if PLATFORM(GTK) || PLATFORM(WPE)
414     CancelComposition(String text)
415     DeleteSurrounding(int64_t offset, unsigned characterCount)
416 #endif
417
418 #if PLATFORM(GTK)
419     CollapseSelectionInFrame(WebCore::FrameIdentifier frameID)
420
421     GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center) Synchronous
422 #endif
423
424 #if PLATFORM(COCOA)
425     # Complex text input support for plug-ins.
426     SendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, String textInput)
427
428     WindowAndViewFramesChanged(WebCore::FloatRect windowFrameInScreenCoordinates, WebCore::FloatRect windowFrameInUnflippedScreenCoordinates, WebCore::FloatRect viewFrameInWindowCoordinates, WebCore::FloatPoint accessibilityViewCoordinates)
429     SetMainFrameIsScrollable(bool isScrollable)
430     RegisterUIProcessAccessibilityTokens(IPC::DataReference elemenToken, IPC::DataReference windowToken)
431     GetStringSelectionForPasteboard() -> (String stringValue) Synchronous
432     GetDataSelectionForPasteboard(String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size) Synchronous
433     ReadSelectionFromPasteboard(String pasteboardName) -> (bool result) Synchronous
434
435 #if ENABLE(SERVICE_CONTROLS)
436     ReplaceSelectionWithPasteboardData(Vector<String> types, IPC::DataReference data)
437 #endif
438
439     ShouldDelayWindowOrderingEvent(WebKit::WebMouseEvent event) -> (bool result) Synchronous
440     AcceptsFirstMouse(int eventNumber, WebKit::WebMouseEvent event) -> (bool result) Synchronous
441
442     SetTextAsync(String text)
443
444     InsertTextAsync(String text, struct WebKit::EditingRange replacementRange, struct WebKit::InsertTextOptions options)
445     InsertDictatedTextAsync(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives, struct WebKit::InsertTextOptions options)
446
447     HasMarkedText() -> (bool hasMarkedText) Async
448     GetMarkedRangeAsync(WebKit::CallbackID callbackID)
449     GetSelectedRangeAsync(WebKit::CallbackID callbackID)
450     CharacterIndexForPointAsync(WebCore::IntPoint point, WebKit::CallbackID callbackID);
451     FirstRectForCharacterRangeAsync(struct WebKit::EditingRange range, WebKit::CallbackID callbackID);
452     SetCompositionAsync(String text, Vector<WebCore::CompositionUnderline> underlines, Vector<WebCore::CompositionHighlight> highlights, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange)
453     ConfirmCompositionAsync()
454 #endif
455 #if PLATFORM(MAC)
456     AttributedSubstringForCharacterRangeAsync(struct WebKit::EditingRange range, WebKit::CallbackID callbackID);
457     FontAtSelection(WebKit::CallbackID callbackID)
458 #endif
459
460     SetAlwaysShowsHorizontalScroller(bool alwaysShowsHorizontalScroller)
461     SetAlwaysShowsVerticalScroller(bool alwaysShowsVerticalScroller)
462
463     SetMinimumSizeForAutoLayout(WebCore::IntSize size)
464     SetAutoSizingShouldExpandToViewHeight(bool shouldExpand)
465
466     SetViewportSizeForCSSViewportUnits(Optional<WebCore::IntSize> viewportSize)
467
468 #if PLATFORM(COCOA)
469     HandleAlternativeTextUIResult(String result)
470 #endif
471
472 #if PLATFORM(IOS_FAMILY)
473     WillStartUserTriggeredZooming();
474 #endif
475
476     SetScrollPinningBehavior(uint32_t pinning)
477     SetScrollbarOverlayStyle(Optional<uint32_t> scrollbarStyle)
478
479     GetBytecodeProfile(WebKit::CallbackID callbackID)
480
481     GetSamplingProfilerOutput(WebKit::CallbackID callbackID)
482     
483     TakeSnapshot(WebCore::IntRect snapshotRect, WebCore::IntSize bitmapSize, uint32_t options, WebKit::CallbackID callbackID)
484 #if PLATFORM(MAC)
485     PerformImmediateActionHitTestAtLocation(WebCore::FloatPoint location)
486     ImmediateActionDidUpdate()
487     ImmediateActionDidCancel()
488     ImmediateActionDidComplete()
489
490     DataDetectorsDidPresentUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
491     DataDetectorsDidChangeUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
492     DataDetectorsDidHideUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
493
494     HandleAcceptedCandidate(struct WebCore::TextCheckingResult acceptedCandidate)
495
496     SetUseSystemAppearance(bool useSystemAppearance);
497
498     SetHeaderBannerHeightForTesting(int height);
499     SetFooterBannerHeightForTesting(int height);
500 #endif
501
502     EffectiveAppearanceDidChange(bool useDarkAppearance, bool useElevatedUserInterfaceLevel);
503
504 #if PLATFORM(GTK)
505     ThemeDidChange(String themeName)
506 #endif
507
508 #if PLATFORM(COCOA)
509     RequestActiveNowPlayingSessionInfo(WebKit::CallbackID callbackID)
510 #endif
511
512     SetShouldDispatchFakeMouseMoveEvents(bool shouldDispatchFakeMouseMoveEvents)
513
514 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
515     PlaybackTargetSelected(uint64_t contextId, WebCore::MediaPlaybackTargetContext target)
516     PlaybackTargetAvailabilityDidChange(uint64_t contextId, bool available)
517     SetShouldPlayToPlaybackTarget(uint64_t contextId, bool shouldPlay)
518     PlaybackTargetPickerWasDismissed(uint64_t contextId);
519 #endif
520
521 #if ENABLE(POINTER_LOCK)
522     DidAcquirePointerLock()
523     DidNotAcquirePointerLock()
524     DidLosePointerLock()
525 #endif
526
527     clearWheelEventTestMonitor()
528     SetShouldScaleViewToFitDocument(bool shouldScaleViewToFitDocument)
529
530 #if ENABLE(VIDEO) && USE(GSTREAMER)
531     DidEndRequestInstallMissingMediaPlugins(uint32_t result)
532 #endif
533
534     SetUserInterfaceLayoutDirection(uint32_t direction)
535
536     DidGetLoadDecisionForIcon(bool decision, WebKit::CallbackID loadIdentifier, WebKit::OptionalCallbackID newCallbackID)
537     SetUseIconLoadingClient(bool useIconLoadingClient)
538
539 #if ENABLE(GAMEPAD)
540     GamepadActivity(Vector<WebKit::GamepadData> gamepadDatas, bool shouldMakeGamepadsVisible)
541 #endif
542
543     FrameBecameRemote(WebCore::FrameIdentifier frameID, struct WebCore::GlobalFrameIdentifier remoteFrameIdentifier, struct WebCore::GlobalWindowIdentifier remoteWindowIdentifier)
544
545     RegisterURLSchemeHandler(uint64_t identifier, String scheme)
546
547     URLSchemeTaskDidPerformRedirection(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceResponse response, WebCore::ResourceRequest request)
548     URLSchemeTaskDidReceiveResponse(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceResponse response)
549     URLSchemeTaskDidReceiveData(uint64_t handlerIdentifier, uint64_t taskIdentifier, IPC::SharedBufferDataReference data)
550     URLSchemeTaskDidComplete(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceError error)
551
552     SetIsSuspended(bool suspended)
553
554 #if ENABLE(ATTACHMENT_ELEMENT)
555     InsertAttachment(String identifier, Optional<uint64_t> fileSize, String fileName, String contentType, WebKit::CallbackID callbackID)
556     UpdateAttachmentAttributes(String identifier, Optional<uint64_t> fileSize, String contentType, String fileName, IPC::SharedBufferDataReference enclosingImageData, WebKit::CallbackID callbackID)
557 #endif
558
559 #if ENABLE(APPLICATION_MANIFEST)
560     GetApplicationManifest(WebKit::CallbackID callbackID)
561 #endif
562
563     SetDefersLoading(bool defersLoading)
564
565     UpdateCurrentModifierState(OptionSet<WebCore::PlatformEvent::Modifier> modifiers)
566     SimulateDeviceOrientationChange(double alpha, double beta, double gamma)
567
568 #if ENABLE(SPEECH_SYNTHESIS)
569     SpeakingErrorOccurred()
570     BoundaryEventOccurred(bool wordBoundary, unsigned charIndex)
571     VoicesDidChange()
572 #endif
573
574     TextInputContextsInRect(WebCore::FloatRect rect) -> (Vector<struct WebCore::ElementContext> contexts) Async
575     FocusTextInputContext(struct WebCore::ElementContext context) -> (bool success) Async
576     SetCanShowPlaceholder(struct WebCore::ElementContext context, bool canShowPlaceholder)
577
578 #if ENABLE(RESOURCE_LOAD_STATISTICS)
579     WasLoadedWithDataTransferFromPrevalentResource()
580     ClearLoadedThirdPartyDomains()
581     LoadedThirdPartyDomains() -> (Vector<WebCore::RegistrableDomain> domains) Async
582 #endif
583
584 #if USE(SYSTEM_PREVIEW)
585     SystemPreviewActionTriggered(struct WebCore::SystemPreviewInfo previewInfo, String message)
586 #endif
587
588 #if PLATFORM(GTK) || PLATFORM(WPE)
589     SendMessageToWebExtension(struct WebKit::UserMessage userMessage)
590     SendMessageToWebExtensionWithReply(struct WebKit::UserMessage userMessage) -> (struct WebKit::UserMessage replyMessage) Async
591 #endif
592
593     StartTextManipulations(Vector<WebCore::TextManipulationController::ExclusionRule> exclusionRules) -> () Async
594     CompleteTextManipulation(Vector<WebCore::TextManipulationController::ManipulationItem> items) -> (bool allFailed, Vector<WebCore::TextManipulationController::ManipulationFailure> failures) Async
595
596     SetOverriddenMediaType(String mediaType)
597     GetProcessDisplayName() -> (String displayName) Async
598
599     SetShouldFireResizeEvents(bool shouldFireResizeEvents)
600
601     SetHasResourceLoadClient(bool has)
602     SetIsNavigatingToAppBoundDomainTesting(bool isNavigatingToAppBoundDomain) -> () Async
603
604 }