Merge "[Cherry-pick][[Text Autosizing] Refactoring to eliminate boolean parameter...
[framework/web/webkit-efl.git] / Source / WebKit2 / UIProcess / WebPageProxy.messages.in
1 # Copyright (C) 2010, 2011 Apple Inc. All rights reserved.
2 #
3 # Redistribution and use in source and binary forms, with or without
4 # modification, are permitted provided that the following conditions
5 # are met:
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.
11 #
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.
22
23 messages -> WebPageProxy {
24     # UI messages
25     CreateNewPage(WebCore::ResourceRequest request, WebCore::WindowFeatures windowFeatures, uint32_t modifiers, int32_t mouseButton) -> (uint64_t newPageID, WebKit::WebPageCreationParameters newPageParameters)
26     ShowPage()
27     ClosePage(bool stopResponsivenessTimer)
28 #if OS(TIZEN)
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
32 #endif
33 #if !OS(TIZEN)
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)
37 #endif
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 #if ENABLE(TIZEN_SUPPORT_BEFORE_UNLOAD_CONFIRM_PANEL)
66     RunBeforeUnloadConfirmPanel(WTF::String message, uint64_t frameID) -> (bool shouldClose) Delayed
67 #endif
68 #if !ENABLE(TIZEN_SUPPORT_BEFORE_UNLOAD_CONFIRM_PANEL)
69     RunBeforeUnloadConfirmPanel(WTF::String message, uint64_t frameID) -> (bool shouldClose)
70 #endif
71     PageDidScroll()
72     RunOpenPanel(uint64_t frameID, WebCore::FileChooserSettings parameters)
73     PrintFrame(uint64_t frameID) -> ()
74     RunModal()
75     NotifyScrollerThumbIsVisibleInRect(WebCore::IntRect scrollerThumb)
76     RecommendedScrollbarStyleDidChange(int32_t newStyle)
77     DidChangeScrollbarsForMainFrame(bool hasHorizontalScrollbar, bool hasVerticalScrollbar)
78     DidChangeScrollOffsetPinningForMainFrame(bool hasHorizontalScrollbar, bool hasVerticalScrollbar)
79     DidChangePageCount(unsigned pageCount);
80     DidFailToInitializePlugin(WTF::String mimeType)
81     DidBlockInsecurePluginVersion(WTF::String mimeType, WTF::String urlString)
82     SetCanShortCircuitHorizontalWheelEvents(bool canShortCircuitHorizontalWheelEvents)
83
84 #if PLATFORM(EFL)
85     HandleInputMethodKeydown() -> (bool handled)
86 #endif
87
88 #if PLATFORM(EFL) && OS(TIZEN)
89     DidChangeScrollPositionForMainFrame(WebCore::IntPoint scrollPosition)
90     DidChangeContentsSize(WebCore::IntSize newSize)
91     UpdateFormNavigation(int length, int position)
92     FocusedNodeChanged(WebCore::IntRect focusedNodeRect)
93 #endif
94
95 #if ENABLE(TIZEN_WEB_STORAGE)
96     DidGetWebStorageQuotaBytes(uint32_t quota, uint64_t callbackID)
97 #endif
98
99 #if USE(TILED_BACKING_STORE)
100     PageDidRequestScroll(WebCore::IntPoint point)
101 #endif
102
103 #if ENABLE(TIZEN_WEBKIT2_HISTORICAL_RESTORE_VISIBLE_CONTENT_RECT)
104     pageDidRequestRestoreVisibleContentRect(WebCore::IntPoint point, float scale)
105 #endif
106
107 #if PLATFORM(QT)
108     DidChangeContentsSize(WebCore::IntSize newSize)
109     DidFindZoomableArea(WebCore::IntPoint target, WebCore::IntRect area)
110     AuthenticationRequiredRequest(WTF::String hostname, WTF::String realm, WTF::String prefilledUsername) -> (WTF::String username, WTF::String password)
111     CertificateVerificationRequest(WTF::String hostname) -> (bool ignoreErrors)
112     ProxyAuthenticationRequiredRequest(WTF::String hostname, uint16_t port, WTF::String prefilledUsername) -> (WTF::String username, WTF::String password)
113 #endif
114 #if OS(TIZEN)
115     DidFindZoomableArea(WebCore::IntPoint target, WebCore::IntRect area)
116 #endif
117
118 #if ENABLE(TIZEN_REGISTER_PROTOCOL_HANDLER)
119     RegisterProtocolHandler(WTF::String scheme, WTF::String baseURL, WTF::String url, WTF::String title)
120 #endif
121 #if ENABLE(TIZEN_CUSTOM_SCHEME_HANDLER)
122     IsProtocolHandlerRegistered(WTF::String scheme, WTF::String baseURL, WTF::String url) -> (unsigned result)
123     UnregisterProtocolHandler(WTF::String scheme, WTF::String baseURL, WTF::String url)
124 #endif
125 #if ENABLE(TIZEN_REGISTER_CONTENT_HANDLER)
126     RegisterContentHandler(WTF::String mimeType, WTF::String baseURL, WTF::String url, WTF::String title)
127     IsContentHandlerRegistered(WTF::String mimeType, WTF::String baseURL, WTF::String url) -> (unsigned result)
128     UnregisterContentHandler(WTF::String mimeType, WTF::String baseURL, WTF::String url)
129 #endif
130 #if ENABLE(TIZEN_SEARCH_PROVIDER)
131     AddSearchProvider(WTF::String baseURL, WTF::String engineURL)
132     IsSearchProviderInstalled(WTF::String baseURL, WTF::String engineURL) -> (uint64_t result)
133 #endif
134
135 #if ENABLE(TIZEN_SUPPORT_WEBAPP_META_TAG)
136     GetStandaloneStatus() -> (bool standalone)
137     DidGetWebAppCapable(bool capable, uint64_t callbackID)
138     DidGetWebAppIconURL(WTF::String iconURL, uint64_t callbackID)
139     DidGetWebAppIconURLs(WebKit::StringPairVector iconURLs, uint64_t callbackID)
140 #endif
141
142 #if ENABLE(TIZEN_ICON_DATABASE)
143     DidReceiveIcon()
144 #endif
145
146 #if ENABLE(TOUCH_EVENTS)
147     NeedTouchEvents(bool needTouchEvents)
148 #endif
149
150 #if ENABLE(INPUT_TYPE_COLOR)
151     ShowColorChooser(WebCore::Color initialColor);
152     SetColorChooserColor(WebCore::Color color);
153     EndColorChooser();
154 #endif
155
156     # Policy messages
157     DecidePolicyForResponse(uint64_t frameID, WebCore::ResourceResponse response, WebCore::ResourceRequest request, uint64_t listenerID, WebKit::InjectedBundleUserMessageEncoder userData) -> (bool receivedPolicyAction, uint64_t policyAction, uint64_t downloadID)
158     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)
159     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)
160     UnableToImplementPolicy(uint64_t frameID, WebCore::ResourceError error, WebKit::InjectedBundleUserMessageEncoder userData)
161 #if ENABLE(TIZEN_DOWNLOAD_ATTRIBUTE)
162     StartDownload(WebCore::ResourceRequest request, WTF::String suggestedName)
163 #endif
164     # Intent messages
165 #if ENABLE(WEB_INTENTS)
166     DidReceiveIntentForFrame(uint64_t frameID, WebKit::IntentData intent, WebKit::InjectedBundleUserMessageEncoder userData)
167 #endif
168 #if ENABLE(WEB_INTENTS_TAG)
169     RegisterIntentServiceForFrame(uint64_t frameID, WebKit::IntentServiceInfo serviceInfo, WebKit::InjectedBundleUserMessageEncoder userData);
170 #endif
171
172     # Progress messages
173     DidChangeProgress(double value)
174     DidFinishProgress()
175     DidStartProgress()
176
177 #if ENABLE(TIZEN_PLUGIN_CUSTOM_REQUEST)
178     ProcessPluginCustomRequest(WTF::String request, WTF::String msg)
179 #endif
180
181     # Frame lifetime messages
182     DidCreateMainFrame(uint64_t frameID)
183     DidCreateSubframe(uint64_t frameID, uint64_t parentFrameID)
184     DidSaveFrameToPageCache(uint64_t frameID);
185     DidRestoreFrameFromPageCache(uint64_t frameID, uint64_t parentFrameID);
186
187     # Frame load messages
188     DidCommitLoadForFrame(uint64_t frameID, WTF::String mimeType, bool hasCustomRepresentation, WebKit::PlatformCertificateInfo certificateInfo, WebKit::InjectedBundleUserMessageEncoder userData)
189     DidFailLoadForFrame(uint64_t frameID, WebCore::ResourceError error, WebKit::InjectedBundleUserMessageEncoder userData)
190     DidFailProvisionalLoadForFrame(uint64_t frameID, WebCore::ResourceError error, WebKit::InjectedBundleUserMessageEncoder userData)
191     DidFinishDocumentLoadForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
192     DidFinishLoadForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
193     DidFirstLayoutForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
194     DidFirstVisuallyNonEmptyLayoutForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
195     DidNewFirstVisuallyNonEmptyLayout(WebKit::InjectedBundleUserMessageEncoder userData)
196     DidReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, WTF::String url, WebKit::InjectedBundleUserMessageEncoder userData)
197     DidRemoveFrameFromHierarchy(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
198     DidStartProvisionalLoadForFrame(uint64_t frameID, WTF::String url, WTF::String unreachableURL, WebKit::InjectedBundleUserMessageEncoder userData)
199     DidReceiveTitleForFrame(uint64_t frameID, WTF::String title, WebKit::InjectedBundleUserMessageEncoder userData)
200     DidDisplayInsecureContentForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
201     DidRunInsecureContentForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
202     DidDetectXSSForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData)
203     DidSameDocumentNavigationForFrame(uint64_t frameID, uint32_t type, WTF::String url, WebKit::InjectedBundleUserMessageEncoder userData)
204
205     FrameDidBecomeFrameSet(uint64_t frameID, bool value)
206
207     # Resource load messages
208     DidInitiateLoadForResource(uint64_t frameID, uint64_t resourceIdentifier, WebCore::ResourceRequest request, bool pageIsProvisionallyLoading)
209     DidSendRequestForResource(uint64_t frameID, uint64_t resourceIdentifier, WebCore::ResourceRequest request, WebCore::ResourceResponse redirectResponse)
210     DidReceiveResponseForResource(uint64_t frameID, uint64_t resourceIdentifier, WebCore::ResourceResponse response)
211     DidReceiveContentLengthForResource(uint64_t frameID, uint64_t resourceIdentifier, uint64_t contentLength)
212     DidFinishLoadForResource(uint64_t frameID, uint64_t resourceIdentifier)
213     DidFailLoadForResource(uint64_t frameID, uint64_t resourceIdentifier, WebCore::ResourceError error)
214 #if PLATFORM(QT)
215     ResolveApplicationSchemeRequest(WebKit::QtNetworkRequestData request)
216 #endif
217
218
219     # Custom representations
220     DidFinishLoadingDataForCustomRepresentation(WTF::String suggestedFilename, CoreIPC::DataReference data)
221
222     # Forms messages
223 #if ENABLE(TIZEN_WEBKIT2_FORM_DATABASE)
224     WillSubmitForm(uint64_t frameID, uint64_t sourceFrameID, WebKit::StringPairVector textFieldValues, bool containsPasswordData, uint64_t listenerID, WebKit::InjectedBundleUserMessageEncoder userData)
225 #endif
226 #if !ENABLE(TIZEN_WEBKIT2_FORM_DATABASE)
227     WillSubmitForm(uint64_t frameID, uint64_t sourceFrameID, WebKit::StringPairVector textFieldValues, uint64_t listenerID, WebKit::InjectedBundleUserMessageEncoder userData)
228 #endif
229
230     # Callback messages
231     VoidCallback(uint64_t callbackID)
232     DataCallback(CoreIPC::DataReference resultData, uint64_t callbackID)
233     StringCallback(WTF::String resultString, uint64_t callbackID)
234     ScriptValueCallback(CoreIPC::DataReference resultData, uint64_t callbackID)
235     ComputedPagesCallback(Vector<WebCore::IntRect> pageRects, double totalScaleFactorForPrinting, uint64_t callbackID)
236     ValidateCommandCallback(WTF::String command, bool isEnabled, int32_t state, uint64_t callbackID)
237 #if PLATFORM(GTK)
238     PrintFinishedCallback(WebCore::ResourceError error, uint64_t callbackID)
239 #endif
240
241     PageScaleFactorDidChange(double scaleFactor)
242
243 #if PLATFORM(GTK)
244     # Support for GTK+ platform keybindings
245     GetEditorCommandsForKeyEvent(AtomicString eventType) -> (Vector<WTF::String> commandsList)
246
247     # Support for connecting the Accessibility worlds of the UI and the Web processes
248     BindAccessibilityTree(WTF::String plugID)
249 #endif
250
251     # BackForward messages
252     BackForwardAddItem(uint64_t itemID)
253     BackForwardGoToItem(uint64_t itemID) -> (WebKit::SandboxExtension::Handle sandboxExtensionHandle)
254     BackForwardItemAtIndex(int32_t itemIndex) -> (uint64_t itemID)
255     BackForwardBackListCount() -> (int32_t count)
256     BackForwardForwardListCount() -> (int32_t count)
257     BackForwardClear()
258     ShouldGoToBackForwardListItem(uint64_t itemID) -> (bool shouldGoToBackForwardListItem)
259     WillGoToBackForwardListItem(uint64_t itemID, WebKit::InjectedBundleUserMessageEncoder userData)
260
261     # Undo/Redo messages
262     RegisterEditCommandForUndo(uint64_t commandID, uint32_t editAction)
263     ClearAllEditCommands()
264     CanUndoRedo(uint32_t action) -> (bool result)
265     ExecuteUndoRedo(uint32_t action) -> (bool result)
266
267     # Certification message
268     DecidePolicyForCertificateError(WTF::String url, WTF::String certificate, int error) -> (bool canContinue) Delayed
269
270     # Editor notifications
271     EditorStateChanged(WebKit::EditorState editorState)
272 #if PLATFORM(WIN)
273     DidChangeCompositionSelection(bool hasChanged)
274 #endif
275
276     # Find messages
277     DidCountStringMatches(WTF::String string, uint32_t matchCount)
278     SetFindIndicator(WebCore::FloatRect selectionRect, Vector<WebCore::FloatRect> textRects, float contentImageScaleFactor, WebKit::ShareableBitmap::Handle contentImageHandle, bool fadeOut, bool animate)
279     DidFindString(WTF::String string, uint32_t matchCount)
280     DidFailToFindString(WTF::String string)
281     DidFindStringMatches(WTF::String string, Vector<Vector<WebCore::IntRect> > matches, int32_t firstIndexAfterSelection)
282     DidGetImageForFindMatch(WebKit::ShareableBitmap::Handle contentImageHandle, uint32_t matchIndex)
283 #if PLATFORM(WIN)
284     DidInstallOrUninstallPageOverlay(bool didInstall)
285 #endif
286
287     # PopupMenu messages
288     ShowPopupMenu(WebCore::IntRect rect, uint64_t textDirection, Vector<WebKit::WebPopupItem> items, int32_t selectedIndex, WebKit::PlatformPopupMenuData data)
289     HidePopupMenu()
290 #if PLATFORM(WIN)
291     SetPopupMenuSelectedIndex(int32_t selectedIndex)
292 #endif
293 #if ENABLE(TIZEN_WEBKIT2_POPUP_INTERNAL)
294     UpdatePopupMenu(uint64_t textDirection, Vector<WebKit::WebPopupItem> items, int32_t selectedIndex)
295 #endif
296
297 #if ENABLE(CONTEXT_MENUS)
298     # ContextMenu messages
299     ShowContextMenu(WebCore::IntPoint menuLocation, WebKit::WebHitTestResult::Data hitTestResultData, Vector<WebKit::WebContextMenuItemData> items, WebKit::InjectedBundleUserMessageEncoder userData)
300 #endif
301
302     # Authentication messages
303     CanAuthenticateAgainstProtectionSpaceInFrame(uint64_t frameID, WebCore::ProtectionSpace protectionSpace) -> (bool canAuthenticate)
304     DidReceiveAuthenticationChallenge(uint64_t frameID, WebCore::AuthenticationChallenge challenge, uint64_t challengeID)
305
306     # Database messages
307 #if ENABLE(TIZEN_SQL_DATABASE)
308     ExceededDatabaseQuota(uint64_t frameID, WTF::String originIdentifier, WTF::String databaseDisplayName, uint64_t expectedUsage) -> (bool allowExceed) Delayed
309 #endif
310 #if !ENABLE(TIZEN_SQL_DATABASE)
311     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)
312 #endif
313
314 #if ENABLE(TIZEN_APPLICATION_CACHE)
315     RequestApplicationCachePermission(uint64_t frameID, WTF::String originIdentifier) -> (bool allow) Delayed
316 #endif
317
318     # Geolocation messages
319     RequestGeolocationPermissionForFrame(uint64_t geolocationID, uint64_t frameID, WTF::String originIdentifier)
320     
321     # Notification messages
322     RequestNotificationPermission(uint64_t requestID, WTF::String originIdentifier)
323     ShowNotification(WTF::String title, WTF::String body, WTF::String iconURL, WTF::String tag, WTF::String originIdentifier, uint64_t notificationID)
324
325 #if ENABLE(TIZEN_MEDIA_STREAM)
326     # UserMedia messages
327     RequestUserMediaPermission(uint64_t requestID)
328 #endif
329
330     # Spelling and grammar messages
331 #if USE(UNIFIED_TEXT_CHECKING)  
332     CheckTextOfParagraph(WTF::String text, uint64_t checkingTypes) -> (Vector<WebCore::TextCheckingResult> results)
333 #endif
334     CheckSpellingOfString(WTF::String text) -> (int32_t misspellingLocation, int32_t misspellingLength)
335     CheckGrammarOfString(WTF::String text) -> (Vector<WebCore::GrammarDetail> results, int32_t badGrammarLocation, int32_t badGrammarLength)
336     SpellingUIIsShowing() -> (bool isShowing)
337     UpdateSpellingUIWithMisspelledWord(WTF::String misspelledWord)
338     UpdateSpellingUIWithGrammarString(WTF::String badGrammarPhrase, WebCore::GrammarDetail grammarDetail)
339     GetGuessesForWord(WTF::String word, WTF::String context) -> (Vector<WTF::String> guesses)
340 #if ENABLE(TIZEN_ISF_PORT)
341     SetInputMethodState(bool active);
342 #endif
343 #if ENABLE(TIZEN_WEBKIT2_FORM_DATABASE)
344     TextChangeInTextField(WTF::String name, WTF::String value)
345 #endif
346 #if ENABLE(TIZEN_ISF_PORT)
347     DidCancelComposition()
348 #endif
349 #if ENABLE(TIZEN_OFFLINE_PAGE_SAVE)
350     SaveSerializedHTMLDataForMainPage(WTF::String name, WTF::String value);
351     SaveSubresourcesData(Vector<WebKit::WebSubresourceTizen> subresources);
352 #endif
353     LearnWord(WTF::String word);
354     IgnoreWord(WTF::String word);
355
356     # Drag and drop messages
357 #if ENABLE(DRAG_SUPPORT)
358     DidPerformDragControllerAction(WebCore::DragSession dragSession)
359 #endif
360 #if PLATFORM(MAC) && ENABLE(DRAG_SUPPORT)
361     SetDragImage(WebCore::IntPoint clientPosition, WebKit::ShareableBitmap::Handle dragImage, bool linkDrag)
362     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)
363 #endif
364 #if PLATFORM(WIN) && ENABLE(DRAG_SUPPORT)
365     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)
366 #endif
367 #if (PLATFORM(QT) || PLATFORM(GTK) || ENABLE(TIZEN_DRAG_SUPPORT)) && ENABLE(DRAG_SUPPORT)
368     StartDrag(WebCore::DragData dragData, WebKit::ShareableBitmap::Handle dragImage)
369 #endif
370
371 #if PLATFORM(MAC)
372     # Dictionary support.
373     DidPerformDictionaryLookup(WTF::String text, WebKit::DictionaryPopupInfo dictionaryPopupInfo)
374
375     # Keyboard input support messages
376     InterpretQueuedKeyEvent(WebKit::EditorState state) -> (bool handled, Vector<WebCore::KeypressCommand> savedCommands)
377     ExecuteSavedCommandBySelector(WTF::String selector) -> (bool handled)
378
379     # Remote accessibility messages
380     RegisterWebProcessAccessibilityToken(CoreIPC::DataReference data)
381
382     # Plug-in complex text input support messages
383     PluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus)
384     SetPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, uint64_t complexTextInputState)
385
386     # Speech messages
387     GetIsSpeaking() -> (bool isSpeaking)
388     Speak(WTF::String string)
389     StopSpeaking()
390
391     MakeFirstResponder()
392
393     # Spotlight
394     SearchWithSpotlight(WTF::String string)
395 #endif
396
397 #if PLATFORM(MAC)
398     SubstitutionsPanelIsShowing() -> (bool isShowing)
399 #endif
400 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
401     # Autocorrection messages
402     ShowCorrectionPanel(int32_t panelType, WebCore::FloatRect boundingBoxOfReplacedString, String replacedString, String replacementString, Vector<String> alternativeReplacementStrings)
403     DismissCorrectionPanel(int32_t reason)
404     DismissCorrectionPanelSoon(int32_t reason) -> (String result)
405     RecordAutocorrectionResponse(int32_t responseType, String replacedString, String replacementString);
406 #endif
407
408 #if USE(DICTATION_ALTERNATIVES)
409     ShowDictationAlternativeUI(WebCore::FloatRect boundingBoxOfDictatedText, uint64_t dictationContext)
410     DismissDictationAlternativeUI()
411     RemoveDictationAlternatives(uint64_t dictationContext)
412     DictationAlternatives(uint64_t dictationContext) -> (Vector<String> alternatives)
413 #endif
414
415 #if PLATFORM(WIN)
416     # Windows 7 Gesture Messages
417     SetGestureReachedScrollingLimit(bool limitReached)
418
419     # Miscellaneous Windows messages
420     ScheduleChildWindowGeometryUpdate(WebKit::WindowGeometry geometry)
421 #endif
422
423 #if PLUGIN_ARCHITECTURE(X11)
424     # X11 windowed plugin messages
425     CreatePluginContainer() -> (uint64_t windowID)
426     WindowedPluginGeometryDidChange(WebCore::IntRect frameRect, WebCore::IntRect clipRect, uint64_t windowID)
427 #endif
428
429     # Search popup menus
430     SaveRecentSearches(WTF::String name, Vector<String> searchItems)
431     LoadRecentSearches(WTF::String name) -> (Vector<String> result)
432
433 #if USE(SOUP)
434     # Soup custom URI request messages
435     DidReceiveURIRequest(WTF::String uriString, uint64_t requestID);
436 #endif
437
438 #if ENABLE(TIZEN_CLIPBOARD) || ENABLE(TIZEN_PASTEBOARD)
439     SetClipboardData(WTF::String data, WTF::String type)
440     ClearClipboardData()
441 #endif
442
443     SetBackgroundColor(double red, double green, double blue, double alpha)
444
445 #if ENABLE(TIZEN_WEBKIT2_GET_TEXT_STYLE_FOR_SELECTION)
446     DidGetTextStyleStateForSelection(int underlineState, int italicState, int boldState)
447 #endif
448
449 #if ENABLE(SCREEN_ORIENTATION_SUPPORT) && ENABLE(TIZEN_SCREEN_ORIENTATION_SUPPORT)
450     LockOrientation(int32_t orientation) -> (bool result)
451     UnlockOrientation()
452 #endif
453
454 #if ENABLE(TIZEN_CSS_OVERFLOW_SCROLL_ACCELERATION)
455     SetOverflowResult(bool pressed, uint32_t webLayerID)
456 #endif
457
458 #if ENABLE(TIZEN_LINK_MAGNIFIER)
459     DidGetLinkMagnifierRect(WebCore::IntPoint position, WebCore::IntRect rect)
460 #endif
461
462 #if ENABLE(TIZEN_SCREEN_READER)
463     DidScreenReaderFocusRectChanged(WebCore::IntRect rect)
464     DidScreenReaderTextChanged(WTF::String text)
465 #endif
466
467 #if ENABLE(TIZEN_INDEXED_DATABASE)
468     ExceededIndexedDatabaseQuota(uint64_t frameID, WTF::String originIdentifier, int64_t currentUsage) -> (bool returnValue) Delayed
469 #endif
470
471 #if ENABLE(TIZEN_FILE_SYSTEM)
472     ExceededLocalFileSystemQuota(uint64_t frameID, WTF::String originIdentifier, int64_t currentUsage) -> (bool allow) Delayed
473 #endif
474 }