mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
CefSharp.Example - Move example classes into handlers/javascriptbinding folders/namespaces
Basic code cleanup
This commit is contained in:
@@ -70,9 +70,9 @@
|
||||
<Reference Include="System.Xml" />
|
||||
</ItemGroup>
|
||||
<ItemGroup>
|
||||
<Compile Include="AsyncBoundObject.cs" />
|
||||
<Compile Include="BoundObject.cs" />
|
||||
<Compile Include="CallbackResponseStruct.cs" />
|
||||
<Compile Include="JavascriptBinding\AsyncBoundObject.cs" />
|
||||
<Compile Include="JavascriptBinding\BoundObject.cs" />
|
||||
<Compile Include="JavascriptBinding\CallbackResponseStruct.cs" />
|
||||
<Compile Include="Filters\AppendResponseFilter.cs" />
|
||||
<Compile Include="Filters\FindReplaceMultiResponseFilter.cs" />
|
||||
<Compile Include="Filters\FindReplaceResponseFilter.cs" />
|
||||
@@ -83,8 +83,8 @@
|
||||
<Compile Include="Filters\PassThruResponseFilter.cs" />
|
||||
<Compile Include="Handlers\BrowserProcessHandler.cs" />
|
||||
<Compile Include="InMemorySchemeAndResourceHandlerFactory.cs" />
|
||||
<Compile Include="JsSerializableClass.cs" />
|
||||
<Compile Include="JsSerializableStruct.cs" />
|
||||
<Compile Include="JavascriptBinding\JsSerializableClass.cs" />
|
||||
<Compile Include="JavascriptBinding\JsSerializableStruct.cs" />
|
||||
<Compile Include="ModelBinding\MethodInterceptorLogger.cs" />
|
||||
<Compile Include="RequestEventHandler\EventArgs\BaseRequestEventArgs.cs" />
|
||||
<Compile Include="RequestEventHandler\EventArgs\CanSetCookieEventArg.cs" />
|
||||
@@ -105,19 +105,19 @@
|
||||
<Compile Include="RequestEventHandler\EventArgs\OnResourceResponseEventArgs.cs" />
|
||||
<Compile Include="RequestEventHandler\RequestEventHandler.cs" />
|
||||
<Compile Include="ScriptedMethodsBoundObject.cs" />
|
||||
<Compile Include="ExceptionTestBoundObject.cs" />
|
||||
<Compile Include="JsDialogHandler.cs" />
|
||||
<Compile Include="JavascriptBinding\ExceptionTestBoundObject.cs" />
|
||||
<Compile Include="Handlers\JsDialogHandler.cs" />
|
||||
<Compile Include="Proxy\InternetOpenType.cs" />
|
||||
<Compile Include="Proxy\InternetProxyInfo.cs" />
|
||||
<Compile Include="Proxy\ProxyConfig.cs" />
|
||||
<Compile Include="RenderProcessMessageHandler.cs" />
|
||||
<Compile Include="Handlers\RenderProcessMessageHandler.cs" />
|
||||
<Compile Include="ScriptedMethods.cs" />
|
||||
<Compile Include="SimpleClass.cs" />
|
||||
<Compile Include="SimpleSubClass.cs" />
|
||||
<Compile Include="SubBoundObject.cs" />
|
||||
<Compile Include="TempFileDialogHandler.cs" />
|
||||
<Compile Include="JavascriptBinding\SimpleClass.cs" />
|
||||
<Compile Include="JavascriptBinding\SimpleSubClass.cs" />
|
||||
<Compile Include="JavascriptBinding\SubBoundObject.cs" />
|
||||
<Compile Include="Handlers\TempFileDialogHandler.cs" />
|
||||
<Compile Include="CefExample.cs" />
|
||||
<Compile Include="DownloadHandler.cs" />
|
||||
<Compile Include="Handlers\DownloadHandler.cs" />
|
||||
<Compile Include="Handlers\RequestHandler.cs" />
|
||||
<Compile Include="Properties\AssemblyInfo.cs" />
|
||||
<Compile Include="Properties\Resources.Designer.cs">
|
||||
|
||||
@@ -4,7 +4,7 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace CefSharp.Example
|
||||
namespace CefSharp.Example.Handlers
|
||||
{
|
||||
public class DownloadHandler : IDownloadHandler
|
||||
{
|
||||
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
namespace CefSharp.Example
|
||||
namespace CefSharp.Example.Handlers
|
||||
{
|
||||
public class JsDialogHandler : IJsDialogHandler
|
||||
{
|
||||
+2
-2
@@ -4,7 +4,7 @@
|
||||
|
||||
using System;
|
||||
|
||||
namespace CefSharp.Example
|
||||
namespace CefSharp.Example.Handlers
|
||||
{
|
||||
public class RenderProcessMessageHandler : IRenderProcessMessageHandler
|
||||
{
|
||||
@@ -20,7 +20,7 @@ namespace CefSharp.Example
|
||||
// called for every created V8Context, check IFrame.IsMain to determine that V8Context is from Main frame
|
||||
if (frame.IsMain)
|
||||
{
|
||||
const string script = "document.addEventListener('DOMContentLoaded', function(){ alert('DomLoaded'); });";
|
||||
//const string script = "document.addEventListener('DOMContentLoaded', function(){ alert('DomLoaded'); });";
|
||||
|
||||
//frame.ExecuteJavaScriptAsync(script);
|
||||
}
|
||||
+1
-1
@@ -5,7 +5,7 @@
|
||||
using System.Collections.Generic;
|
||||
using System.IO;
|
||||
|
||||
namespace CefSharp.Example
|
||||
namespace CefSharp.Example.Handlers
|
||||
{
|
||||
public class TempFileDialogHandler : IDialogHandler
|
||||
{
|
||||
+1
-1
@@ -9,7 +9,7 @@ using System.Diagnostics;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
|
||||
namespace CefSharp.Example
|
||||
namespace CefSharp.Example.JavascriptBinding
|
||||
{
|
||||
public class AsyncBoundObject
|
||||
{
|
||||
@@ -6,7 +6,7 @@ using System;
|
||||
using System.Linq;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CefSharp.Example
|
||||
namespace CefSharp.Example.JavascriptBinding
|
||||
{
|
||||
public class BoundObject
|
||||
{
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
namespace CefSharp.Example
|
||||
namespace CefSharp.Example.JavascriptBinding
|
||||
{
|
||||
public struct CallbackResponseStruct
|
||||
{
|
||||
+1
-1
@@ -6,7 +6,7 @@ using System;
|
||||
using System.Diagnostics;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace CefSharp.Example
|
||||
namespace CefSharp.Example.JavascriptBinding
|
||||
{
|
||||
public class ExceptionTestBoundObject
|
||||
{
|
||||
+2
-2
@@ -2,10 +2,10 @@
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
namespace CefSharp.Example
|
||||
namespace CefSharp.Example.JavascriptBinding
|
||||
{
|
||||
public class JsSerializableClass
|
||||
{
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
||||
}
|
||||
+2
-2
@@ -2,10 +2,10 @@
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
namespace CefSharp.Example
|
||||
namespace CefSharp.Example.JavascriptBinding
|
||||
{
|
||||
public struct JsSerializableStruct
|
||||
{
|
||||
public string Value;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -3,7 +3,8 @@
|
||||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
using System.Collections.Generic;
|
||||
namespace CefSharp.Example
|
||||
|
||||
namespace CefSharp.Example.JavascriptBinding
|
||||
{
|
||||
public class SimpleClass
|
||||
{
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
namespace CefSharp.Example
|
||||
namespace CefSharp.Example.JavascriptBinding
|
||||
{
|
||||
public class SimpleSubClass
|
||||
{
|
||||
+1
-1
@@ -2,7 +2,7 @@
|
||||
//
|
||||
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
|
||||
|
||||
namespace CefSharp.Example
|
||||
namespace CefSharp.Example.JavascriptBinding
|
||||
{
|
||||
public class SubBoundObject
|
||||
{
|
||||
@@ -10,6 +10,8 @@ using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using System.Windows.Forms;
|
||||
using CefSharp.Example;
|
||||
using CefSharp.Example.Handlers;
|
||||
using CefSharp.Example.JavascriptBinding;
|
||||
using CefSharp.WinForms.Example.Handlers;
|
||||
using CefSharp.WinForms.Internals;
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
using System;
|
||||
using System.Windows.Forms;
|
||||
using CefSharp.Example;
|
||||
using CefSharp.Example.JavascriptBinding;
|
||||
using CefSharp.WinForms.Internals;
|
||||
|
||||
namespace CefSharp.WinForms.Example.Minimal
|
||||
|
||||
@@ -10,6 +10,7 @@ using System.Windows.Controls;
|
||||
using System.Windows.Input;
|
||||
using CefSharp.Example;
|
||||
using CefSharp.Example.Handlers;
|
||||
using CefSharp.Example.JavascriptBinding;
|
||||
using CefSharp.Example.ModelBinding;
|
||||
using CefSharp.Wpf.Example.Handlers;
|
||||
using CefSharp.Wpf.Example.ViewModels;
|
||||
|
||||
Reference in New Issue
Block a user