Skip to content

Commit

Permalink
chore: bring back all of Windows.UI.Input
Browse files Browse the repository at this point in the history
  • Loading branch information
ramezgerges committed Nov 21, 2024
1 parent 1e7970e commit 022cb54
Show file tree
Hide file tree
Showing 23 changed files with 62 additions and 23 deletions.
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Input/DraggingEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
using Windows.Devices.Input;
using Windows.Foundation;

Expand Down Expand Up @@ -27,3 +29,4 @@ internal DraggingEventArgs(PointerPoint point, DraggingState state, uint contact
public uint ContactCount { get; }
}
}
#endif
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Input/DraggingState.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
#if HAS_UNO_WINUI && IS_UNO_UI_PROJECT
namespace Microsoft.UI.Input
#else
Expand All @@ -11,3 +13,4 @@ public enum DraggingState
Completed,
}
}
#endif
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Input/GestureRecognizer.Gesture.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
#nullable enable

using System;
Expand Down Expand Up @@ -398,3 +400,4 @@ public static bool IsOutOfTapRange(Point p1, Point p2)
}
}
}
#endif
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
#nullable enable

using System;
Expand Down Expand Up @@ -216,3 +218,4 @@ public void RunSync()
}
}
}
#endif
5 changes: 4 additions & 1 deletion src/Uno.UI/UI/Input/GestureRecognizer.Manipulation.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
#nullable enable
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
#nullable enable

using System;
using System.Collections.Generic;
Expand Down Expand Up @@ -751,3 +753,4 @@ public static implicit operator Points(PointerPoint pointer1)
}
}
}
#endif
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Input/GestureRecognizer.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
using System;
using System.Collections.Generic;
using System.Linq;
Expand Down Expand Up @@ -291,3 +293,4 @@ private static ulong GetPointerIdentifier(PointerPoint point)
}
}
}
#endif
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Input/GestureSettings.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
using System;
using Windows.Foundation;
using Windows.Foundation.Metadata;
Expand Down Expand Up @@ -108,3 +110,4 @@ internal static class GestureSettingsHelper
| GestureSettings.ManipulationRotateInertia;
}
}
#endif
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Input/HoldingEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
using Windows.Devices.Input;
using Windows.Foundation;
using Uno;
Expand Down Expand Up @@ -33,3 +35,4 @@ internal HoldingEventArgs(uint pointerId, PointerDeviceType type, Point position
public uint CurrentContactCount => HoldingState == HoldingState.Started ? 1u : 0u;
}
}
#endif
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Input/HoldingState.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
#if HAS_UNO_WINUI && IS_UNO_UI_PROJECT
namespace Microsoft.UI.Input
#else
Expand All @@ -11,3 +13,4 @@ public enum HoldingState
Canceled,
}
}
#endif
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Input/ManipulationCompletedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
using System.Linq;
using Windows.Devices.Input;
using Windows.Foundation;
Expand Down Expand Up @@ -49,3 +51,4 @@ internal ManipulationCompletedEventArgs(
internal bool IsInertial { get; }
}
}
#endif
5 changes: 4 additions & 1 deletion src/Uno.UI/UI/Input/ManipulationDelta.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
using System;
using System.Collections.Generic;
using Windows.Foundation;

Expand Down Expand Up @@ -80,3 +82,4 @@ public override int GetHashCode()
#endregion
}
}
#endif
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Input/ManipulationInertiaStartingEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
using System.Linq;
using Windows.Devices.Input;
using Windows.Foundation;
Expand Down Expand Up @@ -48,3 +50,4 @@ internal ManipulationInertiaStartingEventArgs(
internal GestureRecognizer.Manipulation.InertiaProcessor Processor { get; }
}
}
#endif
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Input/ManipulationStartedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
using System.Linq;
using Windows.Devices.Input;
using Windows.Foundation;
Expand Down Expand Up @@ -38,3 +40,4 @@ internal ManipulationStartedEventArgs(
public uint ContactCount { get; }
}
}
#endif
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Input/ManipulationStartingEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
using System;
using System.Linq;
using Windows.Devices.Input;
Expand Down Expand Up @@ -26,3 +28,4 @@ internal ManipulationStartingEventArgs(PointerIdentifier pointer, GestureSetting
public GestureSettings Settings { get; set; }
}
}
#endif
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Input/ManipulationUpdatedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
using System.Linq;
using System.Reflection;
using Windows.Devices.Input;
Expand Down Expand Up @@ -52,3 +54,4 @@ internal ManipulationUpdatedEventArgs(
internal bool IsInertial { get; }
}
}
#endif
5 changes: 4 additions & 1 deletion src/Uno.UI/UI/Input/ManipulationVelocities.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
using System;
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
using System;
using System.Collections.Generic;
using Windows.Foundation;

Expand Down Expand Up @@ -64,3 +66,4 @@ public override int GetHashCode()
#endregion
}
}
#endif
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Input/RightTappedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
using Windows.Devices.Input;
using Windows.Foundation;

Expand Down Expand Up @@ -33,3 +35,4 @@ public uint ContactCount
}
}
}
#endif
3 changes: 3 additions & 0 deletions src/Uno.UI/UI/Input/TappedEventArgs.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
// On the UWP branch, only include this file in Uno.UWP (as public Window.whatever). On the WinUI branch, include it in both Uno.UWP (internal as Windows.whatever) and Uno.UI (public as Microsoft.whatever)
#if HAS_UNO_WINUI || !IS_UNO_UI_PROJECT
using Windows.Devices.Input;
using Windows.Foundation;

Expand Down Expand Up @@ -36,3 +38,4 @@ public uint ContactCount
}
}
}
#endif
5 changes: 1 addition & 4 deletions src/Uno.UWP/Uno.Reference.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,7 @@
</ItemGroup>

<ItemGroup>
<Compile Include="..\Uno.UI\UI\Input\PointerPoint.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerPointProperties.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerPointPropertiesExtensions.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerUpdateKind.cs" />
<Compile Include="..\Uno.UI\UI\Input\*.cs" />
<Compile Include="..\Uno.UI\UI\Colors.cs" />
<Compile Include="..\Uno.UI\UI\ColorHelper.cs" />
<Compile Include="..\Uno.UI\UI\Text\FontWeights.cs" />
Expand Down
5 changes: 1 addition & 4 deletions src/Uno.UWP/Uno.Skia.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,7 @@
</ItemGroup>

<ItemGroup>
<Compile Include="..\Uno.UI\UI\Input\PointerPoint.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerPointProperties.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerPointPropertiesExtensions.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerUpdateKind.cs" />
<Compile Include="..\Uno.UI\UI\Input\*.cs" />
<Compile Include="..\Uno.UI\UI\Colors.cs" />
<Compile Include="..\Uno.UI\UI\ColorHelper.cs" />
<Compile Include="..\Uno.UI\UI\Text\FontWeights.cs" />
Expand Down
5 changes: 1 addition & 4 deletions src/Uno.UWP/Uno.Tests.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,7 @@
</ItemGroup>

<ItemGroup>
<Compile Include="..\Uno.UI\UI\Input\PointerPoint.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerPointProperties.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerPointPropertiesExtensions.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerUpdateKind.cs" />
<Compile Include="..\Uno.UI\UI\Input\*.cs" />
<Compile Include="..\Uno.UI\UI\Colors.cs" />
<Compile Include="..\Uno.UI\UI\ColorHelper.cs" />
<Compile Include="..\Uno.UI\UI\Text\FontWeights.cs" />
Expand Down
5 changes: 1 addition & 4 deletions src/Uno.UWP/Uno.Wasm.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,7 @@
</ItemGroup>

<ItemGroup>
<Compile Include="..\Uno.UI\UI\Input\PointerPoint.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerPointProperties.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerPointPropertiesExtensions.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerUpdateKind.cs" />
<Compile Include="..\Uno.UI\UI\Input\*.cs" />
<Compile Include="..\Uno.UI\UI\Colors.cs" />
<Compile Include="..\Uno.UI\UI\ColorHelper.cs" />
<Compile Include="..\Uno.UI\UI\Text\FontWeights.cs" />
Expand Down
5 changes: 1 addition & 4 deletions src/Uno.UWP/Uno.netcoremobile.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,7 @@
</ItemGroup>

<ItemGroup>
<Compile Include="..\Uno.UI\UI\Input\PointerPoint.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerPointProperties.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerPointPropertiesExtensions.cs" />
<Compile Include="..\Uno.UI\UI\Input\PointerUpdateKind.cs" />
<Compile Include="..\Uno.UI\UI\Input\*.cs" />
<Compile Include="..\Uno.UI\UI\Colors.cs" />
<Compile Include="..\Uno.UI\UI\ColorHelper.cs" />
<Compile Include="..\Uno.UI\UI\Text\FontWeights.cs" />
Expand Down

0 comments on commit 022cb54

Please sign in to comment.