This commit is contained in:
ThomasGoulet73 2024-10-04 13:43:17 -04:00 коммит произвёл GitHub
Родитель 9197f5dfa0
Коммит 56b7b4f0be
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: B5690EEEBB952194
199 изменённых файлов: 16 добавлений и 772 удалений

Просмотреть файл

@ -104,7 +104,6 @@ static class CookieHandler
}
}
[FriendAccessAllowed] // called by PF.Application.GetCookie()
[SuppressMessage("Microsoft.Interoperability", "CA1404:CallGetLastErrorImmediatelyAfterPInvoke",
Justification="It's okay now. Be careful on change.")]
internal static string GetCookie(Uri uri, bool throwIfNoCookie)
@ -128,7 +127,6 @@ static class CookieHandler
throw new Win32Exception(/*uses last error code*/);
}
[FriendAccessAllowed] // called by PF.Application.SetCookie()
internal static bool SetCookie(Uri uri, string cookieData)
{
return SetCookieUnsafe(uri, cookieData, null);

Просмотреть файл

@ -38,7 +38,6 @@ using MS.Win32;
namespace MS.Internal.AppModel
{
[FriendAccessAllowed]
internal class CustomCredentialPolicy : ICredentialPolicy
{
static CustomCredentialPolicy()

Просмотреть файл

@ -23,7 +23,6 @@ using System.Globalization;
using System.Windows;
using System.Windows.Navigation;
using System.Security;
using MS.Internal.PresentationCore;
namespace MS.Internal.AppModel
{
@ -46,7 +45,6 @@ namespace MS.Internal.AppModel
internal static Uri SiteOfOrigin
{
[FriendAccessAllowed]
get
{
Uri siteOfOrigin = SiteOfOriginForClickOnceApp;

Просмотреть файл

@ -9,11 +9,8 @@ using System.Windows.Automation.Provider;
using System.Security;
using MS.Internal.PresentationCore;
namespace MS.Internal.Automation
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal class InteropAutomationProvider: IRawElementProviderFragmentRoot
{
#region Constructors

Просмотреть файл

@ -27,7 +27,6 @@ using MS.Win32;
using MS.Utility;
using MS.Internal;
using MS.Internal.FontFace;
using MS.Internal.PresentationCore;
using MS.Internal.Shaping;
// Since we disable PreSharp warnings in this file, we first need to disable warnings about unknown message numbers and unknown pragmas.
@ -39,7 +38,6 @@ namespace MS.Internal.FontCache
/// FamilyCollection font cache element class is responsible for
/// storing the mapping between a folder and font families in it
/// </summary>
[FriendAccessAllowed]
internal class FamilyCollection
{
//------------------------------------------------------

Просмотреть файл

@ -37,7 +37,6 @@ namespace MS.Internal.FontCache
/// <summary>
/// FontCacheFullException is raised when the cache limit is reached
/// </summary>
[FriendAccessAllowed]
internal class FontCacheFullException : ApplicationException
{
internal FontCacheFullException()
@ -51,7 +50,6 @@ namespace MS.Internal.FontCache
/// 4 byte element type
/// Everything else is element-specific
/// </summary>
[FriendAccessAllowed]
internal interface IFontCacheElement
{
/// <summary>
@ -121,7 +119,6 @@ namespace MS.Internal.FontCache
/// - fixed size hash table, 4 bytes per element
/// - user data pool, active length is variable, maximum length is determined by the font cache file size
/// </summary>
[FriendAccessAllowed]
internal unsafe class ElementCacher
{
private const int numberOfBuckets = 512;

Просмотреть файл

@ -46,7 +46,6 @@ namespace MS.Internal.FontCache
/// The purpose of the class is to protect the memory block from overruns.
/// ArgumentOutOfRangeException is thrown when an overrun is detected.
/// </summary>
[FriendAccessAllowed]
internal struct CheckedPointer
{
internal unsafe CheckedPointer(void * pointer, int size)
@ -214,7 +213,6 @@ namespace MS.Internal.FontCache
/// <summary>
/// HashFn is a port of predefined hash functions from LKRHash
/// </summary>
[FriendAccessAllowed]
internal static class HashFn
{
// Small prime number used as a multiplier in the supplied hash functions
@ -283,7 +281,6 @@ namespace MS.Internal.FontCache
/// <summary>
/// Utility functions for interaction with font cache service
/// </summary>
[FriendAccessAllowed]
internal static class Util
{
internal const int nullOffset = -1;
@ -803,7 +800,6 @@ namespace MS.Internal.FontCache
/// <summary>
/// A class that wraps operations with Win32 memory sections and file mappings
/// </summary>
[FriendAccessAllowed]
internal class FileMapping : UnmanagedMemoryStream
{
~FileMapping()

Просмотреть файл

@ -30,7 +30,6 @@ using MS.Internal.PresentationCore;
namespace MS.Internal.FontCache
{
[FriendAccessAllowed]
internal sealed class FontFaceLayoutInfo
{
private FontTechnology _fontTechnology;

Просмотреть файл

@ -16,7 +16,6 @@ using System.Security;
namespace MS.Internal.FontCache
{
[FriendAccessAllowed]
internal class FontCacheConfig
{
private enum ProtocolType { Single, Dual, ALPC };

Просмотреть файл

@ -16,7 +16,6 @@ using System.Text;
using System.Windows;
using MS.Internal;
using SR=MS.Internal.PresentationCore.SR;
using MS.Internal.PresentationCore;
namespace System.Windows.Media.Converters
{
@ -29,7 +28,6 @@ namespace System.Windows.Media.Converters
/// <summary>
/// The base converter for IList of T to string conversion in XAML serialization
/// </summary>
[FriendAccessAllowed] // all implementations are used by Framework at serialization
public abstract class BaseIListConverter : TypeConverter
{
/// <Summary>

Просмотреть файл

@ -36,7 +36,6 @@ namespace MS.Internal.IO.Packaging
/// For now, we will only process one batch of requests at a time. We will most likely
/// want to spin multiple threads and do multiple batches at a time in the future
/// </remarks>
[FriendAccessAllowed]
internal class ByteRangeDownloader : IDisposable
{
//------------------------------------------------------

Просмотреть файл

@ -30,7 +30,6 @@ namespace MS.Internal.IO.Packaging
/// class and we won't be using even half of the dictionary functionalities.
/// If this class becomes a public class which is strongly discouraged, this class
/// needs to implement IDictionary.</remarks>
[FriendAccessAllowed]
internal static class PreloadedPackages
{
//------------------------------------------------------

Просмотреть файл

@ -27,7 +27,6 @@ namespace System.Windows.Ink
/// and updates the visual state as necessary.
/// </summary>
///
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal class Renderer
{
#region StrokeVisual

Просмотреть файл

@ -14,7 +14,6 @@ using System.Diagnostics;
using SR=MS.Internal.PresentationCore.SR;
using MS.Internal;
using MS.Internal.PresentationCore;
namespace MS.Internal.Ink
{
@ -203,7 +202,6 @@ namespace MS.Internal.Ink
/// strokenodes is very expensive later when MIL renders it, so this method has been optimized
/// to only add strokenodes when either pressure changes, or the angle of the stroke changes.
/// </summary>
[FriendAccessAllowed]
internal static void CalcGeometryAndBounds(StrokeNodeIterator iterator,
DrawingAttributes drawingAttributes,
#if DEBUG_RENDERING_FEEDBACK

Просмотреть файл

@ -6,11 +6,8 @@ using System;
using System.Windows;
using System.Windows.Media;
using MS.Internal.PresentationCore;
namespace MS.Internal.KnownBoxes
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static class FillRuleBoxes
{
internal static object EvenOddBox = FillRule.EvenOdd;
@ -29,7 +26,6 @@ namespace MS.Internal.KnownBoxes
}
}
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static class VisibilityBoxes
{
internal static object VisibleBox = Visibility.Visible;

Просмотреть файл

@ -13,11 +13,9 @@ using System.Diagnostics; // Debug.Assert
using System.Windows; // DependencyObject
using System.Windows.Threading; // DispatcherOperationCallback
using MS.Internal.PresentationCore; // [FriendAccessAllowed]
namespace MS.Internal
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal class LoadedOrUnloadedOperation
{
internal LoadedOrUnloadedOperation(

Просмотреть файл

@ -12,7 +12,6 @@
using System;
using System.Windows;
using System.Windows.Media;
using MS.Internal.PresentationCore;
namespace MS.Internal.Media
{
@ -20,13 +19,11 @@ namespace MS.Internal.Media
/// Provide access to text options of element in syntax of TextOptions.xxx = yyy;
/// Actual data is stored in the owner.
/// </summary>
[FriendAccessAllowed] // used by Framework
internal static class TextOptionsInternal
{
#region Dependency Properties
/// <summary> Text hinting property </summary>
[FriendAccessAllowed] // used by Framework
internal static readonly DependencyProperty TextHintingModeProperty =
DependencyProperty.RegisterAttached(
"TextHintingMode",
@ -40,7 +37,6 @@ namespace MS.Internal.Media
#region Attached Properties Setters
[FriendAccessAllowed] // used by Framework
public static void SetTextHintingMode(DependencyObject element, TextHintingMode value)
{
ArgumentNullException.ThrowIfNull(element);
@ -48,7 +44,6 @@ namespace MS.Internal.Media
element.SetValue(TextHintingModeProperty, value);
}
[FriendAccessAllowed] // used by Framework
public static TextHintingMode GetTextHintingMode(DependencyObject element)
{
ArgumentNullException.ThrowIfNull(element);

Просмотреть файл

@ -12,7 +12,7 @@ using System.Collections;
using System.Globalization; // CultureInfo
#if PRESENTATION_CORE
using MS.Internal.PresentationCore; // FriendAccessAllowed
using MS.Internal.PresentationCore;
#elif PRESENTATIONFRAMEWORK
using MS.Internal.PresentationFramework;
#endif
@ -188,9 +188,6 @@ namespace MS.Internal.Media
/// <remarks>
/// This is called ONLY from the Parser and is not a general public method.
/// </remarks>
#if !PBTCOMPILER
[FriendAccessAllowed] // Built into Core, also used by Framework.
#endif
internal static bool SerializePoint3D(BinaryWriter writer, string stringValues)
{
#if PBTCOMPILER
@ -223,9 +220,6 @@ namespace MS.Internal.Media
/// <remarks>
/// This is called ONLY from the Parser and is not a general public method.
/// </remarks>
#if !PBTCOMPILER
[FriendAccessAllowed] // Built into Core, also used by Framework.
#endif
internal static bool SerializeVector3D(BinaryWriter writer, string stringValues)
{
#if PBTCOMPILER
@ -258,9 +252,6 @@ namespace MS.Internal.Media
/// <remarks>
/// This is called ONLY from the Parser and is not a general public method.
/// </remarks>
#if !PBTCOMPILER
[FriendAccessAllowed] // Built into Core, also used by Framework.
#endif
internal static bool SerializePoint(BinaryWriter writer, string stringValue)
{
#if PBTCOMPILER

Просмотреть файл

@ -20,7 +20,6 @@ using System.Windows.Markup;
using System.Windows.Media;
using System.Windows.Media.Media3D;
using MS.Internal.PresentationCore;
using MS.Internal.Media3D;
using SR = MS.Internal.PresentationCore.SR;
@ -1227,7 +1226,6 @@ namespace MS.Internal.Media3D
/// </summary>
internal override Transform AffineTransform
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
get
{
return null;

Просмотреть файл

@ -23,7 +23,6 @@ using System.Windows.Media.Animation;
using System.Windows.Media.Composition;
using System.Windows.Markup;
using System.Windows.Media.Media3D;
using MS.Internal.PresentationCore;
namespace MS.Internal.Media3D
{
@ -89,7 +88,6 @@ namespace MS.Internal.Media3D
/// </summary>
internal override Transform3D AffineTransform
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
get
{
return null;

Просмотреть файл

@ -18,7 +18,6 @@ using System.Security;
using System.Windows.Media;
using System.Windows.Media.TextFormatting;
using System.Runtime.InteropServices;
using MS.Internal.PresentationCore;
using SR = MS.Internal.PresentationCore.SR;
@ -31,7 +30,6 @@ namespace MS.Internal.TextFormatting
/// access to the underlying dangerous handle to the unmanaged resource whose
/// lifetime is bound to the the underlying LS context.
/// </summary>
[FriendAccessAllowed] // used by Framework
internal sealed class TextPenaltyModule : IDisposable
{
private SecurityCriticalDataForSet<IntPtr> _ploPenaltyModule; // Pointer to LS penalty module

Просмотреть файл

@ -10,13 +10,10 @@ using System.Windows.Media.Media3D;
using System.Windows.Input;
using System.Windows.Automation.Peers;
using MS.Internal.PresentationCore;
namespace MS.Internal
{
internal static class UIElementHelper
{
[FriendAccessAllowed]
internal static bool IsHitTestVisible(DependencyObject o)
{
Debug.Assert(o != null, "UIElementHelper.IsHitTestVisible called with null argument");
@ -32,7 +29,6 @@ namespace MS.Internal
}
}
[FriendAccessAllowed]
internal static bool IsVisible(DependencyObject o)
{
Debug.Assert(o != null, "UIElementHelper.IsVisible called with null argument");
@ -48,7 +44,6 @@ namespace MS.Internal
}
}
[FriendAccessAllowed]
internal static DependencyObject PredictFocus(DependencyObject o, FocusNavigationDirection direction)
{
Debug.Assert(o != null, "UIElementHelper.PredictFocus called with null argument");
@ -73,7 +68,6 @@ namespace MS.Internal
return null;
}
[FriendAccessAllowed]
internal static UIElement GetContainingUIElement2D(DependencyObject reference)
{
UIElement element = null;
@ -90,7 +84,6 @@ namespace MS.Internal
return element;
}
[FriendAccessAllowed]
internal static DependencyObject GetUIParent(DependencyObject child)
{
DependencyObject parent = GetUIParent(child, false);
@ -98,7 +91,6 @@ namespace MS.Internal
return parent;
}
[FriendAccessAllowed]
internal static DependencyObject GetUIParent(DependencyObject child, bool continuePastVisualTree)
{
DependencyObject parent = null;
@ -138,13 +130,11 @@ namespace MS.Internal
return parent;
}
[FriendAccessAllowed]
internal static bool IsUIElementOrUIElement3D(DependencyObject o)
{
return (o is UIElement or UIElement3D);
}
[FriendAccessAllowed]
internal static void InvalidateAutomationAncestors(DependencyObject o)
{
UIElement e = null;

Просмотреть файл

@ -50,7 +50,6 @@ namespace MS.Internal
/// </summary>
static class WpfWebRequestHelper
{
[FriendAccessAllowed]
internal static WebRequest CreateRequest(Uri uri)
{
// Ideally we would want to use RegisterPrefix and WebRequest.Create.
@ -120,7 +119,6 @@ static class WpfWebRequestHelper
/// change behavior in SP1/v3.5, ConfigCachePolicy() is called separately by the code that previously
/// relied on ConfigHttpWebRequest().
/// </remarks>
[FriendAccessAllowed]
static internal void ConfigCachePolicy(WebRequest request, bool isRefresh)
{
HttpWebRequest httpRequest = request as HttpWebRequest;
@ -168,33 +166,28 @@ static class WpfWebRequestHelper
}
private static string _defaultUserAgent;
[FriendAccessAllowed]
internal static void HandleWebResponse(WebResponse response)
{
CookieHandler.HandleWebResponse(response);
}
[FriendAccessAllowed]
internal static Stream CreateRequestAndGetResponseStream(Uri uri)
{
WebRequest request = CreateRequest(uri);
return GetResponseStream(request);
}
[FriendAccessAllowed]
internal static Stream CreateRequestAndGetResponseStream(Uri uri, out ContentType contentType)
{
WebRequest request = CreateRequest(uri);
return GetResponseStream(request, out contentType);
}
[FriendAccessAllowed]
internal static WebResponse CreateRequestAndGetResponse(Uri uri)
{
WebRequest request = CreateRequest(uri);
return GetResponse(request);
}
[FriendAccessAllowed]
internal static WebResponse GetResponse(WebRequest request)
{
WebResponse response = request.GetResponse();
@ -215,7 +208,6 @@ static class WpfWebRequestHelper
HandleWebResponse(response);
return response;
}
[FriendAccessAllowed]
internal static WebResponse EndGetResponse(WebRequest request, IAsyncResult ar)
{
WebResponse response = request.EndGetResponse(ar);
@ -232,7 +224,6 @@ static class WpfWebRequestHelper
return response;
}
[FriendAccessAllowed]
internal static Stream GetResponseStream(WebRequest request)
{
WebResponse response = GetResponse(request);
@ -242,7 +233,6 @@ static class WpfWebRequestHelper
/// Gets the response from the given request and determines the content type using the special rules
/// implemented in GetContentType().
/// </summary>
[FriendAccessAllowed]
internal static Stream GetResponseStream(WebRequest request, out ContentType contentType)
{
WebResponse response = GetResponse(request);
@ -258,7 +248,6 @@ static class WpfWebRequestHelper
/// - Unconfigured web servers don't return the right type for WPF content. This method does lookup based on
/// file extension.
/// </summary>
[FriendAccessAllowed]
internal static ContentType GetContentType(WebResponse response)
{
ContentType contentType = ContentType.Empty;

Просмотреть файл

@ -36,7 +36,6 @@
<Compile Include="$(WpfCommonDir)\Graphics\wgx_av_types.cs" />
<Compile Include="$(WpfCommonDir)\Graphics\wgx_core_types.cs" />
<Compile Include="$(WpfSharedDir)\RefAssemblyAttrs.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\FriendAccessAllowedAttribute.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\AppDomainShutdownMonitor.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\SecurityHelper.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\SafeSecurityHelper.cs" />
@ -55,7 +54,6 @@
<Compile Include="$(WpfSharedDir)\MS\Internal\LegacyPriorityQueue.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\SequentialUshortCollection.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\SizeLimitedCache.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\ValidateEnums.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\Commands\CommandLibraryHelper.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\Generated\AlignmentXValidation.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\Generated\AlignmentYValidation.cs" />

Просмотреть файл

@ -136,7 +136,6 @@ namespace System.IO.Packaging
// However, these two functions regress 700k working set in System.dll and System.xml.dll
// which is mostly for logging and config.
// This helper function provides a way to bypass the regression
[FriendAccessAllowed]
internal static WebRequest CreateWebRequest(Uri uri)
{
if (string.Equals(uri.Scheme, PackUriHelper.UriSchemePack, StringComparison.Ordinal))

Просмотреть файл

@ -19,7 +19,6 @@ using System.Windows.Automation.Provider;
using MS.Internal;
using MS.Internal.Automation;
using MS.Internal.Media;
using MS.Internal.PresentationCore;
using MS.Win32;
using SR=MS.Internal.PresentationCore.SR;
@ -1535,7 +1534,6 @@ namespace System.Windows.Automation.Peers
}
//
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal virtual InteropAutomationProvider GetInteropChild()
{
return null;
@ -2033,7 +2031,6 @@ namespace System.Windows.Automation.Peers
/// Is it possible that they turn around and reenter asking for new value while in event handler?
// If yes, we'll serve old value
///</remarks>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal void UpdateSubtree()
{
ContextLayoutManager lm = ContextLayoutManager.From(this.Dispatcher);

Просмотреть файл

@ -108,7 +108,6 @@ namespace System.Windows
/// OnContentParentChanged is called when the parent of the content element is changed.
/// </summary>
/// <param name="oldParent">Old parent or null if the content element did not have a parent before.</param>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal virtual void OnContentParentChanged(DependencyObject oldParent)
{
SynchronizeReverseInheritPropertyFlags(oldParent, true);
@ -271,7 +270,6 @@ namespace System.Windows
/// <summary>
/// Asynchronously re-evaluate the reverse-inherited properties.
/// </summary>
[FriendAccessAllowed]
internal void SynchronizeReverseInheritPropertyFlags(DependencyObject oldParent, bool isCoreParent)
{
if(IsKeyboardFocusWithin)

Просмотреть файл

@ -8,7 +8,6 @@ using System.Collections.Generic;
using System.Diagnostics;
using MS.Utility;
using MS.Internal.PresentationCore;
using SR=MS.Internal.PresentationCore.SR;
@ -22,7 +21,6 @@ namespace System.Windows
/// of handlers for a given
/// EventPrivateKey or RoutedEvent
/// </remarks>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal class EventHandlersStore
{
#region Construction

Просмотреть файл

@ -4,7 +4,6 @@
using System;
using System.Diagnostics;
using MS.Internal.PresentationCore;
using MS.Utility;
using SR=MS.Internal.PresentationCore.SR;
@ -250,7 +249,6 @@ namespace System.Windows
/// <returns>
/// Matching <see cref="RoutedEvent"/>
/// </returns>
[FriendAccessAllowed]
internal static RoutedEvent GetRoutedEventFromName(string name, Type ownerType)
{
ArgumentNullException.ThrowIfNull(name);

Просмотреть файл

@ -701,7 +701,6 @@ namespace System.Windows
/// </remarks>
internal EventHandlersStore EventHandlersStore
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
get
{
if(!ReadFlag(CoreFlags.ExistsEventHandlersStore))
@ -716,7 +715,6 @@ namespace System.Windows
/// Ensures that EventHandlersStore will return
/// non-null when it is called.
/// </summary>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal void EnsureEventHandlersStore()
{
if (EventHandlersStore == null)

Просмотреть файл

@ -701,7 +701,6 @@ namespace System.Windows
/// </remarks>
internal EventHandlersStore EventHandlersStore
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
get
{
if(!ReadFlag(CoreFlags.ExistsEventHandlersStore))
@ -716,7 +715,6 @@ namespace System.Windows
/// Ensures that EventHandlersStore will return
/// non-null when it is called.
/// </summary>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal void EnsureEventHandlersStore()
{
if (EventHandlersStore == null)

Просмотреть файл

@ -498,7 +498,6 @@ namespace System.Windows
/// </remarks>
internal EventHandlersStore EventHandlersStore
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
get
{
if(!ReadFlag(CoreFlags.ExistsEventHandlersStore))
@ -513,7 +512,6 @@ namespace System.Windows
/// Ensures that EventHandlersStore will return
/// non-null when it is called.
/// </summary>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal void EnsureEventHandlersStore()
{
if (EventHandlersStore == null)

Просмотреть файл

@ -509,7 +509,6 @@ namespace System.Windows.Ink
/// so we can assume the correct opacity has already been pushed on dc. The flag drawAsHollow is set
/// to true when this function is called from Renderer and this.IsSelected == true.
/// </summary>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal void DrawInternal(DrawingContext dc, DrawingAttributes DrawingAttributes, bool drawAsHollow)
{
if (drawAsHollow == true)
@ -538,7 +537,6 @@ namespace System.Windows.Ink
/// <summary>
/// Used by Inkcanvas to draw selected stroke as hollow.
/// </summary>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal bool IsSelected
{
get { return _isSelected; }

Просмотреть файл

@ -26,7 +26,6 @@ namespace System.Windows.Input
/// then be asserted when the command is invoked in a user
/// interactive (trusted) way.
///</summary>
[FriendAccessAllowed]
[TypeConverter("System.Windows.Input.CommandConverter, PresentationFramework, Version=" + BuildInfo.WCP_VERSION + ", Culture=neutral, PublicKeyToken=" + BuildInfo.WCP_PUBLIC_KEY_TOKEN + ", Custom=null")]
internal interface ISecureCommand : ICommand
{

Просмотреть файл

@ -13,7 +13,6 @@ using System.IO;
using System.Security;
using SecurityHelper=MS.Internal.SecurityHelper;
using SR=MS.Internal.PresentationCore.SR;
using MS.Internal.PresentationCore; // FriendAccessAllowed
namespace System.Windows.Input
{
@ -97,7 +96,6 @@ namespace System.Windows.Input
/// Cursor from a SafeHandle to an HCURSOR
/// </summary>
/// <param name="cursorHandle"></param>
[FriendAccessAllowed] //used by ColumnHeader.GetCursor in PresentationFramework
internal Cursor(SafeHandle cursorHandle )
{
if (! cursorHandle.IsInvalid )

Просмотреть файл

@ -6,7 +6,6 @@ using System.Collections;
using System;
using System.Security;
using MS.Internal.PresentationCore; // for FriendAccessAllowed
namespace System.Windows.Input
{
@ -15,7 +14,6 @@ namespace System.Windows.Input
/// are relevant to all input events.
/// </summary>
[FriendAccessAllowed ] // expose UserInitiated
public class InputEventArgs : RoutedEventArgs
{
/// <summary>

Просмотреть файл

@ -10,7 +10,6 @@ using System.Windows;
using System.Security;
using MS.Win32;
using MS.Internal;
using MS.Internal.PresentationCore; // SecurityHelper
using System;
using System.Diagnostics;
using System.Windows.Automation;
@ -33,7 +32,6 @@ namespace System.Windows.Input
/// <summary>
/// A routed event indicating that an input report arrived.
/// </summary>
[FriendAccessAllowed]
internal static readonly RoutedEvent InputReportEvent = GlobalEventManager.RegisterRoutedEvent("InputReport", RoutingStrategy.Bubble, typeof(InputReportEventHandler), typeof(InputManager));
/// <summary>
@ -54,7 +52,6 @@ namespace System.Windows.Input
///</summary>
internal static InputManager UnsecureCurrent
{
[FriendAccessAllowed]
get
{
return GetCurrentInputManagerImpl();
@ -207,12 +204,10 @@ namespace System.Windows.Input
/// </summary>
internal event KeyEventHandler TranslateAccelerator
{
[FriendAccessAllowed] // Used by KeyboardNavigation.cs in Framework
add
{
_translateAccelerator += value;
}
[FriendAccessAllowed] // Used by KeyboardNavigation.cs in Framework
remove
{
_translateAccelerator -= value;

Просмотреть файл

@ -6,7 +6,6 @@
using System;
using System.Security;
using MS.Internal;
using MS.Internal.PresentationCore;
using MS.Win32;
using System.Windows;
@ -21,7 +20,6 @@ namespace System.Windows.Input
/// blittable types. This is required so that the report can be
/// marshalled across application domains.
/// </remarks>
[FriendAccessAllowed]
internal abstract class InputReport
{
/// <summary>

Просмотреть файл

@ -4,7 +4,6 @@
using System;
using MS.Internal.PresentationCore;
namespace System.Windows.Input
{
@ -12,7 +11,6 @@ namespace System.Windows.Input
/// The InputReportEventArgs class contains information about an input
/// report that is being processed.
/// </summary>
[FriendAccessAllowed]
internal class InputReportEventArgs : InputEventArgs
{
/// <summary>

Просмотреть файл

@ -4,7 +4,6 @@
using System;
using MS.Internal.PresentationCore;
namespace System.Windows.Input
{
@ -66,7 +65,6 @@ namespace System.Windows.Input
/// There is a proscription against using Enum.IsDefined(). (it is slow)
/// So we manually validate using a switch statement.
/// </remarks>
[FriendAccessAllowed]
internal static void Validate(MouseButton button)
{
switch(button)

Просмотреть файл

@ -12,7 +12,6 @@ using System.Windows.Interop;
using System.Windows.Threading;
using System.Security;
using MS.Internal;
using MS.Internal.PresentationCore; // SecurityHelper
using MS.Win32; // *NativeMethods
using System.Runtime.InteropServices;
using System;
@ -255,7 +254,6 @@ namespace System.Windows.Input
/// Returns the element that the mouse is over regardless of
/// its IsEnabled state.
/// </summary>
[FriendAccessAllowed]
internal IInputElement RawDirectlyOver
{
get

Просмотреть файл

@ -5,7 +5,6 @@
using System.Windows.Media;
using System.Security;
using MS.Internal;
using MS.Internal.PresentationCore;
using MS.Win32;
using System;
@ -20,7 +19,6 @@ namespace System.Windows.Input
/// blittable types. This is required so that the report can be
/// marshalled across application domains.
/// </remarks>
[FriendAccessAllowed]
internal class RawMouseInputReport : InputReport
{
/// <summary>

Просмотреть файл

@ -674,10 +674,6 @@ namespace System.Windows.Interop
///<summary>
/// Returns the set of modifier keys currently pressed as determined by calling to Win32
///</summary>
///<remarks>
/// Marked as FriendAccessAllowed so HwndHost in PresentationFramework can call it
///</remarks>
[FriendAccessAllowed]
internal static ModifierKeys GetSystemModifierKeys()
{
ModifierKeys modifierKeys = ModifierKeys.None;

Просмотреть файл

@ -5,7 +5,6 @@
using MS.Internal;
using MS.Internal.Interop;
using MS.Internal.PresentationCore;
using MS.Win32.Pointer;
using System.Collections.Generic;
using System.Diagnostics;

Просмотреть файл

@ -16,7 +16,6 @@ using MS.Win32;
using MS.Utility;
using MS.Internal;
using MS.Internal.Interop;
using MS.Internal.PresentationCore; // SecurityHelper
using Microsoft.Win32;
using System.Diagnostics;
using System.ComponentModel;
@ -938,7 +937,6 @@ namespace System.Windows.Interop
internal IntPtr CriticalHandle
{
[FriendAccessAllowed]
get
{
if (null != _hwndWrapper)

Просмотреть файл

@ -268,7 +268,6 @@ namespace System.Windows.Markup
/// Finds a registered CultureInfo corresponding to the IetfLanguageTag, or the longest
/// sequence of leading subtags for which we have a registered CultureInfo.
/// </summary>
[FriendAccessAllowed]
internal CultureInfo GetCompatibleCulture()
{
if (_compatibleCulture == null)
@ -319,7 +318,6 @@ namespace System.Windows.Markup
/// "sr-latn-sp" is in the range covered by "sr-latn". (Note that "sr-latn" does
/// does not have a registered CultureInfo.)
/// </remarks>
[FriendAccessAllowed]
internal bool RangeIncludes(XmlLanguage language)
{
if (this.IsPrefixOf(language.IetfLanguageTag))

Просмотреть файл

@ -11,7 +11,7 @@ using System.Windows.Threading;
using System.Windows.Media.Composition;
using System.Windows.Media.Media3D;
using MS.Internal.PresentationCore; // SR, FriendAccessAllowed
using MS.Internal.PresentationCore; // SR
namespace System.Windows.Media.Animation
{
@ -587,7 +587,6 @@ namespace System.Windows.Media.Animation
}
}
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static void ApplyAnimationClocks(
DependencyObject d,
DependencyProperty dp,
@ -694,7 +693,6 @@ namespace System.Windows.Media.Animation
/// <param name="animationClocks"></param>
/// <param name="handoffBehavior"></param>
/// <param name="propertyTriggerLayerIndex"></param>
[FriendAccessAllowed]
internal static void ApplyAnimationClocksToLayer(
DependencyObject d,
DependencyProperty dp,
@ -1026,7 +1024,6 @@ namespace System.Windows.Media.Animation
}
}
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static bool IsPropertyAnimatable(
DependencyObject d,
DependencyProperty dp)
@ -1055,7 +1052,6 @@ namespace System.Windows.Media.Animation
|| (animation.TargetPropertyType == typeof(Object));
}
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static bool IsAnimationClockValid(
DependencyProperty dp,
AnimationClock animation)

Просмотреть файл

@ -2,9 +2,6 @@
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using MS.Internal.PresentationCore; // FriendAccessAllowed
namespace System.Windows.Media.Animation
{
/// <summary>
@ -37,7 +34,6 @@ namespace System.Windows.Media.Animation
// We have this to have the validation code alongside the enum
// definition. (Rather than spread throughtout the codebase causing
// maintenance headaches in the future.)
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static bool IsDefined( HandoffBehavior handoffBehavior )
{
if( handoffBehavior < HandoffBehavior.SnapshotAndReplace ||

Просмотреть файл

@ -9,11 +9,8 @@ using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using MS.Internal.PresentationCore;
namespace System.Windows.Media.Animation
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
[System.Flags]
internal enum SubtreeFlag
{
@ -275,7 +272,6 @@ namespace System.Windows.Media.Animation
/// An object that enumerates the timelines of a tree of Timeline
/// objects.
/// </summary>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal struct TimelineTreeEnumerator
{
#region Constructor

Просмотреть файл

@ -82,7 +82,6 @@ namespace System.Windows.Media
/// </summary>
internal virtual Transform AffineTransform
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
get { return null; }
}
}

Просмотреть файл

@ -20,7 +20,6 @@ using System.Runtime.InteropServices;
using System.Windows.Markup;
using System.Windows.Media.Composition;
using System.Diagnostics;
using MS.Internal.PresentationCore;
using SR = MS.Internal.PresentationCore.SR;
@ -130,7 +129,6 @@ namespace System.Windows.Media
/// </summary>
internal override Transform AffineTransform
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
get
{
if ((Children == null) || (Children.Count == 0))

Просмотреть файл

@ -24,14 +24,11 @@ using System.Windows;
using System.Windows.Media.Media3D;
using System.Windows.Media.Animation;
using MS.Internal.PresentationCore;
namespace System.Windows.Media
{
/// <summary>
///
/// </summary>
[FriendAccessAllowed] // used by System.Printing.dll
internal class GlyphsSerializer
{
#region public methods

Просмотреть файл

@ -24,7 +24,6 @@ using MS.Win32;
using System.IO.Packaging;
using UnsafeNativeMethods = MS.Win32.PresentationCore.UnsafeNativeMethods;
using SR = MS.Internal.PresentationCore.SR;
using MS.Internal.PresentationCore; // SecurityHelper
namespace System.Windows.Media.Imaging
{
@ -647,7 +646,6 @@ namespace System.Windows.Media.Imaging
/// <param name="pixels"></param>
/// <param name="stride"></param>
/// <param name="offset"></param>
[FriendAccessAllowed] // Built into Core, also used by Framework.
unsafe internal void CriticalCopyPixels(Int32Rect sourceRect, Array pixels, int stride, int offset)
{
ReadPreamble();

Просмотреть файл

@ -26,7 +26,6 @@ using System.Security;
using System.Windows.Media.Effects;
using MS.Internal;
using MS.Internal.PresentationCore;
using MS.Utility;
using MS.Win32;
@ -1612,7 +1611,6 @@ namespace System.Windows.Media
/// <summary>
/// Add a pending loaded or unloaded callback
/// </summary>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal LoadedOrUnloadedOperation AddLoadedOrUnloadedCallback(
DispatcherOperationCallback callback,
DependencyObject target)
@ -1632,7 +1630,6 @@ namespace System.Windows.Media
/// <summary>
/// Remove a pending loaded or unloaded callback
/// </summary>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal void RemoveLoadedOrUnloadedCallback(LoadedOrUnloadedOperation op)
{
Debug.Assert(op != null);

Просмотреть файл

@ -11,7 +11,6 @@
using System.Windows;
using System.Windows.Media.Media3D;
using MS.Internal.PresentationCore;
using System;
using System.IO;
using MS.Internal.Media;
@ -23,7 +22,6 @@ namespace System.Windows.Media
///<summary>
/// Deserialize this object from BAML
///</summary>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static object DeserializeFrom(BinaryReader reader)
{
// Get the size.

Просмотреть файл

@ -12,7 +12,6 @@
//
using MS.Internal;
using MS.Internal.PresentationCore;
using System;
using System.IO;
using System.Collections.Generic;
@ -79,7 +78,6 @@ namespace System.Windows.Media
/// <exception cref="System.ArgumentNullException">
/// Thrown if "writer" is null.
/// </exception>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static bool SerializeOn(BinaryWriter writer, string stringValue)
{
// ********* VERY IMPORTANT NOTE *****************

Просмотреть файл

@ -24,7 +24,6 @@ using System.Windows;
using System.Windows.Media.Animation;
using System.Windows.Media.Composition;
using System.Windows.Markup;
using MS.Internal.PresentationCore;
namespace System.Windows.Media
{
@ -177,7 +176,6 @@ namespace System.Windows.Media
/// </summary>
internal override Transform AffineTransform
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
get
{
return this;

Просмотреть файл

@ -28,7 +28,6 @@ using MS.Internal.Media3D;
using System.Resources;
using MS.Utility;
using System.Runtime.InteropServices;
using MS.Internal.PresentationCore;
using SR=MS.Internal.PresentationCore.SR;
@ -319,10 +318,8 @@ namespace System.Windows.Media
// This flag is set during a descendents walk, for property invalidation.
internal bool IsVisualChildrenIterationInProgress
{
[FriendAccessAllowed]
get { return CheckFlagsAnd(VisualFlags.IsVisualChildrenIterationInProgress); }
[FriendAccessAllowed]
set { SetFlags(value, VisualFlags.IsVisualChildrenIterationInProgress); }
}
@ -2718,7 +2715,6 @@ namespace System.Windows.Media
/// Note: must do invalidation without removing / adding
/// to avoid loosing focused element by input system
/// </summary>
[FriendAccessAllowed]
internal void InvalidateZOrder()
{
// if we don't have any children, there is nothing to do
@ -2795,12 +2791,10 @@ namespace System.Windows.Media
// These 2 method will be REMOVED once Hamid is back and can
// explain why Window needs to Bypass layout for setting Flow Direction.
// These methods are only called from InternalSetLayoutTransform which is called only from Window
[FriendAccessAllowed]
internal void InternalSetOffsetWorkaround(Vector offset)
{
VisualOffset = offset;
}
[FriendAccessAllowed]
internal void InternalSetTransformWorkaround(Transform transform)
{
VisualTransform = transform;

Просмотреть файл

@ -15,7 +15,6 @@ using System.Collections;
using System.Diagnostics;
using MS.Internal;
using MS.Internal.Media;
using MS.Internal.PresentationCore;
using SR=MS.Internal.PresentationCore.SR;
@ -47,7 +46,6 @@ namespace System.Windows.Media
/// <remarks>
/// This could be considered to be made public
/// </remarks>
[FriendAccessAllowed]
internal static bool IsVisualType(DependencyObject reference)
{
return (reference is Visual) || (reference is Visual3D);
@ -151,7 +149,6 @@ namespace System.Windows.Media
/// It is also different in that null is allowed as an argument, in which case
/// it returns null.
/// </summary>
[FriendAccessAllowed]
internal static DependencyObject GetParentInternal(DependencyObject reference)
{
Visual visual;
@ -446,7 +443,6 @@ namespace System.Windows.Media
/// <summary>
/// </summary>
[FriendAccessAllowed]
internal static HitTestResult HitTest(Visual reference, Point point, bool include2DOn3D)
{
CheckVisualReferenceArgument(reference);

Просмотреть файл

@ -17,7 +17,6 @@ using System;
using System.Security;
using MS.Internal;
using MS.Internal.PresentationCore;
using MS.Internal.TextFormatting;
@ -32,7 +31,6 @@ namespace System.Windows.Media.TextFormatting
#if OPTIMALBREAK_API
public abstract class TextBreakpoint : ITextMetrics, IDisposable
#else
[FriendAccessAllowed] // used by Framework
internal abstract class TextBreakpoint : ITextMetrics, IDisposable
#endif
{

Просмотреть файл

@ -71,7 +71,6 @@ namespace System.Windows.Media.TextFormatting
#if OPTIMALBREAK_API
static public TextFormatter CreateFromContext(TextFormatterContext soleContext)
#else
[FriendAccessAllowed] // used by Framework
static internal TextFormatter CreateFromContext(TextFormatterContext soleContext)
#endif
{
@ -88,7 +87,6 @@ namespace System.Windows.Media.TextFormatting
#if OPTIMALBREAK_API
static public TextFormatter CreateFromContext(TextFormatterContext soleContext, TextFormattingMode textFormattingMode)
#else
[FriendAccessAllowed] // used by Framework
static internal TextFormatter CreateFromContext(TextFormatterContext soleContext, TextFormattingMode textFormattingMode)
#endif
{
@ -106,7 +104,6 @@ namespace System.Windows.Media.TextFormatting
/// through friend assembly mechanics to quickly reuse the default TextFormatter retained in the current
/// dispatcher of the running thread.
/// </remarks>
[FriendAccessAllowed] // used by Framework
static internal TextFormatter FromCurrentDispatcher()
{
return FromCurrentDispatcher(TextFormattingMode.Ideal);
@ -120,7 +117,6 @@ namespace System.Windows.Media.TextFormatting
/// through friend assembly mechanics to quickly reuse the default TextFormatter retained in the current
/// dispatcher of the running thread.
/// </remarks>
[FriendAccessAllowed] // used by Framework
static internal TextFormatter FromCurrentDispatcher(TextFormattingMode textFormattingMode)
{
Dispatcher dispatcher = Dispatcher.CurrentDispatcher;
@ -229,7 +225,6 @@ namespace System.Windows.Media.TextFormatting
#if OPTIMALBREAK_API
public abstract TextLine RecreateLine(
#else
[FriendAccessAllowed] // used by Framework
internal abstract TextLine RecreateLine(
#endif
TextSource textSource,
@ -258,7 +253,6 @@ namespace System.Windows.Media.TextFormatting
#if OPTIMALBREAK_API
public abstract TextParagraphCache CreateParagraphCache(
#else
[FriendAccessAllowed] // used by Framework
internal abstract TextParagraphCache CreateParagraphCache(
#endif
TextSource textSource,

Просмотреть файл

@ -23,7 +23,6 @@ using System.Windows;
using System.Windows.Media;
using MS.Internal;
using MS.Internal.PresentationCore;
using MS.Internal.TextFormatting;
using IndexedGlyphRun = System.Windows.Media.TextFormatting.IndexedGlyphRun;
@ -43,7 +42,6 @@ namespace System.Windows.Media.TextFormatting
#if OPTIMALBREAK_API
public class TextFormatterContext
#else
[FriendAccessAllowed] // used by Framework
internal class TextFormatterContext
#endif
{

Просмотреть файл

@ -10,11 +10,8 @@
//
//
using System;
using System.Globalization;
using MS.Internal.PresentationCore;
namespace System.Windows.Media.TextFormatting
{
@ -28,7 +25,6 @@ namespace System.Windows.Media.TextFormatting
#if HYPHENATION_API
public abstract class TextLexicalBreaks
#else
[FriendAccessAllowed] // used by Framework
internal abstract class TextLexicalBreaks
#endif
{

Просмотреть файл

@ -10,11 +10,8 @@
//
//
using System;
using System.Globalization;
using MS.Internal.PresentationCore;
namespace System.Windows.Media.TextFormatting
{
@ -25,7 +22,6 @@ namespace System.Windows.Media.TextFormatting
#if HYPHENATION_API
public abstract class TextLexicalService
#else
[FriendAccessAllowed] // used by Framework
internal abstract class TextLexicalService
#endif
{

Просмотреть файл

@ -11,7 +11,6 @@
//
//
using System;
using System.Collections;
using System.Collections.Generic;
@ -19,8 +18,6 @@ using System.Runtime.InteropServices;
using System.Windows;
using System.Windows.Media;
using MS.Internal.TextFormatting;
using MS.Internal.PresentationCore;
namespace System.Windows.Media.TextFormatting
{
@ -147,7 +144,6 @@ namespace System.Windows.Media.TextFormatting
/// codepoint is a valid caret stop if moving forward and then backward will
/// return back to it, vice versa for the trailing edge of a codepoint.
/// </remarks>
[FriendAccessAllowed]
internal bool IsAtCaretCharacterHit(CharacterHit characterHit, int cpFirst)
{
// TrailingLength is used as a flag to indicate whether the character

Просмотреть файл

@ -22,7 +22,6 @@ using System.Windows.Media;
using MS.Internal;
using MS.Internal.TextFormatting;
using MS.Internal.PresentationCore;
using SR = MS.Internal.PresentationCore.SR;
@ -37,7 +36,6 @@ namespace System.Windows.Media.TextFormatting
#if OPTIMALBREAK_API
public sealed class TextParagraphCache : IDisposable
#else
[FriendAccessAllowed]
internal sealed class TextParagraphCache : IDisposable
#endif
{

Просмотреть файл

@ -11,12 +11,9 @@
//
//
using System;
using System.Collections.Generic;
using System.Windows;
using MS.Internal.PresentationCore;
namespace System.Windows.Media.TextFormatting
{
@ -143,10 +140,8 @@ namespace System.Windows.Media.TextFormatting
private TextLexicalService _hyphenator;
internal virtual TextLexicalService Hyphenator
{
[FriendAccessAllowed] // used by Framework
get { return _hyphenator; }
[FriendAccessAllowed] // used by Framework
set { _hyphenator = value; }
}
#endif

Просмотреть файл

@ -15,7 +15,6 @@
using System;
using System.Collections.Generic;
using MS.Internal.PresentationCore;
using MS.Internal.TextFormatting;
namespace System.Windows.Media.TextFormatting
@ -83,7 +82,6 @@ namespace System.Windows.Media.TextFormatting
#if OPTIMALBREAK_API
public IList<TextSpan<TextRun>> GetTextRunSpans()
#else
[FriendAccessAllowed]
internal IList<TextSpan<TextRun>> GetTextRunSpans()
#endif
{

Просмотреть файл

@ -88,7 +88,6 @@ namespace System.Windows.Media.Media3D
/// </summary>
internal abstract Transform3D AffineTransform
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
get;
}
}

Просмотреть файл

@ -20,7 +20,6 @@ using System.Runtime.InteropServices;
using System.Windows.Markup;
using System.Windows.Media.Composition;
using System.Diagnostics;
using MS.Internal.PresentationCore;
using SR = MS.Internal.PresentationCore.SR;
@ -138,7 +137,6 @@ namespace System.Windows.Media.Media3D
/// </summary>
internal override Transform3D AffineTransform
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
get
{
// cache the children to avoid a repeated DP access

Просмотреть файл

@ -12,7 +12,6 @@
using System.Windows;
using System.Windows.Media.Media3D;
using MS.Internal.PresentationCore;
using System;
using System.IO;
using MS.Internal.Media;
@ -28,7 +27,6 @@ namespace System.Windows.Media.Media3D
///<summary>
/// Deserialize this object from BAML binary format.
///</summary>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static object DeserializeFrom(BinaryReader reader)
{
// Get the size.

Просмотреть файл

@ -12,7 +12,6 @@
//
using MS.Internal.Media3D;
using MS.Internal.PresentationCore;
using System;
using System.Diagnostics;
using System.Windows.Media;
@ -157,7 +156,6 @@ namespace System.Windows.Media.Media3D
/// </summary>
internal override Transform3D AffineTransform
{
[FriendAccessAllowed] // Built into Core, also used by Framework.
get
{
return this;

Просмотреть файл

@ -12,7 +12,6 @@
using System.Windows;
using System.Windows.Media.Media3D;
using MS.Internal.PresentationCore;
using System;
using System.IO;
using MS.Internal.Media;
@ -24,7 +23,6 @@ namespace System.Windows.Media.Media3D
///<summary>
/// Deserialize this object from BAML binary format.
///</summary>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static object DeserializeFrom(BinaryReader reader)
{
// Get the size.

Просмотреть файл

@ -19,8 +19,6 @@ using System.Windows.Media.Composition;
using System.Windows.Markup;
using System.Windows.Media.Effects;
using MS.Internal.PresentationCore;
using SR=MS.Internal.PresentationCore.SR;
namespace System.Windows.Media.Media3D
@ -867,7 +865,6 @@ namespace System.Windows.Media.Media3D
// Because 2D Visuals and FEs do not participate in inheritance context
// we allow this backdoor for a Viewport3D to set itself as the inheritance
// context of the Visual3DCollection it exposes as Children.
[FriendAccessAllowed]
internal void SetInheritanceContextForChildren(DependencyObject inheritanceContextForChildren)
{
_inheritanceContextForChildren = inheritanceContextForChildren;

Просмотреть файл

@ -7,7 +7,6 @@
using MS.Internal;
using MS.Internal.Media;
using MS.Internal.Media3D;
using MS.Internal.PresentationCore;
using System;
using System.Diagnostics;
using System.Security;
@ -803,7 +802,6 @@ namespace System.Windows.Media.Media3D
/// Visual2DContentBounds returns the 2D bounding box for the content of this 3D object. The 2D bounding box
/// is the projection of the 3D content bounding box up to the nearest 2D visual that contains the Visual3D.
/// </summary>
[FriendAccessAllowed]
internal Rect Visual2DContentBounds
{
get
@ -1867,10 +1865,8 @@ namespace System.Windows.Media.Media3D
// This flag is set during a descendents walk, for property invalidation.
internal bool IsVisualChildrenIterationInProgress
{
[FriendAccessAllowed]
get { return CheckFlagsAnd(VisualFlags.IsVisualChildrenIterationInProgress); }
[FriendAccessAllowed]
set { SetFlags(value, VisualFlags.IsVisualChildrenIterationInProgress); }
}

Просмотреть файл

@ -129,7 +129,6 @@ namespace System.Windows.Navigation
static internal Uri SiteOfOriginBaseUri
{
[FriendAccessAllowed]
get
{
return _siteOfOriginBaseUri;
@ -138,7 +137,6 @@ namespace System.Windows.Navigation
static internal Uri PackAppBaseUri
{
[FriendAccessAllowed]
get
{
return _packAppBaseUri;
@ -172,7 +170,6 @@ namespace System.Windows.Navigation
// assembly name matches the text string in the first segment. otherwise, this method
// would return EntryAssembly in the AppDomain.
//
[FriendAccessAllowed]
internal static void GetAssemblyAndPartNameFromPackAppUri(Uri uri, out Assembly assembly, out string partName)
{
// The input Uri is assumed to be a valid absolute pack application Uri.
@ -206,7 +203,6 @@ namespace System.Windows.Navigation
//
//
[FriendAccessAllowed]
internal static Assembly GetLoadedAssembly(string assemblyName, string assemblyVersion, string assemblyKey)
{
Assembly assembly;
@ -243,7 +239,6 @@ namespace System.Windows.Navigation
//
// Return assembly Name, Version, Key and package Part from a relative Uri.
//
[FriendAccessAllowed]
internal static void GetAssemblyNameAndPart(Uri uri, out string partName, out string assemblyName, out string assemblyVersion, out string assemblyKey)
{
Invariant.Assert(uri != null && uri.IsAbsoluteUri == false, "This method accepts relative uri only.");
@ -331,7 +326,6 @@ namespace System.Windows.Navigation
} // end of if fHasComponent
}
[FriendAccessAllowed]
static internal bool IsComponentEntryAssembly(string component)
{
if (component.EndsWith(COMPONENT, StringComparison.OrdinalIgnoreCase))
@ -358,13 +352,11 @@ namespace System.Windows.Navigation
return false;
}
[FriendAccessAllowed]
static internal Uri GetResolvedUri(Uri baseUri, Uri orgUri)
{
return new Uri(baseUri, orgUri);
}
[FriendAccessAllowed]
static internal Uri MakeRelativeToSiteOfOriginIfPossible(Uri sUri)
{
if (Uri.Compare(sUri, SiteOfOriginBaseUri, UriComponents.Scheme, UriFormat.UriEscaped, StringComparison.OrdinalIgnoreCase) == 0)
@ -379,7 +371,6 @@ namespace System.Windows.Navigation
return sUri;
}
[FriendAccessAllowed]
static internal Uri ConvertPackUriToAbsoluteExternallyVisibleUri(Uri packUri)
{
Invariant.Assert(packUri.IsAbsoluteUri && SecurityHelper.AreStringTypesEqual(packUri.Scheme, PackAppBaseUri.Scheme));
@ -400,7 +391,6 @@ namespace System.Windows.Navigation
// object will not correctly resolve relative Uris in some cases. This method
// detects and fixes this by constructing a new Uri with an original string
// that contains the scheme file://.
[FriendAccessAllowed]
static internal Uri FixFileUri(Uri uri)
{
if (uri != null && uri.IsAbsoluteUri && SecurityHelper.AreStringTypesEqual(uri.Scheme, Uri.UriSchemeFile) &&
@ -414,12 +404,10 @@ namespace System.Windows.Navigation
static internal Uri BaseUri
{
[FriendAccessAllowed]
get
{
return _baseUri.Value;
}
[FriendAccessAllowed]
set
{
// This setter should only be called from Framework through
@ -438,7 +426,6 @@ namespace System.Windows.Navigation
}
return _resourceAssembly;
}
[FriendAccessAllowed]
set
{
// This should only be called from Framework through Application.ResourceAssembly setter.

Просмотреть файл

@ -16,7 +16,6 @@ using System.Windows.Input;
using MS.Win32;
using MS.Utility;
using MS.Internal;
using MS.Internal.PresentationCore; // SecurityHelper
using SR=MS.Internal.PresentationCore.SR;
@ -265,7 +264,6 @@ namespace System.Windows
/// <param name="ce">
/// The element whose ancestory may have changed.
/// </param>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static void OnAncestorChanged(ContentElement ce)
{
ArgumentNullException.ThrowIfNull(ce);
@ -553,7 +551,6 @@ namespace System.Windows
}
}
[FriendAccessAllowed] // To allow internal code paths to access this function
internal static PresentationSource CriticalFromVisual(DependencyObject v)
{
return CriticalFromVisual(v, true /* enable2DTo3DTransition */);
@ -564,7 +561,6 @@ namespace System.Windows
/// Determines whether when walking the tree to enable transitioning from a 2D child
/// to a 3D parent or to stop once a 3D parent is encountered.
/// </param>
[FriendAccessAllowed] // To allow internal code paths to access this function
internal static PresentationSource CriticalFromVisual(DependencyObject v, bool enable2DTo3DTransition)
{
ArgumentNullException.ThrowIfNull(v);
@ -598,7 +594,6 @@ namespace System.Windows
/// Helper method which returns true when all the given visuals
/// are in the same presentation source.
/// </summary>
[FriendAccessAllowed] // To allow internal code paths to access this function
internal static bool UnderSamePresentationSource(params DependencyObject[] visuals)
{
if (visuals == null || visuals.Length == 0)

Просмотреть файл

@ -6,7 +6,6 @@ using System;
using System.Security;
using SR=MS.Internal.PresentationCore.SR;
using MS.Internal.PresentationCore;
using System.Collections.Specialized ;
using System.Windows.Input;
using System.Diagnostics;
@ -336,7 +335,6 @@ namespace System.Windows
internal bool UserInitiated
{
[FriendAccessAllowed] // Also used by Framework.
get
{
if (_flags [UserInitiatedIndex])

Просмотреть файл

@ -18,8 +18,6 @@ using System.Globalization;
using System.Windows.Media.Animation;
using System.Windows.Markup;
using MS.Internal.PresentationCore;
namespace System.Windows
{
/// <summary>
@ -42,7 +40,6 @@ namespace System.Windows
/// It only compares the public properties to serve the specific Framework's needs in inline property
/// management and Editing serialization.
/// </remarks>
[FriendAccessAllowed] // used by Framework
internal bool ValueEquals(TextDecorationCollection textDecorations)
{
if (textDecorations == null)

Просмотреть файл

@ -1885,7 +1885,6 @@ namespace System.Windows
/// <summary>
/// Adds a handler for the given attached event
/// </summary>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static void AddHandler(DependencyObject d, RoutedEvent routedEvent, Delegate handler)
{
ArgumentNullException.ThrowIfNull(d);
@ -1922,7 +1921,6 @@ namespace System.Windows
/// <summary>
/// Removes a handler for the given attached event
/// </summary>
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal static void RemoveHandler(DependencyObject d, RoutedEvent routedEvent, Delegate handler)
{
ArgumentNullException.ThrowIfNull(d);
@ -2379,7 +2377,6 @@ namespace System.Windows
/// <summary>
/// Asynchronously re-evaluate the reverse-inherited properties.
/// </summary>
[FriendAccessAllowed]
internal void SynchronizeReverseInheritPropertyFlags(DependencyObject oldParent, bool isCoreParent)
{
if(IsKeyboardFocusWithin)
@ -3133,7 +3130,6 @@ namespace System.Windows
/// Opens the DrawingVisual for rendering. The returned DrawingContext can be used to
/// render into the DrawingVisual.
/// </summary>
[FriendAccessAllowed]
internal DrawingContext RenderOpen()
{
return new VisualDrawingContext(this);
@ -4105,7 +4101,6 @@ namespace System.Windows
/// <param name="value"></param>
/// To keep PersistId from being serialized the set has been removed from the property and a separate
/// set method has been created.
[FriendAccessAllowed] // Built into Core, also used by Framework.
internal void SetPersistId(int value)
{
_persistId = value;
@ -4128,7 +4123,6 @@ namespace System.Windows
internal Rect PreviousArrangeRect
{
// called from PresentationFramework!System.Windows.Controls.Primitives.LayoutInformation.GetLayoutSlot()
[FriendAccessAllowed]
get
{
return _finalRect;

Просмотреть файл

@ -358,7 +358,6 @@ namespace System.Windows
/// <summary>
/// Asynchronously re-evaluate the reverse-inherited properties.
/// </summary>
[FriendAccessAllowed]
internal void SynchronizeReverseInheritPropertyFlags(DependencyObject oldParent, bool isCoreParent)
{
if (IsKeyboardFocusWithin)

Просмотреть файл

@ -13,7 +13,6 @@
using MS.Win32;
using MS.Internal;
using MS.Internal.PresentationCore; // SecurityHelper
using System.Collections.Specialized;
using System.IO;
using System.Security;
@ -463,7 +462,6 @@ namespace System.Windows
/// <param name="copy">
/// Specify whether the data should remain on the clipboard after the application exits.
/// </param>
[FriendAccessAllowed]
internal static void CriticalSetDataObject(object data, bool copy)
{
ArgumentNullException.ThrowIfNull(data);
@ -517,7 +515,6 @@ namespace System.Windows
}
}
[FriendAccessAllowed]
internal static bool IsClipboardPopulated()
{
return (GetDataObjectInternal() != null);

Просмотреть файл

@ -31,7 +31,6 @@ namespace System.Windows
using System.Windows.Media.Imaging;
using System.Text;
using MS.Internal;
using MS.Internal.PresentationCore; // SecurityHelper
using SR=MS.Internal.PresentationCore.SR;
using IComDataObject = System.Runtime.InteropServices.ComTypes.IDataObject;
@ -332,7 +331,6 @@ namespace System.Windows
/// to specify whether the
/// data can be converted to another format.
/// </summary>
[FriendAccessAllowed]
public void SetData(string format, Object data, bool autoConvert)
{
ArgumentNullException.ThrowIfNull(format);

Просмотреть файл

@ -46,7 +46,6 @@
<Compile Include="$(WpfSharedDir)\RefAssemblyAttrs.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\CommonDependencyPropertyAttribute.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\FixedPageInfo.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\FriendAccessAllowedAttribute.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\HashHelper.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\SecurityHelper.cs" />
<Compile Include="$(WpfSharedDir)\MS\Internal\SafeSecurityHelper.cs" />

Просмотреть файл

@ -1,6 +1,7 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Reflection;
using System.Windows;
@ -10,14 +11,11 @@ using System.Windows.Threading;
using System.Windows.Input;
using System.Diagnostics;
using System.IO;
using MS.Internal.PresentationUI;
using System.Windows.Interop;
using System.Security;
namespace Microsoft.Internal.DeploymentUI
{
[FriendAccessAllowed] // Built into UI, used by Framework.
internal partial class InstallationErrorPage : IErrorPage
{

Просмотреть файл

@ -9,8 +9,6 @@
using System;
using System.Security;
using MS.Internal.PresentationUI;
namespace MS.Internal.Documents.Application
{
/// <summary>
@ -31,7 +29,6 @@ namespace MS.Internal.Documents.Application
/// As such we need them to create this 'token' which will will use as the only
/// source of authoritative information for which files we are manipulating.
/// </remarks>
[FriendAccessAllowed]
internal sealed class CriticalFileToken
{
#region Constructors

Просмотреть файл

@ -4,8 +4,6 @@
// Description: Used as a custom journal entry for changes in the DocumentApplication's UI state.
using MS.Internal.PresentationUI; // For FriendAccessAllowed
using System;
using System.Runtime.Serialization;
using System.Windows;
@ -17,7 +15,6 @@ namespace MS.Internal.Documents.Application
/// <summary>
/// SignatureStatusEventArgs, object used when firing SigStatus change.
/// </summary>
[FriendAccessAllowed]
internal class DocumentApplicationJournalEntryEventArgs : EventArgs
{

Просмотреть файл

@ -4,14 +4,11 @@
// Description: Represents the current UI state of the application.
using MS.Internal.PresentationUI;
using System;
namespace MS.Internal.Documents.Application
{
[Serializable]
[FriendAccessAllowed]
internal struct DocumentApplicationState
{
//------------------------------------------------------

Просмотреть файл

@ -11,8 +11,6 @@ using System.Collections.Generic;
using System.IO;
using System.Security;
using MS.Internal.PresentationUI;
namespace MS.Internal.Documents.Application
{
/// <summary>
@ -34,7 +32,6 @@ namespace MS.Internal.Documents.Application
///
/// Example: FileController should never see RightsDocument.
/// </remarks>
[FriendAccessAllowed]
internal sealed class DocumentManager
: ChainOfResponsiblity<IDocumentController, Document>
{

Просмотреть файл

@ -5,7 +5,6 @@
// Description: This is a wrapper for DocumentPropertiesDialog, which caches the values which
// are displayed in the Dialog, and controls security access.
using MS.Internal.PresentationUI; // For CriticalDataForSet
using System;
using System.Drawing;
using System.Globalization;
@ -20,7 +19,6 @@ namespace MS.Internal.Documents.Application
/// <summary>
/// Singleton wrapper class for the DocumentPropertiesDialog.
/// </summary>
[FriendAccessAllowed]
internal sealed class DocumentProperties
{
//------------------------------------------------------

Просмотреть файл

@ -15,7 +15,6 @@ using System.IO;
using System.Security;
using System.Security.AccessControl;
using System.Windows.TrustUI;
using MS.Internal.PresentationUI;
namespace MS.Internal.Documents.Application
{

Просмотреть файл

@ -10,7 +10,6 @@ using System.Security;
using System.Windows.TrustUI;
using System.Windows.Interop;
using MS.Internal;
using MS.Internal.PresentationUI;
namespace MS.Internal.Documents.Application
{
@ -19,7 +18,6 @@ namespace MS.Internal.Documents.Application
/// <see cref="MS.Internal.Documents.Application.IDocumentController"/>
/// </summary>
[FriendAccessAllowed]
internal class HostedController : IDocumentController
{
#region IDocumentController Members

Просмотреть файл

@ -5,12 +5,12 @@
// Description:
// NavigationHelper is an internal utility class for Mongoose to deal
// with Uri navigations.
using System;
using System.Security;
using System.Windows.Interop;
using System.Windows.TrustUI;
using MS.Internal;
using MS.Internal.PresentationUI;
namespace MS.Internal.Documents.Application
{
@ -77,7 +77,6 @@ namespace MS.Internal.Documents.Application
/// If we are going to add more functionality a IBrowserService interface
/// of some type should be defined and set vs many delegates.
/// </remarks>
[FriendAccessAllowed]
internal static NavigateDelegate Navigate
{
get

Просмотреть файл

@ -9,14 +9,11 @@ using System.IO;
using System.IO.Packaging;
using System.Security;
using MS.Internal.PresentationUI;
namespace MS.Internal.Documents.Application
{
/// <summary>
/// Extends Document with a single member TrancationalPackage.
/// </summary>
[FriendAccessAllowed]
internal class PackageDocument : Document
{
#region Constructors

Просмотреть файл

@ -1,6 +1,7 @@
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
using System;
using System.Collections.Generic;
using System.ComponentModel;
@ -9,7 +10,6 @@ using System.Security;
using System.Windows.Forms;
using System.IO.Packaging;
using System.Windows.TrustUI;
using MS.Internal.PresentationUI;
namespace MS.Internal.Documents
{

Просмотреть файл

@ -14,14 +14,11 @@ using System.Security.Cryptography.X509Certificates;
using System.Windows.TrustUI;
using System.Windows.Xps.Packaging;
using MS.Internal.PresentationUI; // For FriendAccessAllowed
namespace MS.Internal.Documents
{
/// <summary>
/// DigitalSignatureProvider is used to connect DRP to Xps dig sig
/// </summary>
[FriendAccessAllowed]
internal class DigitalSignatureProvider : IDigitalSignatureProvider
{
#region Constructors

Просмотреть файл

@ -10,7 +10,6 @@
using MS.Internal.Documents.Application;
using MS.Internal.IO.Packaging; // For PreloadedPackages
using MS.Internal.PresentationUI;
using System;
using System.Collections.Generic;
using System.ComponentModel; // For IValueConverter
@ -36,7 +35,6 @@ using System.Windows.Media; // Visual Stuff
namespace MS.Internal.Documents
{
[FriendAccessAllowed]
internal sealed class DocumentApplicationDocumentViewer : DocumentViewer
{
//------------------------------------------------------

Просмотреть файл

@ -20,14 +20,12 @@ using System.Windows.Interop;
using System.Windows.Threading;
using MS.Internal.Documents.Application;
using MS.Internal.PresentationUI;
namespace MS.Internal.Documents
{
/// <summary>
/// DocumentSignatureManager is a internal Avalon class used to expose the DigSig Document API
/// </summary>
[FriendAccessAllowed]
internal sealed class DocumentSignatureManager
{
#region Constructors

Просмотреть файл

@ -23,12 +23,9 @@ using System.Text;
using System.Globalization;
using MS.Internal.Documents.Application;
using MS.Internal.PresentationUI;
namespace MS.Internal.Documents
{
[FriendAccessAllowed]
internal partial class FindToolBar
{
//------------------------------------------------------

Просмотреть файл

@ -14,8 +14,6 @@ using System.Runtime.InteropServices;
using System.Runtime.InteropServices.ComTypes;
using System.Windows.TrustUI;
using MS.Internal.PresentationUI;
namespace MS.Internal.Documents
{

Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше