2 Copyright (C) 2007 Trolltech ASA
3 Copyright (C) 2007 Staikos Computing Services Inc.
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 Boston, MA 02110-1301, USA.
20 This class provides all functionality needed for loading images, style sheets and html
21 pages from the web. It has a memory cache for these objects.
26 #include "qwebframe.h"
27 #include "qwebpage_p.h"
29 #include "EventHandler.h"
30 #include "FrameView.h"
32 #include "PlatformString.h"
33 #include "wtf/RefPtr.h"
37 class FrameLoaderClientQt;
40 class HTMLFrameOwnerElement;
41 class PlatformScrollbar;
51 WebCore::HTMLFrameOwnerElement* ownerElement;
53 WebCore::String referrer;
59 class QWebFramePrivate
64 , frameLoaderClient(0)
69 void init(QWebFrame *qframe, WebCore::Page *page,
70 QWebFrameData *frameData);
72 inline QWebFrame *parentFrame() { return qobject_cast<QWebFrame*>(q->parent()); }
74 WebCore::PlatformScrollbar *horizontalScrollBar() const;
75 WebCore::PlatformScrollbar *verticalScrollBar() const;
77 inline QPoint pos() const
78 { return frameView->frameGeometry().topLeft(); }
80 static WebCore::Frame* core(QWebFrame*);
81 static QWebFrame* kit(WebCore::Frame*);
84 WebCore::FrameLoaderClientQt *frameLoaderClient;
85 WTF::RefPtr<WebCore::Frame> frame;
86 WTF::RefPtr<WebCore::FrameView> frameView;