[Qt][WK2] Move non-api classes to WebKit namespace at WebKit2/UiProcess/qt
[WebKit-https.git] / Source / WebKit2 / UIProcess / API / qt / qquickwebpage_p_p.h
1 /*
2  * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies)
3  *
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.
8  *
9  * This program 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.
13  *
14  * You should have received a copy of the GNU Library General Public License
15  * along with this program; 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.
18  *
19  */
20
21 #ifndef qquickwebpage_p_p_h
22 #define qquickwebpage_p_p_h
23
24 #include "qquickwebpage_p.h"
25 #include <QTransform>
26
27 namespace WebKit {
28 class WebPageProxy;
29 class QtViewportInteractionEngine;
30 class QtWebPageEventHandler;
31 }
32
33 class QQuickWebPagePrivate {
34 public:
35     QQuickWebPagePrivate(QQuickWebPage* q, QQuickWebView* viewportItem);
36     ~QQuickWebPagePrivate();
37
38     void initialize(WebKit::WebPageProxy*);
39
40     void updateSize();
41
42     void paint(QPainter*);
43     void resetPaintNode();
44
45     QScopedPointer<WebKit::QtWebPageEventHandler> eventHandler;
46     QQuickWebPage* const q;
47     QQuickWebView* const viewportItem;
48     WebKit::WebPageProxy* webPageProxy;
49     bool paintingIsInitialized;
50     QSGNode* m_paintNode;
51
52     QSizeF contentsSize;
53     qreal contentsScale;
54 };
55
56 #endif // qquickwebpage_p_p_h