/[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/19 20:38:28	737
+++ trunk/RomCheater.Core/IWebBrowserProvider.cs	2013/06/19 21:02:55	738
@@ -17,41 +17,38 @@
         void Navigate(Uri url);
     }
 
-    public class EmptyWebBrowserProvider : BaseWebBrowserProvider, IWebBrowserInterface
+    internal class EmptyWebBrowserProvider : IWebBrowserInterface, IWebBrowserProvider
     {
-        private WebBrowserProvider BackingProvider = new WebBrowserProvider();
-        public EmptyWebBrowserProvider()
-            : base()
-        {
-            this.BackingProvider = new WebBrowserProvider(this);           
-        }
-        public IWebBrowserInterface Provider
-        {
-            get { return this.BackingProvider; }
-        }
+        private WebBrowserProvider BackingProvider;
+        public EmptyWebBrowserProvider() : base() { this.BackingProvider = new WebBrowserProvider(this); }
+        //public IWebBrowserInterface Provider
+        //{
+        //    get { return this.BackingProvider; }
+        //}
 
         #region IWebBrowserInterface Members
-        public void Navigate(string urlString)
-        {
-            ////this.Provider.Navigate(urlString);
-            //this.webBrowser.Navigate(urlString);
-            System.Diagnostics.Process.Start(urlString);
-        }
+
+        public void Navigate(string urlString) { System.Diagnostics.Process.Start(urlString); }
         public void Navigate(Uri url) { Navigate(url.ToString()); }
         #endregion
+
+        public IWebBrowserInterface GetProvider()
+        {
+            return this.BackingProvider.GetProvider();
+        }
     }
 
     public class WebBrowserProvider : BaseWebBrowserProvider, IWebBrowserInterface
     {
-        public static IWebBrowserInterface DefaultProvider { get { return WebBrowserProvider.EmptyProvider; } }
-        public static IWebBrowserInterface EmptyProvider { get { return WebBrowserProvider.Empty; } }
-        public static IWebBrowserInterface Empty { get { return new EmptyWebBrowserProvider(); } }
-        public WebBrowserProvider() { }
-        //public WebBrowserProvider(IWebBrowserInterface provider) { }
-        public WebBrowserProvider(IWebBrowserInterface provider)
-            : base(provider)
-        {
-        }
+        public static IWebBrowserProvider DefaultProvider { get { return WebBrowserProvider.EmptyProvider; } }
+        public static IWebBrowserProvider EmptyProvider { get { return WebBrowserProvider.Empty; } }
+        public static IWebBrowserProvider Empty { get { return new EmptyWebBrowserProvider(); } }
+        protected WebBrowserProvider() : this(new EmptyWebBrowserProvider()) { }
+        public WebBrowserProvider(IWebBrowserInterface provider) : base(provider) { }
+        //#region IWebBrowserInterface Members
+        //public virtual void Navigate(string urlString) { base.Navigate(urlString); }
+        //public virtual void Navigate(Uri url) { base.Navigate(url); }
+        //#endregion
     }
 
     public abstract class BaseWebBrowserProvider : IWebBrowserInterface, IWebBrowserProvider

 

  ViewVC Help
Powered by ViewVC 1.1.22