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