Repository navigation
Refactor Clipboard code to internal interface - #12833
Merged
Merged
Conversation
This refactors the Clipboard code to utilize an internal interface to facilitate moving most logic to the Core assembly. - Add and utilize IDataObjectInternal that "composes" ITypedDataObject and IDataObject - Move mapped formats to DataFormatNames - Move RestrictedTypeDesrializationException - De-nest internal DataObject classes to prepare for moving - Add DataObject derived internal class for tracking user provided data
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #12833 +/- ##
===================================================
- Coverage 76.20897% 76.12855% -0.08042%
===================================================
Files 3198 3235 +37
Lines 640464 642127 +1663
Branches 47220 47256 +36
===================================================
+ Hits 488091 488842 +751
- Misses 148842 149752 +910
- Partials 3531 3533 +2
Flags with carried forward coverage won't be shown. Click here to find out more. |
Contributor
There was a problem hiding this comment.
Copilot reviewed 17 out of 32 changed files in this pull request and generated 2 comments.
Files not reviewed (15)
- src/System.Windows.Forms/src/System/Windows/Forms/OLE/DataObject.RestrictedTypeDeserializationException.cs: Evaluated as low risk
- src/System.Private.Windows.Core/src/System/Private/Windows/Core/Ole/DataFormatNames.cs: Evaluated as low risk
- src/System.Windows.Forms/src/System/Windows/Forms/OLE/DataObject.Composition.NativeToWinFormsAdapter.cs: Evaluated as low risk
- src/System.Windows.Forms/src/System/Windows/Forms/OLE/DataObject.Composition.RuntimeToNativeAdapter.cs: Evaluated as low risk
- src/System.Windows.Forms/src/System/Windows/Forms/OLE/DataObject.Composition.TypeNameComparer.cs: Evaluated as low risk
- src/System.Windows.Forms/src/System/Windows/Forms/ActiveX/Control.ActiveXImpl.cs: Evaluated as low risk
- src/System.Windows.Forms/src/GlobalSuppressions.cs: Evaluated as low risk
- src/System.Windows.Forms/src/System/Windows/Forms/OLE/DataObject.Composition.cs: Evaluated as low risk
- src/System.Windows.Forms/src/System/Windows/Forms/OLE/DataObject.Composition.NativeToRuntimeAdapter.cs: Evaluated as low risk
- src/System.Windows.Forms/src/System/Windows/Forms/OLE/DataObject.cs: Evaluated as low risk
- src/System.Windows.Forms/src/System/Windows/Forms/OLE/DataObject.Composition.BinaryFormatUtilities.cs: Evaluated as low risk
- src/System.Windows.Forms/src/System/Windows/Forms/OLE/DataObject.Composition.Binder.cs: Evaluated as low risk
- src/System.Windows.Forms/src/System/Windows/Forms/OLE/Clipboard.cs: Evaluated as low risk
- src/System.Windows.Forms/src/System/Windows/Forms/OLE/DataObject.Composition.WinFormsToNativeAdapter.cs: Evaluated as low risk
- src/System.Windows.Forms/src/System/Windows/Forms/OLE/DataObject.DataStore.DataStoreEntry.cs: Evaluated as low risk
…DataObject.cs Co-authored-by: Tanya Solyanik <[email protected]>
…e/Ole/IDataObjectInternal.cs Co-authored-by: Copilot <[email protected]>
…e/Ole/IDataObjectInternal.cs Co-authored-by: Copilot <[email protected]>
Tanya-Solyanik
approved these changes
Jan 24, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This refactors the Clipboard code to utilize an internal interface to facilitate moving most logic to the Core assembly.
Microsoft Reviewers: Open in CodeFlow