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