summaryrefslogtreecommitdiffstats
path: root/src/core/web_contents_delegate_qt.h
diff options
context:
space:
mode:
authorJocelyn Turcotte <jocelyn.turcotte@digia.com>2014-05-26 13:58:50 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-05-28 10:07:32 +0200
commit3c181552ac5983f93ba0562063897be7772a570b (patch)
tree39433c520cfa7edb1940743f0ff3dff589714fcd /src/core/web_contents_delegate_qt.h
parent622f613bc4d41f9d3784fc0249e71ce0d3102a97 (diff)
Fix "findNext" after having navigated to a new page
The findNext flag tells the frame to search starting from the current selection, but the code assumes that the flag won't be used when there isn't any find selection (like when the Frame changed). Make sure that we won't use that flag after we received a load committed signal. Change-Id: I10f0f84226232d150f19fd644d7afe78bc425f74 Reviewed-by: Michael Bruning <michael.bruning@digia.com>
Diffstat (limited to 'src/core/web_contents_delegate_qt.h')
-rw-r--r--src/core/web_contents_delegate_qt.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/core/web_contents_delegate_qt.h b/src/core/web_contents_delegate_qt.h
index 4b33fb993..33f06bf8d 100644
--- a/src/core/web_contents_delegate_qt.h
+++ b/src/core/web_contents_delegate_qt.h
@@ -62,6 +62,8 @@ class WebContentsDelegateQt : public content::WebContentsDelegate
{
public:
WebContentsDelegateQt(content::WebContents*, WebContentsAdapterClient *adapterClient);
+ QString lastSearchedString() const { return m_lastSearchedString; }
+ void setLastSearchedString(const QString &s) { m_lastSearchedString = s; }
virtual content::WebContents *OpenURLFromTab(content::WebContents *source, const content::OpenURLParams &params) Q_DECL_OVERRIDE;
virtual void NavigationStateChanged(const content::WebContents* source, unsigned changed_flags) Q_DECL_OVERRIDE;
@@ -85,6 +87,7 @@ public:
private:
WebContentsAdapterClient *m_viewClient;
+ QString m_lastSearchedString;
};
#endif // WEB_CONTENTS_DELEGATE_QT_H