2 * Copyright (C) 2007 Holger Hans Peter Freyther
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.
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.
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.
22 #include "webkitprivate.h"
23 #include "ChromeClientGtk.h"
24 #include "FrameLoader.h"
25 #include "FrameLoaderClientGtk.h"
26 #include "NotImplemented.h"
28 using namespace WebCore;
31 void apply(WebKitSettings*, WebCore::Settings*)
36 WebKitSettings* create(WebCore::Settings*)
42 WebKitWebView* getViewFromFrame(WebKitWebFrame* frame)
44 return webkit_web_frame_get_web_view(frame);
47 WebCore::Frame* core(WebKitWebFrame* frame)
52 WebKitWebFramePrivate* frame_data = WEBKIT_WEB_FRAME_GET_PRIVATE(frame);
53 return frame_data ? frame_data->frame : 0;
56 WebKitWebFrame* kit(WebCore::Frame* coreFrame)
61 ASSERT(coreFrame->loader());
62 WebKit::FrameLoaderClient* client = static_cast<WebKit::FrameLoaderClient*>(coreFrame->loader()->client());
63 return client ? client->webFrame() : 0;
66 WebCore::Page* core(WebKitWebView* webView)
71 WebKitWebViewPrivate* webViewData = WEBKIT_WEB_VIEW_GET_PRIVATE(webView);
72 return webViewData ? webViewData->corePage : 0;
75 WebKitWebView* kit(WebCore::Page* corePage)
80 ASSERT(corePage->chrome());
81 WebKit::ChromeClient* client = static_cast<WebKit::ChromeClient*>(corePage->chrome()->client());
82 return client ? client->webView() : 0;