diff options
author | Pierre Rossi <pierre.rossi@digia.com> | 2013-09-05 15:55:00 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-10-17 15:06:19 +0200 |
commit | 7642fabf5f62fbc583dc6bd9f349dbe1e45e805a (patch) | |
tree | f493be28f91e06b46534061bcd251d259105da58 /lib/web_contents_delegate_qt.h | |
parent | d9276b51c64c2b0b1cd97dcd02c0a83e78018f81 (diff) |
Add javascript dialogs support
This is just the basic core part and widgets plumbing and default
implementations of the virtual functions in QWebEnginePage.
QtQuick implementation is still yet to be done
Change-Id: I7cf8d6e5ec0bf747d45e9914db57bd0e4ef95b7f
Reviewed-by: Zeno Albisser <zeno.albisser@digia.com>
Diffstat (limited to 'lib/web_contents_delegate_qt.h')
-rw-r--r-- | lib/web_contents_delegate_qt.h | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/lib/web_contents_delegate_qt.h b/lib/web_contents_delegate_qt.h index b9720eac2..42ec5c15c 100644 --- a/lib/web_contents_delegate_qt.h +++ b/lib/web_contents_delegate_qt.h @@ -44,12 +44,15 @@ #include "content/public/browser/web_contents_delegate.h" #include "content/public/browser/web_contents_observer.h" -#include "content/public/browser/web_contents.h" + +#include "javascript_dialog_manager_qt.h" namespace content { class BrowserContext; class SiteInstance; class RenderViewHost; + class JavaScriptDialogManager; + class WebContents; } class WebContentsAdapterClient; @@ -66,6 +69,7 @@ public: virtual void DidFailLoad(int64 frame_id, const GURL &validated_url, bool is_main_frame, int error_code, const string16 &error_description, content::RenderViewHost *render_view_host); virtual void DidFinishLoad(int64 frame_id, const GURL &validated_url, bool is_main_frame, content::RenderViewHost *render_view_host); virtual void DidUpdateFaviconURL(int32 page_id, const std::vector<content::FaviconURL>& candidates); + virtual content::JavaScriptDialogManager *GetJavaScriptDialogManager(); private: WebContentsAdapterClient *m_viewClient; |