Unreviewed, rolling out r251558.
[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, 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, 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     ContentSizeCategoryDidChange(String contentSizeCategory)
103     GetSelectionContext(WebKit::CallbackID callbackID)
104     SetAllowsMediaDocumentInlinePlayback(bool allows)
105     HandleTwoFingerTapAtPoint(WebCore::IntPoint point, OptionSet<WebKit::WebEvent::Modifier> modifiers, uint64_t requestID)
106     HandleStylusSingleTapAtPoint(WebCore::IntPoint point, uint64_t requestID)
107     SetForceAlwaysUserScalable(bool userScalable)
108     GetRectsForGranularityWithSelectionOffset(uint32_t granularity, int32_t offset, WebKit::CallbackID callbackID)
109     GetRectsAtSelectionOffsetWithText(int32_t offset, String text, WebKit::CallbackID callbackID)
110     StoreSelectionForAccessibility(bool shouldStore)
111     StartAutoscrollAtPosition(WebCore::FloatPoint positionInWindow)
112     CancelAutoscroll()
113     RequestFocusedElementInformation(WebKit::CallbackID callbackID)
114     HardwareKeyboardAvailabilityChanged(bool keyboardIsAttached)
115     SetIsShowingInputViewForFocusedElement(bool showingInputView)
116     UpdateSelectionWithDelta(int64_t locationDelta, int64_t lengthDelta) -> () Async
117     RequestDocumentEditingContext(struct WebKit::DocumentEditingContextRequest request) -> (struct WebKit::DocumentEditingContext response) Async
118 GenerateSyntheticEditingCommand(enum:uint8_t WebKit::SyntheticEditingCommandType command)
119 #endif
120
121     SetControlledByAutomation(bool controlled)
122
123     ConnectInspector(String targetId, Inspector::FrontendChannel::ConnectionType connectionType)
124     DisconnectInspector(String targetId)
125     SendMessageToTargetBackend(String targetId, String message)
126
127 #if ENABLE(REMOTE_INSPECTOR)
128     SetIndicating(bool indicating);
129 #endif
130
131 #if ENABLE(IOS_TOUCH_EVENTS)
132     ResetPotentialTapSecurityOrigin()
133     TouchEventSync(WebKit::WebTouchEvent event) -> (bool handled) Synchronous
134 #endif
135 #if !ENABLE(IOS_TOUCH_EVENTS) && ENABLE(TOUCH_EVENTS)
136     TouchEvent(WebKit::WebTouchEvent event)
137 #endif
138
139 #if ENABLE(POINTER_EVENTS)
140     CancelPointer(WebCore::PointerID pointerId, WebCore::IntPoint documentPoint)
141     TouchWithIdentifierWasRemoved(WebCore::PointerID pointerId)
142 #endif
143
144 #if ENABLE(INPUT_TYPE_COLOR)
145     DidEndColorPicker()
146     DidChooseColor(WebCore::Color color)
147 #endif
148
149 #if ENABLE(DATALIST_ELEMENT)
150     DidSelectDataListOption(String selectedOption);
151     DidCloseSuggestions();
152 #endif
153
154 #if ENABLE(CONTEXT_MENUS)
155     ContextMenuHidden()
156     ContextMenuForKeyEvent()
157 #endif
158
159     ScrollBy(uint32_t scrollDirection, uint32_t scrollGranularity)
160     CenterSelectionInVisibleArea()
161
162     GoToBackForwardItem(uint64_t navigationID, struct WebCore::BackForwardItemIdentifier backForwardItemID, enum:uint8_t WebCore::FrameLoadType backForwardType, enum:bool WebCore::ShouldTreatAsContinuingLoad shouldTreatAsContinuingLoad, Optional<WebKit::WebsitePoliciesData> websitePolicies)
163     TryRestoreScrollPosition()
164
165     LoadURLInFrame(URL url, String referrer, WebCore::FrameIdentifier frameID)
166     LoadDataInFrame(IPC::DataReference data, String MIMEType, String encodingName, URL baseURL, WebCore::FrameIdentifier frameID)
167     LoadRequest(struct WebKit::LoadParameters loadParameters)
168     LoadRequestWaitingForPID(struct WebKit::LoadParameters loadParameters, URL resourceDirectoryURL, WebKit::WebPageProxyIdentifier pageID)
169     LoadData(struct WebKit::LoadParameters loadParameters)
170     LoadAlternateHTML(struct WebKit::LoadParameters loadParameters)
171
172     NavigateToPDFLinkWithSimulatedClick(String url, WebCore::IntPoint documentPoint, WebCore::IntPoint screenPoint)
173
174     Reload(uint64_t navigationID, uint32_t reloadOptions, WebKit::SandboxExtension::Handle sandboxExtensionHandle)
175     StopLoading()
176
177     StopLoadingFrame(WebCore::FrameIdentifier frameID)
178     
179     RestoreSession(Vector<WebKit::BackForwardListItemState> itemStates)
180     UpdateBackForwardListForReattach(Vector<WebKit::BackForwardListItemState> itemStates)
181     SetCurrentHistoryItemForReattach(struct WebKit::BackForwardListItemState itemState)
182
183     DidRemoveBackForwardItem(struct WebCore::BackForwardItemIdentifier backForwardItemID)
184
185     UpdateWebsitePolicies(struct WebKit::WebsitePoliciesData websitePolicies)
186     DidReceivePolicyDecision(WebCore::FrameIdentifier frameID, uint64_t listenerID, WebCore::PolicyCheckIdentifier policyCheckIdentifier, enum:uint8_t WebCore::PolicyAction policyAction, uint64_t navigationID, WebKit::DownloadID downloadID, Optional<WebKit::WebsitePoliciesData> websitePolicies)
187     ContinueWillSubmitForm(WebCore::FrameIdentifier frameID, uint64_t listenerID)
188
189     ClearSelection()
190     RestoreSelectionInFocusedEditableElement()
191
192     # Callbacks.
193     GetContentsAsString(WebKit::CallbackID callbackID)
194 #if PLATFORM(COCOA)
195     GetContentsAsAttributedString() -> (struct WebKit::AttributedString result) Async
196 #endif
197 #if ENABLE(MHTML)
198     GetContentsAsMHTMLData(WebKit::CallbackID callbackID)
199 #endif
200     GetMainResourceDataOfFrame(WebCore::FrameIdentifier frameID, WebKit::CallbackID callbackID)
201     GetResourceDataFromFrame(WebCore::FrameIdentifier frameID, String resourceURL, WebKit::CallbackID callbackID)
202     GetRenderTreeExternalRepresentation(WebKit::CallbackID callbackID)
203     GetSelectionOrContentsAsString(WebKit::CallbackID callbackID)
204     GetSelectionAsWebArchiveData(WebKit::CallbackID callbackID)
205     GetSourceForFrame(WebCore::FrameIdentifier frameID, WebKit::CallbackID callbackID)
206     GetWebArchiveOfFrame(WebCore::FrameIdentifier frameID, WebKit::CallbackID callbackID)
207     RunJavaScriptInMainFrameScriptWorld(String script, bool forceUserGesture, Optional<String> worldName, WebKit::CallbackID callbackID)
208     RunJavaScriptInFrame(WebCore::FrameIdentifier frameID, String script, bool forceUserGesture, WebKit::CallbackID callbackID)
209     ForceRepaint(WebKit::CallbackID callbackID)
210
211     SelectAll()
212     ScheduleFullEditorStateUpdate()
213
214 #if PLATFORM(COCOA)
215     # Dictionary support.
216     PerformDictionaryLookupOfCurrentSelection()
217     PerformDictionaryLookupAtLocation(WebCore::FloatPoint point)
218 #endif
219
220 #if ENABLE(DATA_DETECTION)
221     DetectDataInAllFrames(uint64_t types) -> (struct WebKit::DataDetectionResult result) Async
222     RemoveDataDetectedLinks() -> (struct WebKit::DataDetectionResult result) Async
223 #endif
224
225     ChangeFont(WebCore::FontChanges changes)
226     ChangeFontAttributes(WebCore::FontAttributeChanges changes)
227
228     PreferencesDidChange(struct WebKit::WebPreferencesStore store)
229
230     SetUserAgent(String userAgent)
231     SetCustomTextEncodingName(String encodingName)
232
233     SuspendActiveDOMObjectsAndAnimations()
234     ResumeActiveDOMObjectsAndAnimations()
235
236     Close()
237     TryClose()
238
239     SetEditable(bool editable)
240     ValidateCommand(String name, WebKit::CallbackID callbackID)
241     ExecuteEditCommand(String name, String argument)
242
243     IncreaseListLevel()
244     DecreaseListLevel()
245     ChangeListType()
246
247     SetBaseWritingDirection(enum:uint8_t WebCore::WritingDirection direction)
248
249     SetNeedsFontAttributes(bool needsFontAttributes)
250
251     RequestFontAttributesAtSelectionStart(WebKit::CallbackID callbackID)
252
253     DidRemoveEditCommand(uint64_t commandID)
254     ReapplyEditCommand(uint64_t commandID)
255     UnapplyEditCommand(uint64_t commandID)
256
257     SetPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor)
258     SetPageZoomFactor(double zoomFactor)
259     SetTextZoomFactor(double zoomFactor)
260     WindowScreenDidChange(uint32_t displayID)
261
262     AccessibilitySettingsDidChange()
263
264     ScalePage(double scale, WebCore::IntPoint origin)
265     ScalePageInViewCoordinates(double scale, WebCore::IntPoint centerInViewCoordinates)
266     ScaleView(double scale)
267
268     SetUseFixedLayout(bool fixed)
269     SetFixedLayoutSize(WebCore::IntSize size)
270     ListenForLayoutMilestones(OptionSet<WebCore::LayoutMilestone> layoutMilestones)
271     SetSuppressScrollbarAnimations(bool suppressAnimations)
272
273     SetEnableVerticalRubberBanding(bool enableVerticalRubberBanding)
274     SetEnableHorizontalRubberBanding(bool enableHorizontalRubberBanding)
275
276     SetBackgroundExtendsBeyondPage(bool backgroundExtendsBeyondPage)
277
278     SetPaginationMode(uint32_t mode)
279     SetPaginationBehavesLikeColumns(bool behavesLikeColumns)
280     SetPageLength(double pageLength)
281     SetGapBetweenPages(double gap)
282     SetPaginationLineGridEnabled(bool lineGridEnabled)
283
284     PostInjectedBundleMessage(String messageName, WebKit::UserData messageBody)
285
286     # Find.
287     FindString(String string, uint32_t findOptions, unsigned maxMatchCount)
288     FindStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
289     GetImageForFindMatch(uint32_t matchIndex)
290     SelectFindMatch(uint32_t matchIndex)
291     IndicateFindMatch(uint32_t matchIndex)
292     HideFindUI()
293     CountStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
294     ReplaceMatches(Vector<uint32_t> matchIndices, String replacementText, bool selectionOnly, WebKit::CallbackID callbackID)
295     
296     AddMIMETypeWithCustomContentProvider(String mimeType)
297
298     # Drag and drop.
299 #if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
300     PerformDragControllerAction(enum:uint8_t WebKit::DragControllerAction action, WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t draggingSourceOperationMask, struct WebKit::WebSelectionData selection, uint32_t flags)
301 #endif
302 #if !PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
303     PerformDragControllerAction(enum:uint8_t WebKit::DragControllerAction action, WebCore::DragData dragData, WebKit::SandboxExtension::Handle sandboxExtensionHandle, WebKit::SandboxExtension::HandleArray sandboxExtensionsForUpload)
304 #endif
305 #if ENABLE(DRAG_SUPPORT)
306     DidStartDrag()
307     DragEnded(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t operation)
308     DragCancelled()
309 #endif
310
311 #if PLATFORM(IOS_FAMILY) && ENABLE(DRAG_SUPPORT)
312     RequestDragStart(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t allowedActions)
313     RequestAdditionalItemsForDragSession(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t allowedActions)
314     InsertDroppedImagePlaceholders(Vector<WebCore::IntSize> imageSize) -> (Vector<WebCore::IntRect> dropPreviewRects, Optional<WebCore::TextIndicatorData> textIndicator) Async
315     DidConcludeDrop()
316 #endif
317
318     # Popup menu.
319     DidChangeSelectedIndexForActivePopupMenu(int32_t newIndex)
320     SetTextForActivePopupMenu(int32_t index)
321 #if PLATFORM(GTK)
322     FailedToShowPopupMenu()
323 #endif
324
325 #if ENABLE(CONTEXT_MENUS)
326     # Context menu.
327     DidSelectItemFromActiveContextMenu(WebKit::WebContextMenuItemData menuItem)
328 #endif
329
330     # Open panel.
331 #if PLATFORM(IOS_FAMILY)
332     DidChooseFilesForOpenPanelWithDisplayStringAndIcon(Vector<String> fileURLs, String displayString, IPC::DataReference iconData)
333 #endif
334     DidChooseFilesForOpenPanel(Vector<String> fileURLs)
335     DidCancelForOpenPanel()
336     DidCompleteShareSheet(bool wasGranted, uint64_t callbackID)
337 #if ENABLE(SANDBOX_EXTENSIONS)
338     ExtendSandboxForFilesFromOpenPanel(WebKit::SandboxExtension::HandleArray sandboxExtensions)
339 #endif
340
341     # Spelling and grammar.
342     AdvanceToNextMisspelling(bool startBeforeSelection)
343     ChangeSpellingToWord(String word)
344     DidFinishCheckingText(uint64_t requestID, Vector<WebCore::TextCheckingResult> result)
345     DidCancelCheckingText(uint64_t requestID)
346 #if USE(APPKIT)
347     UppercaseWord()
348     LowercaseWord()
349     CapitalizeWord()
350 #endif
351 #if PLATFORM(COCOA)
352     SetSmartInsertDeleteEnabled(bool isSmartInsertDeleteEnabled)
353 #endif
354
355 #if ENABLE(GEOLOCATION)
356     # Geolocation
357     DidReceiveGeolocationPermissionDecision(uint64_t geolocationID, bool allowed)
358 #endif
359
360 #if ENABLE(MEDIA_STREAM)
361     # MediaSteam
362     UserMediaAccessWasGranted(uint64_t userMediaID, WebCore::CaptureDevice audioDevice, WebCore::CaptureDevice videoDevice, String mediaDeviceIdentifierHashSalt) -> () Async
363     UserMediaAccessWasDenied(uint64_t userMediaID, uint64_t reason, String invalidConstraint)
364     CaptureDevicesChanged()
365 #endif
366
367 #if ENABLE(WEB_RTC)
368     DisableICECandidateFiltering()
369     EnableICECandidateFiltering()
370 #endif
371 #if ENABLE(WEB_RTC) && USE(LIBWEBRTC)
372     EnableEnumeratingAllNetworkInterfaces()
373     DisableEnumeratingAllNetworkInterfaces()
374 #endif
375
376     StopAllMediaPlayback();
377     SuspendAllMediaPlayback();
378     ResumeAllMediaPlayback();
379
380     # Notification
381     DidReceiveNotificationPermissionDecision(uint64_t notificationID, bool allowed)
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)
414     SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd)
415     ConfirmComposition(String text, int64_t selectionStart, int64_t selectionLength)
416     CancelComposition()
417
418     CollapseSelectionInFrame(WebCore::FrameIdentifier frameID)
419
420     GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center) Synchronous
421 #endif
422
423 #if PLATFORM(COCOA)
424     # Complex text input support for plug-ins.
425     SendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, String textInput)
426
427     WindowAndViewFramesChanged(WebCore::FloatRect windowFrameInScreenCoordinates, WebCore::FloatRect windowFrameInUnflippedScreenCoordinates, WebCore::FloatRect viewFrameInWindowCoordinates, WebCore::FloatPoint accessibilityViewCoordinates)
428     SetMainFrameIsScrollable(bool isScrollable)
429     RegisterUIProcessAccessibilityTokens(IPC::DataReference elemenToken, IPC::DataReference windowToken)
430     GetStringSelectionForPasteboard() -> (String stringValue) Synchronous
431     GetDataSelectionForPasteboard(String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size) Synchronous
432     ReadSelectionFromPasteboard(String pasteboardName) -> (bool result) Synchronous
433
434 #if ENABLE(SERVICE_CONTROLS)
435     ReplaceSelectionWithPasteboardData(Vector<String> types, IPC::DataReference data)
436 #endif
437
438     ShouldDelayWindowOrderingEvent(WebKit::WebMouseEvent event) -> (bool result) Synchronous
439     AcceptsFirstMouse(int eventNumber, WebKit::WebMouseEvent event) -> (bool result) Synchronous
440
441     SetTextAsync(String text)
442     InsertTextAsync(String text, struct WebKit::EditingRange replacementRange, struct WebKit::InsertTextOptions options)
443     HasMarkedText() -> (bool hasMarkedText) Async
444     GetMarkedRangeAsync(WebKit::CallbackID callbackID)
445     GetSelectedRangeAsync(WebKit::CallbackID callbackID)
446     CharacterIndexForPointAsync(WebCore::IntPoint point, WebKit::CallbackID callbackID);
447     FirstRectForCharacterRangeAsync(struct WebKit::EditingRange range, WebKit::CallbackID callbackID);
448     SetCompositionAsync(String text, Vector<WebCore::CompositionUnderline> underlines, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange)
449     ConfirmCompositionAsync()
450 #endif
451 #if PLATFORM(MAC)
452     InsertDictatedTextAsync(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives, bool registerUndoGroup)
453     AttributedSubstringForCharacterRangeAsync(struct WebKit::EditingRange range, WebKit::CallbackID callbackID);
454     FontAtSelection(WebKit::CallbackID callbackID)
455 #endif
456
457     SetAlwaysShowsHorizontalScroller(bool alwaysShowsHorizontalScroller)
458     SetAlwaysShowsVerticalScroller(bool alwaysShowsVerticalScroller)
459
460     SetMinimumSizeForAutoLayout(WebCore::IntSize size)
461     SetAutoSizingShouldExpandToViewHeight(bool shouldExpand)
462
463     SetViewportSizeForCSSViewportUnits(Optional<WebCore::IntSize> viewportSize)
464
465 #if PLATFORM(COCOA)
466     HandleAlternativeTextUIResult(String result)
467 #endif
468
469 #if PLATFORM(IOS_FAMILY)
470     WillStartUserTriggeredZooming();
471 #endif
472
473     SetScrollPinningBehavior(uint32_t pinning)
474     SetScrollbarOverlayStyle(Optional<uint32_t> scrollbarStyle)
475
476     GetBytecodeProfile(WebKit::CallbackID callbackID)
477
478     GetSamplingProfilerOutput(WebKit::CallbackID callbackID)
479     
480     TakeSnapshot(WebCore::IntRect snapshotRect, WebCore::IntSize bitmapSize, uint32_t options, WebKit::CallbackID callbackID)
481 #if PLATFORM(MAC)
482     PerformImmediateActionHitTestAtLocation(WebCore::FloatPoint location)
483     ImmediateActionDidUpdate()
484     ImmediateActionDidCancel()
485     ImmediateActionDidComplete()
486
487     DataDetectorsDidPresentUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
488     DataDetectorsDidChangeUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
489     DataDetectorsDidHideUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
490
491     HandleAcceptedCandidate(struct WebCore::TextCheckingResult acceptedCandidate)
492
493     SetUseSystemAppearance(bool useSystemAppearance);
494
495     SetHeaderBannerHeightForTesting(int height);
496     SetFooterBannerHeightForTesting(int height);
497 #endif
498
499     EffectiveAppearanceDidChange(bool useDarkAppearance, bool useElevatedUserInterfaceLevel);
500
501 #if PLATFORM(COCOA)
502     RequestActiveNowPlayingSessionInfo(WebKit::CallbackID callbackID)
503 #endif
504
505     SetShouldDispatchFakeMouseMoveEvents(bool shouldDispatchFakeMouseMoveEvents)
506
507 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
508     PlaybackTargetSelected(uint64_t contextId, WebCore::MediaPlaybackTargetContext target)
509     PlaybackTargetAvailabilityDidChange(uint64_t contextId, bool available)
510     SetShouldPlayToPlaybackTarget(uint64_t contextId, bool shouldPlay)
511 #endif
512
513 #if ENABLE(POINTER_LOCK)
514     DidAcquirePointerLock()
515     DidNotAcquirePointerLock()
516     DidLosePointerLock()
517 #endif
518
519     clearWheelEventTestMonitor()
520     SetShouldScaleViewToFitDocument(bool shouldScaleViewToFitDocument)
521
522 #if ENABLE(VIDEO) && USE(GSTREAMER)
523     DidEndRequestInstallMissingMediaPlugins(uint32_t result)
524 #endif
525
526     SetUserInterfaceLayoutDirection(uint32_t direction)
527
528     DidGetLoadDecisionForIcon(bool decision, WebKit::CallbackID loadIdentifier, WebKit::OptionalCallbackID newCallbackID)
529     SetUseIconLoadingClient(bool useIconLoadingClient)
530
531 #if ENABLE(GAMEPAD)
532     GamepadActivity(Vector<WebKit::GamepadData> gamepadDatas, bool shouldMakeGamepadsVisible)
533 #endif
534
535 #if USE(QUICK_LOOK)
536     DidReceivePasswordForQuickLookDocument(String password)
537 #endif
538
539     FrameBecameRemote(WebCore::FrameIdentifier frameID, struct WebCore::GlobalFrameIdentifier remoteFrameIdentifier, struct WebCore::GlobalWindowIdentifier remoteWindowIdentifier)
540
541     RegisterURLSchemeHandler(uint64_t identifier, String scheme)
542
543     URLSchemeTaskDidPerformRedirection(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceResponse response, WebCore::ResourceRequest request)
544     URLSchemeTaskDidReceiveResponse(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceResponse response)
545     URLSchemeTaskDidReceiveData(uint64_t handlerIdentifier, uint64_t taskIdentifier, IPC::SharedBufferDataReference data)
546     URLSchemeTaskDidComplete(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceError error)
547
548     SetIsSuspended(bool suspended)
549
550 #if ENABLE(ATTACHMENT_ELEMENT)
551     InsertAttachment(String identifier, Optional<uint64_t> fileSize, String fileName, String contentType, WebKit::CallbackID callbackID)
552     UpdateAttachmentAttributes(String identifier, Optional<uint64_t> fileSize, String contentType, String fileName, IPC::SharedBufferDataReference enclosingImageData, WebKit::CallbackID callbackID)
553 #endif
554
555 #if ENABLE(APPLICATION_MANIFEST)
556     GetApplicationManifest(WebKit::CallbackID callbackID)
557 #endif
558
559     SetDefersLoading(bool defersLoading)
560
561     UpdateCurrentModifierState(OptionSet<WebCore::PlatformEvent::Modifier> modifiers)
562     SimulateDeviceOrientationChange(double alpha, double beta, double gamma)
563
564 #if ENABLE(SPEECH_SYNTHESIS)
565     SpeakingErrorOccurred()
566     BoundaryEventOccurred(bool wordBoundary, unsigned charIndex)
567     VoicesDidChange()
568 #endif
569
570     TextInputContextsInRect(WebCore::FloatRect rect) -> (Vector<struct WebCore::ElementContext> contexts) Async
571     FocusTextInputContext(struct WebCore::ElementContext context) -> (bool success) Async
572
573 #if ENABLE(RESOURCE_LOAD_STATISTICS)
574     WasLoadedWithDataTransferFromPrevalentResource()
575 #endif
576
577 #if USE(SYSTEM_PREVIEW)
578     SystemPreviewActionTriggered(struct WebCore::SystemPreviewInfo previewInfo, String message)
579 #endif
580
581 #if PLATFORM(GTK) || PLATFORM(WPE)
582     SendMessageToWebExtension(struct WebKit::UserMessage userMessage)
583     SendMessageToWebExtensionWithReply(struct WebKit::UserMessage userMessage) -> (struct WebKit::UserMessage replyMessage) Async
584 #endif
585 }