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 MouseEvent(WebKit::WebMouseEvent event)
43 SetViewportConfigurationMinimumLayoutSize(WebCore::FloatSize size)
44 SetMaximumUnobscuredSize(WebCore::FloatSize size)
45 SetDeviceOrientation(int32_t deviceOrientation)
46 DynamicViewportSizeUpdate(WebCore::FloatSize minimumLayoutSize, WebCore::FloatSize maximumUnobscuredSize, WebCore::FloatRect targetExposedContentRect, WebCore::FloatRect targetUnobscuredRect, WebCore::FloatRect targetUnobscuredRectInScrollViewCoordinates, double scale, int32_t deviceOrientation, uint64_t dynamicViewportSizeUpdateID)
47 SynchronizeDynamicViewportUpdate() -> (double newTargetScale, WebCore::FloatPoint newScrollPosition, uint64_t nextValidLayerTreeTransactionID)
49 HandleTap(WebCore::IntPoint point, uint64_t lastLayerTreeTransactionId)
50 PotentialTapAtPosition(uint64_t requestID, WebCore::FloatPoint point)
51 CommitPotentialTap(uint64_t lastLayerTreeTransactionId)
53 TapHighlightAtPosition(uint64_t requestID, WebCore::FloatPoint point)
54 InspectorNodeSearchMovedToPosition(WebCore::FloatPoint point)
55 InspectorNodeSearchEndedAtPosition(WebCore::FloatPoint point)
57 SelectWithGesture(WebCore::IntPoint point, uint32_t granularity, uint32_t gestureType, uint32_t gestureState, bool isInteractingWithAssistedNode, uint64_t callbackID)
58 UpdateSelectionWithTouches(WebCore::IntPoint point, uint32_t touches, bool baseIsStart, uint64_t callbackID)
59 UpdateBlockSelectionWithTouch(WebCore::IntPoint point, uint32_t touch, uint32_t handlePosition)
60 SelectWithTwoTouches(WebCore::IntPoint from, WebCore::IntPoint to, uint32_t gestureType, uint32_t gestureState, uint64_t callbackID)
61 ExtendSelection(uint32_t granularity)
63 MoveSelectionByOffset(int32_t offset, uint64_t callbackID)
64 SelectTextWithGranularityAtPoint(WebCore::IntPoint point, uint32_t granularity, bool isInteractingWithAssistedNode, uint64_t callbackID)
65 SelectPositionAtBoundaryWithDirection(WebCore::IntPoint point, uint32_t granularity, uint32_t direction, bool isInteractingWithAssistedNode, uint64_t callbackID)
66 MoveSelectionAtBoundaryWithDirection(uint32_t granularity, uint32_t direction, uint64_t callbackID)
67 SelectPositionAtPoint(WebCore::IntPoint point, bool isInteractingWithAssistedNode, uint64_t callbackID)
68 BeginSelectionInDirection(uint32_t direction, uint64_t callbackID)
69 UpdateSelectionWithExtentPoint(WebCore::IntPoint point, bool isInteractingWithAssistedNode, uint64_t callbackID)
70 UpdateSelectionWithExtentPointAndBoundary(WebCore::IntPoint point, uint32_t granularity, bool isInteractingWithAssistedNode, uint64_t callbackID)
71 RequestDictationContext(uint64_t callbackID)
72 ReplaceDictatedText(String oldText, String newText)
73 ReplaceSelectedText(String oldText, String newText)
74 RequestAutocorrectionData(String textForAutocorrection, uint64_t callbackID)
75 ApplyAutocorrection(String correction, String originalText, uint64_t callbackID)
76 SyncApplyAutocorrection(String correction, String originalText) -> (bool autocorrectionApplied)
77 RequestAutocorrectionContext(uint64_t callbackID)
78 GetAutocorrectionContext() -> (String beforeContext, String markedText, String selectedText, String afterContext, uint64_t location, uint64_t length)
79 GetPositionInformation(WebCore::IntPoint point) -> (struct WebKit::InteractionInformationAtPosition information)
80 RequestPositionInformation(WebCore::IntPoint point)
81 StartInteractionWithElementAtPosition(WebCore::IntPoint point)
83 PerformActionOnElement(uint32_t action)
84 FocusNextAssistedNode(bool isForward, uint64_t callbackID)
85 SetAssistedNodeValue(String value)
86 SetAssistedNodeValueAsNumber(double value)
87 SetAssistedNodeSelectedIndex(uint32_t index, bool allowMultipleSelection)
88 ApplicationWillResignActive()
89 ApplicationDidEnterBackground(bool isSuspendedUnderLock)
90 ApplicationWillEnterForeground(bool isSuspendedUnderLock)
91 ApplicationDidBecomeActive()
92 ContentSizeCategoryDidChange(String contentSizeCategory)
93 ExecuteEditCommandWithCallback(String name, uint64_t callbackID)
94 GetLookupContextAtPoint(WebCore::IntPoint point, uint64_t callbackID)
95 SetAllowsMediaDocumentInlinePlayback(bool allows)
98 #if ENABLE(REMOTE_INSPECTOR)
99 SetAllowsRemoteInspection(bool allow)
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, uint64_t downloadID)
147 RestoreSelectionInFocusedEditableElement()
150 GetContentsAsString(uint64_t callbackID)
152 GetContentsAsMHTMLData(uint64_t callbackID, bool useBinaryEncoding)
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)
288 DidReceiveNotificationPermissionDecision(uint64_t notificationID, bool allowed)
291 BeginPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo)
293 ComputePagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint64_t callbackID)
295 DrawRectToImage(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebCore::IntRect rect, WebCore::IntSize imageSize, uint64_t callbackID)
296 DrawPagesToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint32_t first, uint32_t count, uint64_t callbackID)
298 ComputePagesForPrintingAndStartDrawingToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint32_t firstPage) -> (Vector<WebCore::IntRect> pageRects, double totalScaleFactor) Delayed
302 DrawPagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint64_t callbackID)
306 SetMediaVolume(float volume)
308 SetMayStartMediaWhenInWindow(bool mayStartMedia)
310 #if ENABLE(MEDIA_SESSION)
311 HandleMediaEvent(uint32_t eventType)
312 SetVolumeOfMediaElement(double volume, uint64_t elementID)
315 // FIXME: This a dummy message, to avoid breaking the build for platforms that don't require
316 // any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed.
317 Dummy() -> (bool dummyReturn)
319 SetCanRunBeforeUnloadConfirmPanel(bool canRunBeforeUnloadConfirmPanel)
320 SetCanRunModal(bool canRunModal)
323 SetThemePath(String themePath)
326 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
327 CommitPageTransitionViewport()
331 SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd)
332 ConfirmComposition(String text, int64_t selectionStart, int64_t selectionLength)
336 #if PLATFORM (GTK) && HAVE(GTK_GESTURES)
337 GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center)
341 # Complex text input support for plug-ins.
342 SendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, String textInput)
344 WindowAndViewFramesChanged(WebCore::FloatRect windowFrameInScreenCoordinates, WebCore::FloatRect windowFrameInUnflippedScreenCoordinates, WebCore::FloatRect viewFrameInWindowCoordinates, WebCore::FloatPoint accessibilityViewCoordinates)
345 SetMainFrameIsScrollable(bool isScrollable)
346 RegisterUIProcessAccessibilityTokens(IPC::DataReference elemenToken, IPC::DataReference windowToken)
347 GetStringSelectionForPasteboard() -> (String stringValue)
348 GetDataSelectionForPasteboard(String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size)
349 ReadSelectionFromPasteboard(String pasteboardName) -> (bool result)
351 #if ENABLE(SERVICE_CONTROLS)
352 ReplaceSelectionWithPasteboardData(Vector<String> types, IPC::DataReference data)
355 ShouldDelayWindowOrderingEvent(WebKit::WebMouseEvent event) -> (bool result)
356 AcceptsFirstMouse(int eventNumber, WebKit::WebMouseEvent event) -> (bool result)
358 InsertTextAsync(String text, struct WebKit::EditingRange replacementRange, bool registerUndoGroup)
359 GetMarkedRangeAsync(uint64_t callbackID)
360 GetSelectedRangeAsync(uint64_t callbackID)
361 CharacterIndexForPointAsync(WebCore::IntPoint point, uint64_t callbackID);
362 FirstRectForCharacterRangeAsync(struct WebKit::EditingRange range, uint64_t callbackID);
363 SetCompositionAsync(String text, Vector<WebCore::CompositionUnderline> underlines, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange)
364 ConfirmCompositionAsync()
367 InsertDictatedTextAsync(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives, bool registerUndoGroup)
368 AttributedSubstringForCharacterRangeAsync(struct WebKit::EditingRange range, uint64_t callbackID);
369 FontAtSelection(uint64_t callbackID);
371 #if PLATFORM(MAC) && !USE(ASYNC_NSTEXTINPUTCLIENT)
372 InsertText(String text, struct WebKit::EditingRange replacementRange) -> (bool handled, struct WebKit::EditorState newState)
373 SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange) -> (struct WebKit::EditorState newState)
374 ConfirmComposition() -> (struct WebKit::EditorState newState)
375 InsertDictatedText(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives) -> (bool handled, struct WebKit::EditorState newState)
376 GetAttributedSubstringFromRange(struct WebKit::EditingRange range) -> (struct WebKit::AttributedString result)
377 GetMarkedRange() -> (struct WebKit::EditingRange range)
378 GetSelectedRange() -> (struct WebKit::EditingRange range)
379 CharacterIndexForPoint(WebCore::IntPoint point) -> (uint64_t result)
380 FirstRectForCharacterRange(struct WebKit::EditingRange range) -> (WebCore::IntRect resultRect)
381 ExecuteKeypressCommands(Vector<WebCore::KeypressCommand> savedCommands) -> (bool handled, struct WebKit::EditorState newState)
382 CancelComposition() -> (struct WebKit::EditorState newState)
385 SetMinimumLayoutSize(WebCore::IntSize minimumLayoutSize)
386 SetAutoSizingShouldExpandToViewHeight(bool shouldExpand)
389 ConfirmComposition(String compositionString)
390 SetComposition(String compositionString, Vector<WebCore::CompositionUnderline> underlines, uint64_t cursorPosition)
393 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
394 FindZoomableAreaForPoint(WebCore::IntPoint point, WebCore::IntSize area)
398 HandleAlternativeTextUIResult(String result)
402 WillStartUserTriggeredZooming();
405 SetScrollPinningBehavior(uint32_t pinning)
406 SetScrollbarOverlayStyle(Optional<uint32_t> scrollbarStyle)
408 GetBytecodeProfile(uint64_t callbackID)
410 TakeSnapshot(WebCore::IntRect snapshotRect, WebCore::IntSize bitmapSize, uint32_t options, uint64_t callbackID)
412 PerformImmediateActionHitTestAtLocation(WebCore::FloatPoint location)
413 ImmediateActionDidUpdate()
414 ImmediateActionDidCancel()
415 ImmediateActionDidComplete()
416 DataDetectorsDidPresentUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
417 DataDetectorsDidChangeUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
418 DataDetectorsDidHideUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
421 SetShouldDispatchFakeMouseMoveEvents(bool shouldDispatchFakeMouseMoveEvents)
423 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
424 PlaybackTargetSelected(uint64_t contextId, struct WebCore::MediaPlaybackTargetContext target)
425 PlaybackTargetAvailabilityDidChange(uint64_t contextId, bool available)
426 SetShouldPlayToPlaybackTarget(uint64_t contextId, bool shouldPlay)
429 ClearWheelEventTestTrigger()
430 SetShouldScaleViewToFitDocument(bool shouldScaleViewToFitDocument)
432 #if ENABLE(VIDEO) && USE(GSTREAMER)
433 DidEndRequestInstallMissingMediaPlugins(uint32_t result)