Skip to content

Commit

Permalink
Step #2: Separating Scroller enums into new ScrollerEnums.idl file. T…
Browse files Browse the repository at this point in the history
…hose enums are in Windows.UI.Xaml.Controls.Primitives in WUXC and Microsoft.UI.Xaml.Controls in MUX.
  • Loading branch information
RBrid committed Jan 16, 2019
1 parent 511ada5 commit 36a65ae
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 94 deletions.
91 changes: 0 additions & 91 deletions dev/Scroller/Scroller.idl
Original file line number Diff line number Diff line change
@@ -1,96 +1,5 @@
[WUXC_VERSION_PREVIEW]
[webhosthidden]
enum InteractionState
{
Idle = 0,
Interaction = 1,
Inertia = 2,
Animation = 3,
};

[WUXC_VERSION_PREVIEW]
[webhosthidden]
enum ScrollMode
{
Enabled = 0,
Disabled = 1,
#ifdef USE_SCROLLMODE_AUTO
Auto = 2,
#endif
};

[WUXC_VERSION_PREVIEW]
[webhosthidden]
enum ZoomMode
{
Enabled = 0,
Disabled = 1,
};

[WUXC_VERSION_PREVIEW]
[webhosthidden]
enum ChainingMode
{
Auto = 0,
Always = 1,
Never = 2,
};

[WUXC_VERSION_PREVIEW]
[webhosthidden]
enum RailingMode
{
Enabled = 0,
Disabled = 1,
};

[WUXC_VERSION_PREVIEW]
[webhosthidden]
[flags]
enum InputKind
{
Touch = 1,
Pen = 2,
MouseWheel = 4,
All = 255,
};

[WUXC_VERSION_PREVIEW]
[webhosthidden]
enum ScrollerViewKind
{
Absolute = 0,
RelativeToCurrentView = 1,
RelativeToEndOfInertiaView = 2,
};

[WUXC_VERSION_PREVIEW]
[webhosthidden]
enum ScrollerViewChangeKind
{
DisableAnimation = 0,
AllowAnimation = 1,
};

[WUXC_VERSION_PREVIEW]
[webhosthidden]
enum ScrollerViewChangeSnapPointRespect
{
IgnoreSnapPoints = 0,
RespectSnapPoints = 1,
};

[WUXC_VERSION_PREVIEW]
[webhosthidden]
enum ScrollerViewChangeResult
{
Completed = 0,
Interrupted = 1,
Ignored = 2,
};

[WUXC_VERSION_PREVIEW]
[webhosthidden]
[marshaling_behavior(agile)]
[threading(both)]
runtimeclass ScrollerChangeOffsetsOptions
Expand Down
1 change: 1 addition & 0 deletions dev/Scroller/Scroller.vcxitems
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
<ProjectCapability Include="SourceItemsFromImports" />
</ItemGroup>
<ItemGroup>
<None Include="$(MSBuildThisFileDirectory)ScrollerEnums.idl" />
<None Include="$(MSBuildThisFileDirectory)Scroller.idl" />
<None Include="$(MSBuildThisFileDirectory)ScrollerPrimitives.idl" />
<None Include="$(MSBuildThisFileDirectory)ScrollerAutomationPeer.idl" />
Expand Down
6 changes: 3 additions & 3 deletions dev/Scroller/ScrollerEnums.idl
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
[WUXC_VERSION_PREVIEW]
[webhosthidden]
enum ScrollerState
enum InteractionState
{
Idle = 0,
Interacting = 1,
Interaction = 1,
Inertia = 2,
CustomAnimation = 3,
Animation = 3,
};

[WUXC_VERSION_PREVIEW]
Expand Down
6 changes: 6 additions & 0 deletions idl/Microsoft.UI.Xaml.idl
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#define USE_INSIDER_SDK

#define MU_XC_NAMESPACE Windows.UI.Xaml.Controls
#define MU_SE_NAMESPACE Windows.UI.Xaml.Controls.Primitives
#define MU_XCP_NAMESPACE Windows.UI.Xaml.Controls.Primitives
#define MU_XM_NAMESPACE Windows.UI.Xaml.Media
#define MU_XAP_NAMESPACE Windows.UI.Xaml.Automation.Peers
Expand Down Expand Up @@ -81,6 +82,7 @@ import "Windows.UI.Composition.Interactions.idl";
#endif

#define MU_XC_NAMESPACE Microsoft.UI.Xaml.Controls
#define MU_SE_NAMESPACE Microsoft.UI.Xaml.Controls
#define MU_XCP_NAMESPACE Microsoft.UI.Xaml.Controls.Primitives
#define MU_XM_NAMESPACE Microsoft.UI.Xaml.Media
#define MU_XAP_NAMESPACE Microsoft.UI.Xaml.Automation.Peers
Expand Down Expand Up @@ -234,6 +236,10 @@ namespace MU_X_XTI_NAMESPACE
}
#endif

namespace MU_SE_NAMESPACE
{
#include <Scroller\ScrollerEnums.idl>
}

namespace MU_XC_NAMESPACE
{
Expand Down

0 comments on commit 36a65ae

Please sign in to comment.