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.
29 #include <qwebkitglobal.h>
37 class QWebFramePrivate;
42 class FrameLoaderClientQt;
47 class QWEBKIT_EXPORT QWebFrame : public QObject
51 QWebFrame(QWebPage *parent, QWebFrameData *frameData);
52 QWebFrame(QWebFrame *parent, QWebFrameData *frameData);
56 QWebPage *page() const;
58 void addToJSWindowObject(const QByteArray &name, QObject *object);
59 QString markup() const;
60 QString innerText() const;
61 QString renderTreeDump() const;
62 QString title() const;
65 QList<QWebFrame*> childFrames() const;
67 Qt::ScrollBarPolicy verticalScrollBarPolicy() const;
68 void setVerticalScrollBarPolicy(Qt::ScrollBarPolicy);
69 Qt::ScrollBarPolicy horizontalScrollBarPolicy() const;
70 void setHorizontalScrollBarPolicy(Qt::ScrollBarPolicy);
72 void render(QPainter *painter, const QRect &source);
76 QRect geometry() const;
79 QString evaluateJavaScript(const QString& scriptSource);
83 void loadDone(bool ok);
84 void provisionalLoad();
85 void titleChanged(const QString &title);
86 void hoveringOverLink(const QString &link, const QString &title);
89 friend class QWebPage;
90 friend class QWebPagePrivate;
91 friend class WebCore::WidgetPrivate;
92 friend class WebCore::FrameLoaderClientQt;
93 friend class WebCore::ChromeClientQt;