Remove redundant InternalLoadURL method.
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/SOC2011_WEBVIEW@68562 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
4c552a824c
commit
895e112c7c
@ -51,8 +51,6 @@ public:
|
||||
const wxString& name = wxWebViewNameStr);
|
||||
virtual ~wxWebViewWebKit();
|
||||
|
||||
void InternalLoadURL(const wxString &url);
|
||||
|
||||
virtual bool CanGoBack();
|
||||
virtual bool CanGoForward();
|
||||
virtual void GoBack();
|
||||
|
@ -440,7 +440,7 @@ bool wxWebViewWebKit::Create(wxWindow *parent,
|
||||
|
||||
[m_webView setPolicyDelegate:myPolicyDelegate];
|
||||
|
||||
InternalLoadURL(strURL);
|
||||
LoadUrl(strURL);
|
||||
return true;
|
||||
}
|
||||
|
||||
@ -462,15 +462,6 @@ wxWebViewWebKit::~wxWebViewWebKit()
|
||||
// public methods
|
||||
// ----------------------------------------------------------------------------
|
||||
|
||||
void wxWebViewWebKit::InternalLoadURL(const wxString &url)
|
||||
{
|
||||
if( !m_webView )
|
||||
return;
|
||||
|
||||
[[m_webView mainFrame] loadRequest:[NSURLRequest requestWithURL:
|
||||
[NSURL URLWithString:wxNSStringWithWxString(url)]]];
|
||||
}
|
||||
|
||||
bool wxWebViewWebKit::CanGoBack()
|
||||
{
|
||||
if ( !m_webView )
|
||||
@ -803,7 +794,8 @@ void wxWebViewWebKit::MacVisibilityChanged(){
|
||||
|
||||
void wxWebViewWebKit::LoadUrl(const wxString& url)
|
||||
{
|
||||
InternalLoadURL(url);
|
||||
[[m_webView mainFrame] loadRequest:[NSURLRequest requestWithURL:
|
||||
[NSURL URLWithString:wxNSStringWithWxString(url)]]];
|
||||
}
|
||||
|
||||
wxString wxWebViewWebKit::GetCurrentURL()
|
||||
|
Loading…
Reference in New Issue
Block a user