diff options
author | Pierre Rossi <pierre.rossi@digia.com> | 2013-10-23 17:07:23 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-24 19:58:02 +0200 |
commit | 7904082dbaf2841f3263134c8d1290d33159a6b0 (patch) | |
tree | 14b749a95d46104725c141200fe66c5080898db4 /lib/web_contents_delegate_qt.cpp | |
parent | ac95a438620f3ec7c72ae60396ee26b3778d38b2 (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.cpp | 5 |
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(); |