// // Copyright (c) Microsoft Corporation. All rights reserved. // // // File generated by WinMDIDL version 8.00.0021 // import "inspectable.idl"; import "AsyncInfo.idl"; import "EventToken.idl"; import "windowscontracts.idl"; import "Windows.Foundation.idl"; import "Windows.UI.Composition.idl"; import "Windows.UI.WindowManagement.idl"; import "Windows.UI.Xaml.idl"; import "Windows.UI.Xaml.Controls.idl"; import "Windows.UI.Xaml.Controls.Primitives.idl"; // Forward Declare namespace Windows { namespace Foundation { interface IAsyncAction; interface IClosable; typedef struct Rect Rect; typedef struct Size Size; apicontract UniversalApiContract; } } namespace Windows { namespace UI { namespace Composition { runtimeclass CompositionPropertySet; interface ICompositionAnimationBase; runtimeclass Visual; } } } namespace Windows { namespace UI { namespace WindowManagement { runtimeclass AppWindow; } } } namespace Windows { namespace UI { namespace Xaml { namespace Controls { namespace Primitives { typedef enum FlyoutPlacementMode FlyoutPlacementMode; } } } } } namespace Windows { namespace UI { namespace Xaml { namespace Controls { runtimeclass ScrollViewer; } } } } namespace Windows { namespace UI { namespace Xaml { runtimeclass FrameworkElement; runtimeclass ResourceDictionary; runtimeclass UIElement; } } } namespace Windows { namespace UI { namespace Xaml { namespace Hosting { apicontract HostingContract; typedef enum DesignerAppViewState DesignerAppViewState; typedef enum XamlSourceFocusNavigationReason XamlSourceFocusNavigationReason; interface IDesignerAppExitedEventArgs; interface IDesignerAppManager; interface IDesignerAppManagerFactory; interface IDesignerAppView; interface IDesktopWindowXamlSource; interface IDesktopWindowXamlSourceFactory; interface IDesktopWindowXamlSourceGotFocusEventArgs; interface IDesktopWindowXamlSourceTakeFocusRequestedEventArgs; interface IElementCompositionPreview; interface IElementCompositionPreviewStatics; interface IElementCompositionPreviewStatics2; interface IElementCompositionPreviewStatics3; interface IWindowsXamlManager; interface IWindowsXamlManagerStatics; interface IXamlSourceFocusNavigationRequest; interface IXamlSourceFocusNavigationRequestFactory; interface IXamlSourceFocusNavigationResult; interface IXamlSourceFocusNavigationResultFactory; interface IXamlUIPresenter; interface IXamlUIPresenterHost; interface IXamlUIPresenterHost2; interface IXamlUIPresenterHost3; interface IXamlUIPresenterStatics; interface IXamlUIPresenterStatics2; runtimeclass DesignerAppExitedEventArgs; runtimeclass DesignerAppManager; runtimeclass DesignerAppView; runtimeclass DesktopWindowXamlSource; runtimeclass DesktopWindowXamlSourceGotFocusEventArgs; runtimeclass DesktopWindowXamlSourceTakeFocusRequestedEventArgs; runtimeclass ElementCompositionPreview; runtimeclass WindowsXamlManager; runtimeclass XamlSourceFocusNavigationRequest; runtimeclass XamlSourceFocusNavigationResult; runtimeclass XamlUIPresenter; } } } } // Generic instantiations namespace Windows { namespace UI { namespace Xaml { namespace Hosting { declare { interface Windows.Foundation.IAsyncOperation; interface Windows.Foundation.TypedEventHandler; interface Windows.Foundation.TypedEventHandler; interface Windows.Foundation.TypedEventHandler; } } } } } // Type definition namespace Windows { namespace UI { namespace Xaml { namespace Hosting { [contractversion(5.0)] apicontract HostingContract { } [contract(Windows.UI.Xaml.Hosting.HostingContract, 2.0)] enum DesignerAppViewState { Visible = 0, Hidden = 1 }; [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] enum XamlSourceFocusNavigationReason { Programmatic = 0, Restore = 1, First = 3, Last = 4, Left = 7, Up = 8, Right = 9, Down = 10 }; [contract(Windows.UI.Xaml.Hosting.HostingContract, 2.0)] [exclusiveto(Windows.UI.Xaml.Hosting.DesignerAppExitedEventArgs)] [uuid(F6AAC86A-0CAD-410C-8F62-DC2936151C74)] interface IDesignerAppExitedEventArgs : IInspectable { [propget] HRESULT ExitCode([out] [retval] UINT32* value); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 2.0)] [exclusiveto(Windows.UI.Xaml.Hosting.DesignerAppManager)] [uuid(A6272CAA-D5C6-40CB-ABD9-27BA43831BB7)] interface IDesignerAppManager : IInspectable { [propget] HRESULT AppUserModelId([out] [retval] HSTRING* value); [eventadd] HRESULT DesignerAppExited([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT DesignerAppExited([in] EventRegistrationToken token); HRESULT CreateNewViewAsync([in] Windows.UI.Xaml.Hosting.DesignerAppViewState initialViewState, [in] Windows.Foundation.Size initialViewSize, [out] [retval] Windows.Foundation.IAsyncOperation** operation); HRESULT LoadObjectIntoAppAsync([in] HSTRING dllName, [in] GUID classId, [in] HSTRING initializationData, [out] [retval] Windows.Foundation.IAsyncAction** operation); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 2.0)] [exclusiveto(Windows.UI.Xaml.Hosting.DesignerAppManager)] [uuid(8F9D633B-1266-4C0E-8499-0DB85BBD4C43)] interface IDesignerAppManagerFactory : IInspectable { HRESULT Create([in] HSTRING appUserModelId, [out] [retval] Windows.UI.Xaml.Hosting.DesignerAppManager** value); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 2.0)] [exclusiveto(Windows.UI.Xaml.Hosting.DesignerAppView)] [uuid(5C777CEA-DD71-4A84-A56F-DACB4B14706F)] interface IDesignerAppView : IInspectable { [propget] HRESULT ApplicationViewId([out] [retval] INT32* value); [propget] HRESULT AppUserModelId([out] [retval] HSTRING* value); [propget] HRESULT ViewState([out] [retval] Windows.UI.Xaml.Hosting.DesignerAppViewState* value); [propget] HRESULT ViewSize([out] [retval] Windows.Foundation.Size* value); HRESULT UpdateViewAsync([in] Windows.UI.Xaml.Hosting.DesignerAppViewState viewState, [in] Windows.Foundation.Size viewSize, [out] [retval] Windows.Foundation.IAsyncAction** operation); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [exclusiveto(Windows.UI.Xaml.Hosting.DesktopWindowXamlSource)] [uuid(D585BFE1-00FF-51BE-BA1D-A1329956EA0A)] interface IDesktopWindowXamlSource : IInspectable { [propget] HRESULT Content([out] [retval] Windows.UI.Xaml.UIElement** value); [propput] HRESULT Content([in] Windows.UI.Xaml.UIElement* value); [propget] HRESULT HasFocus([out] [retval] boolean* value); [eventadd] HRESULT TakeFocusRequested([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT TakeFocusRequested([in] EventRegistrationToken token); [eventadd] HRESULT GotFocus([in] Windows.Foundation.TypedEventHandler* handler, [out] [retval] EventRegistrationToken* token); [eventremove] HRESULT GotFocus([in] EventRegistrationToken token); HRESULT NavigateFocus([in] Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationRequest* request, [out] [retval] Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationResult** result); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [exclusiveto(Windows.UI.Xaml.Hosting.DesktopWindowXamlSource)] [uuid(5CD61DC0-2561-56E1-8E75-6E44173805E3)] interface IDesktopWindowXamlSourceFactory : IInspectable { HRESULT CreateInstance([in] IInspectable* baseInterface, [out] IInspectable** innerInterface, [out] [retval] Windows.UI.Xaml.Hosting.DesktopWindowXamlSource** value); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [exclusiveto(Windows.UI.Xaml.Hosting.DesktopWindowXamlSourceGotFocusEventArgs)] [uuid(39BE4849-D9CC-5B70-8F05-1AD9A4AAA342)] interface IDesktopWindowXamlSourceGotFocusEventArgs : IInspectable { [propget] HRESULT Request([out] [retval] Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationRequest** value); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [exclusiveto(Windows.UI.Xaml.Hosting.DesktopWindowXamlSourceTakeFocusRequestedEventArgs)] [uuid(FE61E4B9-A7AF-52B3-BDB9-C3305C0B8DF2)] interface IDesktopWindowXamlSourceTakeFocusRequestedEventArgs : IInspectable { [propget] HRESULT Request([out] [retval] Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationRequest** value); } [contract(Windows.Foundation.UniversalApiContract, 2.0)] [exclusiveto(Windows.UI.Xaml.Hosting.ElementCompositionPreview)] [uuid(B6F1A676-CFE6-46AC-ACF6-C4687BB65E60)] interface IElementCompositionPreview : IInspectable { } [contract(Windows.Foundation.UniversalApiContract, 2.0)] [exclusiveto(Windows.UI.Xaml.Hosting.ElementCompositionPreview)] [uuid(08C92B38-EC99-4C55-BC85-A1C180B27646)] interface IElementCompositionPreviewStatics : IInspectable { HRESULT GetElementVisual([in] Windows.UI.Xaml.UIElement* element, [out] [retval] Windows.UI.Composition.Visual** result); HRESULT GetElementChildVisual([in] Windows.UI.Xaml.UIElement* element, [out] [retval] Windows.UI.Composition.Visual** result); HRESULT SetElementChildVisual([in] Windows.UI.Xaml.UIElement* element, [in] Windows.UI.Composition.Visual* visual); HRESULT GetScrollViewerManipulationPropertySet([in] Windows.UI.Xaml.Controls.ScrollViewer* scrollViewer, [out] [retval] Windows.UI.Composition.CompositionPropertySet** result); } [contract(Windows.Foundation.UniversalApiContract, 4.0)] [exclusiveto(Windows.UI.Xaml.Hosting.ElementCompositionPreview)] [uuid(24148FBB-23D6-4F37-BA0C-0733E799722D)] interface IElementCompositionPreviewStatics2 : IInspectable { HRESULT SetImplicitShowAnimation([in] Windows.UI.Xaml.UIElement* element, [in] Windows.UI.Composition.ICompositionAnimationBase* animation); HRESULT SetImplicitHideAnimation([in] Windows.UI.Xaml.UIElement* element, [in] Windows.UI.Composition.ICompositionAnimationBase* animation); HRESULT SetIsTranslationEnabled([in] Windows.UI.Xaml.UIElement* element, [in] boolean value); HRESULT GetPointerPositionPropertySet([in] Windows.UI.Xaml.UIElement* targetElement, [out] [retval] Windows.UI.Composition.CompositionPropertySet** result); } [contract(Windows.Foundation.UniversalApiContract, 8.0)] [exclusiveto(Windows.UI.Xaml.Hosting.ElementCompositionPreview)] [uuid(843BC4C3-C105-59FE-A3D1-373C1D3E6FBC)] interface IElementCompositionPreviewStatics3 : IInspectable { HRESULT SetAppWindowContent([in] Windows.UI.WindowManagement.AppWindow* appWindow, [in] Windows.UI.Xaml.UIElement* xamlContent); HRESULT GetAppWindowContent([in] Windows.UI.WindowManagement.AppWindow* appWindow, [out] [retval] Windows.UI.Xaml.UIElement** result); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [exclusiveto(Windows.UI.Xaml.Hosting.WindowsXamlManager)] [uuid(56096C31-1AA0-5288-8818-6E74A2DCAFF5)] interface IWindowsXamlManager : IInspectable { } [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [exclusiveto(Windows.UI.Xaml.Hosting.WindowsXamlManager)] [uuid(28258A12-7D82-505B-B210-712B04A58882)] interface IWindowsXamlManagerStatics : IInspectable { HRESULT InitializeForCurrentThread([out] [retval] Windows.UI.Xaml.Hosting.WindowsXamlManager** result); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [exclusiveto(Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationRequest)] [uuid(FBB93BB5-1496-5A80-AC00-E757359755E6)] interface IXamlSourceFocusNavigationRequest : IInspectable { [propget] HRESULT Reason([out] [retval] Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationReason* value); [propget] HRESULT HintRect([out] [retval] Windows.Foundation.Rect* value); [propget] HRESULT CorrelationId([out] [retval] GUID* value); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [exclusiveto(Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationRequest)] [uuid(E746AB8F-B4EF-5390-97E5-CC0A2779C574)] interface IXamlSourceFocusNavigationRequestFactory : IInspectable { HRESULT CreateInstance([in] Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationReason reason, [out] [retval] Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationRequest** value); HRESULT CreateInstanceWithHintRect([in] Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationReason reason, [in] Windows.Foundation.Rect hintRect, [out] [retval] Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationRequest** value); HRESULT CreateInstanceWithHintRectAndCorrelationId([in] Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationReason reason, [in] Windows.Foundation.Rect hintRect, [in] GUID correlationId, [out] [retval] Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationRequest** value); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [exclusiveto(Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationResult)] [uuid(88D55A5F-9603-5D8F-9CC7-D1C4070D9801)] interface IXamlSourceFocusNavigationResult : IInspectable { [propget] HRESULT WasFocusMoved([out] [retval] boolean* value); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [exclusiveto(Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationResult)] [uuid(43BBADBF-F9E1-5527-B8C5-09339FF2CA76)] interface IXamlSourceFocusNavigationResultFactory : IInspectable { HRESULT CreateInstance([in] boolean focusMoved, [out] [retval] Windows.UI.Xaml.Hosting.XamlSourceFocusNavigationResult** value); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 1.0)] [exclusiveto(Windows.UI.Xaml.Hosting.XamlUIPresenter)] [uuid(A714944A-1619-4FC6-B31B-89512EF022A2)] interface IXamlUIPresenter : IInspectable { [propget] HRESULT RootElement([out] [retval] Windows.UI.Xaml.UIElement** value); [propput] HRESULT RootElement([in] Windows.UI.Xaml.UIElement* value); [propget] HRESULT ThemeKey([out] [retval] HSTRING* value); [propput] HRESULT ThemeKey([in] HSTRING value); [propget] HRESULT ThemeResourcesXaml([out] [retval] HSTRING* value); [propput] HRESULT ThemeResourcesXaml([in] HSTRING value); HRESULT SetSize([in] INT32 width, [in] INT32 height); HRESULT Render(); HRESULT Present(); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 1.0)] [uuid(AAFB84CD-9F6D-4F80-AC2C-0E6CB9F31659)] interface IXamlUIPresenterHost : IInspectable { HRESULT ResolveFileResource([in] HSTRING path, [out] [retval] HSTRING* result); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 1.0)] [uuid(61595672-7CA4-4A21-B56A-88F4812388CA)] interface IXamlUIPresenterHost2 : IInspectable { HRESULT GetGenericXamlFilePath([out] [retval] HSTRING* result); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 1.0)] [uuid(B14292BF-7320-41BB-9F26-4D6FD34DB45A)] interface IXamlUIPresenterHost3 : IInspectable { HRESULT ResolveDictionaryResource([in] Windows.UI.Xaml.ResourceDictionary* dictionary, [in] IInspectable* dictionaryKey, [in] IInspectable* suggestedValue, [out] [retval] IInspectable** result); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 1.0)] [exclusiveto(Windows.UI.Xaml.Hosting.XamlUIPresenter)] [uuid(71EAEAC8-45E1-4192-85AA-3A422EDD23CF)] interface IXamlUIPresenterStatics : IInspectable { [propget] HRESULT CompleteTimelinesAutomatically([out] [retval] boolean* value); [propput] HRESULT CompleteTimelinesAutomatically([in] boolean value); HRESULT SetHost([in] Windows.UI.Xaml.Hosting.IXamlUIPresenterHost* host); HRESULT NotifyWindowSizeChanged(); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 1.0)] [exclusiveto(Windows.UI.Xaml.Hosting.XamlUIPresenter)] [uuid(5C6B68D2-CF1C-4F53-BF09-6A745F7A9703)] interface IXamlUIPresenterStatics2 : IInspectable { HRESULT GetFlyoutPlacementTargetInfo([in] Windows.UI.Xaml.FrameworkElement* placementTarget, [in] Windows.UI.Xaml.Controls.Primitives.FlyoutPlacementMode preferredPlacement, [out] Windows.UI.Xaml.Controls.Primitives.FlyoutPlacementMode* targetPreferredPlacement, [out] boolean* allowFallbacks, [out] [retval] Windows.Foundation.Rect* returnValue); HRESULT GetFlyoutPlacement([in] Windows.Foundation.Rect placementTargetBounds, [in] Windows.Foundation.Size controlSize, [in] Windows.Foundation.Size minControlSize, [in] Windows.Foundation.Rect containerRect, [in] Windows.UI.Xaml.Controls.Primitives.FlyoutPlacementMode targetPreferredPlacement, [in] boolean allowFallbacks, [out] Windows.UI.Xaml.Controls.Primitives.FlyoutPlacementMode* chosenPlacement, [out] [retval] Windows.Foundation.Rect* returnValue); } [contract(Windows.UI.Xaml.Hosting.HostingContract, 2.0)] [marshaling_behavior(agile)] runtimeclass DesignerAppExitedEventArgs { [default] interface Windows.UI.Xaml.Hosting.IDesignerAppExitedEventArgs; } [activatable(Windows.UI.Xaml.Hosting.IDesignerAppManagerFactory, Windows.UI.Xaml.Hosting.HostingContract, 2.0)] [contract(Windows.UI.Xaml.Hosting.HostingContract, 2.0)] [marshaling_behavior(agile)] [threading(both)] runtimeclass DesignerAppManager { [default] interface Windows.UI.Xaml.Hosting.IDesignerAppManager; [contract(Windows.UI.Xaml.Hosting.HostingContract, 2.0)] interface Windows.Foundation.IClosable; } [contract(Windows.UI.Xaml.Hosting.HostingContract, 2.0)] [marshaling_behavior(agile)] runtimeclass DesignerAppView { [default] interface Windows.UI.Xaml.Hosting.IDesignerAppView; [contract(Windows.UI.Xaml.Hosting.HostingContract, 2.0)] interface Windows.Foundation.IClosable; } [composable(Windows.UI.Xaml.Hosting.IDesktopWindowXamlSourceFactory, public, Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [marshaling_behavior(agile)] [threading(both)] runtimeclass DesktopWindowXamlSource { [default] interface Windows.UI.Xaml.Hosting.IDesktopWindowXamlSource; [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] interface Windows.Foundation.IClosable; } [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [marshaling_behavior(agile)] runtimeclass DesktopWindowXamlSourceGotFocusEventArgs { [default] interface Windows.UI.Xaml.Hosting.IDesktopWindowXamlSourceGotFocusEventArgs; } [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [marshaling_behavior(agile)] runtimeclass DesktopWindowXamlSourceTakeFocusRequestedEventArgs { [default] interface Windows.UI.Xaml.Hosting.IDesktopWindowXamlSourceTakeFocusRequestedEventArgs; } [contract(Windows.Foundation.UniversalApiContract, 2.0)] [marshaling_behavior(agile)] [static(Windows.UI.Xaml.Hosting.IElementCompositionPreviewStatics, Windows.Foundation.UniversalApiContract, 2.0)] [static(Windows.UI.Xaml.Hosting.IElementCompositionPreviewStatics2, Windows.Foundation.UniversalApiContract, 4.0)] [static(Windows.UI.Xaml.Hosting.IElementCompositionPreviewStatics3, Windows.Foundation.UniversalApiContract, 8.0)] [threading(both)] runtimeclass ElementCompositionPreview { [default] interface Windows.UI.Xaml.Hosting.IElementCompositionPreview; } [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [marshaling_behavior(agile)] [static(Windows.UI.Xaml.Hosting.IWindowsXamlManagerStatics, Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [threading(both)] runtimeclass WindowsXamlManager { [default] interface Windows.UI.Xaml.Hosting.IWindowsXamlManager; [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] interface Windows.Foundation.IClosable; } [activatable(Windows.UI.Xaml.Hosting.IXamlSourceFocusNavigationRequestFactory, Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [marshaling_behavior(agile)] [threading(both)] runtimeclass XamlSourceFocusNavigationRequest { [default] interface Windows.UI.Xaml.Hosting.IXamlSourceFocusNavigationRequest; } [activatable(Windows.UI.Xaml.Hosting.IXamlSourceFocusNavigationResultFactory, Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [contract(Windows.UI.Xaml.Hosting.HostingContract, 3.0)] [marshaling_behavior(agile)] [threading(both)] runtimeclass XamlSourceFocusNavigationResult { [default] interface Windows.UI.Xaml.Hosting.IXamlSourceFocusNavigationResult; } [contract(Windows.UI.Xaml.Hosting.HostingContract, 1.0)] [marshaling_behavior(agile)] [static(Windows.UI.Xaml.Hosting.IXamlUIPresenterStatics, Windows.UI.Xaml.Hosting.HostingContract, 1.0)] [static(Windows.UI.Xaml.Hosting.IXamlUIPresenterStatics2, Windows.UI.Xaml.Hosting.HostingContract, 1.0)] [threading(both)] runtimeclass XamlUIPresenter { [default] interface Windows.UI.Xaml.Hosting.IXamlUIPresenter; } } } } }