Remove WTF:: prefix from types in messages.in files.
[WebKit-https.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     RunJavaScriptAlert(uint64_t frameID, String message) -> ()
29     RunJavaScriptConfirm(uint64_t frameID, String message) -> (bool result)
30     RunJavaScriptPrompt(uint64_t frameID, String message, String defaultValue) -> (String result)
31     ShouldInterruptJavaScript() -> (bool shouldInterupt)
32     MouseDidMoveOverElement(WebKit::WebHitTestResult::Data hitTestResultData, uint32_t modifiers, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
33 #if ENABLE(NETSCAPE_PLUGIN_API)
34     UnavailablePluginButtonClicked(uint32_t pluginUnavailabilityReason, String mimeType, String pluginURLString, String pluginspageAttributeURLString, String frameURLString, String pageURLString)
35 #endif // ENABLE(NETSCAPE_PLUGIN_API)
36     DidChangeViewportProperties(WebCore::ViewportAttributes attributes)
37     DidReceiveEvent(uint32_t type, bool handled)
38     StopResponsivenessTimer()
39 #if !PLATFORM(IOS)
40     SetCursor(WebCore::Cursor cursor)
41     SetCursorHiddenUntilMouseMoves(bool hiddenUntilMouseMoves)
42 #endif
43     SetStatusText(String statusText)
44     SetToolTip(String toolTip)
45     SetFocus(bool focused)
46     TakeFocus(uint32_t direction)
47     FocusedFrameChanged(uint64_t frameID)
48     FrameSetLargestFrameChanged(uint64_t frameID)
49     SetRenderTreeSize(uint64_t treeSize)
50     SetToolbarsAreVisible(bool toolbarsAreVisible)
51     GetToolbarsAreVisible() -> (bool toolbarsAreVisible)
52     SetMenuBarIsVisible(bool menuBarIsVisible);
53     GetMenuBarIsVisible() -> (bool menuBarIsVisible);
54     SetStatusBarIsVisible(bool statusBarIsVisible)
55     GetStatusBarIsVisible() -> (bool statusBarIsVisible)
56     SetIsResizable(bool isResizable)
57     GetIsResizable() -> (bool isResizable)
58     SetWindowFrame(WebCore::FloatRect windowFrame)
59     GetWindowFrame() -> (WebCore::FloatRect windowFrame)
60     ScreenToWindow(WebCore::IntPoint screenPoint) -> (WebCore::IntPoint windowPoint)
61     WindowToScreen(WebCore::IntRect rect) -> (WebCore::IntRect screenFrame)
62     RunBeforeUnloadConfirmPanel(String message, uint64_t frameID) -> (bool shouldClose)
63     PageDidScroll()
64     RunOpenPanel(uint64_t frameID, WebCore::FileChooserSettings parameters)
65     PrintFrame(uint64_t frameID) -> ()
66     RunModal()
67     NotifyScrollerThumbIsVisibleInRect(WebCore::IntRect scrollerThumb)
68     RecommendedScrollbarStyleDidChange(int32_t newStyle)
69     DidChangeScrollbarsForMainFrame(bool hasHorizontalScrollbar, bool hasVerticalScrollbar)
70     DidChangeScrollOffsetPinningForMainFrame(bool pinnedToLeftSide, bool pinnedToRightSide, bool pinnedToTopSide, bool pinnedToBottomSide)
71     DidChangePageCount(unsigned pageCount);
72 #if ENABLE(NETSCAPE_PLUGIN_API)
73     DidFailToInitializePlugin(String mimeType, String frameURLString, String pageURLString)
74     DidBlockInsecurePluginVersion(String mimeType, String pluginURLString, String frameURLString, String pageURLString, bool replacementObscured)
75 #endif // ENABLE(NETSCAPE_PLUGIN_API)
76     SetCanShortCircuitHorizontalWheelEvents(bool canShortCircuitHorizontalWheelEvents)
77
78 #if PLATFORM(EFL)
79     HandleInputMethodKeydown() -> (bool handled)
80 #endif
81
82 #if USE(TILED_BACKING_STORE)
83     PageDidRequestScroll(WebCore::IntPoint point)
84     PageTransitionViewportReady()
85 #endif
86 #if USE(COORDINATED_GRAPHICS)
87     DidFindZoomableArea(WebCore::IntPoint target, WebCore::IntRect area)
88 #endif
89
90 #if PLATFORM(EFL) || PLATFORM(IOS)
91     DidChangeContentSize(WebCore::IntSize newSize)
92 #endif
93
94 #if ENABLE(TOUCH_EVENTS)
95     NeedTouchEvents(bool needTouchEvents)
96 #endif
97
98 #if ENABLE(INPUT_TYPE_COLOR)
99     ShowColorPicker(WebCore::Color initialColor, WebCore::IntRect elementRect);
100     SetColorPickerColor(WebCore::Color color);
101     EndColorPicker();
102 #endif
103
104     # Policy messages
105     DecidePolicyForResponseSync(uint64_t frameID, WebCore::ResourceResponse response, WebCore::ResourceRequest request, bool canShowMIMEType, uint64_t listenerID, WebKit::InjectedBundleUserMessageEncoder userData) -> (bool receivedPolicyAction, uint64_t policyAction, uint64_t downloadID) Variadic
106     DecidePolicyForNavigationAction(uint64_t frameID, uint32_t navigationType, uint32_t modifiers, int32_t mouseButton, uint64_t originatingFrameID, WebCore::ResourceRequest request, uint64_t listenerID, WebKit::InjectedBundleUserMessageEncoder userData) -> (bool receivedPolicyAction, uint64_t policyAction, uint64_t downloadID) Variadic
107     DecidePolicyForNewWindowAction(uint64_t frameID, uint32_t navigationType, uint32_t modifiers, int32_t mouseButton, WebCore::ResourceRequest request, String frameName, uint64_t listenerID, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
108     UnableToImplementPolicy(uint64_t frameID, WebCore::ResourceError error, WebKit::InjectedBundleUserMessageEncoder userData)  Variadic
109
110     # Progress messages
111     DidChangeProgress(double value)
112     DidFinishProgress()
113     DidStartProgress()
114
115     # Frame lifetime messages
116     DidCreateMainFrame(uint64_t frameID)
117     DidCreateSubframe(uint64_t frameID)
118
119     # Frame load messages
120     DidCommitLoadForFrame(uint64_t frameID, String mimeType, uint32_t loadType, WebKit::CertificateInfo certificateInfo, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
121     DidFailLoadForFrame(uint64_t frameID, WebCore::ResourceError error, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
122     DidFailProvisionalLoadForFrame(uint64_t frameID, WebCore::ResourceError error, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
123     DidFinishDocumentLoadForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
124     DidFinishLoadForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
125     DidFirstLayoutForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
126     DidFirstVisuallyNonEmptyLayoutForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
127     DidLayout(uint32_t type, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
128     DidReceiveServerRedirectForProvisionalLoadForFrame(uint64_t frameID, String url, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
129     DidRemoveFrameFromHierarchy(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
130     DidStartProvisionalLoadForFrame(uint64_t frameID, String url, String unreachableURL, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
131     DidReceiveTitleForFrame(uint64_t frameID, String title, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
132     DidDisplayInsecureContentForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
133     DidRunInsecureContentForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
134     DidDetectXSSForFrame(uint64_t frameID, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
135     DidSameDocumentNavigationForFrame(uint64_t frameID, uint32_t type, String url, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
136
137     FrameDidBecomeFrameSet(uint64_t frameID, bool value)
138
139     # Forms messages
140     WillSubmitForm(uint64_t frameID, uint64_t sourceFrameID, Vector<std::pair<String, String>> textFieldValues, uint64_t listenerID, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
141
142     # Callback messages
143     VoidCallback(uint64_t callbackID)
144     DataCallback(CoreIPC::DataReference resultData, uint64_t callbackID)
145     ImageCallback(WebKit::ShareableBitmap::Handle bitmapHandle, uint64_t callbackID)
146     StringCallback(String resultString, uint64_t callbackID)
147     ScriptValueCallback(CoreIPC::DataReference resultData, uint64_t callbackID)
148     ComputedPagesCallback(Vector<WebCore::IntRect> pageRects, double totalScaleFactorForPrinting, uint64_t callbackID)
149     ValidateCommandCallback(String command, bool isEnabled, int32_t state, uint64_t callbackID)
150 #if PLATFORM(IOS)
151     GestureCallback(WebCore::IntPoint point, uint32_t gestureType, uint32_t gestureState, uint32_t flags, uint64_t callbackID)
152     TouchesCallback(WebCore::IntPoint point, uint32_t touches, uint64_t callbackID)
153     AutocorrectionDataCallback(Vector<WebCore::FloatRect> textRects, String fontName, double fontSize, uint64_t traits, uint64_t callbackID);
154     InterpretKeyEvent(WebKit::EditorState state, bool isCharEvent) -> (bool handled)
155 #endif
156 #if PLATFORM(GTK)
157     PrintFinishedCallback(WebCore::ResourceError error, uint64_t callbackID)
158 #endif
159
160     PageScaleFactorDidChange(double scaleFactor)
161     PageZoomFactorDidChange(double zoomFactor)
162
163 #if PLATFORM(GTK)
164     # Support for GTK+ platform keybindings
165     GetEditorCommandsForKeyEvent(AtomicString eventType) -> (Vector<String> commandsList)
166
167     # Support for connecting the Accessibility worlds of the UI and the Web processes
168     BindAccessibilityTree(String plugID)
169
170     SetInputMethodState(bool enabled);
171 #endif
172
173     # BackForward messages
174     BackForwardAddItem(uint64_t itemID)
175     BackForwardGoToItem(uint64_t itemID) -> (WebKit::SandboxExtension::Handle sandboxExtensionHandle)
176     BackForwardItemAtIndex(int32_t itemIndex) -> (uint64_t itemID)
177     BackForwardBackListCount() -> (int32_t count)
178     BackForwardForwardListCount() -> (int32_t count)
179     BackForwardClear()
180     ShouldGoToBackForwardListItem(uint64_t itemID) -> (bool shouldGoToBackForwardListItem)
181     WillGoToBackForwardListItem(uint64_t itemID, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
182
183     # Undo/Redo messages
184     RegisterEditCommandForUndo(uint64_t commandID, uint32_t editAction)
185     ClearAllEditCommands()
186     CanUndoRedo(uint32_t action) -> (bool result)
187     ExecuteUndoRedo(uint32_t action) -> (bool result)
188
189     # Editor notifications
190     EditorStateChanged(WebKit::EditorState editorState)
191
192     # Find messages
193     DidCountStringMatches(String string, uint32_t matchCount)
194     SetFindIndicator(WebCore::FloatRect selectionRect, Vector<WebCore::FloatRect> textRects, float contentImageScaleFactor, WebKit::ShareableBitmap::Handle contentImageHandle, bool fadeOut, bool animate)
195     DidFindString(String string, uint32_t matchCount)
196     DidFailToFindString(String string)
197     DidFindStringMatches(String string, Vector<Vector<WebCore::IntRect>> matches, int32_t firstIndexAfterSelection)
198     DidGetImageForFindMatch(WebKit::ShareableBitmap::Handle contentImageHandle, uint32_t matchIndex)
199
200     # PopupMenu messages
201     ShowPopupMenu(WebCore::IntRect rect, uint64_t textDirection, Vector<WebKit::WebPopupItem> items, int32_t selectedIndex, WebKit::PlatformPopupMenuData data)
202     HidePopupMenu()
203
204 #if ENABLE(CONTEXT_MENUS)
205     # ContextMenu messages
206     ShowContextMenu(WebCore::IntPoint menuLocation, WebKit::WebHitTestResult::Data hitTestResultData, Vector<WebKit::WebContextMenuItemData> items, WebKit::InjectedBundleUserMessageEncoder userData) Variadic
207 #endif
208
209     # Authentication messages
210     CanAuthenticateAgainstProtectionSpaceInFrame(uint64_t frameID, WebCore::ProtectionSpace protectionSpace) -> (bool canAuthenticate)
211     DidReceiveAuthenticationChallenge(uint64_t frameID, WebCore::AuthenticationChallenge challenge, uint64_t challengeID)
212
213     # Database messages
214     ExceededDatabaseQuota(uint64_t frameID, String originIdentifier, String databaseName, String databaseDisplayName, uint64_t currentQuota, uint64_t currentOriginUsage, uint64_t currentDatabaseUsage, uint64_t expectedUsage) -> (uint64_t newQuota) Delayed
215
216     # Geolocation messages
217     RequestGeolocationPermissionForFrame(uint64_t geolocationID, uint64_t frameID, String originIdentifier)
218     
219     # Notification messages
220     RequestNotificationPermission(uint64_t requestID, String originIdentifier)
221     ShowNotification(String title, String body, String iconURL, String tag, String lang, String dir, String originIdentifier, uint64_t notificationID)
222     CancelNotification(uint64_t notificationID)
223     ClearNotifications(Vector<uint64_t> notificationIDs)
224     DidDestroyNotification(uint64_t notificationID)
225
226     # Spelling and grammar messages
227 #if USE(UNIFIED_TEXT_CHECKING)  
228     CheckTextOfParagraph(String text, uint64_t checkingTypes) -> (Vector<WebCore::TextCheckingResult> results)
229 #endif
230     CheckSpellingOfString(String text) -> (int32_t misspellingLocation, int32_t misspellingLength)
231     CheckGrammarOfString(String text) -> (Vector<WebCore::GrammarDetail> results, int32_t badGrammarLocation, int32_t badGrammarLength)
232     SpellingUIIsShowing() -> (bool isShowing)
233     UpdateSpellingUIWithMisspelledWord(String misspelledWord)
234     UpdateSpellingUIWithGrammarString(String badGrammarPhrase, WebCore::GrammarDetail grammarDetail)
235     GetGuessesForWord(String word, String context) -> (Vector<String> guesses)
236     LearnWord(String word);
237     IgnoreWord(String word);
238     RequestCheckingOfString(uint64_t requestID, WebCore::TextCheckingRequestData request)
239
240     # Drag and drop messages
241 #if ENABLE(DRAG_SUPPORT)
242     DidPerformDragControllerAction(WebCore::DragSession dragSession)
243 #endif
244 #if PLATFORM(MAC) && ENABLE(DRAG_SUPPORT)
245     SetDragImage(WebCore::IntPoint clientPosition, WebKit::ShareableBitmap::Handle dragImage, bool linkDrag)
246     SetPromisedData(String pasteboardName, WebKit::SharedMemory::Handle imageHandle, uint64_t imageSize, String filename, String extension, String title, String url, String visibleURL, WebKit::SharedMemory::Handle archiveHandle, uint64_t archiveSize)
247 #endif
248 #if PLATFORM(GTK) && ENABLE(DRAG_SUPPORT)
249     StartDrag(WebCore::DragData dragData, WebKit::ShareableBitmap::Handle dragImage)
250 #endif
251
252 #if PLATFORM(MAC)
253     # Dictionary support.
254     DidPerformDictionaryLookup(WebKit::AttributedString text, WebKit::DictionaryPopupInfo dictionaryPopupInfo)
255
256     # Keyboard input support messages
257     InterpretQueuedKeyEvent(WebKit::EditorState state) -> (bool handled, Vector<WebCore::KeypressCommand> savedCommands)
258     ExecuteSavedCommandBySelector(String selector) -> (bool handled)
259
260     # Remote accessibility messages
261     RegisterWebProcessAccessibilityToken(CoreIPC::DataReference data)
262
263     # Plug-in complex text input support messages
264     PluginFocusOrWindowFocusChanged(uint64_t pluginComplexTextInputIdentifier, bool pluginHasFocusAndWindowHasFocus)
265     SetPluginComplexTextInputState(uint64_t pluginComplexTextInputIdentifier, uint64_t complexTextInputState)
266
267     # Speech messages
268     GetIsSpeaking() -> (bool isSpeaking)
269     Speak(String string)
270     StopSpeaking()
271
272     MakeFirstResponder()
273
274     # Spotlight
275     SearchWithSpotlight(String string)
276
277     SearchTheWeb(String string)
278 #endif
279
280 #if USE(APPKIT)
281     SubstitutionsPanelIsShowing() -> (bool isShowing)
282 #endif
283 #if !PLATFORM(IOS) && PLATFORM(MAC)
284     # Autocorrection messages
285     ShowCorrectionPanel(int32_t panelType, WebCore::FloatRect boundingBoxOfReplacedString, String replacedString, String replacementString, Vector<String> alternativeReplacementStrings)
286     DismissCorrectionPanel(int32_t reason)
287     DismissCorrectionPanelSoon(int32_t reason) -> (String result)
288     RecordAutocorrectionResponse(int32_t responseType, String replacedString, String replacementString);
289 #endif
290
291 #if USE(DICTATION_ALTERNATIVES)
292     ShowDictationAlternativeUI(WebCore::FloatRect boundingBoxOfDictatedText, uint64_t dictationContext)
293     RemoveDictationAlternatives(uint64_t dictationContext)
294     DictationAlternatives(uint64_t dictationContext) -> (Vector<String> alternatives)
295 #endif
296
297 #if PLUGIN_ARCHITECTURE(X11)
298     # X11 windowed plugin messages
299     CreatePluginContainer() -> (uint64_t windowID)
300     WindowedPluginGeometryDidChange(WebCore::IntRect frameRect, WebCore::IntRect clipRect, uint64_t windowID)
301 #endif
302
303 #if PLATFORM(IOS)
304     MainDocumentDidReceiveMobileDocType();
305
306     DidGetTapHighlightGeometries(uint64_t requestID, WebCore::Color color, Vector<WebCore::FloatQuad> geometries, WebCore::IntSize topLeftRadius, WebCore::IntSize topRightRadius, WebCore::IntSize bottomLeftRadius, WebCore::IntSize bottomRightRadius)
307     DidChangeViewportArguments(WebCore::ViewportArguments viewportArguments)
308
309     StartAssistingNode(WebCore::IntRect scrollRect, bool hasNextFocusable, bool hasPreviousFocusable)
310     StopAssistingNode()
311 #endif
312
313     # Search popup menus
314     SaveRecentSearches(String name, Vector<String> searchItems)
315     LoadRecentSearches(String name) -> (Vector<String> result)
316
317 #if USE(SOUP)
318     # Soup custom URI request messages
319     DidReceiveURIRequest(String uriString, uint64_t requestID);
320 #endif
321
322     SavePDFToFileInDownloadsFolder(String suggestedFilename, String originatingURLString, CoreIPC::DataReference data)
323
324 #if PLATFORM(MAC)
325     SavePDFToTemporaryFolderAndOpenWithNativeApplication(String suggestedFilename, String originatingURLString, CoreIPC::DataReference data, String pdfUUID)
326     OpenPDFFromTemporaryFolderWithNativeApplication(String pdfUUID)
327 #endif
328
329 #if ENABLE(NETSCAPE_PLUGIN_API)
330     FindPlugin(String mimeType, uint32_t processType, String urlString, String frameURLString, String pageURLString, bool allowOnlyApplicationPlugins) -> (uint64_t pluginProcessToken, String newMIMEType, uint32_t pluginLoadPolicy, String unavailabilityDescription)
331 #endif
332
333     DidUpdateViewState()
334     
335     DidSaveToPageCache()
336 }