diff --git a/CefSharp.Example/CefSharp.Example.csproj b/CefSharp.Example/CefSharp.Example.csproj
index a8fd2953d..2d5e888bb 100644
--- a/CefSharp.Example/CefSharp.Example.csproj
+++ b/CefSharp.Example/CefSharp.Example.csproj
@@ -70,9 +70,9 @@
-
-
-
+
+
+
@@ -83,8 +83,8 @@
-
-
+
+
@@ -105,19 +105,19 @@
-
-
+
+
-
+
-
-
-
-
+
+
+
+
-
+
diff --git a/CefSharp.Example/DownloadHandler.cs b/CefSharp.Example/Handlers/DownloadHandler.cs
similarity index 96%
rename from CefSharp.Example/DownloadHandler.cs
rename to CefSharp.Example/Handlers/DownloadHandler.cs
index 434c89875..feb476ddb 100644
--- a/CefSharp.Example/DownloadHandler.cs
+++ b/CefSharp.Example/Handlers/DownloadHandler.cs
@@ -4,7 +4,7 @@
using System;
-namespace CefSharp.Example
+namespace CefSharp.Example.Handlers
{
public class DownloadHandler : IDownloadHandler
{
diff --git a/CefSharp.Example/JsDialogHandler.cs b/CefSharp.Example/Handlers/JsDialogHandler.cs
similarity index 97%
rename from CefSharp.Example/JsDialogHandler.cs
rename to CefSharp.Example/Handlers/JsDialogHandler.cs
index 6516956e6..0bf021f1f 100644
--- a/CefSharp.Example/JsDialogHandler.cs
+++ b/CefSharp.Example/Handlers/JsDialogHandler.cs
@@ -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
{
diff --git a/CefSharp.Example/RenderProcessMessageHandler.cs b/CefSharp.Example/Handlers/RenderProcessMessageHandler.cs
similarity index 90%
rename from CefSharp.Example/RenderProcessMessageHandler.cs
rename to CefSharp.Example/Handlers/RenderProcessMessageHandler.cs
index ad812511a..67c404276 100644
--- a/CefSharp.Example/RenderProcessMessageHandler.cs
+++ b/CefSharp.Example/Handlers/RenderProcessMessageHandler.cs
@@ -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);
}
diff --git a/CefSharp.Example/TempFileDialogHandler.cs b/CefSharp.Example/Handlers/TempFileDialogHandler.cs
similarity index 95%
rename from CefSharp.Example/TempFileDialogHandler.cs
rename to CefSharp.Example/Handlers/TempFileDialogHandler.cs
index a199370c9..476acc956 100644
--- a/CefSharp.Example/TempFileDialogHandler.cs
+++ b/CefSharp.Example/Handlers/TempFileDialogHandler.cs
@@ -5,7 +5,7 @@
using System.Collections.Generic;
using System.IO;
-namespace CefSharp.Example
+namespace CefSharp.Example.Handlers
{
public class TempFileDialogHandler : IDialogHandler
{
diff --git a/CefSharp.Example/AsyncBoundObject.cs b/CefSharp.Example/JavascriptBinding/AsyncBoundObject.cs
similarity index 98%
rename from CefSharp.Example/AsyncBoundObject.cs
rename to CefSharp.Example/JavascriptBinding/AsyncBoundObject.cs
index cb14c58a4..3b635b1a3 100644
--- a/CefSharp.Example/AsyncBoundObject.cs
+++ b/CefSharp.Example/JavascriptBinding/AsyncBoundObject.cs
@@ -9,7 +9,7 @@ using System.Diagnostics;
using System.Text;
using System.Threading;
-namespace CefSharp.Example
+namespace CefSharp.Example.JavascriptBinding
{
public class AsyncBoundObject
{
diff --git a/CefSharp.Example/BoundObject.cs b/CefSharp.Example/JavascriptBinding/BoundObject.cs
similarity index 99%
rename from CefSharp.Example/BoundObject.cs
rename to CefSharp.Example/JavascriptBinding/BoundObject.cs
index 9e52e5b44..562e16a70 100644
--- a/CefSharp.Example/BoundObject.cs
+++ b/CefSharp.Example/JavascriptBinding/BoundObject.cs
@@ -6,7 +6,7 @@ using System;
using System.Linq;
using System.Threading.Tasks;
-namespace CefSharp.Example
+namespace CefSharp.Example.JavascriptBinding
{
public class BoundObject
{
diff --git a/CefSharp.Example/CallbackResponseStruct.cs b/CefSharp.Example/JavascriptBinding/CallbackResponseStruct.cs
similarity index 89%
rename from CefSharp.Example/CallbackResponseStruct.cs
rename to CefSharp.Example/JavascriptBinding/CallbackResponseStruct.cs
index b7fa6da11..b93021c8b 100644
--- a/CefSharp.Example/CallbackResponseStruct.cs
+++ b/CefSharp.Example/JavascriptBinding/CallbackResponseStruct.cs
@@ -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
{
diff --git a/CefSharp.Example/ExceptionTestBoundObject.cs b/CefSharp.Example/JavascriptBinding/ExceptionTestBoundObject.cs
similarity index 97%
rename from CefSharp.Example/ExceptionTestBoundObject.cs
rename to CefSharp.Example/JavascriptBinding/ExceptionTestBoundObject.cs
index 0558ddf4f..61e41600e 100644
--- a/CefSharp.Example/ExceptionTestBoundObject.cs
+++ b/CefSharp.Example/JavascriptBinding/ExceptionTestBoundObject.cs
@@ -6,7 +6,7 @@ using System;
using System.Diagnostics;
using System.Threading.Tasks;
-namespace CefSharp.Example
+namespace CefSharp.Example.JavascriptBinding
{
public class ExceptionTestBoundObject
{
diff --git a/CefSharp.Example/JsSerializableClass.cs b/CefSharp.Example/JavascriptBinding/JsSerializableClass.cs
similarity index 84%
rename from CefSharp.Example/JsSerializableClass.cs
rename to CefSharp.Example/JavascriptBinding/JsSerializableClass.cs
index 7ab15fd12..40365cbde 100644
--- a/CefSharp.Example/JsSerializableClass.cs
+++ b/CefSharp.Example/JavascriptBinding/JsSerializableClass.cs
@@ -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; }
}
-}
\ No newline at end of file
+}
diff --git a/CefSharp.Example/JsSerializableStruct.cs b/CefSharp.Example/JavascriptBinding/JsSerializableStruct.cs
similarity index 84%
rename from CefSharp.Example/JsSerializableStruct.cs
rename to CefSharp.Example/JavascriptBinding/JsSerializableStruct.cs
index 2d8e9ec9f..693dd6d3f 100644
--- a/CefSharp.Example/JsSerializableStruct.cs
+++ b/CefSharp.Example/JavascriptBinding/JsSerializableStruct.cs
@@ -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;
}
-}
\ No newline at end of file
+}
diff --git a/CefSharp.Example/SimpleClass.cs b/CefSharp.Example/JavascriptBinding/SimpleClass.cs
similarity index 90%
rename from CefSharp.Example/SimpleClass.cs
rename to CefSharp.Example/JavascriptBinding/SimpleClass.cs
index 4afd494e0..a307bdc50 100644
--- a/CefSharp.Example/SimpleClass.cs
+++ b/CefSharp.Example/JavascriptBinding/SimpleClass.cs
@@ -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
{
diff --git a/CefSharp.Example/SimpleSubClass.cs b/CefSharp.Example/JavascriptBinding/SimpleSubClass.cs
similarity index 87%
rename from CefSharp.Example/SimpleSubClass.cs
rename to CefSharp.Example/JavascriptBinding/SimpleSubClass.cs
index 2caae913f..9422bea52 100644
--- a/CefSharp.Example/SimpleSubClass.cs
+++ b/CefSharp.Example/JavascriptBinding/SimpleSubClass.cs
@@ -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
{
diff --git a/CefSharp.Example/SubBoundObject.cs b/CefSharp.Example/JavascriptBinding/SubBoundObject.cs
similarity index 92%
rename from CefSharp.Example/SubBoundObject.cs
rename to CefSharp.Example/JavascriptBinding/SubBoundObject.cs
index 710d8ced4..27dc2a0bd 100644
--- a/CefSharp.Example/SubBoundObject.cs
+++ b/CefSharp.Example/JavascriptBinding/SubBoundObject.cs
@@ -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
{
diff --git a/CefSharp.WinForms.Example/BrowserTabUserControl.cs b/CefSharp.WinForms.Example/BrowserTabUserControl.cs
index 35fc74c00..6328fa90a 100644
--- a/CefSharp.WinForms.Example/BrowserTabUserControl.cs
+++ b/CefSharp.WinForms.Example/BrowserTabUserControl.cs
@@ -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;
diff --git a/CefSharp.WinForms.Example/Minimal/SimpleBrowserForm.cs b/CefSharp.WinForms.Example/Minimal/SimpleBrowserForm.cs
index 907352bad..876075c19 100644
--- a/CefSharp.WinForms.Example/Minimal/SimpleBrowserForm.cs
+++ b/CefSharp.WinForms.Example/Minimal/SimpleBrowserForm.cs
@@ -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
diff --git a/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs b/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs
index bc53211da..484c01c76 100644
--- a/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs
+++ b/CefSharp.Wpf.Example/Views/BrowserTabView.xaml.cs
@@ -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;