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.
24 SetActive(bool active)
25 SetFocused(bool focused)
26 SetInitialFocus(bool forward, bool isKeyboardEventValid, WebKit::WebKeyboardEvent event)
27 SetIsInWindow(bool isInWindow)
29 SetDrawsBackground(bool drawsBackground)
30 SetDrawsTransparentBackground(bool drawsTransparentBackground)
32 ViewWillStartLiveResize()
33 ViewWillEndLiveResize()
35 #if ENABLE(TIZEN_ISF_PORT)
36 KeyEvent(WebKit::NativeWebKeyboardEvent event)
39 #if !ENABLE(TIZEN_ISF_PORT)
40 KeyEvent(WebKit::WebKeyboardEvent event)
43 KeyEventSyncForTesting(WebKit::WebKeyboardEvent event) -> (bool handled)
44 MouseEvent(WebKit::WebMouseEvent event)
45 MouseEventSyncForTesting(WebKit::WebMouseEvent event) -> (bool handled)
46 WheelEventSyncForTesting(WebKit::WebWheelEvent event) -> (bool handled)
47 #if ENABLE(TOUCH_EVENTS)
48 TouchEvent(WebKit::WebTouchEvent event)
49 TouchEventSyncForTesting(WebKit::WebTouchEvent event) -> (bool handled)
51 #if ENABLE(TOUCH_EVENTS) && PLATFORM(QT)
52 HighlightPotentialActivation(WebCore::IntPoint point, WebCore::IntSize area)
55 #if ENABLE(INPUT_TYPE_COLOR)
57 DidChooseColor(WebCore::Color color);
60 #if ENABLE(CONTEXT_MENUS)
64 ScrollBy(uint32_t scrollDirection, uint32_t scrollGranularity)
65 CenterSelectionInVisibleArea()
67 #if PLATFORM(EFL) && OS(TIZEN)
68 ScrollMainFrameBy(WebCore::IntSize scrollOffset)
69 ScrollMainFrameTo(WebCore::IntPoint scrollPosition)
70 CreateSnapshot(WebCore::IntRect rects, float scaleFactor) -> (WebKit::ShareableBitmap::Handle snapshotHandle)
71 RequestUpdateFormNavigation()
72 MoveFocus(int newIndex)
73 #if ENABLE(TIZEN_WEBKIT2_HIT_TEST)
74 #if ENABLE(TOUCH_ADJUSTMENT)
75 HitTestResultAtPoint(WebCore::IntPoint point, int hitTestMode, WebCore::IntSize area) -> (WebKit::WebHitTestResult::Data hitTestResultData)
77 #if !ENABLE(TOUCH_ADJUSTMENT)
78 HitTestResultAtPoint(WebCore::IntPoint point, int hitTestMode) -> (WebKit::WebHitTestResult::Data hitTestResultData)
81 SuspendJavaScriptAndResources()
82 ResumeJavaScriptAndResources()
88 #if ENABLE(TIZEN_WEB_STORAGE)
89 GetStorageQuotaBytes(uint64_t callbackID)
90 SetStorageQuotaBytes(uint32_t quota)
92 #if ENABLE(TIZEN_ORIENTATION_EVENTS)
93 SendOrientationChangeEvent(int orientation)
96 GoBack(uint64_t backForwardItemID)
97 GoForward(uint64_t backForwardItemID)
98 GoToBackForwardItem(uint64_t backForwardItemID)
99 TryRestoreScrollPosition()
100 LoadHTMLString(WTF::String htmlString, WTF::String baseURL)
101 LoadAlternateHTMLString(WTF::String htmlString, WTF::String baseURL, WTF::String unreachableURL);
102 LoadPlainTextString(WTF::String string)
103 LoadWebArchiveData(CoreIPC::DataReference webArchiveData)
105 LoadContentsbyMimeType(CoreIPC::DataReference contents, WTF::String mimeType, WTF::String encoding, WTF::String baseURL)
107 LoadURL(WTF::String url, WebKit::SandboxExtension::Handle sandboxExtensionHandle)
108 LoadURLRequest(WebCore::ResourceRequest request, WebKit::SandboxExtension::Handle sandboxExtensionHandle)
109 LinkClicked(WTF::String url, WebKit::WebMouseEvent event)
110 Reload(bool reloadFromOrigin, WebKit::SandboxExtension::Handle sandboxExtensionHandle)
114 ApplicationSchemeReply(WebKit::QtNetworkReplyData reply)
115 RegisterApplicationScheme(WTF::String scheme)
116 SetUserScripts(WTF::Vector<WTF::String> script)
119 StopLoadingFrame(uint64_t frameID)
121 RestoreSession(WebKit::SessionState state)
122 RestoreSessionAndNavigateToCurrentItem(WebKit::SessionState state)
124 DidRemoveBackForwardItem(uint64_t backForwardItemID)
125 SetWillGoToBackForwardItemCallbackEnabled(bool willGoToBackForwardItemEnabled)
127 DidReceivePolicyDecision(uint64_t frameID, uint64_t listenerID, uint32_t policyAction, uint64_t downloadID)
132 GetContentsAsString(uint64_t callbackID)
134 GetContentsAsMHTMLData(uint64_t callbackID, bool useBinaryEncoding)
136 GetMainResourceDataOfFrame(uint64_t frameID, uint64_t callbackID)
137 GetResourceDataFromFrame(uint64_t frameID, WTF::String resourceURL, uint64_t callbackID)
138 GetRenderTreeExternalRepresentation(uint64_t callbackID)
139 GetSelectionOrContentsAsString(uint64_t callbackID)
140 GetSourceForFrame(uint64_t frameID, uint64_t callbackID)
141 GetWebArchiveOfFrame(uint64_t frameID, uint64_t callbackID)
142 RunJavaScriptInMainFrame(WTF::String script, uint64_t callbackID)
143 ForceRepaint(uint64_t callbackID)
146 # Dictionary support.
147 PerformDictionaryLookupAtLocation(WebCore::FloatPoint point)
150 PreferencesDidChange(WebKit::WebPreferencesStore store)
152 SetUserAgent(WTF::String userAgent)
153 SetCustomTextEncodingName(WTF::String encodingName)
155 SuspendActiveDOMObjectsAndAnimations()
156 ResumeActiveDOMObjectsAndAnimations()
158 #if USE(TILED_BACKING_STORE)
159 SetFixedVisibleContentRect(WebCore::IntRect rect)
160 SetResizesToContentsUsingLayoutSize(WebCore::IntSize size)
161 SetViewportSize(WebCore::IntSize size)
167 ValidateCommand(WTF::String name, uint64_t callbackID)
168 ExecuteEditCommand(WTF::String name)
170 ExecuteEditCommandWithArgument(WTF::String name, WTF::String argument)
173 DidRemoveEditCommand(uint64_t commandID)
174 ReapplyEditCommand(uint64_t commandID)
175 UnapplyEditCommand(uint64_t commandID)
177 SetPageAndTextZoomFactors(double pageZoomFactor, double textZoomFactor)
178 SetPageZoomFactor(double zoomFactor)
179 SetTextZoomFactor(double zoomFactor)
180 WindowScreenDidChange(uint64_t displayID)
182 ScalePage(double scale, WebCore::IntPoint origin)
184 SetUseFixedLayout(bool fixed)
185 SetFixedLayoutSize(WebCore::IntSize size)
187 SetPaginationMode(uint32_t mode);
188 SetPaginationBehavesLikeColumns(bool behavesLikeColumns);
189 SetPageLength(double pageLength);
190 SetGapBetweenPages(double gap);
193 FindString(WTF::String string, uint32_t findOptions, unsigned maxMatchCount)
194 FindStringMatches(WTF::String string, uint32_t findOptions, unsigned maxMatchCount)
195 GetImageForFindMatch(uint32_t matchIndex)
196 SelectFindMatch(uint32_t matchIndex)
198 CountStringMatches(WTF::String string, uint32_t findOptions, unsigned maxMatchCount)
201 #if PLATFORM(WIN) && ENABLE(DRAG_SUPPORT)
202 PerformDragControllerAction(uint64_t action, WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t draggingSourceOperationMask, HashMap<UINT,Vector<String>> dataMap, uint32_t flags)
204 #if (PLATFORM(QT) || PLATFORM(GTK) || ENABLE(TIZEN_DRAG_SUPPORT)) && ENABLE(DRAG_SUPPORT)
205 PerformDragControllerAction(uint64_t action, WebCore::DragData dragData)
207 #if !PLATFORM(WIN) && !PLATFORM(QT) && !PLATFORM(GTK) && !ENABLE(TIZEN_DRAG_SUPPORT) && ENABLE(DRAG_SUPPORT)
208 PerformDragControllerAction(uint64_t action, WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t draggingSourceOperationMask, WTF::String dragStorageName, uint32_t flags, WebKit::SandboxExtension::Handle sandboxExtensionHandle, WebKit::SandboxExtension::HandleArray sandboxExtensionsForUpload)
210 #if ENABLE(DRAG_SUPPORT)
211 DragEnded(WebCore::IntPoint clientPosition, WebCore::IntPoint globalPosition, uint64_t operation)
215 DidChangeSelectedIndexForActivePopupMenu(int32_t newIndex);
216 SetTextForActivePopupMenu(int32_t index);
218 FailedToShowPopupMenu();
222 SelectedIndex(int32_t newIndex);
225 #if ENABLE(CONTEXT_MENUS)
227 #if ENABLE(CONTEXT_MENUS)
228 DidSelectItemFromActiveContextMenu(WebKit::WebContextMenuItemData menuItem);
232 DidChooseFilesForOpenPanel(Vector<WTF::String> fileURLs)
233 DidCancelForOpenPanel()
234 #if ENABLE(WEB_PROCESS_SANDBOX)
235 ExtendSandboxForFileFromOpenPanel(WebKit::SandboxExtension::Handle sandboxExtensionHandle)
238 # Spelling and grammar.
239 AdvanceToNextMisspelling(bool startBeforeSelection)
240 ChangeSpellingToWord(WTF::String word)
246 SetSmartInsertDeleteEnabled(bool isSmartInsertDeleteEnabled);
249 #if ENABLE(GEOLOCATION)
251 DidReceiveGeolocationPermissionDecision(uint64_t geolocationID, bool allowed)
255 DidReceiveNotificationPermissionDecision(uint64_t notificationID, bool allowed)
257 #if ENABLE(TIZEN_MEDIA_STREAM)
259 DidReceiveUserMediaPermissionDecision(uint64_t userMediaID, bool allowed)
262 SetWindowResizerSize(WebCore::IntSize intersectsView)
265 BeginPrinting(uint64_t frameID, WebKit::PrintInfo printInfo)
267 ComputePagesForPrinting(uint64_t frameID, WebKit::PrintInfo printInfo, uint64_t callbackID)
268 #if PLATFORM(MAC) || PLATFORM(WIN)
269 DrawRectToPDF(uint64_t frameID, WebKit::PrintInfo printInfo, WebCore::IntRect rect, uint64_t callbackID)
270 DrawPagesToPDF(uint64_t frameID, WebKit::PrintInfo printInfo, uint32_t first, uint32_t count, uint64_t callbackID)
273 DrawPagesForPrinting(uint64_t frameID, WebKit::PrintInfo printInfo, uint64_t callbackID)
276 #if ENABLE(TIZEN_SUPPORT_WEBAPP_META_TAG)
277 GetWebAppCapable(uint64_t callbackID)
278 GetWebAppIconURL(uint64_t callbackID)
279 GetWebAppIconURLs(uint64_t callbackID)
283 SetMediaVolume(float volume)
285 SetMemoryCacheMessagesEnabled(bool memoryCacheMessagesEnabled)
287 // FIXME: This a dummy message, to avoid breaking the build for platforms that don't require
288 // any synchronous messages, and should be removed when <rdar://problem/8775115> is fixed.
289 Dummy() -> (bool dummyReturn)
291 SetCanRunBeforeUnloadConfirmPanel(bool canRunBeforeUnloadConfirmPanel)
292 SetCanRunModal(bool canRunModal)
295 #if ENABLE(WEB_INTENTS)
296 DeliverIntentToFrame(uint64_t frameID, WebKit::IntentData intentData);
300 SetThemePath(WTF::String themePath)
304 SetComposition(WTF::String text, WTF::Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd)
305 ConfirmComposition(WTF::String text, int64_t selectionStart, int64_t selectionLength)
310 # Complex text input support for plug-ins.
311 SendComplexTextInputToPlugin(uint64_t pluginComplexTextInputIdentifier, String textInput)
313 SetWindowIsVisible(bool windowIsVisible)
314 WindowAndViewFramesChanged(WebCore::IntRect windowFrameInScreenCoordinates, WebCore::IntRect viewFrameInWindowCoordinates, WebCore::IntPoint accessibilityViewCoordinates)
315 RegisterUIProcessAccessibilityTokens(CoreIPC::DataReference elemenToken, CoreIPC::DataReference windowToken)
316 GetStringSelectionForPasteboard() -> (WTF::String stringValue)
317 GetDataSelectionForPasteboard(WTF::String pasteboardType) -> (WebKit::SharedMemory::Handle handle, uint64_t size)
318 ReadSelectionFromPasteboard(WTF::String pasteboardName) -> (bool result)
321 SetComposition(WTF::String text, WTF::Vector<WebCore::CompositionUnderline> underlines, uint64_t selectionStart, uint64_t selectionEnd, uint64_t replacementRangeStart, uint64_t replacementRangeEnd) -> (WebKit::EditorState newState)
322 ConfirmComposition() -> (WebKit::EditorState newState)
323 CancelComposition() -> (WebKit::EditorState newState)
324 InsertText(WTF::String text, uint64_t replacementRangeStart, uint64_t replacementRangeEnd) -> (bool handled, WebKit::EditorState newState)
325 GetMarkedRange() -> (uint64_t location, uint64_t length)
326 GetSelectedRange() -> (uint64_t location, uint64_t length)
327 GetAttributedSubstringFromRange(uint64_t location, uint64_t length) -> (WebKit::AttributedString result)
328 CharacterIndexForPoint(WebCore::IntPoint point) -> (uint64_t result)
329 FirstRectForCharacterRange(uint64_t location, uint64_t length) -> (WebCore::IntRect resultRect)
330 ExecuteKeypressCommands(Vector<WebCore::KeypressCommand> savedCommands) -> (bool handled, WebKit::EditorState newState)
331 ShouldDelayWindowOrderingEvent(WebKit::WebMouseEvent event) -> (bool result)
332 AcceptsFirstMouse(int eventNumber, WebKit::WebMouseEvent event) -> (bool result)
333 InsertDictatedText(WTF::String text, uint64_t replacementRangeStart, uint64_t replacementRangeEnd, WTF::Vector<WebCore::DictationAlternative> dictationAlternatives) -> (bool handled, WebKit::EditorState newState)
336 // FIXME: Unify with Mac counterparts.
337 ConfirmComposition(WTF::String compositionString)
338 SetComposition(WTF::String compositionString, WTF::Vector<WebCore::CompositionUnderline> underlines, uint64_t cursorPosition)
339 FirstRectForCharacterInSelectedRange(uint64_t characterPosition) -> (WebCore::IntRect resultRect)
340 GetSelectedText() -> (WTF::String text)
342 GestureWillBegin(WebCore::IntPoint point) -> (bool canBeginPanning)
343 GestureDidScroll(WebCore::IntSize size)
346 #if PLATFORM(EFL) && OS(TIZEN)
347 #if ENABLE(TIZEN_TEXT_CARET_HANDLING_WK2)
348 SetCaretPosition(WebCore::IntPoint pos)
349 GetCaretPosition() -> (WebCore::IntRect rect)
351 #if ENABLE(TIZEN_ISF_PORT)
352 PrepareKeyDownEvent()
353 GetCursorOffset() -> (int offset)
354 GetSurroundingTextAndCursorOffset() -> (String text, int offset)
355 GetSelectionRect(bool isOnlyEditable) -> (WebCore::IntRect rect)
356 DeleteSurroundingText(int offset, int count)
360 ConfirmComposition(WTF::String compositionString)
361 SetComposition(WTF::String compositionString, WTF::Vector<WebCore::CompositionUnderline> underlines, uint64_t cursorPosition)
364 #if PLATFORM(QT) || OS(TIZEN)
365 FindZoomableAreaForPoint(WebCore::IntPoint point, WebCore::IntSize area)
368 #if PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 1070
369 HandleAlternativeTextUIResult(String result)
372 #if ENABLE(PAGE_VISIBILITY_API)
373 SetVisibilityState(int visibilityState, bool isInitialState);
376 #if ENABLE(TIZEN_INPUT_TAG_EXTENSION) || ENABLE(TIZEN_WEBKIT2_FORM_DATABASE)
377 SetFocusedInputElementValue(WTF::String inputValue)
378 GetFocusedInputElementValue() -> (String inputValue)
381 #if ENABLE(TIZEN_DATALIST_ELEMENT)
382 GetFocusedInputElementDataList() -> (Vector<WTF::String> options)
385 #if ENABLE(TIZEN_WEBKIT2_TEXT_SELECTION)
386 SelectClosestWord(WebCore::IntPoint point) -> (bool result)
387 SetLeftSelection(WebCore::IntPoint point, int direction) -> (int result)
388 SetRightSelection(WebCore::IntPoint point, int direction) -> (int result)
389 GetSelectionHandlers() -> (WebCore::IntRect leftRect, WebCore::IntRect rightRect)
390 GetSelectionText() -> (String result)
391 SelectionRangeClear() -> (bool result)
392 ScrollContentByCharacter(WebCore::IntPoint point, int direction) -> (bool result)
393 ScrollContentByLine(WebCore::IntPoint point, int direction) -> (bool result)
396 #if ENABLE(TIZEN_OFFLINE_PAGE_SAVE)
397 StartOfflinePageSave(WTF::String subresourceFolderName)
400 #if ENABLE(TIZEN_WEBKIT2_CONTEXT_MENU_TEXT_SELECTION_MODE)
401 SelectLink(WebCore::IntPoint positionForSelection) -> (bool result)
404 #if ENABLE(TIZEN_CLIPBOARD) || ENABLE(TIZEN_PASTEBOARD)
405 SetClipboardDataForPaste(WTF::String data, WTF::String type)
407 #if ENABLE(TIZEN_PLUGIN_SUSPEND_RESUME)
411 #if ENABLE(TIZEN_REMOTE_WEB_INSPECTOR)
412 StartInspectorServer(uint32_t port) -> (uint32_t assignedPort)
413 StopInspectorServer() -> (bool result)
416 #if ENABLE(TIZEN_CSS_OVERFLOW_SCROLL_ACCELERATION)
417 ScrollOverflow(WebCore::FloatPoint point) -> (bool scrolled)
418 SetPressedNodeAtPoint(WebCore::IntPoint point, bool checkOverflowLayer) -> (bool pressed, uint32_t id)
421 #if ENABLE(TIZEN_CUSTOM_HEADERS)
422 AddCustomHeader(WTF::String name, WTF::String value)
423 RemoveCustomHeader(WTF::String name)
426 #if ENABLE(TIZEN_MOBILE_WEB_PRINT)
427 CreatePagesToPDF(WebCore::IntSize surfaceSize, WebCore::IntSize contentsSize, WTF::String fileName)
430 #if PLATFORM(GTK) && USE(TEXTURE_MAPPER_GL)
431 WidgetMapped(int64_t id)
434 #if ENABLE(TIZEN_NATIVE_MEMORY_SNAPSHOT)
437 #if ENABLE(TIZEN_MULTIPLE_SELECT)
438 DidChangeSelectedIndexForActivePopupMenuMultiple(Vector<int32_t> newIndex);
441 #if ENABLE(TIZEN_LINK_MAGNIFIER)
442 GetLinkMagnifierRect(WebCore::IntPoint position, WebCore::IntSize size)
445 #if ENABLE(TIZEN_SCREEN_READER)
446 MoveScreenReaderFocus(bool forward) -> (bool result)
447 MoveScreenReaderFocusByPoint(WebCore::IntPoint point)
448 ClearScreenReaderFocus()
449 RaiseTapEvent(WebCore::IntPoint position, WebCore::IntPoint globalPosition) -> (bool result)
450 AdjustScreenReaderFocusedObjectValue(bool up)
451 RecalcScreenReaderFocusRect()
455 #if ENABLE(TIZEN_CSP)
456 SetContentSecurityPolicy(WTF::String policy, uint32_t headerType)
459 #if ENABLE(TIZEN_USE_SETTINGS_FONT)
463 #if ENABLE(TIZEN_FOCUS_UI)
464 SetSpatialNavigationEnabled(bool enabled)