/[RomCheater]/trunk/RomCheater.Core/IWebBrowserProvider.cs
ViewVC logotype

Diff of /trunk/RomCheater.Core/IWebBrowserProvider.cs

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

--- trunk/RomCheater.Core/IWebBrowserProvider.cs	2013/06/17 12:19:13	698
+++ trunk/RomCheater.Core/IWebBrowserProvider.cs	2013/06/17 12:40:47	699
@@ -26,29 +26,29 @@
 
     public class WebBrowserProvider : BaseWebBrowserProvider, IWebBrowserInterface
     {
-        public WebBrowserProvider() : this(new WebBrowser()) { }
-        public WebBrowserProvider(IWebBrowserInterface provider) { }
-        public WebBrowserProvider(WebBrowser provider)
+        public WebBrowserProvider() { }
+        //public WebBrowserProvider(IWebBrowserInterface provider) { }
+        public WebBrowserProvider(IWebBrowserInterface provider)
             : base(provider)
         {
         }
     }
 
-    public class BaseWebBrowserProvider : IWebBrowserInterface, IWebBrowserProvider
+    public abstract class BaseWebBrowserProvider : IWebBrowserInterface, IWebBrowserProvider
     {
-        
-        public BaseWebBrowserProvider() : this(new WebBrowser()) { }
-        protected BaseWebBrowserProvider(WebBrowser provider)
+
+        public BaseWebBrowserProvider() { }
+        protected BaseWebBrowserProvider(IWebBrowserInterface provider)
         {
             this.Provider = provider;
         }
         #region IWebBrowserInterface Members
-        private WebBrowser _Provider;
-        public WebBrowser Provider { get { return _Provider; } protected set { _Provider = value; } }
+        private IWebBrowserInterface _Provider;
+        public IWebBrowserInterface Provider { get { return _Provider; } protected set { _Provider = value; } }
 
         #region Extensions to WebBrowser provider
         public void Navigate(string urlString) { NavigateInternal(urlString); }
-        public void Navigate(Uri url) { NavigateInternal(url.ToString()); }
+        public void Navigate(Uri url) { NavigateInternal(url.ToString()); }  
 
         private void NavigateInternal(string url)
         {

 

  ViewVC Help
Powered by ViewVC 1.1.22