diff options
author | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-18 14:03:11 +0200 |
---|---|---|
committer | Simon Hausmann <simon.hausmann@nokia.com> | 2012-05-18 14:03:11 +0200 |
commit | 8d473cf9743f1d30a16a27114e93bd5af5648d23 (patch) | |
tree | cdca40d0353886b3ca52f33a2d7b8f1c0011aafc /Source/WebKit2/UIProcess/API/qt/qwebkittest_p.h | |
parent | 1b914638db989aaa98631a1c1e02c7b2d44805d8 (diff) | |
download | qtwebkit-8d473cf9743f1d30a16a27114e93bd5af5648d23.tar.gz |
Imported WebKit commit 1350e72f7345ced9da2bd9980deeeb5a8d62fab4 (http://svn.webkit.org/repository/webkit/trunk@117578)
Weekly snapshot
Diffstat (limited to 'Source/WebKit2/UIProcess/API/qt/qwebkittest_p.h')
-rw-r--r-- | Source/WebKit2/UIProcess/API/qt/qwebkittest_p.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/Source/WebKit2/UIProcess/API/qt/qwebkittest_p.h b/Source/WebKit2/UIProcess/API/qt/qwebkittest_p.h new file mode 100644 index 000000000..f7c7180c1 --- /dev/null +++ b/Source/WebKit2/UIProcess/API/qt/qwebkittest_p.h @@ -0,0 +1,76 @@ +/* + * Copyright (C) 2011 Nokia Corporation and/or its subsidiary(-ies) + * + * This library is free software; you can redistribute it and/or + * modify it under the terms of the GNU Library General Public + * License as published by the Free Software Foundation; either + * version 2 of the License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * Library General Public License for more details. + * + * You should have received a copy of the GNU Library General Public License + * along with this program; see the file COPYING.LIB. If not, write to + * the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, + * Boston, MA 02110-1301, USA. + * + */ + +#ifndef qwebkittest_p_h +#define qwebkittest_p_h + +#include "qwebkitglobal.h" + +#include <QtCore/QObject> +#include <QtCore/QPointer> +#include <QtCore/QSize> +#include <QtCore/QVariant> +#include <QtQml/QtQml> +#include <QtQuick/qquickitem.h> + +class QQuickWebViewPrivate; + +class QWEBKIT_EXPORT QWebKitTest : public QObject { + Q_OBJECT + + Q_PROPERTY(QSize contentsSize READ contentsSize NOTIFY contentsSizeChanged) + + Q_PROPERTY(QVariant contentsScale READ contentsScale NOTIFY contentsScaleChanged) + + Q_PROPERTY(QVariant devicePixelRatio READ devicePixelRatio NOTIFY viewportChanged) + Q_PROPERTY(QVariant initialScale READ initialScale NOTIFY viewportChanged) + Q_PROPERTY(QVariant isScalable READ isScalable NOTIFY viewportChanged) + Q_PROPERTY(QVariant maximumScale READ maximumScale NOTIFY viewportChanged) + Q_PROPERTY(QVariant minimumScale READ minimumScale NOTIFY viewportChanged) + Q_PROPERTY(QVariant layoutSize READ layoutSize NOTIFY viewportChanged) + +signals: + void contentsSizeChanged(); + void contentsScaleChanged(); + void contentsScaleCommitted(); + void viewportChanged(); + +public slots: + bool touchDoubleTap(QObject* item, qreal x, qreal y, int delay = -1); + +public: + QWebKitTest(QQuickWebViewPrivate* webviewPrivate, QObject* parent = 0); + virtual ~QWebKitTest(); + + QSize contentsSize() const; + QVariant contentsScale() const; + + QVariant devicePixelRatio() const; + QVariant initialScale() const; + QVariant isScalable() const; + QVariant layoutSize() const; + QVariant maximumScale() const; + QVariant minimumScale() const; + +private: + QQuickWebViewPrivate* m_webViewPrivate; +}; + +#endif // qwebkittest_p |