]> git.saurik.com Git - wxWidgets.git/commitdiff
Add arg default values for the Create method
authorRobin Dunn <robin@alldunn.com>
Thu, 17 Nov 2011 01:25:56 +0000 (01:25 +0000)
committerRobin Dunn <robin@alldunn.com>
Thu, 17 Nov 2011 01:25:56 +0000 (01:25 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@69771 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

include/wx/webview.h
interface/wx/webview.h

index 662162dfec4fc46deb0e48f83675b13b0e667d79..26b4040adc5f283b2d8b8cd7cd80704d7c9ea8cd 100644 (file)
@@ -91,11 +91,11 @@ public:
 
     virtual bool Create(wxWindow* parent,
            wxWindowID id,
-           const wxString& url,
-           const wxPoint& pos,
-           const wxSize& size,
-           long style,
-           const wxString& name) = 0;
+           const wxString& url = wxWebViewDefaultURLStr,
+           const wxPoint& pos = wxDefaultPosition,
+           const wxSize& size = wxDefaultSize,
+           long style = 0,
+           const wxString& name = wxWebViewNameStr) = 0;
 
     static wxWebView* New(wxWebViewBackend backend = wxWEB_VIEW_BACKEND_DEFAULT);
     static wxWebView* New(wxWindow* parent,
index 94d3c68bb1147d920a9bf9ea14ffceda9097630e..c17bfe785ef30ddd523993227fabd6074f3d2ced 100644 (file)
@@ -146,7 +146,7 @@ public:
     /**
         @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,
                         wxWindowID id,
-                        const wxString& url,
-                        const wxPoint& pos,
-                        const wxSize& size,
-                        long style,
-                        const wxString& name) = 0;
+                        const wxString& url = wxWebViewDefaultURLStr,
+                        const wxPoint& pos = wxDefaultPosition,
+                        const wxSize& size = wxDefaultSize,
+                        long style = 0,
+                        const wxString& name = wxWebViewNameStr) = 0;
 
     /**
         Factory function to create a new wxWebView for two-step creation
@@ -648,4 +648,12 @@ public:
         Get the URL being visited
     */
     const wxString& GetURL() const;
-};
\ No newline at end of file
+};
+
+
+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;