diff --git a/include/windows.ui.viewmanagement.idl b/include/windows.ui.viewmanagement.idl index 1076d287183..d4a382d2f68 100644 --- a/include/windows.ui.viewmanagement.idl +++ b/include/windows.ui.viewmanagement.idl @@ -37,6 +37,7 @@ namespace Windows.UI.ViewManagement typedef enum HandPreference HandPreference; typedef enum UIColorType UIColorType; typedef enum UIElementType UIElementType; + typedef enum UserInteractionMode UserInteractionMode; interface IUISettings; interface IUISettings2; @@ -45,6 +46,9 @@ namespace Windows.UI.ViewManagement interface IUISettings5; interface IUISettings6; + interface IUIViewSettings; + interface IUIViewSettingsStatics; + interface IInputPane; interface IInputPane2; interface IInputPaneControl; @@ -53,6 +57,7 @@ namespace Windows.UI.ViewManagement interface IInputPaneStatics2; runtimeclass UISettings; + runtimeclass UIViewSettings; runtimeclass InputPane; runtimeclass InputPaneVisibilityEventArgs; @@ -133,6 +138,15 @@ namespace Windows.UI.ViewManagement OverlayOutsidePopup = 1012, }; + [ + contract(Windows.Foundation.UniversalApiContract, 1.0) + ] + enum UserInteractionMode + { + Mouse = 0, + Touch = 1, + }; + [ contract(Windows.Foundation.UniversalApiContract, 1.0), exclusiveto(Windows.UI.ViewManagement.UISettings), @@ -181,6 +195,26 @@ namespace Windows.UI.ViewManagement [eventremove] HRESULT ColorValuesChanged([in] EventRegistrationToken cookie); } + [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + exclusiveto(Windows.UI.ViewManagement.UIViewSettings), + uuid(c63657f6-8850-470d-88f8-455e16ea2c26) + ] + interface IUIViewSettings : IInspectable + { + [propget] HRESULT UserInteractionMode([out, retval] Windows.UI.ViewManagement.UserInteractionMode *value); + } + + [ + contract(Windows.Foundation.UniversalApiContract, 1.0), + exclusiveto(Windows.UI.ViewManagement.UIViewSettings), + uuid(595c97a5-f8f6-41cf-b0fb-aacdb81fd5f6) + ] + interface IUIViewSettingsStatics : IInspectable + { + HRESULT GetForCurrentView([out, retval] Windows.UI.ViewManagement.UIViewSettings **current); + } + [ contract(Windows.Foundation.UniversalApiContract, 1.0), exclusiveto(Windows.UI.ViewManagement.InputPane), @@ -261,6 +295,16 @@ namespace Windows.UI.ViewManagement [contract(Windows.Foundation.UniversalApiContract, 1.0)] interface Windows.UI.ViewManagement.IUISettings3; } + [ + static(Windows.UI.ViewManagement.IUIViewSettingsStatics, Windows.Foundation.UniversalApiContract, 1.0), + contract(Windows.Foundation.UniversalApiContract, 1.0), + marshaling_behavior(agile) + ] + runtimeclass UIViewSettings + { + [default] interface Windows.UI.ViewManagement.IUIViewSettings; + } + [ static(Windows.UI.ViewManagement.IInputPaneStatics, Windows.Foundation.UniversalApiContract, 1.0), static(Windows.UI.ViewManagement.IInputPaneStatics2, Windows.Foundation.UniversalApiContract, 8.0),