summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdam Kallai <kadam@inf.u-szeged.hu>2014-03-26 09:49:36 -0700
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-03-27 11:50:29 +0100
commit8da90b77da725bedbd1cadce0ce6e9d2dca678e5 (patch)
tree29c0c4bc92f01ae71364ee8fc11676cbd823b4ed
parentc3abe0ffdd0d4b7049e530f92403067410d22665 (diff)
Remove WebContentsView::SetPageTitle function
The titleChanged signal is emitted in WebContentsDelegateQt::NavigationStateChanged so We do not need to send this signal in SetPageTitle function any more. Change-Id: Id9a7efa59caae7aa99a82e840061adb7c5e8832b Reviewed-by: Jocelyn Turcotte <jocelyn.turcotte@digia.com>
-rw-r--r--src/core/web_contents_view_qt.cpp5
-rw-r--r--src/core/web_contents_view_qt.h2
2 files changed, 1 insertions, 6 deletions
diff --git a/src/core/web_contents_view_qt.cpp b/src/core/web_contents_view_qt.cpp
index 83147f8bf..5ae238b21 100644
--- a/src/core/web_contents_view_qt.cpp
+++ b/src/core/web_contents_view_qt.cpp
@@ -88,11 +88,6 @@ void WebContentsViewQt::CreateView(const gfx::Size& initial_size, gfx::NativeVie
m_factoryClient = reinterpret_cast<WebContentsAdapterClient *>(context);
}
-void WebContentsViewQt::SetPageTitle(const string16& title)
-{
- m_client->titleChanged(toQt(title));
-}
-
gfx::NativeView WebContentsViewQt::GetNativeView() const
{
// Hack to provide the client to WebContentsImpl::CreateNewWindow.
diff --git a/src/core/web_contents_view_qt.h b/src/core/web_contents_view_qt.h
index 63e240b99..e8a0f6b1f 100644
--- a/src/core/web_contents_view_qt.h
+++ b/src/core/web_contents_view_qt.h
@@ -75,7 +75,7 @@ public:
virtual content::RenderWidgetHostView* CreateViewForPopupWidget(content::RenderWidgetHost* render_widget_host) Q_DECL_OVERRIDE;
- virtual void SetPageTitle(const string16& title) Q_DECL_OVERRIDE;
+ virtual void SetPageTitle(const string16& title) Q_DECL_OVERRIDE { }
virtual void RenderViewCreated(content::RenderViewHost* host) Q_DECL_OVERRIDE { QT_NOT_YET_IMPLEMENTED }