1 /* 2 Copyright (C) 2008 Nokia Corporation and/or its subsidiary(-ies) 3 4 This library is free software; you can redistribute it and/or 5 modify it under the terms of the GNU Library General Public 6 License as published by the Free Software Foundation; either 7 version 2 of the License, or (at your option) any later version. 8 9 This library is distributed in the hope that it will be useful, 10 but WITHOUT ANY WARRANTY; without even the implied warranty of 11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 12 Library General Public License for more details. 13 14 You should have received a copy of the GNU Library General Public License 15 along with this library; see the file COPYING.LIB. If not, write to 16 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, 17 Boston, MA 02110-1301, USA. 18 */ 19 20 #ifndef DefaultClientCallbacksQt_h 21 #define DefaultClientCallbacksQt_h 22 23 #include <WebKit2/WKPage.h> 24 25 #ifdef __cplusplus 26 extern "C" { 27 #endif 28 29 // loader client 30 void qt_wk_didStartProvisionalLoadForFrame(WKPageRef, WKFrameRef, WKTypeRef, const void* clientInfo); 31 void qt_wk_didReceiveServerRedirectForProvisionalLoadForFrame(WKPageRef, WKFrameRef, WKTypeRef, const void* clientInfo); 32 void qt_wk_didFailProvisionalLoadWithErrorForFrame(WKPageRef, WKFrameRef, WKErrorRef, WKTypeRef, const void* clientInfo); 33 void qt_wk_didCommitLoadForFrame(WKPageRef, WKFrameRef, WKTypeRef, const void* clientInfo); 34 void qt_wk_didFinishDocumentLoadForFrame(WKPageRef, WKFrameRef, WKTypeRef, const void* clientInfo); 35 void qt_wk_didFinishLoadForFrame(WKPageRef, WKFrameRef, WKTypeRef, const void* clientInfo); 36 void qt_wk_didFailLoadWithErrorForFrame(WKPageRef, WKFrameRef, WKErrorRef, WKTypeRef, const void* clientInfo); 37 void qt_wk_didReceiveTitleForFrame(WKPageRef, WKStringRef title, WKFrameRef, WKTypeRef, const void* clientInfo); 38 void qt_wk_didFirstLayoutForFrame(WKPageRef, WKFrameRef, WKTypeRef, const void* clientInfo); 39 void qt_wk_didFirstVisuallyNonEmptyLayoutForFrame(WKPageRef, WKFrameRef, WKTypeRef, const void* clientInfo); 40 void qt_wk_didRemoveFrameFromHierarchy(WKPageRef, WKFrameRef, WKTypeRef, const void* clientInfo); 41 void qt_wk_didStartProgress(WKPageRef, const void* clientInfo); 42 void qt_wk_didChangeProgress(WKPageRef, const void* clientInfo); 43 void qt_wk_didFinishProgress(WKPageRef, const void* clientInfo); 44 void qt_wk_didBecomeUnresponsive(WKPageRef, const void* clientInfo); 45 void qt_wk_didBecomeResponsive(WKPageRef, const void* clientInfo); 46 47 // ui client 48 WKPageRef qt_wk_createNewPage(WKPageRef page, WKDictionaryRef features, WKEventModifiers modifiers, WKEventMouseButton mouseButton, const void *clientInfo); 49 void qt_wk_showPage(WKPageRef page, const void *clientInfo); 50 void qt_wk_close(WKPageRef page, const void *clientInfo); 51 void qt_wk_takeFocus(WKPageRef page, WKFocusDirection direction, const void *clientInfo); 52 void qt_wk_runJavaScriptAlert(WKPageRef page, WKStringRef alertText, WKFrameRef frame, const void* clientInfo); 53 void qt_wk_setStatusText(WKPageRef page, WKStringRef text, const void *clientInfo); 54 55 #ifdef __cplusplus 56 } 57 #endif 58 59 #endif /* DefaultClientCallbacksQt_h */ 60 61