Rename IComplete to ICompletionHandler to make naming more consistent

This commit is contained in:
amaitland
2014-06-16 11:56:06 +10:00
parent a6a1fcb812
commit 05d52cfd02
5 changed files with 12 additions and 13 deletions
+2 -1
View File
@@ -337,7 +337,7 @@ namespace CefSharp
/// <summary> Flush the backing store (if any) to disk and execute the specified |handler| on the IO thread when done. Returns </summary>
/// <param name="visitor">A user-provided Cookie Visitor implementation.</param>
/// <return>Returns false if cookies cannot be accessed.</return>
static bool FlushStore(IComplete^ handler)
static bool FlushStore(ICompletionHandler^ handler)
{
CefRefPtr<CompletionHandler> wrapper = new CompletionHandler(handler);
CefRefPtr<CefCookieManager> manager = CefCookieManager::GetGlobalManager();
@@ -352,6 +352,7 @@ namespace CefSharp
return false;
}
}
/// <summary>Shuts down CefSharp and the underlying CEF infrastructure. This method is safe to call multiple times; it will only
/// shut down CEF on the first call (all subsequent calls will be ignored).
/// </summary>
+2 -2
View File
@@ -12,10 +12,10 @@ namespace CefSharp
private class CompletionHandler : public CefCompletionHandler
{
private:
gcroot<IComplete^> _handler;
gcroot<ICompletionHandler^> _handler;
public:
CompletionHandler(IComplete^ handler)
CompletionHandler(ICompletionHandler^ handler)
{
_handler = handler;
}
+1 -1
View File
@@ -97,7 +97,7 @@
<Compile Include="KeyType.cs" />
<Compile Include="LoadErrorEventHandler.cs" />
<Compile Include="NavStateChangedEventArgs.cs" />
<Compile Include="IComplete.cs" />
<Compile Include="ICompletionHandler.cs" />
<Compile Include="Internals\BitmapInfo.cs" />
<Compile Include="Internals\ManagedCefApp.cs" />
<Compile Include="CefCustomScheme.cs" />
-9
View File
@@ -1,9 +0,0 @@
using System.Net;
namespace CefSharp
{
public interface IComplete
{
void OnComplete();
}
}
+7
View File
@@ -0,0 +1,7 @@
namespace CefSharp
{
public interface ICompletionHandler
{
void OnComplete();
}
}