Skip to content

Commit 07f78a4

Browse files
committed
BrowserSubProcess - Fix namespace conflict
CefSharp.Core/Cef.h CefSharp.BrowserSubprocess.Core/Cef.h were both in the CefSharp namespace. TODO: The BrowserSubProcess class namespaces need some cleanup
1 parent 0a8e7d2 commit 07f78a4

File tree

1 file changed

+18
-15
lines changed
  • CefSharp.BrowserSubprocess.Core

1 file changed

+18
-15
lines changed

CefSharp.BrowserSubprocess.Core/Cef.h

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -9,23 +9,26 @@
99

1010
namespace CefSharp
1111
{
12-
/// <summary>
13-
/// Global CEF methods are exposed through this class. e.g. CefRegisterExtension maps to Cef.RegisterExtension
14-
/// Only methods relevant to the Render Process are included in this class.
15-
/// CEF API Doc https://magpcss.org/ceforum/apidocs3/projects/(default)/(_globals).html
16-
/// This class cannot be inherited.
17-
/// </summary>
18-
public ref class Cef sealed
12+
namespace BrowserSubprocess
1913
{
20-
public:
2114
/// <summary>
22-
/// Register a new V8 extension with the specified JavaScript extension code.
15+
/// Global CEF methods are exposed through this class. e.g. CefRegisterExtension maps to Cef.RegisterExtension
16+
/// Only methods relevant to the Render Process are included in this class.
17+
/// CEF API Doc https://magpcss.org/ceforum/apidocs3/projects/(default)/(_globals).html
18+
/// This class cannot be inherited.
2319
/// </summary>
24-
/// <param name="name">name</param>
25-
/// <param name="javascriptCode">JavaScript code</param>
26-
static void RegisterExtension(String^ name, String^ javascriptCode)
20+
public ref class Cef sealed
2721
{
28-
CefRegisterExtension(StringUtils::ToNative(name), StringUtils::ToNative(javascriptCode), nullptr);
29-
}
30-
};
22+
public:
23+
/// <summary>
24+
/// Register a new V8 extension with the specified JavaScript extension code.
25+
/// </summary>
26+
/// <param name="name">name</param>
27+
/// <param name="javascriptCode">JavaScript code</param>
28+
static void RegisterExtension(String^ name, String^ javascriptCode)
29+
{
30+
CefRegisterExtension(StringUtils::ToNative(name), StringUtils::ToNative(javascriptCode), nullptr);
31+
}
32+
};
33+
}
3134
}

0 commit comments

Comments
 (0)