virtual void Stop();
virtual wxString GetPageSource();
virtual wxString GetPageText() { return ""; }
- virtual void SetPageTitle(const wxString& title) { m_pageTitle = title; }
- virtual wxString GetPageTitle(){ return m_pageTitle; }
//We do not want to hide the other overloads
using wxWebView::SetPage;
wxString wxWebViewWebKit::GetCurrentTitle()
{
- return GetPageTitle();
+ return wxStringWithNSString([m_webView mainFrameTitle]);
}
float wxWebViewWebKit::GetWebkitZoom()
- (void)webView:(WebView *)sender didReceiveTitle:(NSString *)title
forFrame:(WebFrame *)frame
{
- if (webKitWindow && frame == [sender mainFrame])
- {
- webKitWindow->SetPageTitle(wxStringWithNSString( title ));
- }
wxString target = wxStringWithNSString([frame name]);
wxWebNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED,
wx_webviewctrls[sender]->GetId(),