summaryrefslogtreecommitdiffstats
path: root/lib/web_contents_delegate_qt.cpp
diff options
context:
space:
mode:
authorPierre Rossi <pierre.rossi@digia.com>2013-10-23 17:07:23 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-10-24 19:58:02 +0200
commit7904082dbaf2841f3263134c8d1290d33159a6b0 (patch)
tree14b749a95d46104725c141200fe66c5080898db4 /lib/web_contents_delegate_qt.cpp
parentac95a438620f3ec7c72ae60396ee26b3778d38b2 (diff)
Add windowCloseRequested() support
Change-Id: If97c7b50efc7bf01095cb4a7138208ab2c6b2e9b Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'lib/web_contents_delegate_qt.cpp')
-rw-r--r--lib/web_contents_delegate_qt.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/web_contents_delegate_qt.cpp b/lib/web_contents_delegate_qt.cpp
index c2840b608..8588a4320 100644
--- a/lib/web_contents_delegate_qt.cpp
+++ b/lib/web_contents_delegate_qt.cpp
@@ -81,6 +81,11 @@ void WebContentsDelegateQt::AddNewContents(content::WebContents* source, content
*was_blocked = !newAdapter;
}
+void WebContentsDelegateQt::CloseContents(content::WebContents *source)
+{
+ m_viewClient->close();
+}
+
void WebContentsDelegateQt::LoadingStateChanged(content::WebContents* source)
{
m_viewClient->loadingStateChanged();