Skip to content

Commit fc96909

Browse files
committed
Move User32 from CefSharp to CefSharp.WinForms
1 parent 1eeb9d2 commit fc96909

File tree

4 files changed

+3
-3
lines changed

4 files changed

+3
-3
lines changed

CefSharp.WinForms/CefSharp.WinForms.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@
5252
</ItemGroup>
5353
<ItemGroup>
5454
<Compile Include="Internals\DefaultFocusHandler.cs" />
55+
<Compile Include="Internals\User32.cs" />
5556
<Compile Include="Properties\AssemblyInfo.cs" />
5657
<Compile Include="ChromiumWebBrowser.cs">
5758
<SubType>Component</SubType>

CefSharp.WinForms/ChromiumWebBrowser.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -366,7 +366,7 @@ public override bool Focused
366366
}
367367

368368
// Ask Windows which control has the focus and then check if it's one of our children
369-
IntPtr focus = User32.GetFocus();
369+
var focus = User32.GetFocus();
370370
return focus != IntPtr.Zero && User32.IsChild(Handle, focus);
371371
}
372372
}

CefSharp/Internals/User32.cs renamed to CefSharp.WinForms/Internals/User32.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
using System;
66
using System.Runtime.InteropServices;
77

8-
namespace CefSharp.Internals
8+
namespace CefSharp.WinForms.Internals
99
{
1010
public static class User32
1111
{

CefSharp/CefSharp.csproj

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@
9090
<ItemGroup>
9191
<Compile Include="CefFileDialogMode.cs" />
9292
<Compile Include="IFocusHandler.cs" />
93-
<Compile Include="Internals\User32.cs" />
9493
<Compile Include="IsBrowserInitializedChangedEventArgs.cs" />
9594
<Compile Include="CefTerminationStatus.cs" />
9695
<Compile Include="IDialogHandler.cs" />

0 commit comments

Comments
 (0)