summaryrefslogtreecommitdiffstats
path: root/WebCore/platform/qt/QWebPageClient.h
diff options
context:
space:
mode:
Diffstat (limited to 'WebCore/platform/qt/QWebPageClient.h')
-rw-r--r--WebCore/platform/qt/QWebPageClient.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/WebCore/platform/qt/QWebPageClient.h b/WebCore/platform/qt/QWebPageClient.h
index b510736..6d47c29 100644
--- a/WebCore/platform/qt/QWebPageClient.h
+++ b/WebCore/platform/qt/QWebPageClient.h
@@ -29,8 +29,14 @@
#ifndef QT_NO_CURSOR
#include <QCursor>
#endif
+
#include <QRect>
+QT_BEGIN_NAMESPACE
+class QGraphicsItem;
+class QStyle;
+QT_END_NAMESPACE
+
class QWebPageClient {
public:
virtual ~QWebPageClient() { }
@@ -39,6 +45,16 @@ public:
virtual void update(const QRect&) = 0;
virtual void setInputMethodEnabled(bool enable) = 0;
virtual bool inputMethodEnabled() const = 0;
+#if USE(ACCELERATED_COMPOSITING)
+ // this gets called when we start/stop compositing.
+ virtual void setRootGraphicsLayer(QGraphicsItem* layer) {}
+
+ // this gets called when the compositor wants us to sync the layers
+ // if scheduleSync is true, we schedule a sync ourselves. otherwise,
+ // we wait for the next update and sync the layers then.
+ virtual void markForSync(bool scheduleSync = false) {}
+#endif
+
#if QT_VERSION >= 0x040600
virtual void setInputMethodHint(Qt::InputMethodHint hint, bool enable) = 0;
#endif
@@ -67,6 +83,8 @@ public:
virtual QObject* pluginParent() const = 0;
+ virtual QStyle* style() const = 0;
+
protected:
#ifndef QT_NO_CURSOR
virtual QCursor cursor() const = 0;