diff options
author | Ben Murdoch <benm@google.com> | 2010-10-22 13:02:20 +0100 |
---|---|---|
committer | Ben Murdoch <benm@google.com> | 2010-10-26 15:21:41 +0100 |
commit | a94275402997c11dd2e778633dacf4b7e630a35d (patch) | |
tree | e66f56c67e3b01f22c9c23cd932271ee9ac558ed /WebKit/qt/Api/qwebpage_p.h | |
parent | 09e26c78506587b3f5d930d7bc72a23287ffbec0 (diff) | |
download | external_webkit-a94275402997c11dd2e778633dacf4b7e630a35d.zip external_webkit-a94275402997c11dd2e778633dacf4b7e630a35d.tar.gz external_webkit-a94275402997c11dd2e778633dacf4b7e630a35d.tar.bz2 |
Merge WebKit at r70209: Initial merge by Git
Change-Id: Id23a68efa36e9d1126bcce0b137872db00892c8e
Diffstat (limited to 'WebKit/qt/Api/qwebpage_p.h')
-rw-r--r-- | WebKit/qt/Api/qwebpage_p.h | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/WebKit/qt/Api/qwebpage_p.h b/WebKit/qt/Api/qwebpage_p.h index 12716f9..1f70293 100644 --- a/WebKit/qt/Api/qwebpage_p.h +++ b/WebKit/qt/Api/qwebpage_p.h @@ -36,6 +36,8 @@ #include <wtf/RefPtr.h> +#include "ViewportArguments.h" + namespace WebCore { class ChromeClientQt; class ContextMenuClientQt; @@ -58,13 +60,13 @@ QT_END_NAMESPACE class QWebInspector; class QWebPageClient; -class QtViewportConfigurationPrivate : public QSharedData { +class QtViewportAttributesPrivate : public QSharedData { public: - QtViewportConfigurationPrivate(QWebPage::ViewportConfiguration* qq) + QtViewportAttributesPrivate(QWebPage::ViewportAttributes* qq) : q(qq) { } - QWebPage::ViewportConfiguration* q; + QWebPage::ViewportAttributes* q; }; class QWebPagePrivate { @@ -88,36 +90,26 @@ public: void timerEvent(QTimerEvent*); - void mouseMoveEvent(QMouseEvent*); - void mouseMoveEvent(QGraphicsSceneMouseEvent*); - void mousePressEvent(QMouseEvent*); - void mousePressEvent(QGraphicsSceneMouseEvent*); - void mouseDoubleClickEvent(QMouseEvent*); - void mouseDoubleClickEvent(QGraphicsSceneMouseEvent*); - void mouseTripleClickEvent(QMouseEvent*); - void mouseTripleClickEvent(QGraphicsSceneMouseEvent*); - void mouseReleaseEvent(QMouseEvent*); - void mouseReleaseEvent(QGraphicsSceneMouseEvent*); + template<class T> void mouseMoveEvent(T*); + template<class T> void mousePressEvent(T*); + template<class T> void mouseDoubleClickEvent(T*); + template<class T> void mouseTripleClickEvent(T*); + template<class T> void mouseReleaseEvent(T*); #ifndef QT_NO_CONTEXTMENU void contextMenuEvent(const QPoint& globalPos); #endif #ifndef QT_NO_WHEELEVENT - void wheelEvent(QWheelEvent*); - void wheelEvent(QGraphicsSceneWheelEvent*); + template<class T> void wheelEvent(T*); #endif void keyPressEvent(QKeyEvent*); void keyReleaseEvent(QKeyEvent*); void focusInEvent(QFocusEvent*); void focusOutEvent(QFocusEvent*); - void dragEnterEvent(QDragEnterEvent*); - void dragEnterEvent(QGraphicsSceneDragDropEvent*); - void dragLeaveEvent(QDragLeaveEvent*); - void dragLeaveEvent(QGraphicsSceneDragDropEvent*); - void dragMoveEvent(QDragMoveEvent*); - void dragMoveEvent(QGraphicsSceneDragDropEvent*); - void dropEvent(QDropEvent*); - void dropEvent(QGraphicsSceneDragDropEvent*); + template<class T> void dragEnterEvent(T*); + template<class T> void dragLeaveEvent(T*); + template<class T> void dragMoveEvent(T*); + template<class T> void dropEvent(T*); void inputMethodEvent(QInputMethodEvent*); @@ -139,6 +131,8 @@ public: WebCore::InspectorController* inspectorController(); quint16 inspectorServerPort(); + WebCore::ViewportArguments viewportArguments(); + #ifndef QT_NO_SHORTCUT static QWebPage::WebAction editorActionForKeyEvent(QKeyEvent* event); #endif |