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"
31 #include "PlatformString.h"
32 #include "wtf/RefPtr.h"
37 class FrameLoaderClientQt;
39 class HTMLFrameOwnerElement;
40 class PlatformScrollbar;
50 WebCore::HTMLFrameOwnerElement* ownerElement;
52 WebCore::String referrer;
58 class QWebFramePrivate
63 , horizontalScrollBarPolicy(Qt::ScrollBarAsNeeded)
64 , verticalScrollBarPolicy(Qt::ScrollBarAsNeeded)
65 , frameLoaderClient(0)
68 , allowsScrolling(true)
72 void init(QWebFrame *qframe, WebCore::Page *page,
73 QWebFrameData *frameData);
75 inline QWebFrame *parentFrame() { return qobject_cast<QWebFrame*>(q->parent()); }
77 WebCore::PlatformScrollbar *horizontalScrollBar() const;
78 WebCore::PlatformScrollbar *verticalScrollBar() const;
80 Qt::ScrollBarPolicy horizontalScrollBarPolicy;
81 Qt::ScrollBarPolicy verticalScrollBarPolicy;
83 static WebCore::Frame* core(QWebFrame*);
84 static QWebFrame* kit(WebCore::Frame*);
87 WebCore::FrameLoaderClientQt *frameLoaderClient;
88 WebCore::Frame *frame;