summaryrefslogtreecommitdiffstats
path: root/lib/render_widget_host_view_qt_delegate.h
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-06-19 13:47:04 +0200
committerJocelyn Turcotte <jocelyn.turcotte@digia.com>2013-06-19 13:47:04 +0200
commit90022906e060ae0dc8ad60b5770b3b23ffd6cde1 (patch)
tree48544460bc71732cf2e30bc190125b5a1a531f0a /lib/render_widget_host_view_qt_delegate.h
parenteb530b3752e1af68956feaa833e5b86b1e49e2e1 (diff)
Move API layer-only classes back from the shared static lib.
Since ContentBrowserClientQt::OverrideCreateWebContentsView now takes care of using our Qt layer at runtime without relying on the static RenderWidgetHostView::CreateViewForWidget, we can now avoid linking this layer into the render process.
Diffstat (limited to 'lib/render_widget_host_view_qt_delegate.h')
-rw-r--r--lib/render_widget_host_view_qt_delegate.h19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/render_widget_host_view_qt_delegate.h b/lib/render_widget_host_view_qt_delegate.h
new file mode 100644
index 000000000..7f147dae6
--- /dev/null
+++ b/lib/render_widget_host_view_qt_delegate.h
@@ -0,0 +1,19 @@
+#ifndef RENDER_WIDGET_HOST_VIEW_QT_DELEGATE_H
+#define RENDER_WIDGET_HOST_VIEW_QT_DELEGATE_H
+
+#include <QRect>
+
+class QWindow;
+
+class RenderWidgetHostViewQtDelegate {
+public:
+ virtual ~RenderWidgetHostViewQtDelegate() {}
+ virtual QRectF screenRect() const = 0;
+ virtual void show() = 0;
+ virtual void hide() = 0;
+ virtual bool isVisible() const = 0;
+ virtual QWindow* window() const = 0;
+ virtual void update(const QRect& rect = QRect()) = 0;
+};
+
+#endif