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"
38 class FrameLoaderClientQt;
41 class HTMLFrameOwnerElement;
42 class PlatformScrollbar;
52 WebCore::HTMLFrameOwnerElement* ownerElement;
54 WebCore::String referrer;
60 class QWebFramePrivate
65 , frameLoaderClient(0)
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 inline QPoint pos() const
81 { return frameView->frameGeometry().topLeft(); }
83 static WebCore::Frame* core(QWebFrame*);
84 static QWebFrame* kit(WebCore::Frame*);
87 WebCore::FrameLoaderClientQt *frameLoaderClient;
88 WTF::RefPtr<WebCore::Frame> frame;
89 WTF::RefPtr<WebCore::FrameView> frameView;
91 WebCore::EventHandler *eventHandler;
92 WebCore::Element *lastHoverElement;