summaryrefslogtreecommitdiffstats
path: root/src/webenginewidgets/api/qwebenginepage_p.h
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-02-21 13:53:46 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-02-21 18:21:47 +0100
commit3aad2a0615449dc8e5bd9fb8d68eaf03733d8eb5 (patch)
tree4eba5db5bec10c97ca2d902c8ca19298a9007864 /src/webenginewidgets/api/qwebenginepage_p.h
parent6a2ecb47b9e3c78e7c947549d7d3aff2a903a5fe (diff)
Implement QWebEnginePage::viewportSize
Keep the size in the page itself, and ask the optionally attached QWebEngineView only for the rect position. When the view size change, call setViewportSize on the page like QtWebKit does. Change-Id: I735f1509cab9ef9b5d32bf31249a59c919939804 Reviewed-by: Andras Becsi <andras.becsi@digia.com>
Diffstat (limited to 'src/webenginewidgets/api/qwebenginepage_p.h')
-rw-r--r--src/webenginewidgets/api/qwebenginepage_p.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/webenginewidgets/api/qwebenginepage_p.h b/src/webenginewidgets/api/qwebenginepage_p.h
index ed21c3816..773df00d4 100644
--- a/src/webenginewidgets/api/qwebenginepage_p.h
+++ b/src/webenginewidgets/api/qwebenginepage_p.h
@@ -142,13 +142,14 @@ public:
QExplicitlySharedDataPointer<WebContentsAdapter> adapter;
QWebEngineHistory *history;
QWebEngineView *view;
- mutable QAction *actions[QWebEnginePage::WebActionCount];
+ QSize viewportSize;
bool m_isLoading;
QUrl m_explicitUrl;
WebEngineContextMenuData m_menuData;
QPointer<RenderWidgetHostViewQtDelegateWebPage> m_rwhvDelegate;
mutable CallbackDirectory m_callbacks;
+ mutable QAction *actions[QWebEnginePage::WebActionCount];
};
QT_END_NAMESPACE