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 -> WebPageProxy {
25 CreateNewPage(WebCore::ResourceRequest request, WebCore::WindowFeatures windowFeatures, uint32_t modifiers, int32_t mouseButton) -> (uint64_t newPageID, WebKit::WebPageCreationParameters newPageParameters)
27 ClosePage(bool stopResponsivenessTimer)
29 RunJavaScriptAlert(uint64_t frameID, WTF::String message) -> () Delayed
30 RunJavaScriptConfirm(uint64_t frameID, WTF::String message) -> (bool returnValue) Delayed
31 RunJavaScriptPrompt(uint64_t frameID, WTF::String message, WTF::String defaultValue) -> (WTF::String returnValue) Delayed
34 RunJavaScriptAlert(uint64_t frameID, WTF::String message) -> ()
35 RunJavaScriptConfirm(uint64_t frameID, WTF::String message) -> (bool result)
36 RunJavaScriptPrompt(uint64_t frameID, WTF::String message, WTF::String defaultValue) -> (WTF::String result)
38 ShouldInterruptJavaScript() -> (bool shouldInterupt)
39 MouseDidMoveOverElement(WebKit::WebHitTestResult::Data hitTestResultData, uint32_t modifiers, WebKit::InjectedBundleUserMessageEncoder userData);
40 UnavailablePluginButtonClicked(uint32_t pluginUnavailabilityReason, WTF::String mimeType, WTF::String url, WTF::String pluginsPageURL)
41 DidChangeViewportProperties(WebCore::ViewportAttributes attributes)
42 DidReceiveEvent(uint32_t type, bool handled)
43 StopResponsivenessTimer()
44 SetCursor(WebCore::Cursor cursor)
45 SetCursorHiddenUntilMouseMoves(bool hiddenUntilMouseMoves)
46 SetStatusText(WTF::String statusText)
47 SetToolTip(WTF::String toolTip)
48 SetFocus(bool focused)
49 TakeFocus(uint32_t direction)
50 FocusedFrameChanged(uint64_t frameID)
51 FrameSetLargestFrameChanged(uint64_t frameID)
52 SetRenderTreeSize(uint64_t treeSize)
53 SetToolbarsAreVisible(bool toolbarsAreVisible)
54 GetToolbarsAreVisible() -> (bool toolbarsAreVisible)
55 SetMenuBarIsVisible(bool menuBarIsVisible);
56 GetMenuBarIsVisible() -> (bool menuBarIsVisible);
57 SetStatusBarIsVisible(bool statusBarIsVisible)
58 GetStatusBarIsVisible() -> (bool statusBarIsVisible)
59 SetIsResizable(bool isResizable)
60 GetIsResizable() -> (bool isResizable)
61 SetWindowFrame(WebCore::FloatRect windowFrame)
62 GetWindowFrame() -> (WebCore::FloatRect windowFrame)
63 ScreenToWindow(WebCore::IntPoint screenPoint) -> (WebCore::IntPoint windowPoint)
64 WindowToScreen(WebCore::IntRect rect) -> (WebCore::IntRect screenFrame)
65 RunBeforeUnloadConfirmPanel(WTF::String message, uint64_t frameID) -> (bool shouldClose)
67 RunOpenPanel(uint64_t frameID, WebCore::FileChooserSettings parameters)
68 PrintFrame(uint64_t frameID) -> ()
70 NotifyScrollerThumbIsVisibleInRect(WebCore::IntRect scrollerThumb)
71 RecommendedScrollbarStyleDidChange(int32_t newStyle)
72 DidChangeScrollbarsForMainFrame(bool hasHorizontalScrollbar, bool hasVerticalScrollbar)
73 DidChangeScrollOffsetPinningForMainFrame(bool hasHorizontalScrollbar, bool hasVerticalScrollbar)
74 DidChangePageCount(unsigned pageCount);
75 DidFailToInitializePlugin(WTF::String mimeType)
76 DidBlockInsecurePluginVersion(WTF::String mimeType, WTF::String urlString)
77 SetCanShortCircuitHorizontalWheelEvents(bool canShortCircuitHorizontalWheelEvents)
79 #if PLATFORM(EFL) && OS(TIZEN)
80 DidChangeScrollPositionForMainFrame(WebCore::IntPoint scrollPosition)
81 DidChangeContentsSize(WebCore::IntSize newSize)
82 HandleInputMethodKeydown() -> (bool handled)
83 UpdateFormNavigation(int length, int position)
84 FocusedNodeChanged(WebCore::IntRect focusedNodeRect)
86 #if ENABLE(TIZEN_SUPPORT_RSS_LINK_PARSING)
87 GetRssItemsCallback(Vector<WebKit::RssItemEfl> rssItems, uint64_t callbackID)
90 #if ENABLE(TIZEN_WEB_STORAGE)
91 DidGetWebStorageQuotaBytes(uint32_t quota, uint64_t callbackID)
94 #if USE(TILED_BACKING_STORE)
95 PageDidRequestScroll(WebCore::IntPoint point)
98 DidChangeContentsSize(WebCore::IntSize newSize)
99 DidFindZoomableArea(WebCore::IntPoint target, WebCore::IntRect area)
100 AuthenticationRequiredRequest(WTF::String hostname, WTF::String realm, WTF::String prefilledUsername) -> (WTF::String username, WTF::String password)
101 CertificateVerificationRequest(WTF::String hostname) -> (bool ignoreErrors)
102 ProxyAuthenticationRequiredRequest(WTF::String hostname, uint16_t port, WTF::String prefilledUsername) -> (WTF::String username, WTF::String password)
105 #if ENABLE(TIZEN_REGISTER_PROTOCOL_HANDLER)
106 RegisterProtocolHandler(WTF::String scheme, WTF::String baseURL, WTF::String url, WTF::String title)
108 #if ENABLE(TIZEN_REGISTER_CONTENT_HANDLER)
109 RegisterContentHandler(WTF::String mimeType, WTF::String baseURL, WTF::String url, WTF::String title)
112 #if ENABLE(TIZEN_SUPPORT_WEBAPP_META_TAG)
113 GetStandaloneStatus() -> (bool standalone)
114 DidGetWebAppCapable(bool capable, uint64_t callbackID)
115 DidGetWebAppIconURL(WTF::String iconURL, uint64_t callbackID)
118 #if ENABLE(TOUCH_EVENTS)
119 NeedTouchEvents(bool needTouchEvents)
122 #if ENABLE(INPUT_TYPE_COLOR)
123 ShowColorChooser(WebCore::Color initialColor);
124 SetColorChooserColor(WebCore::Color color);
129 DecidePolicyForResponse(uint64_t frameID, WebCore::ResourceResponse response, WebCore::ResourceRequest request, uint64_t listenerID, WebKit::InjectedBundleUserMessageEncoder userData) -> (bool receivedPolicyAction, uint64_t policyAction, uint64_t downloadID)
130 DecidePolicyForNavigationAction(uint64_t frameID, uint32_t navigationType, uint32_t modifiers, int32_t mouseButton, WebCore::ResourceRequest request, uint64_t listenerID, WebKit::InjectedBundleUserMessageEncoder userData) -> (bool receivedPolicyAction, uint64_t policyAction, uint64_t downloadID)
131 DecidePolicyForNewWindowAction(uint64_t frameID, uint32_t navigationType, uint32_t modifiers, int32_t mouseButton, WebCore::ResourceRequest request, WTF::String frameName, uint64_t listenerID, WebKit::InjectedBundleUserMessageEncoder userData)
132 UnableToImplementPolicy(uint64_t frameID, WebCore::ResourceError error, WebKit::InjectedBundleUserMessageEncoder userData)
135 DidChangeProgress(double value)
139 #if ENABLE(TIZEN_MM_PLAYER)
140 ProcessHTML5Video(WTF::String url, WTF::String cookie)
143 #if ENABLE(TIZEN_PLUGIN_CUSTOM_REQUEST)
144 ProcessPluginCustomRequest(WTF::String request, WTF::String msg)
147 # Frame lifetime messages
148 DidCreateMainFrame(uint64_t frameID)
149 DidCreateSubframe(uint64_t frameID, uint64_t parentFrameID)
150 DidSaveFrameToPageCache(uint64_t frameID);
151 DidRestoreFrameFromPageCache(uint64_t frameID, uint64_t parentFrameID);
153 # Frame load messages
154 DidCommitLoadForFrame(uint64_t frameID, WTF::String mimeType, bool hasCustomRepresentation, WebKit::PlatformCertificateInfo certificateInfo, WebKit::InjectedBundleUserMessageEncoder userData)
155 DidFailLoadForFrame(uint64_t frameID, WebCore::ResourceError error, WebKit::InjectedBundleUserMessageEncoder userData)
156 DidFailProvisionalLoadForFrame(uint64_t frameID, WebCore::ResourceError error, WebKit::InjectedBundleUserMessageEncoder userData)
157 DidFinishDocumentLoadForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
158 DidFinishLoadForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
159 DidFirstLayoutForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
160 DidFirstVisuallyNonEmptyLayoutForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
161 DidNewFirstVisuallyNonEmptyLayout(WebKit::InjectedBundleUserMessageEncoder userData)
162 DidReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, WTF::String url, WebKit::InjectedBundleUserMessageEncoder userData)
163 DidRemoveFrameFromHierarchy(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
164 DidStartProvisionalLoadForFrame(uint64_t frameID, WTF::String url, WTF::String unreachableURL, WebKit::InjectedBundleUserMessageEncoder userData)
165 DidReceiveTitleForFrame(uint64_t frameID, WTF::String title, WebKit::InjectedBundleUserMessageEncoder userData)
166 DidDisplayInsecureContentForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
167 DidRunInsecureContentForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
168 DidDetectXSSForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
169 DidSameDocumentNavigationForFrame(uint64_t frameID, uint32_t type, WTF::String url, WebKit::InjectedBundleUserMessageEncoder userData)
171 FrameDidBecomeFrameSet(uint64_t frameID, bool value)
173 # Resource load messages
174 DidInitiateLoadForResource(uint64_t frameID, uint64_t resourceIdentifier, WebCore::ResourceRequest request, bool pageIsProvisionallyLoading)
175 DidSendRequestForResource(uint64_t frameID, uint64_t resourceIdentifier, WebCore::ResourceRequest request, WebCore::ResourceResponse redirectResponse)
176 DidReceiveResponseForResource(uint64_t frameID, uint64_t resourceIdentifier, WebCore::ResourceResponse response)
177 DidReceiveContentLengthForResource(uint64_t frameID, uint64_t resourceIdentifier, uint64_t contentLength)
178 DidFinishLoadForResource(uint64_t frameID, uint64_t resourceIdentifier)
179 DidFailLoadForResource(uint64_t frameID, uint64_t resourceIdentifier, WebCore::ResourceError error)
181 ResolveApplicationSchemeRequest(WebKit::QtNetworkRequestData request)
185 # Custom representations
186 DidFinishLoadingDataForCustomRepresentation(WTF::String suggestedFilename, CoreIPC::DataReference data)
189 WillSubmitForm(uint64_t frameID, uint64_t sourceFrameID, WebKit::StringPairVector textFieldValues, uint64_t listenerID, WebKit::InjectedBundleUserMessageEncoder userData)
192 VoidCallback(uint64_t callbackID)
193 DataCallback(CoreIPC::DataReference resultData, uint64_t callbackID)
194 StringCallback(WTF::String resultString, uint64_t callbackID)
195 ScriptValueCallback(CoreIPC::DataReference resultData, uint64_t callbackID)
196 ComputedPagesCallback(Vector<WebCore::IntRect> pageRects, double totalScaleFactorForPrinting, uint64_t callbackID)
197 ValidateCommandCallback(WTF::String command, bool isEnabled, int32_t state, uint64_t callbackID)
199 PrintFinishedCallback(WebCore::ResourceError error, uint64_t callbackID)
202 PageScaleFactorDidChange(double scaleFactor)
205 # Support for GTK+ platform keybindings
206 GetEditorCommandsForKeyEvent(AtomicString eventType) -> (Vector<WTF::String> commandsList)
208 # Support for connecting the Accessibility worlds of the UI and the Web processes
209 BindAccessibilityTree(WTF::String plugID)
212 # BackForward messages
213 BackForwardAddItem(uint64_t itemID)
214 BackForwardGoToItem(uint64_t itemID) -> (WebKit::SandboxExtension::Handle sandboxExtensionHandle)
215 BackForwardItemAtIndex(int32_t itemIndex) -> (uint64_t itemID)
216 BackForwardBackListCount() -> (int32_t count)
217 BackForwardForwardListCount() -> (int32_t count)
219 ShouldGoToBackForwardListItem(uint64_t itemID) -> (bool shouldGoToBackForwardListItem)
220 WillGoToBackForwardListItem(uint64_t itemID, WebKit::InjectedBundleUserMessageEncoder userData)
223 RegisterEditCommandForUndo(uint64_t commandID, uint32_t editAction)
224 ClearAllEditCommands()
225 CanUndoRedo(uint32_t action) -> (bool result)
226 ExecuteUndoRedo(uint32_t action) -> (bool result)
228 # Certification message
229 DecidePolicyForCertificateError(bool isTrusted, WTF::String url, WTF::String certificate, int error) -> (bool canContinue)
231 # Editor notifications
232 EditorStateChanged(WebKit::EditorState editorState)
234 DidChangeCompositionSelection(bool hasChanged)
238 DidCountStringMatches(WTF::String string, uint32_t matchCount)
239 SetFindIndicator(WebCore::FloatRect selectionRect, Vector<WebCore::FloatRect> textRects, float contentImageScaleFactor, WebKit::ShareableBitmap::Handle contentImageHandle, bool fadeOut, bool animate)
240 DidFindString(WTF::String string, uint32_t matchCount)
241 DidFailToFindString(WTF::String string)
243 DidInstallOrUninstallPageOverlay(bool didInstall)
247 ShowPopupMenu(WebCore::IntRect rect, uint64_t textDirection, Vector<WebKit::WebPopupItem> items, int32_t selectedIndex, WebKit::PlatformPopupMenuData data)
250 SetPopupMenuSelectedIndex(int32_t selectedIndex)
253 #if ENABLE(CONTEXT_MENUS)
254 # ContextMenu messages
255 ShowContextMenu(WebCore::IntPoint menuLocation, WebKit::WebHitTestResult::Data hitTestResultData, Vector<WebKit::WebContextMenuItemData> items, WebKit::InjectedBundleUserMessageEncoder userData)
258 # Authentication messages
259 CanAuthenticateAgainstProtectionSpaceInFrame(uint64_t frameID, WebCore::ProtectionSpace protectionSpace) -> (bool canAuthenticate)
260 DidReceiveAuthenticationChallenge(uint64_t frameID, WebCore::AuthenticationChallenge challenge, uint64_t challengeID)
263 ExceededDatabaseQuota(uint64_t frameID, WTF::String originIdentifier, WTF::String databaseName, WTF::String databaseDisplayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage) -> (uint64_t newQuota)
265 # Geolocation messages
266 RequestGeolocationPermissionForFrame(uint64_t geolocationID, uint64_t frameID, WTF::String originIdentifier)
268 # Notification messages
269 RequestNotificationPermission(uint64_t requestID, WTF::String originIdentifier)
270 ShowNotification(WTF::String title, WTF::String body, WTF::String iconURL, WTF::String tag, WTF::String originIdentifier, uint64_t notificationID)
272 #if ENABLE(TIZEN_MEDIA_STREAM)
274 RequestUserMediaPermission(uint64_t requestID)
277 # Spelling and grammar messages
278 #if USE(UNIFIED_TEXT_CHECKING)
279 CheckTextOfParagraph(WTF::String text, uint64_t checkingTypes) -> (Vector<WebCore::TextCheckingResult> results)
281 CheckSpellingOfString(WTF::String text) -> (int32_t misspellingLocation, int32_t misspellingLength)
282 CheckGrammarOfString(WTF::String text) -> (Vector<WebCore::GrammarDetail> results, int32_t badGrammarLocation, int32_t badGrammarLength)
283 SpellingUIIsShowing() -> (bool isShowing)
284 UpdateSpellingUIWithMisspelledWord(WTF::String misspelledWord)
285 UpdateSpellingUIWithGrammarString(WTF::String badGrammarPhrase, WebCore::GrammarDetail grammarDetail)
286 GetGuessesForWord(WTF::String word, WTF::String context) -> (Vector<WTF::String> guesses)
287 #if PLATFORM(EFL) && !ENABLE(TIZEN_INPUT_TAG_EXTENSION)
288 SetInputMethodState(bool active);
290 #if ENABLE(TIZEN_INPUT_TAG_EXTENSION)
291 SetInputMethodState(bool active, AtomicString inputType, WTF::String inputValue);
293 #if ENABLE(TIZEN_ISF_PORT)
294 HandleInputMethodMouseRelease()
295 UpdateCursorPosition()
296 GetInputMethodState() -> (bool state)
298 LearnWord(WTF::String word);
299 IgnoreWord(WTF::String word);
301 #if ENABLE(TIZEN_VIBRATION)
302 Vibrate(uint64_t time);
306 # Drag and drop messages
307 #if ENABLE(DRAG_SUPPORT)
308 DidPerformDragControllerAction(WebCore::DragSession dragSession)
309 #if ENABLE(DRAG_SUPPORT) && PLATFORM(MAC)
310 SetDragImage(WebCore::IntPoint clientPosition, WebKit::ShareableBitmap::Handle dragImage, bool linkDrag)
311 SetPromisedData(WTF::String pasteboardName, WebKit::SharedMemory::Handle imageHandle, uint64_t imageSize, WTF::String filename, WTF::String extension, WTF::String title, WTF::String url, WTF::String visibleURL, WebKit::SharedMemory::Handle archiveHandle, uint64_t archiveSize)
313 #if ENABLE(DRAG_SUPPORT) && PLATFORM(WIN)
314 StartDragDrop(WebCore::IntPoint imagePoint, WebCore::IntPoint dragPoint, uint64_t okEffect, HashMap<UINT,Vector<String> > dataMap, uint64_t fileSize, String pathname, WebKit::SharedMemory::Handle fileContentHandle, WebCore::IntSize dragImageSize, WebKit::SharedMemory::Handle dragImage, bool linkDrag)
316 #if ENABLE(DRAG_SUPPORT) && (PLATFORM(QT) || PLATFORM(GTK))
317 StartDrag(WebCore::DragData dragData, WebKit::ShareableBitmap::Handle dragImage)
322 # Dictionary support.
323 DidPerformDictionaryLookup(WTF::String text, WebKit::DictionaryPopupInfo dictionaryPopupInfo)
325 # Keyboard input support messages
326 InterpretQueuedKeyEvent(WebKit::EditorState state) -> (bool handled, Vector<WebCore::KeypressCommand> savedCommands)
327 ExecuteSavedCommandBySelector(WTF::String selector) -> (bool handled)
329 # Remote accessibility messages
330 RegisterWebProcessAccessibilityToken(CoreIPC::DataReference data)
332 # Plug-in complex text input support messages
333 PluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus)
334 SetPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, uint64_t complexTextInputState)
337 GetIsSpeaking() -> (bool isSpeaking)
338 Speak(WTF::String string)
344 SearchWithSpotlight(WTF::String string)
348 SubstitutionsPanelIsShowing() -> (bool isShowing)
350 #if PLATFORM(MAC) && !defined(BUILDING_ON_SNOW_LEOPARD)
351 # Autocorrection messages
352 ShowCorrectionPanel(int32_t panelType, WebCore::FloatRect boundingBoxOfReplacedString, String replacedString, String replacementString, Vector<String> alternativeReplacementStrings)
353 DismissCorrectionPanel(int32_t reason)
354 DismissCorrectionPanelSoon(int32_t reason) -> (String result)
355 RecordAutocorrectionResponse(int32_t responseType, String replacedString, String replacementString);
359 # Windows 7 Gesture Messages
360 SetGestureReachedScrollingLimit(bool limitReached)
362 # Miscellaneous Windows messages
363 ScheduleChildWindowGeometryUpdate(WebKit::WindowGeometry geometry)
366 #if PLUGIN_ARCHITECTURE(X11)
367 # X11 windowed plugin messages
368 CreatePluginContainer() -> (uint64_t windowID)
369 WindowedPluginGeometryDidChange(WebCore::IntRect frameRect, WebCore::IntRect clipRect, uint64_t windowID)
373 SaveRecentSearches(WTF::String name, Vector<String> searchItems)
374 LoadRecentSearches(WTF::String name) -> (Vector<String> result)
376 #if ENABLE(TIZEN_READER)
377 ShowReaderForArticle(WTF::String readerUrl, WTF::String readerHtml, uint64_t callbackID)
379 #if ENABLE(TIZEN_WEBKIT_PASTEBOARD)
380 WriteDataToClipboardWithType(WTF::String data, uint64_t type)
383 #if ENABLE(TIZEN_WEBKIT2_TILED_AC)
384 SetBackgroundColor(double red, double green, double blue, double alpha)
387 #if ENABLE(TIZEN_WEBKIT2_GET_TEXT_STYLE_FOR_SELECTION)
388 DidGetTextStyleStateForSelection(int underlineState, int italicState, int boldState)
391 #if ENABLE(SCREEN_ORIENTATION_SUPPORT) && ENABLE(TIZEN_SCREEN_ORIENTATION_SUPPORT)
392 LockOrientation(int32_t orientation) -> (bool result)