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 SelectPositionAtPoint(WebCore::IntPoint point, uint64_t callbackID)
70 BeginSelectionInDirection(uint32_t direction, uint64_t callbackID)
71 UpdateSelectionWithExtentPoint(WebCore::IntPoint point, uint64_t callbackID)
72 RequestDictationContext(uint64_t callbackID)
73 ReplaceDictatedText(String oldText, String newText)
74 ReplaceSelectedText(String oldText, String newText)
75 RequestAutocorrectionData(String textForAutocorrection, uint64_t callbackID)
76 ApplyAutocorrection(String correction, String originalText, uint64_t callbackID)
77 SyncApplyAutocorrection(String correction, String originalText) -> (bool autocorrectionApplied)
78 RequestAutocorrectionContext(uint64_t callbackID)
79 GetAutocorrectionContext() -> (String beforeContext, String markedText, String selectedText, String afterContext, uint64_t location, uint64_t length)
80 GetPositionInformation(WebCore::IntPoint point) -> (struct WebKit::InteractionInformationAtPosition information)
81 RequestPositionInformation(WebCore::IntPoint point)
82 StartInteractionWithElementAtPosition(WebCore::IntPoint point)
84 PerformActionOnElement(uint32_t action)
85 FocusNextAssistedNode(bool isForward, uint64_t callbackID)
86 SetAssistedNodeValue(String value)
87 SetAssistedNodeValueAsNumber(double value)
88 SetAssistedNodeSelectedIndex(uint32_t index, bool allowMultipleSelection)
89 ApplicationWillResignActive()
90 ApplicationWillEnterForeground()
91 ApplicationDidBecomeActive()
92 ContentSizeCategoryDidChange(String contentSizeCategory)
93 ExecuteEditCommandWithCallback(String name, uint64_t callbackID)
94 GetLookupContextAtPoint(WebCore::IntPoint point, uint64_t callbackID)
97 #if ENABLE(REMOTE_INSPECTOR)
98 SetAllowsRemoteInspection(bool allow)
101 #if ENABLE(IOS_TOUCH_EVENTS)
102 TouchEventSync(WebKit::WebTouchEvent event) -> (bool handled)
104 #if !ENABLE(IOS_TOUCH_EVENTS) && ENABLE(TOUCH_EVENTS)
105 TouchEvent(WebKit::WebTouchEvent event)
106 TouchEventSyncForTesting(WebKit::WebTouchEvent event) -> (bool handled)
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, WebKit::UserData userData)
128 LoadData(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, WebKit::UserData userData)
131 LoadPlainTextString(String string, WebKit::UserData userData)
132 LoadWebArchiveData(IPC::DataReference webArchiveData, WebKit::UserData userData)
133 NavigateToURLWithSimulatedClick(String url, WebCore::IntPoint documentPoint, WebCore::IntPoint screenPoint)
135 Reload(uint64_t navigationID, bool reloadFromOrigin, 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)
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)
288 DidReceiveNotificationPermissionDecision(uint64_t notificationID, bool allowed)
290 SetWindowResizerSize(WebCore::IntSize intersectsView)
293 BeginPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo)
295 ComputePagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint64_t callbackID)
297 DrawRectToImage(uint64_t frameID, struct WebKit::PrintInfo printInfo, WebCore::IntRect rect, WebCore::IntSize imageSize, uint64_t callbackID)
298 DrawPagesToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint32_t first, uint32_t count, uint64_t callbackID)
300 ComputePagesForPrintingAndStartDrawingToPDF(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint32_t firstPage) -> (Vector<WebCore::IntRect> pageRects, double totalScaleFactor) Delayed
304 DrawPagesForPrinting(uint64_t frameID, struct WebKit::PrintInfo printInfo, uint64_t callbackID)
308 SetMediaVolume(float volume)
310 SetMayStartMediaWhenInWindow(bool mayStartMedia)
312 // FIXME: This a dummy message, to avoid breaking the build for platforms that don't require
313 // any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed.
314 Dummy() -> (bool dummyReturn)
316 SetCanRunBeforeUnloadConfirmPanel(bool canRunBeforeUnloadConfirmPanel)
317 SetCanRunModal(bool canRunModal)
320 SetThemePath(String themePath)
323 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
324 CommitPageTransitionViewport()
328 SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd)
329 ConfirmComposition(String text, int64_t selectionStart, int64_t selectionLength)
333 #if PLATFORM (GTK) && HAVE(GTK_GESTURES)
334 GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center)
338 # Complex text input support for plug-ins.
339 SendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, String textInput)
341 WindowAndViewFramesChanged(WebCore::FloatRect windowFrameInScreenCoordinates, WebCore::FloatRect windowFrameInUnflippedScreenCoordinates, WebCore::FloatRect viewFrameInWindowCoordinates, WebCore::FloatPoint accessibilityViewCoordinates)
342 SetMainFrameIsScrollable(bool isScrollable)
343 RegisterUIProcessAccessibilityTokens(IPC::DataReference elemenToken, IPC::DataReference windowToken)
344 GetStringSelectionForPasteboard() -> (String stringValue)
345 GetDataSelectionForPasteboard(String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size)
346 ReadSelectionFromPasteboard(String pasteboardName) -> (bool result)
348 #if ENABLE(SERVICE_CONTROLS)
349 ReplaceSelectionWithPasteboardData(Vector<String> types, IPC::DataReference data)
352 ShouldDelayWindowOrderingEvent(WebKit::WebMouseEvent event) -> (bool result)
353 AcceptsFirstMouse(int eventNumber, WebKit::WebMouseEvent event) -> (bool result)
355 InsertTextAsync(String text, struct WebKit::EditingRange replacementRange, bool registerUndoGroup)
356 GetMarkedRangeAsync(uint64_t callbackID)
357 GetSelectedRangeAsync(uint64_t callbackID)
358 CharacterIndexForPointAsync(WebCore::IntPoint point, uint64_t callbackID);
359 FirstRectForCharacterRangeAsync(struct WebKit::EditingRange range, uint64_t callbackID);
360 SetCompositionAsync(String text, Vector<WebCore::CompositionUnderline> underlines, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange)
361 ConfirmCompositionAsync()
364 InsertDictatedTextAsync(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives, bool registerUndoGroup)
365 AttributedSubstringForCharacterRangeAsync(struct WebKit::EditingRange range, uint64_t callbackID);
366 FontAtSelection(uint64_t callbackID);
368 #if PLATFORM(MAC) && !USE(ASYNC_NSTEXTINPUTCLIENT)
369 InsertText(String text, struct WebKit::EditingRange replacementRange) -> (bool handled, struct WebKit::EditorState newState)
370 SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange) -> (struct WebKit::EditorState newState)
371 ConfirmComposition() -> (struct WebKit::EditorState newState)
372 InsertDictatedText(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives) -> (bool handled, struct WebKit::EditorState newState)
373 GetAttributedSubstringFromRange(struct WebKit::EditingRange range) -> (struct WebKit::AttributedString result)
374 GetMarkedRange() -> (struct WebKit::EditingRange range)
375 GetSelectedRange() -> (struct WebKit::EditingRange range)
376 CharacterIndexForPoint(WebCore::IntPoint point) -> (uint64_t result)
377 FirstRectForCharacterRange(struct WebKit::EditingRange range) -> (WebCore::IntRect resultRect)
378 ExecuteKeypressCommands(Vector<WebCore::KeypressCommand> savedCommands) -> (bool handled, struct WebKit::EditorState newState)
379 CancelComposition() -> (struct WebKit::EditorState newState)
382 SetMinimumLayoutSize(WebCore::IntSize minimumLayoutSize)
383 SetAutoSizingShouldExpandToViewHeight(bool shouldExpand)
386 ConfirmComposition(String compositionString)
387 SetComposition(String compositionString, Vector<WebCore::CompositionUnderline> underlines, uint64_t cursorPosition)
390 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
391 FindZoomableAreaForPoint(WebCore::IntPoint point, WebCore::IntSize area)
395 HandleAlternativeTextUIResult(String result)
399 WillStartUserTriggeredZooming();
402 SetScrollPinningBehavior(uint32_t pinning)
404 GetBytecodeProfile(uint64_t callbackID)
406 TakeSnapshot(WebCore::IntRect snapshotRect, WebCore::IntSize bitmapSize, uint32_t options, uint64_t callbackID)
408 PerformActionMenuHitTestAtLocation(WebCore::FloatPoint location, bool forImmediateAction)
409 SelectLastActionMenuRange()
410 FocusAndSelectLastActionMenuHitTestResult()
411 ImmediateActionDidUpdate()
412 ImmediateActionDidCancel()
413 ImmediateActionDidComplete()
414 DataDetectorsDidPresentUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
415 DataDetectorsDidChangeUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
416 DataDetectorsDidHideUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
419 SetShouldDispatchFakeMouseMoveEvents(bool shouldDispatchFakeMouseMoveEvents)
421 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
422 PlaybackTargetSelected(uint64_t contextId, struct WebCore::MediaPlaybackTargetContext target)
423 PlaybackTargetAvailabilityDidChange(uint64_t contextId, bool available)
424 SetShouldPlayToPlaybackTarget(uint64_t contextId, bool shouldPlay)