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