};
/** Types of errors that can cause navigation to fail */
-enum wxWebNavigationError
+enum wxWebViewNavigationError
{
/** Connection error (timeout, etc.) */
wxWEB_NAV_ERR_CONNECTION,
wxDECLARE_ABSTRACT_CLASS(wxWebView);
};
-class WXDLLIMPEXP_WEB wxWebNavigationEvent : public wxCommandEvent
+class WXDLLIMPEXP_WEB wxWebViewEvent : public wxCommandEvent
{
public:
- wxWebNavigationEvent() {}
- wxWebNavigationEvent(wxEventType type, int id, const wxString url,
- const wxString target, bool canVeto)
+ wxWebViewEvent() {}
+ wxWebViewEvent(wxEventType type, int id, const wxString url,
+ const wxString target, bool canVeto)
: wxCommandEvent(type, id)
{
m_url = url;
const wxString& GetTarget() const { return m_target; }
// default copy ctor, assignment operator and dtor are ok
- virtual wxEvent* Clone() const { return new wxWebNavigationEvent(*this); }
+ virtual wxEvent* Clone() const { return new wxWebViewEvent(*this); }
/** Get whether this event may be vetoed (stopped/prevented). Only
* meaningful for events fired before navigation takes place.
bool m_canVeto;
bool m_vetoed;
- wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxWebNavigationEvent);
+ wxDECLARE_DYNAMIC_CLASS_NO_ASSIGN(wxWebViewEvent);
};
-wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEB, wxEVT_COMMAND_WEB_VIEW_NAVIGATING, wxWebNavigationEvent );
-wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEB, wxEVT_COMMAND_WEB_VIEW_NAVIGATED, wxWebNavigationEvent );
-wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEB, wxEVT_COMMAND_WEB_VIEW_LOADED, wxWebNavigationEvent );
-wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEB, wxEVT_COMMAND_WEB_VIEW_ERROR, wxWebNavigationEvent );
-wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEB, wxEVT_COMMAND_WEB_VIEW_NEWWINDOW, wxWebNavigationEvent );
-wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEB, wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED, wxWebNavigationEvent );
+wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEB, wxEVT_COMMAND_WEB_VIEW_NAVIGATING, wxWebViewEvent );
+wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEB, wxEVT_COMMAND_WEB_VIEW_NAVIGATED, wxWebViewEvent );
+wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEB, wxEVT_COMMAND_WEB_VIEW_LOADED, wxWebViewEvent );
+wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEB, wxEVT_COMMAND_WEB_VIEW_ERROR, wxWebViewEvent );
+wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEB, wxEVT_COMMAND_WEB_VIEW_NEWWINDOW, wxWebViewEvent );
+wxDECLARE_EXPORTED_EVENT( WXDLLIMPEXP_WEB, wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED, wxWebViewEvent );
-typedef void (wxEvtHandler::*wxWebNavigationEventFunction)
- (wxWebNavigationEvent&);
+typedef void (wxEvtHandler::*wxWebViewEventFunction)
+ (wxWebViewEvent&);
-#define wxWebNavigationEventHandler(func) \
- wxEVENT_HANDLER_CAST(wxWebNavigationEventFunction, func)
+#define wxWebViewEventHandler(func) \
+ wxEVENT_HANDLER_CAST(wxWebViewEventFunction, func)
#define EVT_WEB_VIEW_NAVIGATING(id, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_NAVIGATING, id, \
- wxHtmlNavigatingEventHandler(fn))
+ wxWebViewEventHandler(fn))
#define EVT_WEB_VIEW_NAVIGATED(id, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_NAVIGATED, id, \
- wxHtmlNavigatingEventHandler(fn))
+ wxWebViewEventHandler(fn))
#define EVT_WEB_VIEW_LOADED(id, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_LOADED, id, \
- wxHtmlNavigatingEventHandler(fn))
+ wxWebViewEventHandler(fn))
#define EVT_WEB_VIEW_ERRROR(id, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_ERROR, id, \
- wxHtmlNavigatingEventHandler(fn))
+ wxWebViewEventHandler(fn))
#define EVT_WEB_VIEW_NEWWINDOW(id, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_NEWWINDOW, id, \
- wxHtmlNavigatingEventHandler(fn))
+ wxWebViewEventHandler(fn))
#define EVT_WEB_VIEW_TITLE_CHANGED(id, fn) \
wx__DECLARE_EVT1(wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED, id, \
- wxHtmlNavigatingEventHandler(fn))
+ wxWebViewEventHandler(fn))
#endif // wxUSE_WEB
/**
Types of errors that can cause navigation to fail
*/
-enum wxWebNavigationError
+enum wxWebViewNavigationError
{
/** Connection error (timeout, etc.) */
wxWEB_NAV_ERR_CONNECTION,
standard @c file syntax as well as paths to archives of the form
@c file:///C:/exmaple/docs.zip;protocol=zip/main.htm
- @beginEventEmissionTable{wxWebNavigationEvent}
+ @beginEventEmissionTable{wxWebViewEvent}
@event{EVT_WEB_VIEW_NAVIGATING(id, func)}
Process a @c wxEVT_COMMAND_WEB_VIEW_NAVIGATING event, generated before trying
to get a resource. This event may be vetoed to prevent navigating to this
@library{wxweb}
@category{ctrl,web}
- @see wxWebHandler, wxWebNavigationEvent
+ @see wxWebHandler, wxWebViewEvent
*/
class wxWebView : public wxControl
{
/**
- @class wxWebNavigationEvent
+ @class wxWebViewEvent
A navigation event holds information about events associated with
wxWebView objects.
- @beginEventEmissionTable{wxWebNavigationEvent}
+ @beginEventEmissionTable{wxWebViewEvent}
@event{EVT_WEB_VIEW_NAVIGATING(id, func)}
Process a @c wxEVT_COMMAND_WEB_VIEW_NAVIGATING event, generated before trying
to get a resource. This event may be vetoed to prevent navigating to this
@see wxWebView
*/
-class wxWebNavigationEvent : public wxCommandEvent
+class wxWebViewEvent : public wxCommandEvent
{
public:
- wxWebNavigationEvent();
- wxWebNavigationEvent(wxEventType type, int id, const wxString href,
- const wxString target, bool canVeto);
+ wxWebViewEvent();
+ wxWebViewEvent(wxEventType type, int id, const wxString href,
+ const wxString target, bool canVeto);
/**
Get the name of the target frame which the url of this event
void OnReload(wxCommandEvent& evt);
void OnClearHistory(wxCommandEvent& evt);
void OnEnableHistory(wxCommandEvent& evt);
- void OnNavigationRequest(wxWebNavigationEvent& evt);
- void OnNavigationComplete(wxWebNavigationEvent& evt);
- void OnDocumentLoaded(wxWebNavigationEvent& evt);
- void OnNewWindow(wxWebNavigationEvent& evt);
- void OnTitleChanged(wxWebNavigationEvent& evt);
+ void OnNavigationRequest(wxWebViewEvent& evt);
+ void OnNavigationComplete(wxWebViewEvent& evt);
+ void OnDocumentLoaded(wxWebViewEvent& evt);
+ void OnNewWindow(wxWebViewEvent& evt);
+ void OnTitleChanged(wxWebViewEvent& evt);
void OnViewSourceRequest(wxCommandEvent& evt);
void OnToolsClicked(wxCommandEvent& evt);
void OnSetZoom(wxCommandEvent& evt);
- void OnError(wxWebNavigationEvent& evt);
+ void OnError(wxWebViewEvent& evt);
void OnPrint(wxCommandEvent& evt);
void OnCut(wxCommandEvent& evt);
void OnCopy(wxCommandEvent& evt);
// Connect the webview events
Connect(m_browser->GetId(), wxEVT_COMMAND_WEB_VIEW_NAVIGATING,
- wxWebNavigationEventHandler(WebFrame::OnNavigationRequest), NULL, this);
+ wxWebViewEventHandler(WebFrame::OnNavigationRequest), NULL, this);
Connect(m_browser->GetId(), wxEVT_COMMAND_WEB_VIEW_NAVIGATED,
- wxWebNavigationEventHandler(WebFrame::OnNavigationComplete), NULL, this);
+ wxWebViewEventHandler(WebFrame::OnNavigationComplete), NULL, this);
Connect(m_browser->GetId(), wxEVT_COMMAND_WEB_VIEW_LOADED,
- wxWebNavigationEventHandler(WebFrame::OnDocumentLoaded), NULL, this);
+ wxWebViewEventHandler(WebFrame::OnDocumentLoaded), NULL, this);
Connect(m_browser->GetId(), wxEVT_COMMAND_WEB_VIEW_ERROR,
- wxWebNavigationEventHandler(WebFrame::OnError), NULL, this);
+ wxWebViewEventHandler(WebFrame::OnError), NULL, this);
Connect(m_browser->GetId(), wxEVT_COMMAND_WEB_VIEW_NEWWINDOW,
- wxWebNavigationEventHandler(WebFrame::OnNewWindow), NULL, this);
+ wxWebViewEventHandler(WebFrame::OnNewWindow), NULL, this);
Connect(m_browser->GetId(), wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED,
- wxWebNavigationEventHandler(WebFrame::OnTitleChanged), NULL, this);
+ wxWebViewEventHandler(WebFrame::OnTitleChanged), NULL, this);
// Connect the menu events
Connect(viewSource->GetId(), wxEVT_COMMAND_MENU_SELECTED,
* Callback invoked when there is a request to load a new page (for instance
* when the user clicks a link)
*/
-void WebFrame::OnNavigationRequest(wxWebNavigationEvent& evt)
+void WebFrame::OnNavigationRequest(wxWebViewEvent& evt)
{
if(m_info->IsShown())
{
/**
* Callback invoked when a navigation request was accepted
*/
-void WebFrame::OnNavigationComplete(wxWebNavigationEvent& evt)
+void WebFrame::OnNavigationComplete(wxWebViewEvent& evt)
{
wxLogMessage("%s", "Navigation complete; url='" + evt.GetURL() + "'");
UpdateState();
/**
* Callback invoked when a page is finished loading
*/
-void WebFrame::OnDocumentLoaded(wxWebNavigationEvent& evt)
+void WebFrame::OnDocumentLoaded(wxWebViewEvent& evt)
{
//Only notify if the document is the main frame, not a subframe
if(evt.GetURL() == m_browser->GetCurrentURL())
/**
* On new window, we veto to stop extra windows appearing
*/
-void WebFrame::OnNewWindow(wxWebNavigationEvent& evt)
+void WebFrame::OnNewWindow(wxWebViewEvent& evt)
{
wxLogMessage("%s", "New window; url='" + evt.GetURL() + "'");
UpdateState();
}
-void WebFrame::OnTitleChanged(wxWebNavigationEvent& evt)
+void WebFrame::OnTitleChanged(wxWebViewEvent& evt)
{
wxLogMessage("%s", "Title changed; title='" + evt.GetString() + "'");
UpdateState();
/**
* Callback invoked when a loading error occurs
*/
-void WebFrame::OnError(wxWebNavigationEvent& evt)
+void WebFrame::OnError(wxWebViewEvent& evt)
{
wxString errorCategory;
switch (evt.GetInt())
extern WXDLLIMPEXP_DATA_WEB(const char) wxWebViewDefaultURLStr[] = "about:blank";
wxIMPLEMENT_ABSTRACT_CLASS(wxWebView, wxControl);
-wxIMPLEMENT_DYNAMIC_CLASS(wxWebNavigationEvent, wxCommandEvent);
-
-wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_NAVIGATING, wxWebNavigationEvent );
-wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_NAVIGATED, wxWebNavigationEvent );
-wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_LOADED, wxWebNavigationEvent );
-wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_ERROR, wxWebNavigationEvent );
-wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_NEWWINDOW, wxWebNavigationEvent );
-wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED, wxWebNavigationEvent );
+wxIMPLEMENT_DYNAMIC_CLASS(wxWebViewEvent, wxCommandEvent);
+
+wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_NAVIGATING, wxWebViewEvent );
+wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_NAVIGATED, wxWebViewEvent );
+wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_LOADED, wxWebViewEvent );
+wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_ERROR, wxWebViewEvent );
+wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_NEWWINDOW, wxWebViewEvent );
+wxDEFINE_EVENT( wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED, wxWebViewEvent );
// static
wxWebView* wxWebView::New(wxWebViewBackend backend)
if (status == WEBKIT_LOAD_FINISHED)
{
webKitCtrl->m_busy = false;
- wxWebNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_LOADED,
- webKitCtrl->GetId(),
- url, target, false);
+ wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_LOADED,
+ webKitCtrl->GetId(),
+ url, target, false);
if (webKitCtrl && webKitCtrl->GetEventHandler())
- webKitCtrl->GetEventHandler()->ProcessEvent(thisEvent);
+ webKitCtrl->GetEventHandler()->ProcessEvent(event);
}
else if (status == WEBKIT_LOAD_COMMITTED)
{
webKitCtrl->m_busy = true;
- wxWebNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_NAVIGATED,
- webKitCtrl->GetId(),
- url, target, false);
+ wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_NAVIGATED,
+ webKitCtrl->GetId(),
+ url, target, false);
if (webKitCtrl && webKitCtrl->GetEventHandler())
- webKitCtrl->GetEventHandler()->ProcessEvent(thisEvent);
+ webKitCtrl->GetEventHandler()->ProcessEvent(event);
}
}
const gchar* uri = webkit_network_request_get_uri(request);
wxString target = webkit_web_frame_get_name (frame);
- wxWebNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_NAVIGATING,
- webKitCtrl->GetId(),
- wxString( uri, wxConvUTF8 ),
- target,
- true);
+ wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_NAVIGATING,
+ webKitCtrl->GetId(),
+ wxString( uri, wxConvUTF8 ),
+ target,
+ true);
if (webKitCtrl && webKitCtrl->GetEventHandler())
- webKitCtrl->GetEventHandler()->ProcessEvent(thisEvent);
+ webKitCtrl->GetEventHandler()->ProcessEvent(event);
- if (thisEvent.IsVetoed())
+ if (event.IsVetoed())
{
webKitCtrl->m_busy = false;
webkit_web_policy_decision_ignore(policy_decision);
wxWebViewWebKit* webKitWindow)
{
webKitWindow->m_busy = false;
- wxWebNavigationError type = wxWEB_NAV_ERR_OTHER;
+ wxWebViewNavigationError type = wxWEB_NAV_ERR_OTHER;
GError* error = (GError*)web_error;
wxString description(error->message, wxConvUTF8);
}
*/
- wxWebNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_ERROR,
- webKitWindow->GetId(),
- uri,
- wxEmptyString,
- false);
- thisEvent.SetString(description);
- thisEvent.SetInt(type);
+ wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_ERROR,
+ webKitWindow->GetId(),
+ uri, "", false);
+ event.SetString(description);
+ event.SetInt(type);
if (webKitWindow && webKitWindow->GetEventHandler())
{
- webKitWindow->GetEventHandler()->ProcessEvent(thisEvent);
+ webKitWindow->GetEventHandler()->ProcessEvent(event);
}
return FALSE;
const gchar* uri = webkit_network_request_get_uri(request);
wxString target = webkit_web_frame_get_name (frame);
- wxWebNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_NEWWINDOW,
- webKitCtrl->GetId(),
- wxString( uri, wxConvUTF8 ),
- target,
- true);
+ wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_NEWWINDOW,
+ webKitCtrl->GetId(),
+ wxString( uri, wxConvUTF8 ),
+ target,
+ true);
if (webKitCtrl && webKitCtrl->GetEventHandler())
- webKitCtrl->GetEventHandler()->ProcessEvent(thisEvent);
+ webKitCtrl->GetEventHandler()->ProcessEvent(event);
//We always want the user to handle this themselves
webkit_web_policy_decision_ignore(policy_decision);
gchar *title,
wxWebViewWebKit *webKitCtrl)
{
- wxWebNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED,
- webKitCtrl->GetId(),
- webKitCtrl->GetCurrentURL(),
- "",
- true);
- thisEvent.SetString(wxString(title, wxConvUTF8));
+ wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED,
+ webKitCtrl->GetId(),
+ webKitCtrl->GetCurrentURL(),
+ "", true);
+ event.SetString(wxString(title, wxConvUTF8));
if (webKitCtrl && webKitCtrl->GetEventHandler())
- webKitCtrl->GetEventHandler()->ProcessEvent(thisEvent);
+ webKitCtrl->GetEventHandler()->ProcessEvent(event);
}
//We send the events when we are done to mimic webkit
//Navigated event
- wxWebNavigationEvent event(wxEVT_COMMAND_WEB_VIEW_NAVIGATED,
- GetId(), baseUrl, "", false);
+ wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_NAVIGATED,
+ GetId(), baseUrl, "", false);
event.SetEventObject(this);
HandleWindowEvent(event);
wxString url = evt[1].GetString();
wxString target = evt[3].GetString();
- wxWebNavigationEvent event(wxEVT_COMMAND_WEB_VIEW_NAVIGATING,
- GetId(), url, target, true);
+ wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_NAVIGATING,
+ GetId(), url, target, true);
event.SetEventObject(this);
HandleWindowEvent(event);
wxString url = evt[1].GetString();
// TODO: set target parameter if possible
wxString target = wxEmptyString;
- wxWebNavigationEvent event(wxEVT_COMMAND_WEB_VIEW_NAVIGATED,
- GetId(), url, target, false);
+ wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_NAVIGATED,
+ GetId(), url, target, false);
event.SetEventObject(this);
HandleWindowEvent(event);
break;
m_historyLoadingFromList = false;
// TODO: set target parameter if possible
wxString target = wxEmptyString;
- wxWebNavigationEvent event(wxEVT_COMMAND_WEB_VIEW_LOADED, GetId(),
- url, target, false);
+ wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_LOADED, GetId(),
+ url, target, false);
event.SetEventObject(this);
HandleWindowEvent(event);
break;
{
wxString title = evt[0].GetString();
- wxWebNavigationEvent event(wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED,
- GetId(), GetCurrentURL(), wxEmptyString, true);
+ wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED,
+ GetId(), GetCurrentURL(), wxEmptyString, true);
event.SetString(title);
event.SetEventObject(this);
HandleWindowEvent(event);
case DISPID_NAVIGATEERROR:
{
- wxWebNavigationError errorType = wxWEB_NAV_ERR_OTHER;
+ wxWebViewNavigationError errorType = wxWEB_NAV_ERR_OTHER;
wxString errorCode = "?";
switch (evt[3].GetLong())
{
wxString url = evt[1].GetString();
wxString target = evt[2].GetString();
- wxWebNavigationEvent event(wxEVT_COMMAND_WEB_VIEW_ERROR, GetId(),
- url, target, false);
+ wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_ERROR, GetId(),
+ url, target, false);
event.SetEventObject(this);
event.SetInt(errorType);
event.SetString(errorCode);
{
wxString url = evt[4].GetString();
- wxWebNavigationEvent event(wxEVT_COMMAND_WEB_VIEW_NEWWINDOW,
- GetId(), url, wxEmptyString, true);
+ wxWebViewEvent event(wxEVT_COMMAND_WEB_VIEW_NEWWINDOW,
+ GetId(), url, wxEmptyString, true);
event.SetEventObject(this);
HandleWindowEvent(event);
if (webKitWindow && frame == [sender mainFrame]){
NSString *url = [[[[frame dataSource] request] URL] absoluteString];
wxString target = wxStringWithNSString([frame name]);
- wxWebNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_NAVIGATED,
- webKitWindow->GetId(),
- wxStringWithNSString( url ),
- target, false);
+ wxWebViewNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_NAVIGATED,
+ webKitWindow->GetId(),
+ wxStringWithNSString( url ),
+ target, false);
if (webKitWindow && webKitWindow->GetEventHandler())
webKitWindow->GetEventHandler()->ProcessEvent(thisEvent);
NSString *url = [[[[frame dataSource] request] URL] absoluteString];
wxString target = wxStringWithNSString([frame name]);
- wxWebNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_LOADED,
- webKitWindow->GetId(),
- wxStringWithNSString( url ),
- target, false);
+ wxWebViewNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_LOADED,
+ webKitWindow->GetId(),
+ wxStringWithNSString( url ),
+ target, false);
if (webKitWindow && webKitWindow->GetEventHandler())
webKitWindow->GetEventHandler()->ProcessEvent(thisEvent);
}
}
-wxString nsErrorToWxHtmlError(NSError* error, wxWebNavigationError* out)
+wxString nsErrorToWxHtmlError(NSError* error, wxWebViewNavigationError* out)
{
*out = wxWEB_NAV_ERR_OTHER;
if (webKitWindow && frame == [sender mainFrame]){
NSString *url = [[[[frame dataSource] request] URL] absoluteString];
- wxWebNavigationError type;
+ wxWebViewNavigationError type;
wxString description = nsErrorToWxHtmlError(error, &type);
- wxWebNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_ERROR,
- webKitWindow->GetId(),
- wxStringWithNSString( url ),
- wxEmptyString, false);
+ wxWebViewNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_ERROR,
+ webKitWindow->GetId(),
+ wxStringWithNSString( url ),
+ wxEmptyString, false);
thisEvent.SetString(description);
thisEvent.SetInt(type);
NSString *url = [[[[frame provisionalDataSource] request] URL]
absoluteString];
- wxWebNavigationError type;
+ wxWebViewNavigationError type;
wxString description = nsErrorToWxHtmlError(error, &type);
- wxWebNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_ERROR,
- webKitWindow->GetId(),
- wxStringWithNSString( url ),
- wxEmptyString, false);
+ wxWebViewNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_ERROR,
+ webKitWindow->GetId(),
+ wxStringWithNSString( url ),
+ wxEmptyString, false);
thisEvent.SetString(description);
thisEvent.SetInt(type);
forFrame:(WebFrame *)frame
{
wxString target = wxStringWithNSString([frame name]);
- wxWebNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED,
- webKitWindow->GetId(),
- webKitWindow->GetCurrentURL(),
- target, true);
+ wxWebViewNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED,
+ webKitWindow->GetId(),
+ webKitWindow->GetCurrentURL(),
+ target, true);
thisEvent.SetString(wxStringWithNSString(title));
webKitWindow->m_busy = true;
NSString *url = [[request URL] absoluteString];
wxString target = wxStringWithNSString([frame name]);
- wxWebNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_NAVIGATING,
- webKitWindow->GetId(),
- wxStringWithNSString( url ), target, true);
+ wxWebViewNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_NAVIGATING,
+ webKitWindow->GetId(),
+ wxStringWithNSString( url ), target, true);
if (webKitWindow && webKitWindow->GetEventHandler())
webKitWindow->GetEventHandler()->ProcessEvent(thisEvent);
wxUnusedVar(actionInformation);
NSString *url = [[request URL] absoluteString];
- wxWebNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_NEWWINDOW,
- webKitWindow->GetId(),
- wxStringWithNSString( url ), "", true);
+ wxWebViewNavigationEvent thisEvent(wxEVT_COMMAND_WEB_VIEW_NEWWINDOW,
+ webKitWindow->GetId(),
+ wxStringWithNSString( url ), "", true);
if (webKitWindow && webKitWindow->GetEventHandler())
webKitWindow->GetEventHandler()->ProcessEvent(thisEvent);