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)
31 SetDrawsTransparentBackground(bool drawsTransparentBackground)
33 SetTopContentInset(float contentInset)
35 SetUnderlayColor(WebCore::Color color)
37 ViewWillStartLiveResize()
38 ViewWillEndLiveResize()
40 KeyEvent(WebKit::WebKeyboardEvent event)
41 KeyEventSyncForTesting(WebKit::WebKeyboardEvent event) -> (bool handled)
42 MouseEvent(WebKit::WebMouseEvent event)
43 MouseEventSyncForTesting(WebKit::WebMouseEvent event) -> (bool handled)
44 WheelEventSyncForTesting(WebKit::WebWheelEvent event) -> (bool handled)
46 SetViewportConfigurationMinimumLayoutSize(WebCore::FloatSize size)
47 SetMaximumUnobscuredSize(WebCore::FloatSize size)
48 SetDeviceOrientation(int32_t deviceOrientation)
49 DynamicViewportSizeUpdate(WebCore::FloatSize minimumLayoutSize, WebCore::FloatSize maximumUnobscuredSize, WebCore::FloatRect targetExposedContentRect, WebCore::FloatRect targetUnobscuredRect, WebCore::FloatRect targetUnobscuredRectInScrollViewCoordinates, double scale, int32_t deviceOrientation, uint64_t dynamicViewportSizeUpdateID)
50 SynchronizeDynamicViewportUpdate() -> (double newTargetScale, WebCore::FloatPoint newScrollPosition, uint64_t nextValidLayerTreeTransactionID)
52 HandleTap(WebCore::IntPoint point, uint64_t lastLayerTreeTransactionId)
53 PotentialTapAtPosition(uint64_t requestID, WebCore::FloatPoint point)
54 CommitPotentialTap(uint64_t lastLayerTreeTransactionId)
56 TapHighlightAtPosition(uint64_t requestID, WebCore::FloatPoint point)
57 InspectorNodeSearchMovedToPosition(WebCore::FloatPoint point)
58 InspectorNodeSearchEndedAtPosition(WebCore::FloatPoint point)
60 SelectWithGesture(WebCore::IntPoint point, uint32_t granularity, uint32_t gestureType, uint32_t gestureState, uint64_t callbackID)
61 UpdateSelectionWithTouches(WebCore::IntPoint point, uint32_t touches, bool baseIsStart, uint64_t callbackID)
62 UpdateBlockSelectionWithTouch(WebCore::IntPoint point, uint32_t touch, uint32_t handlePosition)
63 SelectWithTwoTouches(WebCore::IntPoint from, WebCore::IntPoint to, uint32_t gestureType, uint32_t gestureState, uint64_t callbackID)
64 ExtendSelection(uint32_t granularity)
66 MoveSelectionByOffset(int32_t offset, uint64_t callbackID)
67 SelectTextWithGranularityAtPoint(WebCore::IntPoint point, uint32_t granularity, uint64_t callbackID)
68 SelectPositionAtBoundaryWithDirection(WebCore::IntPoint point, uint32_t granularity, uint32_t direction, uint64_t callbackID)
69 MoveSelectionAtBoundaryWithDirection(uint32_t granularity, uint32_t direction, uint64_t callbackID)
70 SelectPositionAtPoint(WebCore::IntPoint point, uint64_t callbackID)
71 BeginSelectionInDirection(uint32_t direction, uint64_t callbackID)
72 UpdateSelectionWithExtentPoint(WebCore::IntPoint point, uint64_t callbackID)
73 RequestDictationContext(uint64_t callbackID)
74 ReplaceDictatedText(String oldText, String newText)
75 ReplaceSelectedText(String oldText, String newText)
76 RequestAutocorrectionData(String textForAutocorrection, uint64_t callbackID)
77 ApplyAutocorrection(String correction, String originalText, uint64_t callbackID)
78 SyncApplyAutocorrection(String correction, String originalText) -> (bool autocorrectionApplied)
79 RequestAutocorrectionContext(uint64_t callbackID)
80 GetAutocorrectionContext() -> (String beforeContext, String markedText, String selectedText, String afterContext, uint64_t location, uint64_t length)
81 GetPositionInformation(WebCore::IntPoint point) -> (struct WebKit::InteractionInformationAtPosition information)
82 RequestPositionInformation(WebCore::IntPoint point)
83 StartInteractionWithElementAtPosition(WebCore::IntPoint point)
85 PerformActionOnElement(uint32_t action)
86 FocusNextAssistedNode(bool isForward, uint64_t callbackID)
87 SetAssistedNodeValue(String value)
88 SetAssistedNodeValueAsNumber(double value)
89 SetAssistedNodeSelectedIndex(uint32_t index, bool allowMultipleSelection)
90 ApplicationWillResignActive()
91 ApplicationDidEnterBackground()
92 ApplicationWillEnterForeground()
93 ApplicationDidBecomeActive()
94 ContentSizeCategoryDidChange(String contentSizeCategory)
95 ExecuteEditCommandWithCallback(String name, uint64_t callbackID)
96 GetLookupContextAtPoint(WebCore::IntPoint point, uint64_t callbackID)
99 #if ENABLE(REMOTE_INSPECTOR)
100 SetAllowsRemoteInspection(bool allow)
103 #if ENABLE(IOS_TOUCH_EVENTS)
104 TouchEventSync(WebKit::WebTouchEvent event) -> (bool handled)
106 #if !ENABLE(IOS_TOUCH_EVENTS) && ENABLE(TOUCH_EVENTS)
107 TouchEvent(WebKit::WebTouchEvent event)
108 TouchEventSyncForTesting(WebKit::WebTouchEvent event) -> (bool handled)
111 #if ENABLE(INPUT_TYPE_COLOR)
113 DidChooseColor(WebCore::Color color)
116 #if ENABLE(CONTEXT_MENUS)
120 ScrollBy(uint32_t scrollDirection, uint32_t scrollGranularity)
121 CenterSelectionInVisibleArea()
123 GoBack(uint64_t navigationID, uint64_t backForwardItemID)
124 GoForward(uint64_t navigationID, uint64_t backForwardItemID)
125 GoToBackForwardItem(uint64_t navigationID, uint64_t backForwardItemID)
126 TryRestoreScrollPosition()
128 LoadURLInFrame(String url, uint64_t frameID)
129 LoadRequest(uint64_t navigationID, WebCore::ResourceRequest request, WebKit::SandboxExtension::Handle sandboxExtensionHandle, uint64_t shouldOpenExternalURLsPolicy, WebKit::UserData userData)
130 LoadData(IPC::DataReference data, String MIMEType, String encoding, String baseURL, WebKit::UserData userData)
131 LoadHTMLString(uint64_t navigationID, String htmlString, String baseURL, WebKit::UserData userData)
132 LoadAlternateHTMLString(String htmlString, String baseURL, String unreachableURL, String provisionalLoadErrorURL, WebKit::UserData userData)
133 LoadPlainTextString(String string, WebKit::UserData userData)
134 LoadWebArchiveData(IPC::DataReference webArchiveData, WebKit::UserData userData)
135 NavigateToPDFLinkWithSimulatedClick(String url, WebCore::IntPoint documentPoint, WebCore::IntPoint screenPoint)
137 Reload(uint64_t navigationID, bool reloadFromOrigin, WebKit::SandboxExtension::Handle sandboxExtensionHandle)
140 StopLoadingFrame(uint64_t frameID)
142 RestoreSession(Vector<WebKit::BackForwardListItemState> itemStates)
144 DidRemoveBackForwardItem(uint64_t backForwardItemID)
146 DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, uint32_t policyAction, uint64_t navigationID, uint64_t downloadID)
149 RestoreSelectionInFocusedEditableElement()
152 GetContentsAsString(uint64_t callbackID)
154 GetContentsAsMHTMLData(uint64_t callbackID, bool useBinaryEncoding)
156 GetMainResourceDataOfFrame(uint64_t frameID, uint64_t callbackID)
157 GetResourceDataFromFrame(uint64_t frameID, String resourceURL, uint64_t callbackID)
158 GetRenderTreeExternalRepresentation(uint64_t callbackID)
159 GetSelectionOrContentsAsString(uint64_t callbackID)
160 GetSelectionAsWebArchiveData(uint64_t callbackID)
161 GetSourceForFrame(uint64_t frameID, uint64_t callbackID)
162 GetWebArchiveOfFrame(uint64_t frameID, uint64_t callbackID)
163 RunJavaScriptInMainFrame(String script, uint64_t callbackID)
164 ForceRepaint(uint64_t callbackID)
167 # Dictionary support.
168 PerformDictionaryLookupAtLocation(WebCore::FloatPoint point)
172 PerformDictionaryLookupOfCurrentSelection()
173 SetFont(String fontFamily, double fontSize, uint64_t fontTraits)
176 PreferencesDidChange(struct WebKit::WebPreferencesStore store)
178 SetUserAgent(String userAgent)
179 SetCustomTextEncodingName(String encodingName)
181 SuspendActiveDOMObjectsAndAnimations()
182 ResumeActiveDOMObjectsAndAnimations()
187 SetEditable(bool editable)
188 ValidateCommand(String name, uint64_t callbackID)
189 ExecuteEditCommand(String name)
191 DidRemoveEditCommand(uint64_t commandID)
192 ReapplyEditCommand(uint64_t commandID)
193 UnapplyEditCommand(uint64_t commandID)
195 SetPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor)
196 SetPageZoomFactor(double zoomFactor)
197 SetTextZoomFactor(double zoomFactor)
198 WindowScreenDidChange(uint32_t displayID)
200 ScalePage(double scale, WebCore::IntPoint origin)
201 ScalePageInViewCoordinates(double scale, WebCore::IntPoint centerInViewCoordinates)
202 ScaleView(double scale)
204 ScaleViewAndUpdateGeometryFenced(double scale, WebCore::IntSize viewSize, uint64_t callbackID)
207 SetUseFixedLayout(bool fixed)
208 SetFixedLayoutSize(WebCore::IntSize size)
209 ListenForLayoutMilestones(uint32_t milestones)
210 SetSuppressScrollbarAnimations(bool suppressAnimations)
212 SetEnableVerticalRubberBanding(bool enableVerticalRubberBanding)
213 SetEnableHorizontalRubberBanding(bool enableHorizontalRubberBanding)
215 SetBackgroundExtendsBeyondPage(bool backgroundExtendsBeyondPage)
217 SetPaginationMode(uint32_t mode)
218 SetPaginationBehavesLikeColumns(bool behavesLikeColumns)
219 SetPageLength(double pageLength)
220 SetGapBetweenPages(double gap)
222 PostInjectedBundleMessage(String messageName, WebKit::UserData messageBody)
225 FindString(String string, uint32_t findOptions, unsigned maxMatchCount)
226 FindStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
227 GetImageForFindMatch(uint32_t matchIndex)
228 SelectFindMatch(uint32_t matchIndex)
230 CountStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
232 AddMIMETypeWithCustomContentProvider(String mimeType)
235 #if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
236 PerformDragControllerAction(uint64_t action, WebCore::DragData dragData)
238 #if !PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
239 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)
241 #if ENABLE(DRAG_SUPPORT)
243 DragEnded(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t operation)
247 DidChangeSelectedIndexForActivePopupMenu(int32_t newIndex)
248 SetTextForActivePopupMenu(int32_t index)
250 FailedToShowPopupMenu()
253 #if ENABLE(CONTEXT_MENUS)
255 DidSelectItemFromActiveContextMenu(WebKit::WebContextMenuItemData menuItem)
260 DidChooseFilesForOpenPanelWithDisplayStringAndIcon(Vector<String> fileURLs, String displayString, IPC::DataReference iconData)
262 DidChooseFilesForOpenPanel(Vector<String> fileURLs)
263 DidCancelForOpenPanel()
264 #if ENABLE(SANDBOX_EXTENSIONS)
265 ExtendSandboxForFileFromOpenPanel(WebKit::SandboxExtension::Handle sandboxExtensionHandle)
268 # Spelling and grammar.
269 AdvanceToNextMisspelling(bool startBeforeSelection)
270 ChangeSpellingToWord(String word)
271 DidFinishCheckingText(uint64_t requestID, Vector<WebCore::TextCheckingResult> result)
272 DidCancelCheckingText(uint64_t requestID)
279 SetSmartInsertDeleteEnabled(bool isSmartInsertDeleteEnabled)
282 #if ENABLE(GEOLOCATION)
284 DidReceiveGeolocationPermissionDecision(uint64_t geolocationID, bool allowed)
287 #if ENABLE(MEDIA_STREAM)
289 DidReceiveUserMediaPermissionDecision(uint64_t userMediaID, bool allowed)
293 DidReceiveNotificationPermissionDecision(uint64_t notificationID, bool allowed)
295 SetWindowResizerSize(WebCore::IntSize intersectsView)
298 BeginPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo)
300 ComputePagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint64_t callbackID)
302 DrawRectToImage(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebCore::IntRect rect, WebCore::IntSize imageSize, uint64_t callbackID)
303 DrawPagesToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint32_t first, uint32_t count, uint64_t callbackID)
305 ComputePagesForPrintingAndStartDrawingToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint32_t firstPage) -> (Vector<WebCore::IntRect> pageRects, double totalScaleFactor) Delayed
309 DrawPagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint64_t callbackID)
313 SetMediaVolume(float volume)
315 SetMayStartMediaWhenInWindow(bool mayStartMedia)
317 #if ENABLE(MEDIA_SESSION)
318 HandleMediaEvent(uint32_t eventType)
321 // FIXME: This a dummy message, to avoid breaking the build for platforms that don't require
322 // any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed.
323 Dummy() -> (bool dummyReturn)
325 SetCanRunBeforeUnloadConfirmPanel(bool canRunBeforeUnloadConfirmPanel)
326 SetCanRunModal(bool canRunModal)
329 SetThemePath(String themePath)
332 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
333 CommitPageTransitionViewport()
337 SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd)
338 ConfirmComposition(String text, int64_t selectionStart, int64_t selectionLength)
342 #if PLATFORM (GTK) && HAVE(GTK_GESTURES)
343 GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center)
347 # Complex text input support for plug-ins.
348 SendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, String textInput)
350 WindowAndViewFramesChanged(WebCore::FloatRect windowFrameInScreenCoordinates, WebCore::FloatRect windowFrameInUnflippedScreenCoordinates, WebCore::FloatRect viewFrameInWindowCoordinates, WebCore::FloatPoint accessibilityViewCoordinates)
351 SetMainFrameIsScrollable(bool isScrollable)
352 RegisterUIProcessAccessibilityTokens(IPC::DataReference elemenToken, IPC::DataReference windowToken)
353 GetStringSelectionForPasteboard() -> (String stringValue)
354 GetDataSelectionForPasteboard(String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size)
355 ReadSelectionFromPasteboard(String pasteboardName) -> (bool result)
357 #if ENABLE(SERVICE_CONTROLS)
358 ReplaceSelectionWithPasteboardData(Vector<String> types, IPC::DataReference data)
361 ShouldDelayWindowOrderingEvent(WebKit::WebMouseEvent event) -> (bool result)
362 AcceptsFirstMouse(int eventNumber, WebKit::WebMouseEvent event) -> (bool result)
364 InsertTextAsync(String text, struct WebKit::EditingRange replacementRange, bool registerUndoGroup)
365 GetMarkedRangeAsync(uint64_t callbackID)
366 GetSelectedRangeAsync(uint64_t callbackID)
367 CharacterIndexForPointAsync(WebCore::IntPoint point, uint64_t callbackID);
368 FirstRectForCharacterRangeAsync(struct WebKit::EditingRange range, uint64_t callbackID);
369 SetCompositionAsync(String text, Vector<WebCore::CompositionUnderline> underlines, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange)
370 ConfirmCompositionAsync()
373 InsertDictatedTextAsync(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives, bool registerUndoGroup)
374 AttributedSubstringForCharacterRangeAsync(struct WebKit::EditingRange range, uint64_t callbackID);
375 FontAtSelection(uint64_t callbackID);
377 #if PLATFORM(MAC) && !USE(ASYNC_NSTEXTINPUTCLIENT)
378 InsertText(String text, struct WebKit::EditingRange replacementRange) -> (bool handled, struct WebKit::EditorState newState)
379 SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange) -> (struct WebKit::EditorState newState)
380 ConfirmComposition() -> (struct WebKit::EditorState newState)
381 InsertDictatedText(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives) -> (bool handled, struct WebKit::EditorState newState)
382 GetAttributedSubstringFromRange(struct WebKit::EditingRange range) -> (struct WebKit::AttributedString result)
383 GetMarkedRange() -> (struct WebKit::EditingRange range)
384 GetSelectedRange() -> (struct WebKit::EditingRange range)
385 CharacterIndexForPoint(WebCore::IntPoint point) -> (uint64_t result)
386 FirstRectForCharacterRange(struct WebKit::EditingRange range) -> (WebCore::IntRect resultRect)
387 ExecuteKeypressCommands(Vector<WebCore::KeypressCommand> savedCommands) -> (bool handled, struct WebKit::EditorState newState)
388 CancelComposition() -> (struct WebKit::EditorState newState)
391 SetMinimumLayoutSize(WebCore::IntSize minimumLayoutSize)
392 SetAutoSizingShouldExpandToViewHeight(bool shouldExpand)
395 ConfirmComposition(String compositionString)
396 SetComposition(String compositionString, Vector<WebCore::CompositionUnderline> underlines, uint64_t cursorPosition)
399 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
400 FindZoomableAreaForPoint(WebCore::IntPoint point, WebCore::IntSize area)
404 HandleAlternativeTextUIResult(String result)
408 WillStartUserTriggeredZooming();
411 SetScrollPinningBehavior(uint32_t pinning)
412 SetScrollbarOverlayStyle(Optional<uint32_t> scrollbarStyle)
414 GetBytecodeProfile(uint64_t callbackID)
416 TakeSnapshot(WebCore::IntRect snapshotRect, WebCore::IntSize bitmapSize, uint32_t options, uint64_t callbackID)
418 PerformImmediateActionHitTestAtLocation(WebCore::FloatPoint location)
419 ImmediateActionDidUpdate()
420 ImmediateActionDidCancel()
421 ImmediateActionDidComplete()
422 DataDetectorsDidPresentUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
423 DataDetectorsDidChangeUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
424 DataDetectorsDidHideUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
427 SetShouldDispatchFakeMouseMoveEvents(bool shouldDispatchFakeMouseMoveEvents)
429 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
430 PlaybackTargetSelected(uint64_t contextId, struct WebCore::MediaPlaybackTargetContext target)
431 PlaybackTargetAvailabilityDidChange(uint64_t contextId, bool available)
432 SetShouldPlayToPlaybackTarget(uint64_t contextId, bool shouldPlay)
435 ClearWheelEventTestTrigger()
436 SetShouldScaleViewToFitDocument(bool shouldScaleViewToFitDocument)