Skip to content

Commit

Permalink
Cleanup winforms, gtksharp, ...
Browse files Browse the repository at this point in the history
  • Loading branch information
joaompneves committed Jul 7, 2021
1 parent b60174f commit d12bf46
Show file tree
Hide file tree
Showing 107 changed files with 65 additions and 6,600 deletions.
8 changes: 2 additions & 6 deletions CefGlue.Avalonia/Platform/AvaloniaControl.cs
Original file line number Diff line number Diff line change
Expand Up @@ -130,13 +130,9 @@ public void CloseContextMenu()
DispatcherPriority.Input);
}

public bool SetCursor(IntPtr cursorHandle)
public virtual bool SetCursor(IntPtr cursorHandle)
{
// TODO: review implementation jmn. check if browser can handle this.
var cursor = CursorsProvider.GetCursorFromHandle(cursorHandle);
Dispatcher.UIThread.Post(() => _control.Cursor = cursor);

return true;
return false;
}

public void InitializeRender(IntPtr browserHandle)
Expand Down
7 changes: 7 additions & 0 deletions CefGlue.Avalonia/Platform/AvaloniaOffScreenControlHost.cs
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,13 @@ public void UpdateDragCursor(CefDragOperationsMask allowedOps)
_currentDragCursor = new Cursor(cursorType);
}

public override bool SetCursor(IntPtr cursorHandle)
{
var cursor = CursorsProvider.GetCursorFromHandle(cursorHandle);
Dispatcher.UIThread.Post(() => _control.Cursor = cursor);
return true;
}

/// <summary>
/// Create an image that is used to render the browser frame and popups
/// </summary>
Expand Down
143 changes: 0 additions & 143 deletions CefGlue.Client/CefGlue.Client.csproj

This file was deleted.

15 changes: 0 additions & 15 deletions CefGlue.Client/DemoApp.cs

This file was deleted.

181 changes: 0 additions & 181 deletions CefGlue.Client/MainForm.Designer.cs

This file was deleted.

Loading

0 comments on commit d12bf46

Please sign in to comment.