Add arg default values for the Create method

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-11-17 01:25:56 +00:00
parent a0ff361188
commit cce10ca06b
2 changed files with 20 additions and 12 deletions

View File

@@ -91,11 +91,11 @@ public:
virtual bool Create(wxWindow* parent, virtual bool Create(wxWindow* parent,
wxWindowID id, wxWindowID id,
const wxString& url, const wxString& url = wxWebViewDefaultURLStr,
const wxPoint& pos, const wxPoint& pos = wxDefaultPosition,
const wxSize& size, const wxSize& size = wxDefaultSize,
long style, long style = 0,
const wxString& name) = 0; const wxString& name = wxWebViewNameStr) = 0;
static wxWebView* New(wxWebViewBackend backend = wxWEB_VIEW_BACKEND_DEFAULT); static wxWebView* New(wxWebViewBackend backend = wxWEB_VIEW_BACKEND_DEFAULT);
static wxWebView* New(wxWindow* parent, static wxWebView* New(wxWindow* parent,

View File

@@ -146,7 +146,7 @@ public:
/** /**
@return The name of the scheme, as passed to the constructor. @return The name of the scheme, as passed to the constructor.
*/ */
virtual wxString GetName() const = 0; virtual wxString GetName() const;
}; };
/** /**
@@ -257,11 +257,11 @@ public:
*/ */
virtual bool Create(wxWindow* parent, virtual bool Create(wxWindow* parent,
wxWindowID id, wxWindowID id,
const wxString& url, const wxString& url = wxWebViewDefaultURLStr,
const wxPoint& pos, const wxPoint& pos = wxDefaultPosition,
const wxSize& size, const wxSize& size = wxDefaultSize,
long style, long style = 0,
const wxString& name) = 0; const wxString& name = wxWebViewNameStr) = 0;
/** /**
Factory function to create a new wxWebView for two-step creation Factory function to create a new wxWebView for two-step creation
@@ -649,3 +649,11 @@ public:
*/ */
const wxString& GetURL() const; const wxString& GetURL() const;
}; };
wxEventType wxEVT_COMMAND_WEB_VIEW_NAVIGATING;
wxEventType wxEVT_COMMAND_WEB_VIEW_NAVIGATED;
wxEventType wxEVT_COMMAND_WEB_VIEW_LOADED;
wxEventType wxEVT_COMMAND_WEB_VIEW_ERROR;
wxEventType wxEVT_COMMAND_WEB_VIEW_NEWWINDOW;
wxEventType wxEVT_COMMAND_WEB_VIEW_TITLE_CHANGED;