bc9e3ec085cfd2996d91832f7e40d3ec3b61bd42
[WebKit-https.git] / Source / WebKit / WebProcess / WebPage / WebPage.messages.in
1 # Copyright (C) 2010-2016 Apple Inc. All rights reserved.
2 #
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions
5 # are met:
6 # 1.  Redistributions of source code must retain the above copyright
7 #     notice, this list of conditions and the following disclaimer.
8 # 2.  Redistributions in binary form must reproduce the above copyright
9 #     notice, this list of conditions and the following disclaimer in the
10 #     documentation and/or other materials provided with the distribution.
11 #
12 # THIS SOFTWARE IS PROVIDED BY APPLE INC. AND ITS CONTRIBUTORS ``AS IS'' AND
13 # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
14 # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
15 # DISCLAIMED. IN NO EVENT SHALL APPLE INC. OR ITS CONTRIBUTORS BE LIABLE FOR
16 # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
17 # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
18 # SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
19 # CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
20 # OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
21 # OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
22
23 messages -> 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     SetDrawsBackground(bool drawsBackground)
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, uint64_t lastLayerTreeTransactionId)
55     PotentialTapAtPosition(uint64_t requestID, WebCore::FloatPoint point)
56     CommitPotentialTap(uint64_t lastLayerTreeTransactionId)
57     CancelPotentialTap()
58     TapHighlightAtPosition(uint64_t requestID, WebCore::FloatPoint point)
59     InspectorNodeSearchMovedToPosition(WebCore::FloatPoint point)
60     InspectorNodeSearchEndedAtPosition(WebCore::FloatPoint point)
61     BlurAssistedNode()
62     SelectWithGesture(WebCore::IntPoint point, uint32_t granularity, uint32_t gestureType, uint32_t gestureState, bool isInteractingWithAssistedNode, 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 isInteractingWithAssistedNode, WebKit::CallbackID callbackID)
69     SelectPositionAtBoundaryWithDirection(WebCore::IntPoint point, uint32_t granularity, uint32_t direction, bool isInteractingWithAssistedNode, WebKit::CallbackID callbackID)
70     MoveSelectionAtBoundaryWithDirection(uint32_t granularity, uint32_t direction, WebKit::CallbackID callbackID)
71     SelectPositionAtPoint(WebCore::IntPoint point, bool isInteractingWithAssistedNode, WebKit::CallbackID callbackID)
72     BeginSelectionInDirection(uint32_t direction, WebKit::CallbackID callbackID)
73     UpdateSelectionWithExtentPoint(WebCore::IntPoint point, bool isInteractingWithAssistedNode, WebKit::CallbackID callbackID)
74     UpdateSelectionWithExtentPointAndBoundary(WebCore::IntPoint point, uint32_t granularity, bool isInteractingWithAssistedNode, 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) LegacySync
81     RequestAutocorrectionContext(WebKit::CallbackID callbackID)
82     GetAutocorrectionContext() -> (String beforeContext, String markedText, String selectedText, String afterContext, uint64_t location, uint64_t length) LegacySync
83     GetPositionInformation(struct WebKit::InteractionInformationRequest request) -> (struct WebKit::InteractionInformationAtPosition information) LegacySync
84     RequestPositionInformation(struct WebKit::InteractionInformationRequest request)
85     StartInteractionWithElementAtPosition(WebCore::IntPoint point)
86     StopInteraction()
87     PerformActionOnElement(uint32_t action)
88     FocusNextAssistedNode(bool isForward, WebKit::CallbackID callbackID)
89     SetAssistedNodeValue(String value)
90     AutofillLoginCredentials(String username, String password)
91     SetAssistedNodeValueAsNumber(double value)
92     SetAssistedNodeSelectedIndex(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, 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     RequestAssistedNodeInformation(WebKit::CallbackID callbackID)
110     HardwareKeyboardAvailabilityChanged()
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) LegacySync
125 #endif
126 #if !ENABLE(IOS_TOUCH_EVENTS) && ENABLE(TOUCH_EVENTS)
127     TouchEvent(WebKit::WebTouchEvent event)
128 #endif
129
130 #if ENABLE(INPUT_TYPE_COLOR)
131     DidEndColorPicker()
132     DidChooseColor(WebCore::Color color)
133 #endif
134
135 #if ENABLE(DATALIST_ELEMENT)
136     DidSelectDataListOption(String selectedOption);
137     DidCloseSuggestions();
138 #endif
139
140 #if ENABLE(CONTEXT_MENUS)
141     ContextMenuHidden()
142     ContextMenuForKeyEvent()
143 #endif
144
145     ScrollBy(uint32_t scrollDirection, uint32_t scrollGranularity)
146     CenterSelectionInVisibleArea()
147
148     GoToBackForwardItem(uint64_t navigationID, struct WebCore::BackForwardItemIdentifier backForwardItemID, enum:uint8_t WebCore::FrameLoadType backForwardType, enum:bool WebCore::ShouldTreatAsContinuingLoad shouldTreatAsContinuingLoad, Optional<WebKit::WebsitePoliciesData> websitePolicies)
149     TryRestoreScrollPosition()
150
151     LoadURLInFrame(URL url, uint64_t frameID)
152     LoadRequest(struct WebKit::LoadParameters loadParameters)
153     LoadData(struct WebKit::LoadParameters loadParameters)
154     LoadAlternateHTML(struct WebKit::LoadParameters loadParameters)
155
156     NavigateToPDFLinkWithSimulatedClick(String url, WebCore::IntPoint documentPoint, WebCore::IntPoint screenPoint)
157
158     Reload(uint64_t navigationID, uint32_t reloadOptions, WebKit::SandboxExtension::Handle sandboxExtensionHandle)
159     StopLoading()
160
161     StopLoadingFrame(uint64_t frameID)
162     
163     RestoreSession(Vector<WebKit::BackForwardListItemState> itemStates)
164     UpdateBackForwardListForReattach(Vector<WebKit::BackForwardListItemState> itemStates)
165     SetCurrentHistoryItemForReattach(struct WebKit::BackForwardListItemState itemState)
166
167     DidRemoveBackForwardItem(struct WebCore::BackForwardItemIdentifier backForwardItemID)
168
169     UpdateWebsitePolicies(struct WebKit::WebsitePoliciesData websitePolicies)
170     DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, enum:uint8_t WebKit::WebPolicyAction policyAction, uint64_t navigationID, WebKit::DownloadID downloadID, Optional<WebKit::WebsitePoliciesData> websitePolicies)
171     ContinueWillSubmitForm(uint64_t frameID, uint64_t listenerID)
172
173     ClearSelection()
174     RestoreSelectionInFocusedEditableElement()
175
176     # Callbacks.
177     GetContentsAsString(WebKit::CallbackID callbackID)
178 #if ENABLE(MHTML)
179     GetContentsAsMHTMLData(WebKit::CallbackID callbackID)
180 #endif
181     GetMainResourceDataOfFrame(uint64_t frameID, WebKit::CallbackID callbackID)
182     GetResourceDataFromFrame(uint64_t frameID, String resourceURL, WebKit::CallbackID callbackID)
183     GetRenderTreeExternalRepresentation(WebKit::CallbackID callbackID)
184     GetSelectionOrContentsAsString(WebKit::CallbackID callbackID)
185     GetSelectionAsWebArchiveData(WebKit::CallbackID callbackID)
186     GetSourceForFrame(uint64_t frameID, WebKit::CallbackID callbackID)
187     GetWebArchiveOfFrame(uint64_t frameID, WebKit::CallbackID callbackID)
188     RunJavaScriptInMainFrame(String script, bool forceUserGesture, WebKit::CallbackID callbackID)
189     RunJavaScriptInMainFrameScriptWorld(String script, bool forceUserGesture, String worldName, WebKit::CallbackID callbackID)
190     ForceRepaint(WebKit::CallbackID callbackID)
191
192 #if PLATFORM(COCOA)
193     # Dictionary support.
194     PerformDictionaryLookupOfCurrentSelection()
195     PerformDictionaryLookupAtLocation(WebCore::FloatPoint point)
196 #endif
197
198 #if ENABLE(DATA_DETECTION)
199     DetectDataInAllFrames(uint64_t types) -> (struct WebKit::DataDetectionResult result) Async
200     RemoveDataDetectedLinks() -> (struct WebKit::DataDetectionResult result) Async
201 #endif
202
203     ChangeFont(WebCore::FontChanges changes)
204     ChangeFontAttributes(WebCore::FontAttributeChanges changes)
205
206     PreferencesDidChange(struct WebKit::WebPreferencesStore store)
207
208     SetUserAgent(String userAgent)
209     SetCustomTextEncodingName(String encodingName)
210
211     SuspendActiveDOMObjectsAndAnimations()
212     ResumeActiveDOMObjectsAndAnimations()
213
214     Close()
215     TryClose()
216
217     SetEditable(bool editable)
218     ValidateCommand(String name, WebKit::CallbackID callbackID)
219     ExecuteEditCommand(String name, String argument)
220
221     IncreaseListLevel()
222     DecreaseListLevel()
223     ChangeListType()
224
225     SetBaseWritingDirection(enum:uint8_t WebCore::WritingDirection direction)
226
227     SetNeedsFontAttributes(bool needsFontAttributes)
228
229     RequestFontAttributesAtSelectionStart(WebKit::CallbackID callbackID)
230
231     DidRemoveEditCommand(uint64_t commandID)
232     ReapplyEditCommand(uint64_t commandID)
233     UnapplyEditCommand(uint64_t commandID)
234
235     SetPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor)
236     SetPageZoomFactor(double zoomFactor)
237     SetTextZoomFactor(double zoomFactor)
238     WindowScreenDidChange(uint32_t displayID)
239
240     AccessibilitySettingsDidChange()
241 #if ENABLE(ACCESSIBILITY_EVENTS)
242     UpdateAccessibilityEventsEnabled(bool enabled)
243 #endif
244
245     ScalePage(double scale, WebCore::IntPoint origin)
246     ScalePageInViewCoordinates(double scale, WebCore::IntPoint centerInViewCoordinates)
247     ScaleView(double scale)
248
249     SetUseFixedLayout(bool fixed)
250     SetFixedLayoutSize(WebCore::IntSize size)
251     ListenForLayoutMilestones(OptionSet<WebCore::LayoutMilestone> layoutMilestones)
252     SetSuppressScrollbarAnimations(bool suppressAnimations)
253
254     SetEnableVerticalRubberBanding(bool enableVerticalRubberBanding)
255     SetEnableHorizontalRubberBanding(bool enableHorizontalRubberBanding)
256
257     SetBackgroundExtendsBeyondPage(bool backgroundExtendsBeyondPage)
258
259     SetPaginationMode(uint32_t mode)
260     SetPaginationBehavesLikeColumns(bool behavesLikeColumns)
261     SetPageLength(double pageLength)
262     SetGapBetweenPages(double gap)
263     SetPaginationLineGridEnabled(bool lineGridEnabled)
264
265     PostInjectedBundleMessage(String messageName, WebKit::UserData messageBody)
266
267     # Find.
268     FindString(String string, uint32_t findOptions, unsigned maxMatchCount)
269     FindStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
270     GetImageForFindMatch(uint32_t matchIndex)
271     SelectFindMatch(uint32_t matchIndex)
272     HideFindUI()
273     CountStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
274     ReplaceMatches(Vector<uint32_t> matchIndices, String replacementText, bool selectionOnly, WebKit::CallbackID callbackID)
275     
276     AddMIMETypeWithCustomContentProvider(String mimeType)
277
278     # Drag and drop.
279 #if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
280     PerformDragControllerAction(enum:uint8_t WebKit::DragControllerAction action, WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t draggingSourceOperationMask, struct WebKit::WebSelectionData selection, uint32_t flags)
281 #endif
282 #if !PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
283     PerformDragControllerAction(enum:uint8_t WebKit::DragControllerAction action, WebCore::DragData dragData, WebKit::SandboxExtension::Handle sandboxExtensionHandle, WebKit::SandboxExtension::HandleArray sandboxExtensionsForUpload)
284 #endif
285 #if ENABLE(DRAG_SUPPORT)
286     DidStartDrag()
287     DragEnded(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t operation)
288     DragCancelled()
289 #endif
290
291 #if ENABLE(DATA_INTERACTION)
292     RequestStartDataInteraction(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition)
293     RequestAdditionalItemsForDragSession(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition)
294 #endif
295
296     # Popup menu.
297     DidChangeSelectedIndexForActivePopupMenu(int32_t newIndex)
298     SetTextForActivePopupMenu(int32_t index)
299 #if PLATFORM(GTK)
300     FailedToShowPopupMenu()
301 #endif
302
303 #if ENABLE(CONTEXT_MENUS)
304     # Context menu.
305     DidSelectItemFromActiveContextMenu(WebKit::WebContextMenuItemData menuItem)
306 #endif
307
308     # Open panel.
309 #if PLATFORM(IOS_FAMILY)
310     DidChooseFilesForOpenPanelWithDisplayStringAndIcon(Vector<String> fileURLs, String displayString, IPC::DataReference iconData)
311 #endif
312     DidChooseFilesForOpenPanel(Vector<String> fileURLs)
313     DidCancelForOpenPanel()
314     DidCompleteShareSheet(bool wasGranted, uint64_t callbackID)
315 #if ENABLE(SANDBOX_EXTENSIONS)
316     ExtendSandboxForFilesFromOpenPanel(WebKit::SandboxExtension::HandleArray sandboxExtensions)
317 #endif
318
319     # Spelling and grammar.
320     AdvanceToNextMisspelling(bool startBeforeSelection)
321     ChangeSpellingToWord(String word)
322     DidFinishCheckingText(uint64_t requestID, Vector<WebCore::TextCheckingResult> result)
323     DidCancelCheckingText(uint64_t requestID)
324 #if USE(APPKIT)
325     UppercaseWord()
326     LowercaseWord()
327     CapitalizeWord()
328 #endif
329 #if PLATFORM(COCOA)
330     SetSmartInsertDeleteEnabled(bool isSmartInsertDeleteEnabled)
331 #endif
332
333 #if ENABLE(GEOLOCATION)
334     # Geolocation
335     DidReceiveGeolocationPermissionDecision(uint64_t geolocationID, bool allowed)
336 #endif
337
338 #if ENABLE(MEDIA_STREAM)
339     # MediaSteam
340     UserMediaAccessWasGranted(uint64_t userMediaID, WebCore::CaptureDevice audioDevice, WebCore::CaptureDevice videoDevice, String mediaDeviceIdentifierHashSalt)
341     UserMediaAccessWasDenied(uint64_t userMediaID, uint64_t reason, String invalidConstraint)
342     DidCompleteMediaDeviceEnumeration(uint64_t userMediaID, Vector<WebCore::CaptureDevice> devices, String mediaDeviceIdentifierHashSalt, bool hasPersistentAccess)
343     CaptureDevicesChanged()
344 #if ENABLE(SANDBOX_EXTENSIONS)
345     GrantUserMediaDeviceSandboxExtensions(WebKit::MediaDeviceSandboxExtensions sandboxExtensions)
346     RevokeUserMediaDeviceSandboxExtensions(Vector<String> sandboxExtensionIDs)
347 #endif
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     # Notification
360     DidReceiveNotificationPermissionDecision(uint64_t notificationID, bool allowed)
361
362     # Printing.
363     BeginPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo)
364     EndPrinting()
365     ComputePagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID)
366 #if PLATFORM(COCOA)
367     DrawRectToImage(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebCore::IntRect rect, WebCore::IntSize imageSize, WebKit::CallbackID callbackID)
368     DrawPagesToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint32_t first, uint32_t count, WebKit::CallbackID callbackID)
369 #if PLATFORM(IOS_FAMILY)
370     ComputePagesForPrintingAndDrawToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID) -> (uint32_t pageCount) Delayed
371 #endif
372 #endif
373 #if PLATFORM(GTK)
374     DrawPagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebKit::CallbackID callbackID)
375 #endif
376
377     # Media
378     SetMediaVolume(float volume)
379     SetMuted(WebCore::MediaProducer::MutedStateFlags muted)
380     SetMayStartMediaWhenInWindow(bool mayStartMedia)
381     StopMediaCapture()
382
383 #if ENABLE(MEDIA_SESSION)
384     HandleMediaEvent(uint32_t eventType)
385     SetVolumeOfMediaElement(double volume, uint64_t elementID)
386 #endif
387
388     SetCanRunBeforeUnloadConfirmPanel(bool canRunBeforeUnloadConfirmPanel)
389     SetCanRunModal(bool canRunModal)
390
391 #if PLATFORM(GTK)
392     SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd)
393     ConfirmComposition(String text, int64_t selectionStart, int64_t selectionLength)
394     CancelComposition()
395
396     CollapseSelectionInFrame(uint64_t frameID)
397 #endif
398
399 #if PLATFORM (GTK) && HAVE(GTK_GESTURES)
400     GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center) LegacySync
401 #endif
402
403 #if PLATFORM(COCOA)
404     # Complex text input support for plug-ins.
405     SendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, String textInput)
406
407     WindowAndViewFramesChanged(WebCore::FloatRect windowFrameInScreenCoordinates, WebCore::FloatRect windowFrameInUnflippedScreenCoordinates, WebCore::FloatRect viewFrameInWindowCoordinates, WebCore::FloatPoint accessibilityViewCoordinates)
408     SetMainFrameIsScrollable(bool isScrollable)
409     RegisterUIProcessAccessibilityTokens(IPC::DataReference elemenToken, IPC::DataReference windowToken)
410     GetStringSelectionForPasteboard() -> (String stringValue) LegacySync
411     GetDataSelectionForPasteboard(String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size) LegacySync
412     ReadSelectionFromPasteboard(String pasteboardName) -> (bool result) LegacySync
413
414 #if ENABLE(SERVICE_CONTROLS)
415     ReplaceSelectionWithPasteboardData(Vector<String> types, IPC::DataReference data)
416 #endif
417
418     ShouldDelayWindowOrderingEvent(WebKit::WebMouseEvent event) -> (bool result) LegacySync
419     AcceptsFirstMouse(int eventNumber, WebKit::WebMouseEvent event) -> (bool result) LegacySync
420
421     SetTextAsync(String text)
422     InsertTextAsync(String text, struct WebKit::EditingRange replacementRange, bool registerUndoGroup, uint32_t editingRangeIsRelativeTo, bool suppressSelectionUpdate)
423     GetMarkedRangeAsync(WebKit::CallbackID callbackID)
424     GetSelectedRangeAsync(WebKit::CallbackID callbackID)
425     CharacterIndexForPointAsync(WebCore::IntPoint point, WebKit::CallbackID callbackID);
426     FirstRectForCharacterRangeAsync(struct WebKit::EditingRange range, WebKit::CallbackID callbackID);
427     SetCompositionAsync(String text, Vector<WebCore::CompositionUnderline> underlines, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange)
428     ConfirmCompositionAsync()
429 #endif
430 #if PLATFORM(MAC)
431     InsertDictatedTextAsync(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives, bool registerUndoGroup)
432     AttributedSubstringForCharacterRangeAsync(struct WebKit::EditingRange range, WebKit::CallbackID callbackID);
433     FontAtSelection(WebKit::CallbackID callbackID);
434 #endif
435
436     SetAlwaysShowsHorizontalScroller(bool alwaysShowsHorizontalScroller)
437     SetAlwaysShowsVerticalScroller(bool alwaysShowsVerticalScroller)
438
439     SetViewLayoutSize(WebCore::IntSize viewLayoutSize)
440     SetAutoSizingShouldExpandToViewHeight(bool shouldExpand)
441
442     SetViewportSizeForCSSViewportUnits(Optional<WebCore::IntSize> viewportSize)
443
444 #if PLATFORM(COCOA)
445     HandleAlternativeTextUIResult(String result)
446 #endif
447
448 #if PLATFORM(IOS_FAMILY)
449     WillStartUserTriggeredZooming();
450 #endif
451
452     SetScrollPinningBehavior(uint32_t pinning)
453     SetScrollbarOverlayStyle(Optional<uint32_t> scrollbarStyle)
454
455     GetBytecodeProfile(WebKit::CallbackID callbackID)
456
457     GetSamplingProfilerOutput(WebKit::CallbackID callbackID)
458     
459     TakeSnapshot(WebCore::IntRect snapshotRect, WebCore::IntSize bitmapSize, uint32_t options, WebKit::CallbackID callbackID)
460 #if PLATFORM(MAC)
461     PerformImmediateActionHitTestAtLocation(WebCore::FloatPoint location)
462     ImmediateActionDidUpdate()
463     ImmediateActionDidCancel()
464     ImmediateActionDidComplete()
465
466     DataDetectorsDidPresentUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
467     DataDetectorsDidChangeUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
468     DataDetectorsDidHideUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
469
470     HandleAcceptedCandidate(struct WebCore::TextCheckingResult acceptedCandidate)
471
472     SetUseSystemAppearance(bool useSystemAppearance);
473     SetUseDarkAppearance(bool useDarkAppearance);
474
475     SetHeaderBannerHeightForTesting(int height);
476     SetFooterBannerHeightForTesting(int height);
477 #endif
478
479 #if PLATFORM(COCOA)
480     RequestActiveNowPlayingSessionInfo(WebKit::CallbackID callbackID)
481 #endif
482
483     SetShouldDispatchFakeMouseMoveEvents(bool shouldDispatchFakeMouseMoveEvents)
484
485 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS_FAMILY)
486     PlaybackTargetSelected(uint64_t contextId, WebCore::MediaPlaybackTargetContext target)
487     PlaybackTargetAvailabilityDidChange(uint64_t contextId, bool available)
488     SetShouldPlayToPlaybackTarget(uint64_t contextId, bool shouldPlay)
489 #endif
490
491 #if ENABLE(POINTER_LOCK)
492     DidAcquirePointerLock()
493     DidNotAcquirePointerLock()
494     DidLosePointerLock()
495 #endif
496
497     ClearWheelEventTestTrigger()
498     SetShouldScaleViewToFitDocument(bool shouldScaleViewToFitDocument)
499
500 #if ENABLE(VIDEO) && USE(GSTREAMER)
501     DidEndRequestInstallMissingMediaPlugins(uint32_t result)
502 #endif
503
504     SetResourceCachingDisabled(bool disabled)
505
506     SetUserInterfaceLayoutDirection(uint32_t direction)
507
508     DidGetLoadDecisionForIcon(bool decision, WebKit::CallbackID loadIdentifier, WebKit::OptionalCallbackID newCallbackID)
509     SetUseIconLoadingClient(bool useIconLoadingClient)
510
511 #if ENABLE(GAMEPAD)
512     GamepadActivity(Vector<WebKit::GamepadData> gamepadDatas, bool shouldMakeGamepadsVisible)
513 #endif
514
515 #if USE(QUICK_LOOK)
516     DidReceivePasswordForQuickLookDocument(String password)
517 #endif
518
519     FrameBecameRemote(uint64_t frameID, struct WebCore::GlobalFrameIdentifier remoteFrameIdentifier, struct WebCore::GlobalWindowIdentifier remoteWindowIdentifier)
520
521     RegisterURLSchemeHandler(uint64_t identifier, String scheme)
522
523     URLSchemeTaskDidPerformRedirection(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceResponse response, WebCore::ResourceRequest request)
524     URLSchemeTaskDidReceiveResponse(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceResponse response)
525     URLSchemeTaskDidReceiveData(uint64_t handlerIdentifier, uint64_t taskIdentifier, IPC::SharedBufferDataReference data)
526     URLSchemeTaskDidComplete(uint64_t handlerIdentifier, uint64_t taskIdentifier, WebCore::ResourceError error)
527
528     SetIsSuspended(bool suspended)
529
530 #if ENABLE(RESOURCE_LOAD_STATISTICS)
531     StorageAccessResponse(bool wasGranted, uint64_t contextId)
532 #endif
533
534 #if ENABLE(ATTACHMENT_ELEMENT)
535     InsertAttachment(String identifier, Optional<uint64_t> fileSize, String fileName, String contentType, WebKit::CallbackID callbackID)
536     UpdateAttachmentAttributes(String identifier, Optional<uint64_t> fileSize, String contentType, String fileName, IPC::SharedBufferDataReference enclosingImageData, WebKit::CallbackID callbackID)
537 #endif
538
539 #if ENABLE(APPLICATION_MANIFEST)
540     GetApplicationManifest(WebKit::CallbackID callbackID)
541 #endif
542
543     SetDefersLoading(bool defersLoading)
544
545     UpdateCurrentModifierState(OptionSet<WebCore::PlatformEvent::Modifier> modifiers)
546 }