1 # Copyright (C) 2010, 2011 Apple Inc. All rights reserved.
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions
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.
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.
23 messages -> WebPage LegacyReceiver {
24 SetInitialFocus(bool forward, bool isKeyboardEventValid, WebKit::WebKeyboardEvent event, uint64_t callbackID)
25 SetViewState(unsigned viewState, bool wantsDidUpdateViewState, Vector<uint64_t> callbackIDs)
26 SetLayerHostingMode(unsigned layerHostingMode)
28 SetSessionID(WebCore::SessionID sessionID)
30 SetDrawsBackground(bool drawsBackground)
32 SetTopContentInset(float contentInset)
34 SetUnderlayColor(WebCore::Color color)
36 ViewWillStartLiveResize()
37 ViewWillEndLiveResize()
39 KeyEvent(WebKit::WebKeyboardEvent event)
40 MouseEvent(WebKit::WebMouseEvent event)
42 SetViewportConfigurationMinimumLayoutSize(WebCore::FloatSize size)
43 SetMaximumUnobscuredSize(WebCore::FloatSize size)
44 SetDeviceOrientation(int32_t deviceOrientation)
45 DynamicViewportSizeUpdate(WebCore::FloatSize minimumLayoutSize, WebCore::FloatSize maximumUnobscuredSize, WebCore::FloatRect targetExposedContentRect, WebCore::FloatRect targetUnobscuredRect, WebCore::FloatRect targetUnobscuredRectInScrollViewCoordinates, double scale, int32_t deviceOrientation, uint64_t dynamicViewportSizeUpdateID)
46 SynchronizeDynamicViewportUpdate() -> (double newTargetScale, WebCore::FloatPoint newScrollPosition, uint64_t nextValidLayerTreeTransactionID)
48 HandleTap(WebCore::IntPoint point, uint64_t lastLayerTreeTransactionId)
49 PotentialTapAtPosition(uint64_t requestID, WebCore::FloatPoint point)
50 CommitPotentialTap(uint64_t lastLayerTreeTransactionId)
52 TapHighlightAtPosition(uint64_t requestID, WebCore::FloatPoint point)
53 InspectorNodeSearchMovedToPosition(WebCore::FloatPoint point)
54 InspectorNodeSearchEndedAtPosition(WebCore::FloatPoint point)
56 SelectWithGesture(WebCore::IntPoint point, uint32_t granularity, uint32_t gestureType, uint32_t gestureState, bool isInteractingWithAssistedNode, uint64_t callbackID)
57 UpdateSelectionWithTouches(WebCore::IntPoint point, uint32_t touches, bool baseIsStart, uint64_t callbackID)
58 UpdateBlockSelectionWithTouch(WebCore::IntPoint point, uint32_t touch, uint32_t handlePosition)
59 SelectWithTwoTouches(WebCore::IntPoint from, WebCore::IntPoint to, uint32_t gestureType, uint32_t gestureState, uint64_t callbackID)
60 ExtendSelection(uint32_t granularity)
62 MoveSelectionByOffset(int32_t offset, uint64_t callbackID)
63 SelectTextWithGranularityAtPoint(WebCore::IntPoint point, uint32_t granularity, bool isInteractingWithAssistedNode, uint64_t callbackID)
64 SelectPositionAtBoundaryWithDirection(WebCore::IntPoint point, uint32_t granularity, uint32_t direction, bool isInteractingWithAssistedNode, uint64_t callbackID)
65 MoveSelectionAtBoundaryWithDirection(uint32_t granularity, uint32_t direction, uint64_t callbackID)
66 SelectPositionAtPoint(WebCore::IntPoint point, bool isInteractingWithAssistedNode, uint64_t callbackID)
67 BeginSelectionInDirection(uint32_t direction, uint64_t callbackID)
68 UpdateSelectionWithExtentPoint(WebCore::IntPoint point, bool isInteractingWithAssistedNode, uint64_t callbackID)
69 UpdateSelectionWithExtentPointAndBoundary(WebCore::IntPoint point, uint32_t granularity, bool isInteractingWithAssistedNode, uint64_t callbackID)
70 RequestDictationContext(uint64_t callbackID)
71 ReplaceDictatedText(String oldText, String newText)
72 ReplaceSelectedText(String oldText, String newText)
73 RequestAutocorrectionData(String textForAutocorrection, uint64_t callbackID)
74 ApplyAutocorrection(String correction, String originalText, uint64_t callbackID)
75 SyncApplyAutocorrection(String correction, String originalText) -> (bool autocorrectionApplied)
76 RequestAutocorrectionContext(uint64_t callbackID)
77 GetAutocorrectionContext() -> (String beforeContext, String markedText, String selectedText, String afterContext, uint64_t location, uint64_t length)
78 GetPositionInformation(WebCore::IntPoint point) -> (struct WebKit::InteractionInformationAtPosition information)
79 RequestPositionInformation(WebCore::IntPoint point)
80 StartInteractionWithElementAtPosition(WebCore::IntPoint point)
82 PerformActionOnElement(uint32_t action)
83 FocusNextAssistedNode(bool isForward, uint64_t callbackID)
84 SetAssistedNodeValue(String value)
85 SetAssistedNodeValueAsNumber(double value)
86 SetAssistedNodeSelectedIndex(uint32_t index, bool allowMultipleSelection)
87 ApplicationWillResignActive()
88 ApplicationDidEnterBackground(bool isSuspendedUnderLock)
89 ApplicationWillEnterForeground(bool isSuspendedUnderLock)
90 ApplicationDidBecomeActive()
91 ContentSizeCategoryDidChange(String contentSizeCategory)
92 ExecuteEditCommandWithCallback(String name, uint64_t callbackID)
93 GetLookupContextAtPoint(WebCore::IntPoint point, uint64_t callbackID)
94 SetAllowsMediaDocumentInlinePlayback(bool allows)
97 #if ENABLE(REMOTE_INSPECTOR)
98 SetAllowsRemoteInspection(bool allow)
99 SetRemoteInspectionNameOverride(String name)
102 #if ENABLE(IOS_TOUCH_EVENTS)
103 TouchEventSync(WebKit::WebTouchEvent event) -> (bool handled)
105 #if !ENABLE(IOS_TOUCH_EVENTS) && ENABLE(TOUCH_EVENTS)
106 TouchEvent(WebKit::WebTouchEvent event)
109 #if ENABLE(INPUT_TYPE_COLOR)
111 DidChooseColor(WebCore::Color color)
114 #if ENABLE(CONTEXT_MENUS)
118 ScrollBy(uint32_t scrollDirection, uint32_t scrollGranularity)
119 CenterSelectionInVisibleArea()
121 GoBack(uint64_t navigationID, uint64_t backForwardItemID)
122 GoForward(uint64_t navigationID, uint64_t backForwardItemID)
123 GoToBackForwardItem(uint64_t navigationID, uint64_t backForwardItemID)
124 TryRestoreScrollPosition()
126 LoadURLInFrame(String url, uint64_t frameID)
127 LoadRequest(uint64_t navigationID, WebCore::ResourceRequest request, WebKit::SandboxExtension::Handle sandboxExtensionHandle, uint64_t shouldOpenExternalURLsPolicy, WebKit::UserData userData)
128 LoadData(uint64_t navigationID, IPC::DataReference data, String MIMEType, String encoding, String baseURL, WebKit::UserData userData)
129 LoadHTMLString(uint64_t navigationID, String htmlString, String baseURL, WebKit::UserData userData)
130 LoadAlternateHTMLString(String htmlString, String baseURL, String unreachableURL, String provisionalLoadErrorURL, WebKit::UserData userData)
131 LoadPlainTextString(String string, WebKit::UserData userData)
132 LoadWebArchiveData(IPC::DataReference webArchiveData, WebKit::UserData userData)
133 NavigateToPDFLinkWithSimulatedClick(String url, WebCore::IntPoint documentPoint, WebCore::IntPoint screenPoint)
135 Reload(uint64_t navigationID, bool reloadFromOrigin, bool contentBlockersEnabled, WebKit::SandboxExtension::Handle sandboxExtensionHandle)
138 StopLoadingFrame(uint64_t frameID)
140 RestoreSession(Vector<WebKit::BackForwardListItemState> itemStates)
142 DidRemoveBackForwardItem(uint64_t backForwardItemID)
144 DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, uint32_t policyAction, uint64_t navigationID, WebKit::DownloadID downloadID)
147 RestoreSelectionInFocusedEditableElement()
150 GetContentsAsString(uint64_t callbackID)
152 GetContentsAsMHTMLData(uint64_t callbackID)
154 GetMainResourceDataOfFrame(uint64_t frameID, uint64_t callbackID)
155 GetResourceDataFromFrame(uint64_t frameID, String resourceURL, uint64_t callbackID)
156 GetRenderTreeExternalRepresentation(uint64_t callbackID)
157 GetSelectionOrContentsAsString(uint64_t callbackID)
158 GetSelectionAsWebArchiveData(uint64_t callbackID)
159 GetSourceForFrame(uint64_t frameID, uint64_t callbackID)
160 GetWebArchiveOfFrame(uint64_t frameID, uint64_t callbackID)
161 RunJavaScriptInMainFrame(String script, uint64_t callbackID)
162 ForceRepaint(uint64_t callbackID)
165 # Dictionary support.
166 PerformDictionaryLookupAtLocation(WebCore::FloatPoint point)
170 PerformDictionaryLookupOfCurrentSelection()
171 SetFont(String fontFamily, double fontSize, uint64_t fontTraits)
174 PreferencesDidChange(struct WebKit::WebPreferencesStore store)
176 SetUserAgent(String userAgent)
177 SetCustomTextEncodingName(String encodingName)
179 SuspendActiveDOMObjectsAndAnimations()
180 ResumeActiveDOMObjectsAndAnimations()
185 SetEditable(bool editable)
186 ValidateCommand(String name, uint64_t callbackID)
187 ExecuteEditCommand(String name, String argument)
189 DidRemoveEditCommand(uint64_t commandID)
190 ReapplyEditCommand(uint64_t commandID)
191 UnapplyEditCommand(uint64_t commandID)
193 SetPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor)
194 SetPageZoomFactor(double zoomFactor)
195 SetTextZoomFactor(double zoomFactor)
196 WindowScreenDidChange(uint32_t displayID)
198 ScalePage(double scale, WebCore::IntPoint origin)
199 ScalePageInViewCoordinates(double scale, WebCore::IntPoint centerInViewCoordinates)
200 ScaleView(double scale)
202 SetUseFixedLayout(bool fixed)
203 SetFixedLayoutSize(WebCore::IntSize size)
204 ListenForLayoutMilestones(uint32_t milestones)
205 SetSuppressScrollbarAnimations(bool suppressAnimations)
207 SetEnableVerticalRubberBanding(bool enableVerticalRubberBanding)
208 SetEnableHorizontalRubberBanding(bool enableHorizontalRubberBanding)
210 SetBackgroundExtendsBeyondPage(bool backgroundExtendsBeyondPage)
212 SetPaginationMode(uint32_t mode)
213 SetPaginationBehavesLikeColumns(bool behavesLikeColumns)
214 SetPageLength(double pageLength)
215 SetGapBetweenPages(double gap)
217 PostInjectedBundleMessage(String messageName, WebKit::UserData messageBody)
220 FindString(String string, uint32_t findOptions, unsigned maxMatchCount)
221 FindStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
222 GetImageForFindMatch(uint32_t matchIndex)
223 SelectFindMatch(uint32_t matchIndex)
225 CountStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
227 AddMIMETypeWithCustomContentProvider(String mimeType)
230 #if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
231 PerformDragControllerAction(uint64_t action, WebCore::DragData dragData)
233 #if !PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
234 PerformDragControllerAction(uint64_t action, WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t draggingSourceOperationMask, String dragStorageName, uint32_t flags, WebKit::SandboxExtension::Handle sandboxExtensionHandle, WebKit::SandboxExtension::HandleArray sandboxExtensionsForUpload)
236 #if ENABLE(DRAG_SUPPORT)
238 DragEnded(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t operation)
242 DidChangeSelectedIndexForActivePopupMenu(int32_t newIndex)
243 SetTextForActivePopupMenu(int32_t index)
245 FailedToShowPopupMenu()
248 #if ENABLE(CONTEXT_MENUS)
250 DidSelectItemFromActiveContextMenu(WebKit::WebContextMenuItemData menuItem)
255 DidChooseFilesForOpenPanelWithDisplayStringAndIcon(Vector<String> fileURLs, String displayString, IPC::DataReference iconData)
257 DidChooseFilesForOpenPanel(Vector<String> fileURLs)
258 DidCancelForOpenPanel()
259 #if ENABLE(SANDBOX_EXTENSIONS)
260 ExtendSandboxForFileFromOpenPanel(WebKit::SandboxExtension::Handle sandboxExtensionHandle)
263 # Spelling and grammar.
264 AdvanceToNextMisspelling(bool startBeforeSelection)
265 ChangeSpellingToWord(String word)
266 DidFinishCheckingText(uint64_t requestID, Vector<WebCore::TextCheckingResult> result)
267 DidCancelCheckingText(uint64_t requestID)
274 SetSmartInsertDeleteEnabled(bool isSmartInsertDeleteEnabled)
277 #if ENABLE(GEOLOCATION)
279 DidReceiveGeolocationPermissionDecision(uint64_t geolocationID, bool allowed)
282 #if ENABLE(MEDIA_STREAM)
284 DidReceiveUserMediaPermissionDecision(uint64_t userMediaID, bool allowed, String audioDeviceUID, String videoDeviceUID)
285 DidCompleteUserMediaPermissionCheck(uint64_t userMediaID, bool allowed)
289 DidReceiveNotificationPermissionDecision(uint64_t notificationID, bool allowed)
292 BeginPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo)
294 ComputePagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint64_t callbackID)
296 DrawRectToImage(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebCore::IntRect rect, WebCore::IntSize imageSize, uint64_t callbackID)
297 DrawPagesToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint32_t first, uint32_t count, uint64_t callbackID)
299 ComputePagesForPrintingAndStartDrawingToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint32_t firstPage) -> (Vector<WebCore::IntRect> pageRects, double totalScaleFactor) Delayed
303 DrawPagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint64_t callbackID)
307 SetMediaVolume(float volume)
309 SetMayStartMediaWhenInWindow(bool mayStartMedia)
311 #if ENABLE(MEDIA_SESSION)
312 HandleMediaEvent(uint32_t eventType)
313 SetVolumeOfMediaElement(double volume, uint64_t elementID)
316 // FIXME: This a dummy message, to avoid breaking the build for platforms that don't require
317 // any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed.
318 Dummy() -> (bool dummyReturn)
320 SetCanRunBeforeUnloadConfirmPanel(bool canRunBeforeUnloadConfirmPanel)
321 SetCanRunModal(bool canRunModal)
324 SetThemePath(String themePath)
327 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
328 CommitPageTransitionViewport()
332 SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd)
333 ConfirmComposition(String text, int64_t selectionStart, int64_t selectionLength)
337 #if PLATFORM (GTK) && HAVE(GTK_GESTURES)
338 GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center)
342 # Complex text input support for plug-ins.
343 SendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, String textInput)
345 WindowAndViewFramesChanged(WebCore::FloatRect windowFrameInScreenCoordinates, WebCore::FloatRect windowFrameInUnflippedScreenCoordinates, WebCore::FloatRect viewFrameInWindowCoordinates, WebCore::FloatPoint accessibilityViewCoordinates)
346 SetMainFrameIsScrollable(bool isScrollable)
347 RegisterUIProcessAccessibilityTokens(IPC::DataReference elemenToken, IPC::DataReference windowToken)
348 GetStringSelectionForPasteboard() -> (String stringValue)
349 GetDataSelectionForPasteboard(String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size)
350 ReadSelectionFromPasteboard(String pasteboardName) -> (bool result)
352 #if ENABLE(SERVICE_CONTROLS)
353 ReplaceSelectionWithPasteboardData(Vector<String> types, IPC::DataReference data)
356 ShouldDelayWindowOrderingEvent(WebKit::WebMouseEvent event) -> (bool result)
357 AcceptsFirstMouse(int eventNumber, WebKit::WebMouseEvent event) -> (bool result)
359 InsertTextAsync(String text, struct WebKit::EditingRange replacementRange, bool registerUndoGroup)
360 GetMarkedRangeAsync(uint64_t callbackID)
361 GetSelectedRangeAsync(uint64_t callbackID)
362 CharacterIndexForPointAsync(WebCore::IntPoint point, uint64_t callbackID);
363 FirstRectForCharacterRangeAsync(struct WebKit::EditingRange range, uint64_t callbackID);
364 SetCompositionAsync(String text, Vector<WebCore::CompositionUnderline> underlines, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange)
365 ConfirmCompositionAsync()
368 InsertDictatedTextAsync(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives, bool registerUndoGroup)
369 AttributedSubstringForCharacterRangeAsync(struct WebKit::EditingRange range, uint64_t callbackID);
370 FontAtSelection(uint64_t callbackID);
373 SetMinimumLayoutSize(WebCore::IntSize minimumLayoutSize)
374 SetAutoSizingShouldExpandToViewHeight(bool shouldExpand)
377 ConfirmComposition(String compositionString)
378 SetComposition(String compositionString, Vector<WebCore::CompositionUnderline> underlines, uint64_t cursorPosition)
381 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
382 FindZoomableAreaForPoint(WebCore::IntPoint point, WebCore::IntSize area)
386 HandleAlternativeTextUIResult(String result)
390 WillStartUserTriggeredZooming();
393 SetScrollPinningBehavior(uint32_t pinning)
394 SetScrollbarOverlayStyle(Optional<uint32_t> scrollbarStyle)
396 GetBytecodeProfile(uint64_t callbackID)
398 TakeSnapshot(WebCore::IntRect snapshotRect, WebCore::IntSize bitmapSize, uint32_t options, uint64_t callbackID)
400 PerformImmediateActionHitTestAtLocation(WebCore::FloatPoint location)
401 ImmediateActionDidUpdate()
402 ImmediateActionDidCancel()
403 ImmediateActionDidComplete()
404 DataDetectorsDidPresentUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
405 DataDetectorsDidChangeUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
406 DataDetectorsDidHideUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
409 SetShouldDispatchFakeMouseMoveEvents(bool shouldDispatchFakeMouseMoveEvents)
411 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
412 PlaybackTargetSelected(uint64_t contextId, WebCore::MediaPlaybackTargetContext target)
413 PlaybackTargetAvailabilityDidChange(uint64_t contextId, bool available)
414 SetShouldPlayToPlaybackTarget(uint64_t contextId, bool shouldPlay)
417 ClearWheelEventTestTrigger()
418 SetShouldScaleViewToFitDocument(bool shouldScaleViewToFitDocument)
420 #if ENABLE(VIDEO) && USE(GSTREAMER)
421 DidEndRequestInstallMissingMediaPlugins(uint32_t result)