Skip to content

Convert Rest of Ole to Cswin32 - #10651

Merged
lonitra merged 5 commits into
dotnet:mainfrom
lonitra:ole
Jan 18, 2024
Merged

lonitra merged 5 commits into
dotnet:mainfrom
lonitra:ole

Conversation

@lonitra

@lonitra lonitra commented Jan 12, 2024 •

Copy link
Copy Markdown
Member
  • Adds test to capture our wrapping behavior:
    • Data coming in must implement System.Runtime.InteropServices.ComTypes.IDataObject to be taken as is. If it does not, we will wrap the data in a DataObject
    • Data going out must implement System.Windows.Forms.IDataObject to be passed out as is. If it does not, we will wrap the data in a DataObject
  • Convert the remaining ole functions to Cswin32
  • Other minor clean ups
  • Add test capturing clipboard proxy behavior
Microsoft Reviewers: Open in CodeFlow

@ghost ghost assigned lonitra Jan 12, 2024
@lonitra lonitra added the draft draft PR label Jan 12, 2024
@codecov

codecov Bot commented Jan 12, 2024 •

Copy link
Copy Markdown

Codecov Report

Attention: 113 lines in your changes are missing coverage. Please review.

Comparison is base (4394995) 72.62818% compared to head (c35aab3) 72.62715%.
Report is 1 commits behind head on main.

Additional details and impacted files
@@                 Coverage Diff                 @@
##                main      #10651         +/-   ##
===================================================
- Coverage   72.62818%   72.62715%   -0.00104%     
===================================================
  Files           2896        2896                 
  Lines         622253      622354        +101     
  Branches       46997       47009         +12     
===================================================
+ Hits          451931      451998         +67     
- Misses        161993      162032         +39     
+ Partials        8329        8324          -5     
Flag Coverage Δ
Debug 72.62715% <46.44550%> (-0.00104%) ⬇️
production 43.46451% <33.64486%> (+0.00300%) ⬆️
test 97.33942% <59.61538%> (-0.01170%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

@elachlan

Copy link
Copy Markdown
Contributor

@kant2002 are you still interested in Winforms Clipboard interop for AOT?

@kant2002

Copy link
Copy Markdown
Contributor

I think that this is valuable, but i do not have capacity for this work unfortunately. Anything else I can help with?

@elachlan

Copy link
Copy Markdown
Contributor

Just keeping you informed.

@willibrandon

Copy link
Copy Markdown
Contributor

I have fetched your branch and initial testing of drag and drop looks good to me.

@lonitra

lonitra commented Jan 18, 2024

Copy link
Copy Markdown
Member Author

I have fetched your branch and initial testing of drag and drop looks good to me.

Thanks! Appreciate the extra eyes (:

@lonitra
lonitra marked this pull request as ready for review January 18, 2024 17:40
@lonitra
lonitra requested a review from a team as a code owner January 18, 2024 17:40
@lonitra lonitra removed the draft draft PR label Jan 18, 2024

@JeremyKuhne JeremyKuhne left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

/// </para>
/// </remarks>
public DragDropEffects DoDragDrop(
public unsafe DragDropEffects DoDragDrop(

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: the Control is unsafe this isn't necessary

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah nice catch! I'll address this in a follow up

@lonitra
lonitra merged commit 64528f3 into dotnet:main Jan 18, 2024
@lonitra
lonitra deleted the ole branch January 18, 2024 22:09
@ghost ghost added this to the 9.0 Preview1 milestone Jan 18, 2024
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 18, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants