Skip to content

Commit d578254

Browse files
committed
Inline Initialize method and remove ManagedCefBrowserAdapter.cpp - only had a single method with the other 99% of code in the .h file
1 parent 6b542ba commit d578254

File tree

4 files changed

+1
-25
lines changed

4 files changed

+1
-25
lines changed

CefSharp.Core/CefSharp.Core.vcxproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,6 @@
224224
<ClCompile Include="Internals\DownloadAdapter.cpp" />
225225
<ClCompile Include="Internals\RequestResponse.cpp" />
226226
<ClCompile Include="Internals\StringVisitor.cpp" />
227-
<ClCompile Include="ManagedCefBrowserAdapter.cpp" />
228227
<ClCompile Include="SchemeHandlerResponse.cpp" />
229228
<ClCompile Include="SchemeHandlerWrapper.cpp" />
230229
<ClCompile Include="Stdafx.cpp">

CefSharp.Core/CefSharp.Core.vcxproj.filters

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,9 +38,6 @@
3838
<ClCompile Include="SchemeHandlerResponse.cpp">
3939
<Filter>Source Files</Filter>
4040
</ClCompile>
41-
<ClCompile Include="ManagedCefBrowserAdapter.cpp">
42-
<Filter>Source Files</Filter>
43-
</ClCompile>
4441
<ClCompile Include="Internals\CefWebPluginInfoWrapper.cpp">
4542
<Filter>Source Files</Filter>
4643
</ClCompile>

CefSharp.Core/ManagedCefBrowserAdapter.cpp

Lines changed: 0 additions & 17 deletions
This file was deleted.

CefSharp.Core/ManagedCefBrowserAdapter.h

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ namespace CefSharp
2525
IWebBrowserInternal^ _webBrowserInternal;
2626
String^ _address;
2727
JavascriptObjectRepository^ _javaScriptObjectRepository;
28-
29-
void Initialize();
3028

3129
protected:
3230
virtual void DoDispose(bool isDisposing) override
@@ -69,8 +67,7 @@ namespace CefSharp
6967
{
7068
_renderClientAdapter = new RenderClientAdapter(webBrowserInternal, gcnew Action<int>(this, &ManagedCefBrowserAdapter::OnAfterBrowserCreated));
7169
_webBrowserInternal = webBrowserInternal;
72-
73-
Initialize();
70+
_javaScriptObjectRepository = gcnew JavascriptObjectRepository();
7471
}
7572

7673
void CreateOffscreenBrowser(BrowserSettings^ browserSettings)

0 commit comments

Comments
 (0)