This patch makes EWK to set page title via WebContentsViewDelegate::SetPageTitle fucntion.
Change-Id: I88d4011bb946d78515ff0e4d67a27a9e42f44d25
Signed-off-by: hh4813.kim <hh4813.kim@samsung.com>
}
void WebContentsViewEfl::SetPageTitle(const base::string16& title) {
- DCHECK(native_view_);
+ if (delegate_)
+ delegate_->SetPageTitle(title);
}
void WebContentsViewEfl::UpdateDragDest(RenderViewHost* host) {
void WebContentsViewDelegateEwk::HidePopupMenu() {
web_view_->HidePopupMenu();
}
+
+void WebContentsViewDelegateEwk::SetPageTitle(const base::string16& title) {
+ web_view_->SmartCallback<EWebViewCallbacks::TitleChange>().call(base::UTF16ToUTF8(title).c_str());
+}
bool allow_multiple_selection) override;
void HidePopupMenu() override;
+ void SetPageTitle(const base::string16& title) override;
+
private:
EWebView* web_view_;
};