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)
96 #if ENABLE(REMOTE_INSPECTOR)
97 SetAllowsRemoteInspection(bool allow)
100 #if ENABLE(IOS_TOUCH_EVENTS)
101 TouchEventSync(WebKit::WebTouchEvent event) -> (bool handled)
103 #if !ENABLE(IOS_TOUCH_EVENTS) && ENABLE(TOUCH_EVENTS)
104 TouchEvent(WebKit::WebTouchEvent event)
105 TouchEventSyncForTesting(WebKit::WebTouchEvent event) -> (bool handled)
108 #if ENABLE(INPUT_TYPE_COLOR)
110 DidChooseColor(WebCore::Color color)
113 #if ENABLE(CONTEXT_MENUS)
117 ScrollBy(uint32_t scrollDirection, uint32_t scrollGranularity)
118 CenterSelectionInVisibleArea()
120 GoBack(uint64_t navigationID, uint64_t backForwardItemID)
121 GoForward(uint64_t navigationID, uint64_t backForwardItemID)
122 GoToBackForwardItem(uint64_t navigationID, uint64_t backForwardItemID)
123 TryRestoreScrollPosition()
125 LoadURLInFrame(String url, uint64_t frameID)
126 LoadRequest(uint64_t navigationID, WebCore::ResourceRequest request, WebKit::SandboxExtension::Handle sandboxExtensionHandle, WebKit::UserData userData)
127 LoadData(IPC::DataReference data, String MIMEType, String encoding, String baseURL, WebKit::UserData userData)
128 LoadHTMLString(uint64_t navigationID, String htmlString, String baseURL, WebKit::UserData userData)
129 LoadAlternateHTMLString(String htmlString, String baseURL, String unreachableURL, WebKit::UserData userData)
130 LoadPlainTextString(String string, WebKit::UserData userData)
131 LoadWebArchiveData(IPC::DataReference webArchiveData, WebKit::UserData userData)
132 NavigateToURLWithSimulatedClick(String url, WebCore::IntPoint documentPoint, WebCore::IntPoint screenPoint)
134 Reload(uint64_t navigationID, bool reloadFromOrigin, WebKit::SandboxExtension::Handle sandboxExtensionHandle)
137 StopLoadingFrame(uint64_t frameID)
139 RestoreSession(Vector<WebKit::BackForwardListItemState> itemStates)
141 DidRemoveBackForwardItem(uint64_t backForwardItemID)
143 DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, uint32_t policyAction, uint64_t navigationID, uint64_t downloadID)
146 RestoreSelectionInFocusedEditableElement()
149 GetContentsAsString(uint64_t callbackID)
151 GetContentsAsMHTMLData(uint64_t callbackID, bool useBinaryEncoding)
153 GetMainResourceDataOfFrame(uint64_t frameID, uint64_t callbackID)
154 GetResourceDataFromFrame(uint64_t frameID, String resourceURL, uint64_t callbackID)
155 GetRenderTreeExternalRepresentation(uint64_t callbackID)
156 GetSelectionOrContentsAsString(uint64_t callbackID)
157 GetSelectionAsWebArchiveData(uint64_t callbackID)
158 GetSourceForFrame(uint64_t frameID, uint64_t callbackID)
159 GetWebArchiveOfFrame(uint64_t frameID, uint64_t callbackID)
160 RunJavaScriptInMainFrame(String script, uint64_t callbackID)
161 ForceRepaint(uint64_t callbackID)
164 # Dictionary support.
165 PerformDictionaryLookupAtLocation(WebCore::FloatPoint point)
169 PerformDictionaryLookupOfCurrentSelection()
170 SetFont(String fontFamily, double fontSize, uint64_t fontTraits)
173 PreferencesDidChange(struct WebKit::WebPreferencesStore store)
175 SetUserAgent(String userAgent)
176 SetCustomTextEncodingName(String encodingName)
178 SuspendActiveDOMObjectsAndAnimations()
179 ResumeActiveDOMObjectsAndAnimations()
184 SetEditable(bool editable)
185 ValidateCommand(String name, uint64_t callbackID)
186 ExecuteEditCommand(String name)
188 DidRemoveEditCommand(uint64_t commandID)
189 ReapplyEditCommand(uint64_t commandID)
190 UnapplyEditCommand(uint64_t commandID)
192 SetPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor)
193 SetPageZoomFactor(double zoomFactor)
194 SetTextZoomFactor(double zoomFactor)
195 WindowScreenDidChange(uint32_t displayID)
197 ScalePage(double scale, WebCore::IntPoint origin)
198 ScalePageInViewCoordinates(double scale, WebCore::IntPoint centerInViewCoordinates)
199 ScaleView(double scale)
201 SetUseFixedLayout(bool fixed)
202 SetFixedLayoutSize(WebCore::IntSize size)
203 ListenForLayoutMilestones(uint32_t milestones)
204 SetSuppressScrollbarAnimations(bool suppressAnimations)
206 SetEnableVerticalRubberBanding(bool enableVerticalRubberBanding)
207 SetEnableHorizontalRubberBanding(bool enableHorizontalRubberBanding)
209 SetBackgroundExtendsBeyondPage(bool backgroundExtendsBeyondPage)
211 SetPaginationMode(uint32_t mode)
212 SetPaginationBehavesLikeColumns(bool behavesLikeColumns)
213 SetPageLength(double pageLength)
214 SetGapBetweenPages(double gap)
216 PostInjectedBundleMessage(String messageName, WebKit::UserData messageBody)
219 FindString(String string, uint32_t findOptions, unsigned maxMatchCount)
220 FindStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
221 GetImageForFindMatch(uint32_t matchIndex)
222 SelectFindMatch(uint32_t matchIndex)
224 CountStringMatches(String string, uint32_t findOptions, unsigned maxMatchCount)
226 AddMIMETypeWithCustomContentProvider(String mimeType)
229 #if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
230 PerformDragControllerAction(uint64_t action, WebCore::DragData dragData)
232 #if !PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
233 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)
235 #if ENABLE(DRAG_SUPPORT)
237 DragEnded(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t operation)
241 DidChangeSelectedIndexForActivePopupMenu(int32_t newIndex)
242 SetTextForActivePopupMenu(int32_t index)
244 FailedToShowPopupMenu()
247 #if ENABLE(CONTEXT_MENUS)
249 DidSelectItemFromActiveContextMenu(WebKit::WebContextMenuItemData menuItem)
254 DidChooseFilesForOpenPanelWithDisplayStringAndIcon(Vector<String> fileURLs, String displayString, IPC::DataReference iconData)
256 DidChooseFilesForOpenPanel(Vector<String> fileURLs)
257 DidCancelForOpenPanel()
258 #if ENABLE(SANDBOX_EXTENSIONS)
259 ExtendSandboxForFileFromOpenPanel(WebKit::SandboxExtension::Handle sandboxExtensionHandle)
262 # Spelling and grammar.
263 AdvanceToNextMisspelling(bool startBeforeSelection)
264 ChangeSpellingToWord(String word)
265 DidFinishCheckingText(uint64_t requestID, Vector<WebCore::TextCheckingResult> result)
266 DidCancelCheckingText(uint64_t requestID)
273 SetSmartInsertDeleteEnabled(bool isSmartInsertDeleteEnabled)
276 #if ENABLE(GEOLOCATION)
278 DidReceiveGeolocationPermissionDecision(uint64_t geolocationID, bool allowed)
281 #if ENABLE(MEDIA_STREAM)
283 DidReceiveUserMediaPermissionDecision(uint64_t userMediaID, bool allowed)
287 DidReceiveNotificationPermissionDecision(uint64_t notificationID, bool allowed)
289 SetWindowResizerSize(WebCore::IntSize intersectsView)
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 // FIXME: This a dummy message, to avoid breaking the build for platforms that don't require
312 // any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed.
313 Dummy() -> (bool dummyReturn)
315 SetCanRunBeforeUnloadConfirmPanel(bool canRunBeforeUnloadConfirmPanel)
316 SetCanRunModal(bool canRunModal)
319 SetThemePath(String themePath)
322 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
323 CommitPageTransitionViewport()
327 SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd)
328 ConfirmComposition(String text, int64_t selectionStart, int64_t selectionLength)
332 #if PLATFORM (GTK) && HAVE(GTK_GESTURES)
333 GetCenterForZoomGesture(WebCore::IntPoint centerInViewCoordinates) -> (WebCore::IntPoint center)
337 # Complex text input support for plug-ins.
338 SendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, String textInput)
340 WindowAndViewFramesChanged(WebCore::FloatRect windowFrameInScreenCoordinates, WebCore::FloatRect windowFrameInUnflippedScreenCoordinates, WebCore::FloatRect viewFrameInWindowCoordinates, WebCore::FloatPoint accessibilityViewCoordinates)
341 SetMainFrameIsScrollable(bool isScrollable)
342 RegisterUIProcessAccessibilityTokens(IPC::DataReference elemenToken, IPC::DataReference windowToken)
343 GetStringSelectionForPasteboard() -> (String stringValue)
344 GetDataSelectionForPasteboard(String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size)
345 ReadSelectionFromPasteboard(String pasteboardName) -> (bool result)
347 #if ENABLE(SERVICE_CONTROLS)
348 ReplaceSelectionWithPasteboardData(Vector<String> types, IPC::DataReference data)
351 ShouldDelayWindowOrderingEvent(WebKit::WebMouseEvent event) -> (bool result)
352 AcceptsFirstMouse(int eventNumber, WebKit::WebMouseEvent event) -> (bool result)
354 InsertTextAsync(String text, struct WebKit::EditingRange replacementRange, bool registerUndoGroup)
355 GetMarkedRangeAsync(uint64_t callbackID)
356 GetSelectedRangeAsync(uint64_t callbackID)
357 CharacterIndexForPointAsync(WebCore::IntPoint point, uint64_t callbackID);
358 FirstRectForCharacterRangeAsync(struct WebKit::EditingRange range, uint64_t callbackID);
359 SetCompositionAsync(String text, Vector<WebCore::CompositionUnderline> underlines, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange)
360 ConfirmCompositionAsync()
363 InsertDictatedTextAsync(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives, bool registerUndoGroup)
364 AttributedSubstringForCharacterRangeAsync(struct WebKit::EditingRange range, uint64_t callbackID);
365 FontAtSelection(uint64_t callbackID);
367 #if PLATFORM(MAC) && !USE(ASYNC_NSTEXTINPUTCLIENT)
368 InsertText(String text, struct WebKit::EditingRange replacementRange) -> (bool handled, struct WebKit::EditorState newState)
369 SetComposition(String text, Vector<WebCore::CompositionUnderline> underlines, struct WebKit::EditingRange selectionRange, struct WebKit::EditingRange replacementRange) -> (struct WebKit::EditorState newState)
370 ConfirmComposition() -> (struct WebKit::EditorState newState)
371 InsertDictatedText(String text, struct WebKit::EditingRange replacementRange, Vector<WebCore::DictationAlternative> dictationAlternatives) -> (bool handled, struct WebKit::EditorState newState)
372 GetAttributedSubstringFromRange(struct WebKit::EditingRange range) -> (struct WebKit::AttributedString result)
373 GetMarkedRange() -> (struct WebKit::EditingRange range)
374 GetSelectedRange() -> (struct WebKit::EditingRange range)
375 CharacterIndexForPoint(WebCore::IntPoint point) -> (uint64_t result)
376 FirstRectForCharacterRange(struct WebKit::EditingRange range) -> (WebCore::IntRect resultRect)
377 ExecuteKeypressCommands(Vector<WebCore::KeypressCommand> savedCommands) -> (bool handled, struct WebKit::EditorState newState)
378 CancelComposition() -> (struct WebKit::EditorState newState)
381 SetMinimumLayoutSize(WebCore::IntSize minimumLayoutSize)
382 SetAutoSizingShouldExpandToViewHeight(bool shouldExpand)
385 ConfirmComposition(String compositionString)
386 SetComposition(String compositionString, Vector<WebCore::CompositionUnderline> underlines, uint64_t cursorPosition)
389 #if USE(COORDINATED_GRAPHICS_MULTIPROCESS)
390 FindZoomableAreaForPoint(WebCore::IntPoint point, WebCore::IntSize area)
394 HandleAlternativeTextUIResult(String result)
398 WillStartUserTriggeredZooming();
401 SetScrollPinningBehavior(uint32_t pinning)
403 GetBytecodeProfile(uint64_t callbackID)
405 TakeSnapshot(WebCore::IntRect snapshotRect, WebCore::IntSize bitmapSize, uint32_t options, uint64_t callbackID)
407 PerformActionMenuHitTestAtLocation(WebCore::FloatPoint location, bool forImmediateAction)
408 SelectLastActionMenuRange()
409 FocusAndSelectLastActionMenuHitTestResult()
410 ImmediateActionDidUpdate()
411 ImmediateActionDidCancel()
412 ImmediateActionDidComplete()
413 DataDetectorsDidPresentUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
414 DataDetectorsDidChangeUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
415 DataDetectorsDidHideUI(WebCore::PageOverlay::PageOverlayID pageOverlay)
418 SetShouldDispatchFakeMouseMoveEvents(bool shouldDispatchFakeMouseMoveEvents)
420 #if ENABLE(WIRELESS_PLAYBACK_TARGET) && !PLATFORM(IOS)
421 PlaybackTargetSelected(uint64_t contextId, struct WebCore::MediaPlaybackTargetContext target)
422 PlaybackTargetAvailabilityDidChange(uint64_t contextId, bool available)
423 SetShouldPlayToPlaybackTarget(uint64_t contextId, bool shouldPlay)