diff --git a/src/Tizen.NUI.Components/Controls/Button.Internal.cs b/src/Tizen.NUI.Components/Controls/Button.Internal.cs index 9fa9e2b47d4..79d7b6b62a7 100644 --- a/src/Tizen.NUI.Components/Controls/Button.Internal.cs +++ b/src/Tizen.NUI.Components/Controls/Button.Internal.cs @@ -20,7 +20,6 @@ using System.Diagnostics; using Tizen.NUI.BaseComponents; using Tizen.NUI.Components.Extension; -using Tizen.NUI.Accessibility; // To use AccessibilityManager namespace Tizen.NUI.Components { @@ -278,8 +277,6 @@ public override void OnInitialize() AccessibilityHighlightable = true; EnableControlStatePropagation = true; - AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Trait, "Button"); - buttonText = CreateText(); buttonIcon = CreateIcon(); LayoutItems(); diff --git a/src/Tizen.NUI.Components/Controls/Loading.cs b/src/Tizen.NUI.Components/Controls/Loading.cs index 8e3c94a95e0..f996b327a25 100755 --- a/src/Tizen.NUI.Components/Controls/Loading.cs +++ b/src/Tizen.NUI.Components/Controls/Loading.cs @@ -20,7 +20,6 @@ using System.Diagnostics; using Tizen.NUI.BaseComponents; using Tizen.NUI.Binding; -using Tizen.NUI.Accessibility; namespace Tizen.NUI.Components { @@ -267,8 +266,6 @@ public override void OnInitialize() AccessibilityRole = Role.ProgressBar; EnsureLottieView(lottieResource); - - AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Trait, "Loading"); } /// diff --git a/src/Tizen.NUI.Components/Controls/RecyclerView/Item/DefaultTitleItem.cs b/src/Tizen.NUI.Components/Controls/RecyclerView/Item/DefaultTitleItem.cs index 834052a3c20..6a0c46b2f42 100755 --- a/src/Tizen.NUI.Components/Controls/RecyclerView/Item/DefaultTitleItem.cs +++ b/src/Tizen.NUI.Components/Controls/RecyclerView/Item/DefaultTitleItem.cs @@ -16,7 +16,6 @@ using System; using System.ComponentModel; using Tizen.NUI.BaseComponents; -using Tizen.NUI.Accessibility; namespace Tizen.NUI.Components { @@ -127,7 +126,7 @@ public string IconUrl // Tizen.Log.Error("IconUrl only can set Icon is ImageView"); return; } - (Icon as ImageView).ResourceUrl = value; + (Icon as ImageView).ResourceUrl = value; } } */ @@ -154,7 +153,6 @@ public TextLabel Label internal set { itemLabel = value; - AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Label, itemLabel.Text); } } diff --git a/src/Tizen.NUI.Components/Controls/RecyclerView/Item/RecyclerViewItem.Internal.cs b/src/Tizen.NUI.Components/Controls/RecyclerView/Item/RecyclerViewItem.Internal.cs index dc48d10a547..7808987ba31 100755 --- a/src/Tizen.NUI.Components/Controls/RecyclerView/Item/RecyclerViewItem.Internal.cs +++ b/src/Tizen.NUI.Components/Controls/RecyclerView/Item/RecyclerViewItem.Internal.cs @@ -17,7 +17,6 @@ using System; using System.ComponentModel; using Tizen.NUI.BaseComponents; -using Tizen.NUI.Accessibility; // To use AccessibilityManager namespace Tizen.NUI.Components { @@ -198,8 +197,6 @@ public override void OnInitialize() Layout = new AbsoluteLayout(); UpdateState(); - AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Trait, "ViewItem"); - AccessibilityRole = Role.ListItem; AccessibilityHighlightable = true; } diff --git a/src/Tizen.NUI.Components/Controls/ScrollableBase.cs b/src/Tizen.NUI.Components/Controls/ScrollableBase.cs index e83a1bf60f7..d7f18d49fbf 100755 --- a/src/Tizen.NUI.Components/Controls/ScrollableBase.cs +++ b/src/Tizen.NUI.Components/Controls/ScrollableBase.cs @@ -19,7 +19,6 @@ using System.ComponentModel; using System.Diagnostics; using System.Runtime.InteropServices; -using Tizen.NUI.Accessibility; namespace Tizen.NUI.Components { @@ -963,8 +962,6 @@ private void Initialize() WheelEvent += OnWheelEvent; - AccessibilityManager.Instance.SetAccessibilityAttribute(this, AccessibilityManager.AccessibilityAttribute.Trait, "ScrollableBase"); - SetKeyboardNavigationSupport(true); } @@ -1810,17 +1807,6 @@ internal void BaseRemove(View view) base.Remove(view); } - internal override bool OnAccessibilityPan(PanGesture gestures) - { - if (SnapToPage && scrollAnimation != null && scrollAnimation.State == Animation.States.Playing) - { - return false; - } - - OnPanGesture(gestures); - return true; - } - private float CustomScrollAlphaFunction(float progress) { if (panAnimationDelta == 0) diff --git a/src/Tizen.NUI/src/internal/Accessibility/AccessibilityActionSignal.cs b/src/Tizen.NUI/src/internal/Accessibility/AccessibilityActionSignal.cs deleted file mode 100755 index 53b08a4eca0..00000000000 --- a/src/Tizen.NUI/src/internal/Accessibility/AccessibilityActionSignal.cs +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright(c) 2021 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -using Tizen.NUI.Accessibility; - -namespace Tizen.NUI -{ - internal class AccessibilityActionSignal : Disposable - { - internal AccessibilityActionSignal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) - { - } - - protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) - { - Interop.AccessibilityManager.DeleteAccessibilityActionSignal(swigCPtr); - } - - public bool Empty() - { - bool ret = Interop.AccessibilityManager.AccessibilityActionSignalEmpty(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public uint GetConnectionCount() - { - uint ret = Interop.AccessibilityManager.AccessibilityActionSignalGetConnectionCount(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public void Connect(System.Delegate func) - { - System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - Interop.AccessibilityManager.AccessibilityActionSignalConnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } - - public void Disconnect(System.Delegate func) - { - System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - Interop.AccessibilityManager.AccessibilityActionSignalDisconnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } - - public bool Emit(AccessibilityManager arg) - { - bool ret = Interop.AccessibilityManager.AccessibilityActionSignalEmit(SwigCPtr, AccessibilityManager.getCPtr(arg)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public AccessibilityActionSignal() : this(Interop.AccessibilityManager.NewAccessibilityActionSignal(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } -} diff --git a/src/Tizen.NUI/src/internal/Accessibility/AccessibilityFocusOvershotSignal.cs b/src/Tizen.NUI/src/internal/Accessibility/AccessibilityFocusOvershotSignal.cs deleted file mode 100755 index 1bd75402efd..00000000000 --- a/src/Tizen.NUI/src/internal/Accessibility/AccessibilityFocusOvershotSignal.cs +++ /dev/null @@ -1,77 +0,0 @@ -/* - * Copyright(c) 2021 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -namespace Tizen.NUI -{ - using Tizen.NUI.BaseComponents; - using Tizen.NUI.Accessibility; - internal class AccessibilityFocusOvershotSignal : Disposable - { - - internal AccessibilityFocusOvershotSignal(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) - { - } - - protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) - { - Interop.AccessibilityManager.DeleteAccessibilityFocusOvershotSignal(swigCPtr); - } - - public bool Empty() - { - bool ret = Interop.AccessibilityManager.AccessibilityFocusOvershotSignalEmpty(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public uint GetConnectionCount() - { - uint ret = Interop.AccessibilityManager.AccessibilityFocusOvershotSignalGetConnectionCount(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public void Connect(System.Delegate func) - { - System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - Interop.AccessibilityManager.AccessibilityFocusOvershotSignalConnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } - - public void Disconnect(System.Delegate func) - { - System.IntPtr ip = System.Runtime.InteropServices.Marshal.GetFunctionPointerForDelegate(func); - { - Interop.AccessibilityManager.AccessibilityFocusOvershotSignalDisconnect(SwigCPtr, new System.Runtime.InteropServices.HandleRef(this, ip)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } - - public void Emit(View arg1, AccessibilityManager.FocusOvershotDirection arg2) - { - Interop.AccessibilityManager.AccessibilityFocusOvershotSignalEmit(SwigCPtr, View.getCPtr(arg1), (int)arg2); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - public AccessibilityFocusOvershotSignal() : this(Interop.AccessibilityManager.NewAccessibilityFocusOvershotSignal(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - } -} diff --git a/src/Tizen.NUI/src/internal/Common/ViewImpl.cs b/src/Tizen.NUI/src/internal/Common/ViewImpl.cs index 1c786732702..4ec0f33a7c1 100755 --- a/src/Tizen.NUI/src/internal/Common/ViewImpl.cs +++ b/src/Tizen.NUI/src/internal/Common/ViewImpl.cs @@ -337,27 +337,6 @@ public virtual bool OnAccessibilityActivated() return ret; } - public virtual bool OnAccessibilityPan(PanGesture gesture) - { - bool ret = (SwigDerivedClassHasMethod("OnAccessibilityPan", swigMethodTypes26) ? Interop.ViewImplSignal.OnAccessibilityPanSwigExplicitViewImpl(SwigCPtr, PanGesture.getCPtr(gesture)) : Interop.ViewImplSignal.OnAccessibilityPan(SwigCPtr, PanGesture.getCPtr(gesture))); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public virtual bool OnAccessibilityValueChange(bool isIncrease) - { - bool ret = (SwigDerivedClassHasMethod("OnAccessibilityValueChange", swigMethodTypes28) ? Interop.ViewImplSignal.OnAccessibilityValueChangeSwigExplicitViewImpl(SwigCPtr, isIncrease) : Interop.ViewImplSignal.OnAccessibilityValueChange(SwigCPtr, isIncrease)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - public virtual bool OnAccessibilityZoom() - { - bool ret = (SwigDerivedClassHasMethod("OnAccessibilityZoom", swigMethodTypes29) ? Interop.ViewImplSignal.OnAccessibilityZoomSwigExplicitViewImpl(SwigCPtr) : Interop.ViewImplSignal.OnAccessibilityZoom(SwigCPtr)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - public virtual void OnKeyInputFocusGained() { if (SwigDerivedClassHasMethod("OnKeyInputFocusGained", swigMethodTypes30)) Interop.ViewImplSignal.OnKeyInputFocusGainedSwigExplicitViewImpl(SwigCPtr); else Interop.ViewImplSignal.OnKeyInputFocusGained(SwigCPtr); @@ -470,12 +449,6 @@ private void SwigDirectorConnect() swigDelegate24 = new SwigDelegateViewImpl_24(SwigDirectorOnStyleChange); if (SwigDerivedClassHasMethod("OnAccessibilityActivated", swigMethodTypes25)) swigDelegate25 = new SwigDelegateViewImpl_25(SwigDirectorOnAccessibilityActivated); - if (SwigDerivedClassHasMethod("OnAccessibilityPan", swigMethodTypes26)) - swigDelegate26 = new SwigDelegateViewImpl_26(SwigDirectorOnAccessibilityPan); - if (SwigDerivedClassHasMethod("OnAccessibilityValueChange", swigMethodTypes28)) - swigDelegate28 = new SwigDelegateViewImpl_28(SwigDirectorOnAccessibilityValueChange); - if (SwigDerivedClassHasMethod("OnAccessibilityZoom", swigMethodTypes29)) - swigDelegate29 = new SwigDelegateViewImpl_29(SwigDirectorOnAccessibilityZoom); if (SwigDerivedClassHasMethod("OnKeyInputFocusGained", swigMethodTypes30)) swigDelegate30 = new SwigDelegateViewImpl_30(SwigDirectorOnKeyInputFocusGained); if (SwigDerivedClassHasMethod("OnKeyInputFocusLost", swigMethodTypes31)) @@ -675,21 +648,6 @@ private bool SwigDirectorOnAccessibilityActivated() return OnAccessibilityActivated(); } - private bool SwigDirectorOnAccessibilityPan(global::System.IntPtr gesture) - { - return OnAccessibilityPan(new PanGesture(gesture, false)); - } - - private bool SwigDirectorOnAccessibilityValueChange(bool isIncrease) - { - return OnAccessibilityValueChange(isIncrease); - } - - private bool SwigDirectorOnAccessibilityZoom() - { - return OnAccessibilityZoom(); - } - private void SwigDirectorOnKeyInputFocusGained() { OnKeyInputFocusGained(); diff --git a/src/Tizen.NUI/src/internal/Common/ViewWrapperImpl.cs b/src/Tizen.NUI/src/internal/Common/ViewWrapperImpl.cs index 4697c73c26a..2e53ddea5f7 100755 --- a/src/Tizen.NUI/src/internal/Common/ViewWrapperImpl.cs +++ b/src/Tizen.NUI/src/internal/Common/ViewWrapperImpl.cs @@ -68,12 +68,6 @@ internal sealed class ViewWrapperImpl : ViewImpl /// 3 public delegate bool OnAccessibilityActivatedDelegate(); /// 3 - public delegate bool OnAccessibilityPanDelegate(PanGesture gestures); - /// 3 - public delegate bool OnAccessibilityValueChangeDelegate(bool isIncrease); - /// 3 - public delegate bool OnAccessibilityZoomDelegate(); - /// 3 public delegate void OnFocusGainedDelegate(); /// 3 public delegate void OnFocusLostDelegate(); @@ -117,9 +111,6 @@ internal sealed class ViewWrapperImpl : ViewImpl public new OnLayoutNegotiatedDelegate OnLayoutNegotiated; public new OnStyleChangeDelegate OnStyleChange; public new OnAccessibilityActivatedDelegate OnAccessibilityActivated; - public new OnAccessibilityPanDelegate OnAccessibilityPan; - public new OnAccessibilityValueChangeDelegate OnAccessibilityValueChange; - public new OnAccessibilityZoomDelegate OnAccessibilityZoom; public OnFocusGainedDelegate OnFocusGained; public OnFocusLostDelegate OnFocusLost; public new GetNextFocusableViewDelegate GetNextFocusableView; @@ -289,9 +280,6 @@ private void DirectorConnect() Delegate21 = new DelegateViewWrapperImpl_21(DirectorOnInitialize); Delegate24 = new DelegateViewWrapperImpl_24(DirectorOnStyleChange); Delegate25 = new DelegateViewWrapperImpl_25(DirectorOnAccessibilityActivated); - Delegate26 = new DelegateViewWrapperImpl_26(DirectorOnAccessibilityPan); - Delegate28 = new DelegateViewWrapperImpl_28(DirectorOnAccessibilityValueChange); - Delegate29 = new DelegateViewWrapperImpl_29(DirectorOnAccessibilityZoom); Delegate30 = new DelegateViewWrapperImpl_30(DirectorOnFocusGained); Delegate31 = new DelegateViewWrapperImpl_31(DirectorOnFocusLost); Delegate32 = new DelegateViewWrapperImpl_32(DirectorGetNextFocusableActor); @@ -509,24 +497,6 @@ private bool DirectorOnAccessibilityActivated() return OnAccessibilityActivated?.Invoke() ?? false; } - private bool DirectorOnAccessibilityPan(global::System.IntPtr gesture) - { - var panGesture = new PanGesture(gesture, false); - var ret = OnAccessibilityPan?.Invoke(panGesture) ?? false; - panGesture.Dispose(); - return ret; - } - - private bool DirectorOnAccessibilityValueChange(bool isIncrease) - { - return OnAccessibilityValueChange?.Invoke(isIncrease) ?? false; - } - - private bool DirectorOnAccessibilityZoom() - { - return OnAccessibilityZoom?.Invoke() ?? false; - } - private void DirectorOnFocusGained() { OnFocusGained?.Invoke(); diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.AccessibilityManager.cs b/src/Tizen.NUI/src/internal/Interop/Interop.AccessibilityManager.cs deleted file mode 100755 index 36f48c4d5e7..00000000000 --- a/src/Tizen.NUI/src/internal/Interop/Interop.AccessibilityManager.cs +++ /dev/null @@ -1,247 +0,0 @@ -/* - * Copyright(c) 2021 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -namespace Tizen.NUI -{ - internal static partial class Interop - { - internal static partial class AccessibilityManager - { - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_AccessibilityManager")] - public static extern global::System.IntPtr NewAccessibilityManager(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_AccessibilityManager")] - public static extern void DeleteAccessibilityManager(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_Get")] - public static extern global::System.IntPtr Get(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_SetAccessibilityAttribute")] - public static extern void SetAccessibilityAttribute(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3, string jarg4); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetAccessibilityAttribute")] - public static extern string GetAccessibilityAttribute(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_SetFocusOrder")] - public static extern void SetFocusOrder(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, uint jarg3); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetFocusOrder")] - public static extern uint GetFocusOrder(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GenerateNewFocusOrder")] - public static extern uint GenerateNewFocusOrder(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetActorByFocusOrder")] - public static extern global::System.IntPtr GetActorByFocusOrder(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_SetCurrentFocusActor")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool SetCurrentFocusActor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetCurrentFocusActor")] - public static extern global::System.IntPtr GetCurrentFocusActor(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetCurrentFocusGroup")] - public static extern global::System.IntPtr GetCurrentFocusGroup(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetCurrentFocusOrder")] - public static extern uint GetCurrentFocusOrder(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_MoveFocusForward")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool MoveFocusForward(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_MoveFocusBackward")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool MoveFocusBackward(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ClearFocus")] - public static extern void ClearFocus(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_Reset")] - public static extern void Reset(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_SetFocusGroup")] - public static extern void SetFocusGroup(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, bool jarg3); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_IsFocusGroup")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool IsFocusGroup(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_SetGroupMode")] - public static extern void SetGroupMode(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetGroupMode")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool GetGroupMode(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_SetWrapMode")] - public static extern void SetWrapMode(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetWrapMode")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool GetWrapMode(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_SetFocusIndicatorActor")] - public static extern void SetFocusIndicatorActor(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetFocusIndicatorActor")] - public static extern global::System.IntPtr GetFocusIndicatorActor(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetFocusGroup")] - public static extern global::System.IntPtr GetFocusGroup(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_GetReadPosition")] - public static extern global::System.IntPtr GetReadPosition(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_FocusChangedSignal")] - public static extern global::System.IntPtr FocusChangedSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_FocusOvershotSignal")] - public static extern global::System.IntPtr FocusOvershotSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_FocusedActorActivatedSignal_Connect")] - public static extern void FocusedActorActivatedSignalConnect(global::System.Runtime.InteropServices.HandleRef accessibilityManager, global::System.Runtime.InteropServices.HandleRef handler); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_FocusedActorActivatedSignal_Disconnect")] - public static extern void FocusedActorActivatedSignalDisconnect(global::System.Runtime.InteropServices.HandleRef accessibilityManager, global::System.Runtime.InteropServices.HandleRef handler); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_StatusChangedSignal")] - public static extern global::System.IntPtr StatusChangedSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionNextSignal")] - public static extern global::System.IntPtr ActionNextSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionPreviousSignal")] - public static extern global::System.IntPtr ActionPreviousSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionActivateSignal")] - public static extern global::System.IntPtr ActionActivateSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionReadSignal")] - public static extern global::System.IntPtr ActionReadSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionOverSignal")] - public static extern global::System.IntPtr ActionOverSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionReadNextSignal")] - public static extern global::System.IntPtr ActionReadNextSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionReadPreviousSignal")] - public static extern global::System.IntPtr ActionReadPreviousSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionUpSignal")] - public static extern global::System.IntPtr ActionUpSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionDownSignal")] - public static extern global::System.IntPtr ActionDownSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionClearFocusSignal")] - public static extern global::System.IntPtr ActionClearFocusSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionBackSignal")] - public static extern global::System.IntPtr ActionBackSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionScrollUpSignal")] - public static extern global::System.IntPtr ActionScrollUpSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionScrollDownSignal")] - public static extern global::System.IntPtr ActionScrollDownSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionPageLeftSignal")] - public static extern global::System.IntPtr ActionPageLeftSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionPageRightSignal")] - public static extern global::System.IntPtr ActionPageRightSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionPageUpSignal")] - public static extern global::System.IntPtr ActionPageUpSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionPageDownSignal")] - public static extern global::System.IntPtr ActionPageDownSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionMoveToFirstSignal")] - public static extern global::System.IntPtr ActionMoveToFirstSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionMoveToLastSignal")] - public static extern global::System.IntPtr ActionMoveToLastSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionReadFromTopSignal")] - public static extern global::System.IntPtr ActionReadFromTopSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionReadFromNextSignal")] - public static extern global::System.IntPtr ActionReadFromNextSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionZoomSignal")] - public static extern global::System.IntPtr ActionZoomSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionReadPauseResumeSignal")] - public static extern global::System.IntPtr ActionReadPauseResumeSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionStartStopSignal")] - public static extern global::System.IntPtr ActionStartStopSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityManager_ActionScrollSignal")] - public static extern global::System.IntPtr ActionScrollSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityActionSignal_Empty")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool AccessibilityActionSignalEmpty(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityActionSignal_GetConnectionCount")] - public static extern uint AccessibilityActionSignalGetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityActionSignal_Connect")] - public static extern void AccessibilityActionSignalConnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityActionSignal_Disconnect")] - public static extern void AccessibilityActionSignalDisconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityActionSignal_Emit")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool AccessibilityActionSignalEmit(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_AccessibilityActionSignal")] - public static extern global::System.IntPtr NewAccessibilityActionSignal(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_AccessibilityActionSignal")] - public static extern void DeleteAccessibilityActionSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityFocusOvershotSignal_Empty")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool AccessibilityFocusOvershotSignalEmpty(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityFocusOvershotSignal_GetConnectionCount")] - public static extern uint AccessibilityFocusOvershotSignalGetConnectionCount(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityFocusOvershotSignal_Connect")] - public static extern void AccessibilityFocusOvershotSignalConnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityFocusOvershotSignal_Disconnect")] - public static extern void AccessibilityFocusOvershotSignalDisconnect(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_AccessibilityFocusOvershotSignal_Emit")] - public static extern void AccessibilityFocusOvershotSignalEmit(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2, int jarg3); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_new_AccessibilityFocusOvershotSignal")] - public static extern global::System.IntPtr NewAccessibilityFocusOvershotSignal(); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_AccessibilityFocusOvershotSignal")] - public static extern void DeleteAccessibilityFocusOvershotSignal(global::System.Runtime.InteropServices.HandleRef jarg1); - } - } -} diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.ViewImplSignal.cs b/src/Tizen.NUI/src/internal/Interop/Interop.ViewImplSignal.cs index 2661f0014f7..3e36415c969 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.ViewImplSignal.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.ViewImplSignal.cs @@ -115,30 +115,6 @@ internal static partial class ViewImplSignal [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] public static extern bool OnAccessibilityActivatedSwigExplicitViewImpl(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ViewImpl_OnAccessibilityPan")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool OnAccessibilityPan(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ViewImpl_OnAccessibilityPanSwigExplicitViewImpl")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool OnAccessibilityPanSwigExplicitViewImpl(global::System.Runtime.InteropServices.HandleRef jarg1, global::System.Runtime.InteropServices.HandleRef jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ViewImpl_OnAccessibilityValueChange")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool OnAccessibilityValueChange(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ViewImpl_OnAccessibilityValueChangeSwigExplicitViewImpl")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool OnAccessibilityValueChangeSwigExplicitViewImpl(global::System.Runtime.InteropServices.HandleRef jarg1, bool jarg2); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ViewImpl_OnAccessibilityZoom")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool OnAccessibilityZoom(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ViewImpl_OnAccessibilityZoomSwigExplicitViewImpl")] - [return: global::System.Runtime.InteropServices.MarshalAs(global::System.Runtime.InteropServices.UnmanagedType.U1)] - public static extern bool OnAccessibilityZoomSwigExplicitViewImpl(global::System.Runtime.InteropServices.HandleRef jarg1); - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_ViewImpl_OnKeyInputFocusGained")] public static extern void OnKeyInputFocusGained(global::System.Runtime.InteropServices.HandleRef jarg1); diff --git a/src/Tizen.NUI/src/internal/NativeBinding/SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t.cs b/src/Tizen.NUI/src/internal/NativeBinding/SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t.cs deleted file mode 100755 index b926a90de82..00000000000 --- a/src/Tizen.NUI/src/internal/NativeBinding/SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t.cs +++ /dev/null @@ -1,27 +0,0 @@ -//------------------------------------------------------------------------------ -// -// -// This file was automatically generated by SWIG (http://www.swig.org). -// Version 3.0.9 -// -// Do not make changes to this file unless you know what you are doing--modify -// the SWIG interface file instead. -//------------------------------------------------------------------------------ - -namespace Tizen.NUI -{ - internal class SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t - { - private global::System.Runtime.InteropServices.HandleRef swigCPtr; - - internal SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t(global::System.IntPtr cPtr) - { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(this, cPtr); - } - - protected SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t() - { - swigCPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - } -} diff --git a/src/Tizen.NUI/src/public/Accessibility/AccessibilityManager.cs b/src/Tizen.NUI/src/public/Accessibility/AccessibilityManager.cs deleted file mode 100755 index c4eb2a905f9..00000000000 --- a/src/Tizen.NUI/src/public/Accessibility/AccessibilityManager.cs +++ /dev/null @@ -1,945 +0,0 @@ -/* - * Copyright(c) 2021 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ -using System; -using System.ComponentModel; -using Tizen.NUI.BaseComponents; - -namespace Tizen.NUI.Accessibility -{ - /// - /// AccessibilityManager manages registration of views in an accessibility focus chain and changing the focused view within that chain. - /// This class provides the functionality of registering the focus order and description of views and maintaining the focus chain. - /// It provides functionality of setting the focus and moving the focus forward and backward. - /// It also draws a highlight for the focused view and emits a signal when the focus is changed. - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public partial class AccessibilityManager : BaseHandle - { - private static readonly AccessibilityManager instance = AccessibilityManager.GetInternal(); - - internal AccessibilityManager(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) - { - } - - /// This will not be public opened. - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) - { - Interop.AccessibilityManager.DeleteAccessibilityManager(swigCPtr); - } - - // Callback for AccessibilityManager StatusChangedSignal - private bool OnStatusChanged(IntPtr data) - { - return accessibilityManagerStatusChangedEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionNextSignal - private bool OnActionNext(IntPtr data) - { - return accessibilityManagerActionNextEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionPreviousSignal - private bool OnActionPrevious(IntPtr data) - { - return accessibilityManagerActionPreviousEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionActivateSignal - private bool OnActionActivate(IntPtr data) - { - return accessibilityManagerActionActivateEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionReadSignal - private bool OnActionRead(IntPtr data) - { - return accessibilityManagerActionReadEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionOverSignal - private bool OnActionOver(IntPtr data) - { - return accessibilityManagerActionOverEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionReadNextSignal - private bool OnActionReadNext(IntPtr data) - { - return accessibilityManagerActionReadNextEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionReadPreviousSignal - private bool OnActionReadPrevious(IntPtr data) - { - return accessibilityManagerActionReadPreviousEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionUpSignal - private bool OnActionUp(IntPtr data) - { - return accessibilityManagerActionUpEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionDownSignal - private bool OnActionDown(IntPtr data) - { - return accessibilityManagerActionDownEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionClearFocusSignal - private bool OnActionClearFocus(IntPtr data) - { - return accessibilityManagerActionClearFocusEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionBackSignal - private bool OnActionBack(IntPtr data) - { - return accessibilityManagerActionBackEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionScrollUpSignal - private bool OnActionScrollUp(IntPtr data) - { - return accessibilityManagerActionScrollUpEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionScrollDownSignal - private bool OnActionScrollDown(IntPtr data) - { - return accessibilityManagerActionScrollDownEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionPageLeftSignal - private bool OnActionPageLeft(IntPtr data) - { - return accessibilityManagerActionPageLeftEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionPageRightSignal - private bool OnActionPageRight(IntPtr data) - { - return accessibilityManagerActionPageRightEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionPageUpSignal - private bool OnActionPageUp(IntPtr data) - { - return accessibilityManagerActionPageUpEventHandler?.Invoke(instance, null) ?? false; - } - - - // Callback for AccessibilityManager ActionPageDownSignal - private bool OnActionPageDown(IntPtr data) - { - return accessibilityManagerActionPageDownEventHandler?.Invoke(instance, null) ?? false; - } - - - // Callback for AccessibilityManager ActionMoveToFirstSignal - private bool OnActionMoveToFirst(IntPtr data) - { - return accessibilityManagerActionMoveToFirstEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionMoveToLastSignal - private bool OnActionMoveToLast(IntPtr data) - { - return accessibilityManagerActionMoveToLastEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionReadFromTopSignal - private bool OnActionReadFromTop(IntPtr data) - { - return accessibilityManagerActionReadFromTopEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionReadFromNextSignal - private bool OnActionReadFromNext(IntPtr data) - { - return accessibilityManagerActionReadFromNextEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionZoomSignal - private bool OnActionZoom(IntPtr data) - { - return accessibilityManagerActionZoomEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionReadPauseResumeSignal - private bool OnActionReadPauseResume(IntPtr data) - { - return accessibilityManagerActionReadPauseResumeEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager ActionStartStopSignal - private bool OnActionStartStop(IntPtr data) - { - return accessibilityManagerActionStartStopEventHandler?.Invoke(instance, null) ?? false; - } - - // Callback for AccessibilityManager FocusChangedSignal - private void OnFocusChanged(IntPtr view1, IntPtr view2) - { - if (accessibilityManagerFocusChangedEventHandler != null) - { - FocusChangedEventArgs e = new FocusChangedEventArgs(); - - // Populate all members of "e" (FocusChangedEventArgs) with real data - e.ViewCurrent = Registry.GetManagedBaseHandleFromNativePtr(view1) as View; - e.ViewNext = Registry.GetManagedBaseHandleFromNativePtr(view2) as View; - //here we send all data to user event handlers - accessibilityManagerFocusChangedEventHandler(this, e); - } - } - - // Callback for AccessibilityManager FocusedViewActivatedSignal - private void OnFocusedViewActivated(IntPtr view) - { - if (accessibilityManagerFocusedViewActivatedEventHandler != null) - { - FocusedViewActivatedEventArgs e = new FocusedViewActivatedEventArgs(); - - // Populate all members of "e" (FocusedViewActivatedEventArgs) with real data - e.View = Registry.GetManagedBaseHandleFromNativePtr(view) as View; - //here we send all data to user event handlers - accessibilityManagerFocusedViewActivatedEventHandler(this, e); - } - } - - // Callback for AccessibilityManager FocusOvershotSignal - private void OnFocusOvershot(IntPtr currentFocusedView, AccessibilityManager.FocusOvershotDirection direction) - { - if (accessibilityManagerFocusOvershotEventHandler != null) - { - FocusOvershotEventArgs e = new FocusOvershotEventArgs(); - - // Populate all members of "e" (FocusOvershotEventArgs) with real data - e.CurrentFocusedView = Registry.GetManagedBaseHandleFromNativePtr(currentFocusedView) as View; - e.FocusOvershotDirection = direction; - //here we send all data to user event handlers - accessibilityManagerFocusOvershotEventHandler(this, e); - } - } - - /// - /// Enumeration for accessibility that needs four information which will be read by screen-reader. - /// - /// Reading order : Label -> Trait -> Optional (Value and Hint) - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public enum AccessibilityAttribute - { - /// - /// Simple text which contained in components, such as Ok or Cancel in case of a button - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - Label = 0, - /// - /// Description of components trait, such as Button in case of a button - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - Trait, - /// - /// Current value of components (Optional) - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - Value, - /// - /// Hint for action (Optional) - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - Hint, - /// - /// The number of attributes - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - AttributeNumber - } - - /// - /// Enumeration for overshoot direction. - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public enum FocusOvershotDirection - { - /// - /// Try to move previous of the first view - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - Previous = -1, - /// - /// Try to move next of the last view - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - Next = 1 - } - - - /// - /// Creates an AccessibilityManager handle. - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public AccessibilityManager() : this(Interop.AccessibilityManager.NewAccessibilityManager(), true) - { - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Gets the singleton of AccessibilityManager object. - /// - /// A handle to the AccessibilityManager - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public static AccessibilityManager Instance - { - get - { - return instance; - } - } - - /// - /// Sets the information of the specified view's accessibility attribute. - /// - /// The view to be set with - /// The attribute type the text to be set with - /// The text for the view's accessibility information - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetAccessibilityAttribute(View view, AccessibilityManager.AccessibilityAttribute type, string text) - { - Interop.AccessibilityManager.SetAccessibilityAttribute(SwigCPtr, View.getCPtr(view), (int)type, text); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Gets the text of the specified view's accessibility attribute. - /// - /// The view to be queried - /// The attribute type to be queried - /// The text of the view's accessibility information - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public string GetAccessibilityAttribute(View view, AccessibilityManager.AccessibilityAttribute type) - { - string ret = Interop.AccessibilityManager.GetAccessibilityAttribute(SwigCPtr, View.getCPtr(view), (int)type); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Sets the focus order of the view. - /// The focus order of each view in the focus chain is unique. - /// If there is another view assigned with the same focus order already, the new view will be inserted to the focus chain with that focus order, - /// and the focus order of the original view and all the views followed in the focus chain will be increased accordingly. - /// If the focus order assigned to the view is 0, it means that view's focus order is undefined - /// (e.g. the view has a description but with no focus order being set yet) and therefore that view is not focusable. - /// - /// the view to be set with - /// the focus order to be set with - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetFocusOrder(View view, uint order) - { - Interop.AccessibilityManager.SetFocusOrder(SwigCPtr, View.getCPtr(view), order); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Gets the focus order of the view. - /// When the focus order is 0, it means the focus order of the view is undefined. - /// - /// the view to be set with - /// The focus order of the view - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public uint GetFocusOrder(View view) - { - uint ret = Interop.AccessibilityManager.GetFocusOrder(SwigCPtr, View.getCPtr(view)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Generates a new focus order number which can be used to assign to views - /// which need to be appended to the end of the current focus order chain. - /// The new number will be an increment over the very last focus order number in the focus chain. - /// If the focus chain is empty then the function returns 1, - /// else the number returned will be FOLast + 1 where FOLast is the focus order of the very last control in the focus chain. - /// - /// The focus order of the view - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public uint GenerateNewFocusOrder() - { - uint ret = Interop.AccessibilityManager.GenerateNewFocusOrder(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Gets the view that has the specified focus order. - /// It will return an empty handle if no view in the window has the specified focus order. - /// - /// The focus order of the view - /// The view that has the specified focus order or an empty handle if no view in the stage has the specified focus order - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View GetViewByFocusOrder(uint order) - { - var ptr = Interop.AccessibilityManager.GetActorByFocusOrder(SwigCPtr, order); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return this.GetInstanceSafely(ptr); - } - - /// - /// Moves the focus to the specified view. - /// Only one view can be focused at the same time. The view must have a defined focus order - /// and must be focusable, visible and in the window. - /// - /// the view to be set with - /// Whether the focus is successful or not - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool SetCurrentFocusView(View view) - { - bool ret = Interop.AccessibilityManager.SetCurrentFocusActor(SwigCPtr, View.getCPtr(view)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Gets the current focused view. - /// - /// A handle to the current focused view or an empty handle if no view is focused - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View GetCurrentFocusView() - { - var ptr = Interop.AccessibilityManager.GetCurrentFocusActor(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return this.GetInstanceSafely(ptr); - } - - /// - /// Gets the focus group of current focused view. - /// - /// A handle to the immediate parent of the current focused view which is also a focus group, or an empty handle if no view is focused - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View GetCurrentFocusGroup() - { - var ptr = Interop.AccessibilityManager.GetCurrentFocusGroup(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return this.GetInstanceSafely(ptr); - } - - /// - /// Gets the focus order of currently focused view. - /// - /// The focus order of the currently focused view or 0 if no view is in focus - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public uint GetCurrentFocusOrder() - { - uint ret = Interop.AccessibilityManager.GetCurrentFocusOrder(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Moves the focus to the next focusable view in the focus chain (according to the focus traversal order). - /// When the focus movement is wrapped around, the focus will be moved to the first focusable view when it reaches the end of the focus chain. - /// - /// True if the moving was successful - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool MoveFocusForward() - { - bool ret = Interop.AccessibilityManager.MoveFocusForward(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Moves the focus to the previous focusable view in the focus chain (according to the focus traversal order). - /// When the focus movement is wrapped around, the focus will be moved to the last focusable view - /// when it reaches the beginning of the focus chain. - /// - /// True if the moving was successful - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool MoveFocusBackward() - { - bool ret = Interop.AccessibilityManager.MoveFocusBackward(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Clears the focus from the current focused view if any, so that no view is focused in the focus chain. - /// It will emit focus changed signal without current focused view. - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void ClearFocus() - { - Interop.AccessibilityManager.ClearFocus(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Clears every registered focusable view from focus-manager. - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public new void Reset() - { - Interop.AccessibilityManager.Reset(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Sets whether an view is a focus group that can limit the scope of focus movement to its child views in the focus chain. - /// - /// the view to be set as a focus group - /// Whether to set the view to be a focus group or not - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetFocusGroup(View view, bool isFocusGroup) - { - Interop.AccessibilityManager.SetFocusGroup(SwigCPtr, View.getCPtr(view), isFocusGroup); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Checks whether the view is set as a focus group or not. - /// - /// the view to be checked - /// Whether the view is set as a focus group - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool IsFocusGroup(View view) - { - bool ret = Interop.AccessibilityManager.IsFocusGroup(SwigCPtr, View.getCPtr(view)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Sets whether the group mode is enabled or not. - /// When the group mode is enabled, the focus movement will be limited to the child views of the current focus group including the current focus group itself. - /// The current focus group is the closest ancestor of the current focused view that is set as a focus group. - /// - /// Whether the group mode is enabled or not - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetGroupMode(bool enabled) - { - Interop.AccessibilityManager.SetGroupMode(SwigCPtr, enabled); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Gets whether the group mode is enabled or not. - /// - /// 6 - /// Whether the group mode is enabled or not. - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool GetGroupMode() - { - bool ret = Interop.AccessibilityManager.GetGroupMode(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Sets whether focus will be moved to the beginning of the focus chain when it reaches the end or vice versa. - /// When both the wrap mode and the group mode are enabled, focus will be wrapped within the current focus group. - /// Focus will not be wrapped in default. - /// - /// Whether the focus movement is wrapped around or not - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetWrapMode(bool wrapped) - { - Interop.AccessibilityManager.SetWrapMode(SwigCPtr, wrapped); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Gets whether the wrap mode is enabled or not. - /// - /// Whether the wrap mode is enabled or not. - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public bool GetWrapMode() - { - bool ret = Interop.AccessibilityManager.GetWrapMode(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - /// - /// Sets the focus indicator view. - /// This will replace the default focus indicator view in AccessibilityManager and - /// will be added to the focused view as a highlight. - /// - /// The indicator view to be added - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public void SetFocusIndicatorView(View indicator) - { - Interop.AccessibilityManager.SetFocusIndicatorActor(SwigCPtr, View.getCPtr(indicator)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - } - - /// - /// Gets the focus indicator view. - /// - /// A handle to the focus indicator view - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View GetFocusIndicatorView() - { - var ptr = Interop.AccessibilityManager.GetFocusIndicatorActor(SwigCPtr); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return this.GetInstanceSafely(ptr); - } - - /// - /// Returns the closest ancestor of the given view that is a focus group. - /// - /// The view to be checked for its focus group - /// The focus group the given view belongs to or an empty handle if the given view doesn't belong to any focus group - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View GetFocusGroup(View view) - { - var ptr = Interop.AccessibilityManager.GetFocusGroup(SwigCPtr, View.getCPtr(view)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return this.GetInstanceSafely(ptr); - } - - /// - /// Returns the current position of the read action. - /// - /// The current event position - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public Vector2 GetReadPosition() - { - Vector2 ret = new Vector2(Interop.AccessibilityManager.GetReadPosition(SwigCPtr), true); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - [Obsolete("Do not use this, that will be deprecated. Use AccessibilityManager.Instance instead.")] - internal static AccessibilityManager Get() - { - return AccessibilityManager.Instance; - } - - private static AccessibilityManager GetInternal() - { - global::System.IntPtr cPtr = Interop.AccessibilityManager.Get(); - - if(cPtr == global::System.IntPtr.Zero) - { - NUILog.ErrorBacktrace("AccessibilityManager.Instance called before Application created, or after Application terminated!"); - } - - AccessibilityManager ret = Registry.GetManagedBaseHandleFromNativePtr(cPtr) as AccessibilityManager; - if (ret != null) - { - NUILog.ErrorBacktrace("AccessibilityManager.GetInternal() Should be called only one time!"); - object dummyObect = new object(); - - global::System.Runtime.InteropServices.HandleRef CPtr = new global::System.Runtime.InteropServices.HandleRef(dummyObect, cPtr); - Interop.BaseHandle.DeleteBaseHandle(CPtr); - CPtr = new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero); - } - else - { - ret = new AccessibilityManager(cPtr, true); - } - - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void Dispose(bool disposing) - { - if (disposing) - { - NUILog.ErrorBacktrace("We should not manually dispose for singleton class!"); - } - else - { - base.Dispose(disposing); - } - } - - // Signals - AccessibilityManagerEvent.cs - internal FocusChangedSignal FocusChangedSignal() - { - FocusChangedSignal ret = new FocusChangedSignal(Interop.AccessibilityManager.FocusChangedSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityFocusOvershotSignal FocusOvershotSignal() - { - AccessibilityFocusOvershotSignal ret = new AccessibilityFocusOvershotSignal(Interop.AccessibilityManager.FocusOvershotSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal StatusChangedSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.StatusChangedSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionNextSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionNextSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionPreviousSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionPreviousSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionActivateSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionActivateSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionReadSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionReadSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionOverSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionOverSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionReadNextSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionReadNextSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionReadPreviousSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionReadPreviousSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionUpSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionUpSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionDownSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionDownSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionClearFocusSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionClearFocusSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionBackSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionBackSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionScrollUpSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionScrollUpSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionScrollDownSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionScrollDownSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionPageLeftSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionPageLeftSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionPageRightSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionPageRightSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionPageUpSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionPageUpSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionPageDownSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionPageDownSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionMoveToFirstSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionMoveToFirstSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionMoveToLastSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionMoveToLastSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionReadFromTopSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionReadFromTopSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionReadFromNextSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionReadFromNextSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionZoomSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionZoomSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionReadPauseResumeSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionReadPauseResumeSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal AccessibilityActionSignal ActionStartStopSignal() - { - AccessibilityActionSignal ret = new AccessibilityActionSignal(Interop.AccessibilityManager.ActionStartStopSignal(SwigCPtr), false); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - - internal SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t ActionScrollSignal() - { - SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t ret = new SWIGTYPE_p_Dali__SignalT_bool_fDali__Toolkit__AccessibilityManager_R_Dali__TouchEvent_const_RF_t(Interop.AccessibilityManager.ActionScrollSignal(SwigCPtr)); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return ret; - } - } -} diff --git a/src/Tizen.NUI/src/public/Accessibility/AccessibilityManagerEvent.cs b/src/Tizen.NUI/src/public/Accessibility/AccessibilityManagerEvent.cs deleted file mode 100755 index 200826d2c09..00000000000 --- a/src/Tizen.NUI/src/public/Accessibility/AccessibilityManagerEvent.cs +++ /dev/null @@ -1,1129 +0,0 @@ -/* - * Copyright(c) 2021 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -using System; -using System.ComponentModel; -using System.Runtime.InteropServices; - -namespace Tizen.NUI.Accessibility -{ - public partial class AccessibilityManager - { - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool StatusChangedEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerStatusChangedEventHandler; - private StatusChangedEventCallbackDelegate accessibilityManagerStatusChangedEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionNextEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionNextEventHandler; - private ActionNextEventCallbackDelegate accessibilityManagerActionNextEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionPreviousEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionPreviousEventHandler; - private ActionPreviousEventCallbackDelegate accessibilityManagerActionPreviousEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionActivateEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionActivateEventHandler; - private ActionActivateEventCallbackDelegate accessibilityManagerActionActivateEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionReadEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionReadEventHandler; - private ActionReadEventCallbackDelegate accessibilityManagerActionReadEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionOverEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionOverEventHandler; - private ActionOverEventCallbackDelegate accessibilityManagerActionOverEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionReadNextEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionReadNextEventHandler; - private ActionReadNextEventCallbackDelegate accessibilityManagerActionReadNextEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionReadPreviousEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionReadPreviousEventHandler; - private ActionReadPreviousEventCallbackDelegate accessibilityManagerActionReadPreviousEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionUpEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionUpEventHandler; - private ActionUpEventCallbackDelegate accessibilityManagerActionUpEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionDownEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionDownEventHandler; - private ActionDownEventCallbackDelegate accessibilityManagerActionDownEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionClearFocusEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionClearFocusEventHandler; - private ActionClearFocusEventCallbackDelegate accessibilityManagerActionClearFocusEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionBackEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionBackEventHandler; - private ActionBackEventCallbackDelegate accessibilityManagerActionBackEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionScrollUpEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionScrollUpEventHandler; - private ActionScrollUpEventCallbackDelegate accessibilityManagerActionScrollUpEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionScrollDownEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionScrollDownEventHandler; - private ActionScrollDownEventCallbackDelegate accessibilityManagerActionScrollDownEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionPageLeftEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionPageLeftEventHandler; - private ActionPageLeftEventCallbackDelegate accessibilityManagerActionPageLeftEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionPageRightEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionPageRightEventHandler; - private ActionPageRightEventCallbackDelegate accessibilityManagerActionPageRightEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionPageUpEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionPageUpEventHandler; - private ActionPageUpEventCallbackDelegate accessibilityManagerActionPageUpEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionPageDownEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionPageDownEventHandler; - private ActionPageDownEventCallbackDelegate accessibilityManagerActionPageDownEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionMoveToFirstEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionMoveToFirstEventHandler; - private ActionMoveToFirstEventCallbackDelegate accessibilityManagerActionMoveToFirstEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionMoveToLastEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionMoveToLastEventHandler; - private ActionMoveToLastEventCallbackDelegate accessibilityManagerActionMoveToLastEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionReadFromTopEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionReadFromTopEventHandler; - private ActionReadFromTopEventCallbackDelegate accessibilityManagerActionReadFromTopEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionReadFromNextEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionReadFromNextEventHandler; - private ActionReadFromNextEventCallbackDelegate accessibilityManagerActionReadFromNextEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionZoomEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionZoomEventHandler; - private ActionZoomEventCallbackDelegate accessibilityManagerActionZoomEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionReadPauseResumeEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionReadPauseResumeEventHandler; - private ActionReadPauseResumeEventCallbackDelegate accessibilityManagerActionReadPauseResumeEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate bool ActionStartStopEventCallbackDelegate(IntPtr accessibilityManager); - private ReturnTypeEventHandler accessibilityManagerActionStartStopEventHandler; - private ActionStartStopEventCallbackDelegate accessibilityManagerActionStartStopEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate void FocusChangedEventCallbackDelegate(IntPtr view1, IntPtr view2); - private EventHandler accessibilityManagerFocusChangedEventHandler; - private FocusChangedEventCallbackDelegate accessibilityManagerFocusChangedEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate void FocusedViewActivatedEventCallbackDelegate(IntPtr view); - private EventHandler accessibilityManagerFocusedViewActivatedEventHandler; - private FocusedViewActivatedEventCallbackDelegate accessibilityManagerFocusedViewActivatedEventCallbackDelegate; - - [UnmanagedFunctionPointer(CallingConvention.Cdecl)] - private delegate void FocusOvershotEventCallbackDelegate(IntPtr currentFocusedView, AccessibilityManager.FocusOvershotDirection direction); - private EventHandler accessibilityManagerFocusOvershotEventHandler; - private FocusOvershotEventCallbackDelegate accessibilityManagerFocusOvershotEventCallbackDelegate; - - // Accessibility action signals - - /// - /// This is emitted when accessibility(screen-reader) feature turned on or off. - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler StatusChanged - { - add - { - // Restricted to only one listener - if (accessibilityManagerStatusChangedEventHandler == null) - { - accessibilityManagerStatusChangedEventCallbackDelegate = new StatusChangedEventCallbackDelegate(OnStatusChanged); - this.StatusChangedSignal().Connect(accessibilityManagerStatusChangedEventCallbackDelegate); - } - - accessibilityManagerStatusChangedEventHandler += value; - } - - remove - { - accessibilityManagerStatusChangedEventHandler -= value; - - if (accessibilityManagerStatusChangedEventHandler == null && StatusChangedSignal().Empty() == false) - { - this.StatusChangedSignal().Disconnect(accessibilityManagerStatusChangedEventCallbackDelegate); - } - - } - } - - /// - /// This is emitted when accessibility action is received to move focus to the next focusable view (by one finger flick down). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionNext - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionNextEventHandler == null) - { - accessibilityManagerActionNextEventCallbackDelegate = new ActionNextEventCallbackDelegate(OnActionNext); - this.ActionNextSignal().Connect(accessibilityManagerActionNextEventCallbackDelegate); - } - - accessibilityManagerActionNextEventHandler += value; - } - - remove - { - accessibilityManagerActionNextEventHandler -= value; - - if (accessibilityManagerActionNextEventHandler == null && ActionNextSignal().Empty() == false) - { - this.ActionNextSignal().Disconnect(accessibilityManagerActionNextEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to move focus to the previous focusable view (by one finger flick up). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionPrevious - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionPreviousEventHandler == null) - { - accessibilityManagerActionPreviousEventCallbackDelegate = new ActionPreviousEventCallbackDelegate(OnActionPrevious); - this.ActionPreviousSignal().Connect(accessibilityManagerActionPreviousEventCallbackDelegate); - } - - accessibilityManagerActionPreviousEventHandler += value; - } - - remove - { - accessibilityManagerActionPreviousEventHandler -= value; - - if (accessibilityManagerActionPreviousEventHandler == null && ActionPreviousSignal().Empty() == false) - { - this.ActionPreviousSignal().Disconnect(accessibilityManagerActionPreviousEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to activate the current focused view (by one finger double tap). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionActivate - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionActivateEventHandler == null) - { - accessibilityManagerActionActivateEventCallbackDelegate = new ActionActivateEventCallbackDelegate(OnActionActivate); - this.ActionActivateSignal().Connect(accessibilityManagerActionActivateEventCallbackDelegate); - } - - accessibilityManagerActionActivateEventHandler += value; - } - - remove - { - accessibilityManagerActionActivateEventHandler -= value; - - if (accessibilityManagerActionActivateEventHandler == null && ActionActivateSignal().Empty() == false) - { - this.ActionActivateSignal().Disconnect(accessibilityManagerActionActivateEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to focus and read the view (by one finger tap). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionRead - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionReadEventHandler == null) - { - accessibilityManagerActionReadEventCallbackDelegate = new ActionReadEventCallbackDelegate(OnActionRead); - this.ActionReadSignal().Connect(accessibilityManagerActionReadEventCallbackDelegate); - } - - accessibilityManagerActionReadEventHandler += value; - } - - remove - { - accessibilityManagerActionReadEventHandler -= value; - - if (accessibilityManagerActionReadEventHandler == null && ActionReadSignal().Empty() == false) - { - this.ActionReadSignal().Disconnect(accessibilityManagerActionReadEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to focus and read the view (by one finger move). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionOver - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionOverEventHandler == null) - { - accessibilityManagerActionOverEventCallbackDelegate = new ActionOverEventCallbackDelegate(OnActionOver); - this.ActionOverSignal().Connect(accessibilityManagerActionOverEventCallbackDelegate); - } - - accessibilityManagerActionOverEventHandler += value; - } - - remove - { - accessibilityManagerActionOverEventHandler -= value; - - if (accessibilityManagerActionOverEventHandler == null && ActionOverSignal().Empty() == false) - { - this.ActionOverSignal().Disconnect(accessibilityManagerActionOverEventCallbackDelegate); - } - - } - } - - /// - /// This is emitted when accessibility action is received to move focus to the next focusable view (by one finger flick right). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionReadNext - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionReadNextEventHandler == null) - { - accessibilityManagerActionReadNextEventCallbackDelegate = new ActionReadNextEventCallbackDelegate(OnActionReadNext); - this.ActionReadNextSignal().Connect(accessibilityManagerActionReadNextEventCallbackDelegate); - } - - accessibilityManagerActionReadNextEventHandler += value; - } - - remove - { - accessibilityManagerActionReadNextEventHandler -= value; - - if (accessibilityManagerActionReadNextEventHandler == null && ActionReadNextSignal().Empty() == false) - { - this.ActionReadNextSignal().Disconnect(accessibilityManagerActionReadNextEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to move focus to the previous focusable view (by one finger flick left). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionReadPrevious - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionReadPreviousEventHandler == null) - { - accessibilityManagerActionReadPreviousEventCallbackDelegate = new ActionReadPreviousEventCallbackDelegate(OnActionReadPrevious); - this.ActionReadPreviousSignal().Connect(accessibilityManagerActionReadPreviousEventCallbackDelegate); - } - - accessibilityManagerActionReadPreviousEventHandler += value; - } - - remove - { - accessibilityManagerActionReadPreviousEventHandler -= value; - - if (accessibilityManagerActionReadPreviousEventHandler == null && ActionReadPreviousSignal().Empty() == false) - { - this.ActionReadPreviousSignal().Disconnect(accessibilityManagerActionReadPreviousEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to change the value when the current focused view is a slider - /// (by double finger down and move up and right). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionUp - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionUpEventHandler == null) - { - accessibilityManagerActionUpEventCallbackDelegate = new ActionUpEventCallbackDelegate(OnActionUp); - this.ActionUpSignal().Connect(accessibilityManagerActionUpEventCallbackDelegate); - } - - accessibilityManagerActionUpEventHandler += value; - } - - remove - { - accessibilityManagerActionUpEventHandler -= value; - - if (accessibilityManagerActionUpEventHandler == null && ActionUpSignal().Empty() == false) - { - this.ActionUpSignal().Disconnect(accessibilityManagerActionUpEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to change the value when the current focused view is a slider - /// (by double finger down and move down and left). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionDown - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionDownEventHandler == null) - { - accessibilityManagerActionDownEventCallbackDelegate = new ActionDownEventCallbackDelegate(OnActionDown); - this.ActionDownSignal().Connect(accessibilityManagerActionDownEventCallbackDelegate); - } - - accessibilityManagerActionDownEventHandler += value; - } - - remove - { - accessibilityManagerActionDownEventHandler -= value; - - if (accessibilityManagerActionDownEventHandler == null && ActionDownSignal().Empty() == false) - { - this.ActionDownSignal().Disconnect(accessibilityManagerActionDownEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to clear the focus from the current focused view - /// if any, so that no view is focused in the focus chain. - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionClearFocus - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionClearFocusEventHandler == null) - { - accessibilityManagerActionClearFocusEventCallbackDelegate = new ActionClearFocusEventCallbackDelegate(OnActionClearFocus); - this.ActionClearFocusSignal().Connect(accessibilityManagerActionClearFocusEventCallbackDelegate); - } - - accessibilityManagerActionClearFocusEventHandler += value; - } - - remove - { - accessibilityManagerActionClearFocusEventHandler -= value; - - if (accessibilityManagerActionClearFocusEventHandler == null && ActionClearFocusSignal().Empty() == false) - { - this.ActionClearFocusSignal().Disconnect(accessibilityManagerActionClearFocusEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to navigate back (by two fingers circle draw). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionBack - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionBackEventHandler == null) - { - accessibilityManagerActionBackEventCallbackDelegate = new ActionBackEventCallbackDelegate(OnActionBack); - this.ActionBackSignal().Connect(accessibilityManagerActionBackEventCallbackDelegate); - } - - accessibilityManagerActionBackEventHandler += value; - } - - remove - { - accessibilityManagerActionBackEventHandler -= value; - - if (accessibilityManagerActionBackEventHandler == null && ActionBackSignal().Empty() == false) - { - this.ActionBackSignal().Disconnect(accessibilityManagerActionBackEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to scroll up the list (by two finger swipe up). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionScrollUp - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionScrollUpEventHandler == null) - { - accessibilityManagerActionScrollUpEventCallbackDelegate = new ActionScrollUpEventCallbackDelegate(OnActionScrollUp); - this.ActionScrollUpSignal().Connect(accessibilityManagerActionScrollUpEventCallbackDelegate); - } - - accessibilityManagerActionScrollUpEventHandler += value; - } - - remove - { - accessibilityManagerActionScrollUpEventHandler -= value; - - if (accessibilityManagerActionScrollUpEventHandler == null && ActionScrollUpSignal().Empty() == false) - { - this.ActionScrollUpSignal().Disconnect(accessibilityManagerActionScrollUpEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to scroll down the list (by two finger swipe down). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionScrollDown - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionScrollDownEventHandler == null) - { - accessibilityManagerActionScrollDownEventCallbackDelegate = new ActionScrollDownEventCallbackDelegate(OnActionScrollDown); - this.ActionScrollDownSignal().Connect(accessibilityManagerActionScrollDownEventCallbackDelegate); - } - - accessibilityManagerActionScrollDownEventHandler += value; - } - - remove - { - accessibilityManagerActionScrollDownEventHandler -= value; - - if (accessibilityManagerActionScrollDownEventHandler == null && ActionScrollDownSignal().Empty() == false) - { - this.ActionScrollDownSignal().Disconnect(accessibilityManagerActionScrollDownEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to scroll left to the previous page (by two finger swipe left). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionPageLeft - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionPageLeftEventHandler == null) - { - accessibilityManagerActionPageLeftEventCallbackDelegate = new ActionPageLeftEventCallbackDelegate(OnActionPageLeft); - this.ActionPageLeftSignal().Connect(accessibilityManagerActionPageLeftEventCallbackDelegate); - } - - accessibilityManagerActionPageLeftEventHandler += value; - } - - remove - { - accessibilityManagerActionPageLeftEventHandler -= value; - - if (accessibilityManagerActionPageLeftEventHandler == null && ActionPageLeftSignal().Empty() == false) - { - this.ActionPageLeftSignal().Disconnect(accessibilityManagerActionPageLeftEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to scroll right to the next page (by two finger swipe right). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionPageRight - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionPageRightEventHandler == null) - { - accessibilityManagerActionPageRightEventCallbackDelegate = new ActionPageRightEventCallbackDelegate(OnActionPageRight); - this.ActionPageRightSignal().Connect(accessibilityManagerActionPageRightEventCallbackDelegate); - } - - accessibilityManagerActionPageRightEventHandler += value; - } - - remove - { - accessibilityManagerActionPageRightEventHandler -= value; - - if (accessibilityManagerActionPageRightEventHandler == null && ActionPageRightSignal().Empty() == false) - { - this.ActionPageRightSignal().Disconnect(accessibilityManagerActionPageRightEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to scroll up to the previous page (by one finger swipe left and right). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionPageUp - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionPageUpEventHandler == null) - { - accessibilityManagerActionPageUpEventCallbackDelegate = new ActionPageUpEventCallbackDelegate(OnActionPageUp); - this.ActionPageUpSignal().Connect(accessibilityManagerActionPageUpEventCallbackDelegate); - } - - accessibilityManagerActionPageUpEventHandler += value; - } - - remove - { - accessibilityManagerActionPageUpEventHandler -= value; - - if (accessibilityManagerActionPageUpEventHandler == null && ActionPageUpSignal().Empty() == false) - { - this.ActionPageUpSignal().Disconnect(accessibilityManagerActionPageUpEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to scroll down to the next page (by one finger swipe right and left). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionPageDown - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionPageDownEventHandler == null) - { - accessibilityManagerActionPageDownEventCallbackDelegate = new ActionPageDownEventCallbackDelegate(OnActionPageDown); - this.ActionPageDownSignal().Connect(accessibilityManagerActionPageDownEventCallbackDelegate); - } - - accessibilityManagerActionPageDownEventHandler += value; - } - - remove - { - accessibilityManagerActionPageDownEventHandler -= value; - - if (accessibilityManagerActionPageDownEventHandler == null && ActionPageDownSignal().Empty() == false) - { - this.ActionPageDownSignal().Disconnect(accessibilityManagerActionPageDownEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to move the focus to the first item on the screen - /// (by one finger swipe up and down). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionMoveToFirst - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionMoveToFirstEventHandler == null) - { - accessibilityManagerActionMoveToFirstEventCallbackDelegate = new ActionMoveToFirstEventCallbackDelegate(OnActionMoveToFirst); - this.ActionMoveToFirstSignal().Connect(accessibilityManagerActionMoveToFirstEventCallbackDelegate); - } - - accessibilityManagerActionMoveToFirstEventHandler += value; - } - - remove - { - accessibilityManagerActionMoveToFirstEventHandler -= value; - - if (accessibilityManagerActionMoveToFirstEventHandler == null && ActionMoveToFirstSignal().Empty() == false) - { - this.ActionMoveToFirstSignal().Disconnect(accessibilityManagerActionMoveToFirstEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to move the focus to the last item on the screen - /// (by one finger swipe down and up). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionMoveToLast - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionMoveToLastEventHandler == null) - { - accessibilityManagerActionMoveToLastEventCallbackDelegate = new ActionMoveToLastEventCallbackDelegate(OnActionMoveToLast); - this.ActionMoveToLastSignal().Connect(accessibilityManagerActionMoveToLastEventCallbackDelegate); - } - - accessibilityManagerActionMoveToLastEventHandler += value; - } - - remove - { - accessibilityManagerActionMoveToLastEventHandler -= value; - - if (accessibilityManagerActionMoveToLastEventHandler == null && ActionMoveToLastSignal().Empty() == false) - { - this.ActionMoveToLastSignal().Disconnect(accessibilityManagerActionMoveToLastEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to focus and read from the first item on the top continuously - /// (by three fingers single tap). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionReadFromTop - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionReadFromTopEventHandler == null) - { - accessibilityManagerActionReadFromTopEventCallbackDelegate = new ActionReadFromTopEventCallbackDelegate(OnActionReadFromTop); - this.ActionReadFromTopSignal().Connect(accessibilityManagerActionReadFromTopEventCallbackDelegate); - } - - accessibilityManagerActionReadFromTopEventHandler += value; - } - - remove - { - accessibilityManagerActionReadFromTopEventHandler -= value; - - if (accessibilityManagerActionReadFromTopEventHandler == null && ActionReadFromTopSignal().Empty() == false) - { - this.ActionReadFromTopSignal().Disconnect(accessibilityManagerActionReadFromTopEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to move the focus to and read from the next item continuously - /// (by three fingers double tap). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionReadFromNext - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionReadFromNextEventHandler == null) - { - accessibilityManagerActionReadFromNextEventCallbackDelegate = new ActionReadFromNextEventCallbackDelegate(OnActionReadFromNext); - this.ActionReadFromNextSignal().Connect(accessibilityManagerActionReadFromNextEventCallbackDelegate); - } - - accessibilityManagerActionReadFromNextEventHandler += value; - } - - remove - { - accessibilityManagerActionReadFromNextEventHandler -= value; - - if (accessibilityManagerActionReadFromNextEventHandler == null && ActionReadFromNextSignal().Empty() == false) - { - this.ActionReadFromNextSignal().Disconnect(accessibilityManagerActionReadFromNextEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to zoom (by one finger triple tap) - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionZoom - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionZoomEventHandler == null) - { - accessibilityManagerActionZoomEventCallbackDelegate = new ActionZoomEventCallbackDelegate(OnActionZoom); - this.ActionZoomSignal().Connect(accessibilityManagerActionZoomEventCallbackDelegate); - } - - accessibilityManagerActionZoomEventHandler += value; - } - - remove - { - accessibilityManagerActionZoomEventHandler -= value; - - if (accessibilityManagerActionZoomEventHandler == null && ActionZoomSignal().Empty() == false) - { - this.ActionZoomSignal().Disconnect(accessibilityManagerActionZoomEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to pause/resume the current speech (by two fingers single tap). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionReadPauseResume - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionReadPauseResumeEventHandler == null) - { - accessibilityManagerActionReadPauseResumeEventCallbackDelegate = new ActionReadPauseResumeEventCallbackDelegate(OnActionReadPauseResume); - this.ActionReadPauseResumeSignal().Connect(accessibilityManagerActionReadPauseResumeEventCallbackDelegate); - } - - accessibilityManagerActionReadPauseResumeEventHandler += value; - } - - remove - { - accessibilityManagerActionReadPauseResumeEventHandler -= value; - - if (accessibilityManagerActionReadPauseResumeEventHandler == null && ActionReadPauseResumeSignal().Empty() == false) - { - this.ActionReadPauseResumeSignal().Disconnect(accessibilityManagerActionReadPauseResumeEventCallbackDelegate); - } - } - } - - /// - /// This is emitted when accessibility action is received to start/stop the current action (by two fingers double tap). - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event ReturnTypeEventHandler ActionStartStop - { - add - { - // Restricted to only one listener - if (accessibilityManagerActionStartStopEventHandler == null) - { - accessibilityManagerActionStartStopEventCallbackDelegate = new ActionStartStopEventCallbackDelegate(OnActionStartStop); - this.ActionStartStopSignal().Connect(accessibilityManagerActionStartStopEventCallbackDelegate); - } - - accessibilityManagerActionStartStopEventHandler += value; - } - - remove - { - accessibilityManagerActionStartStopEventHandler -= value; - - if (accessibilityManagerActionStartStopEventHandler == null && ActionStartStopSignal().Empty() == false) - { - this.ActionStartStopSignal().Disconnect(accessibilityManagerActionStartStopEventCallbackDelegate); - } - } - } - - /* - // To be replaced by a new event that takes Touch - public event DaliEventHandlerWithReturnType ActionScroll - { - add - { - lock(this) - { - // Restricted to only one listener - if (_accessibilityManagerActionScrollEventHandler == null) - { - _accessibilityManagerActionScrollEventHandler += value; - - _accessibilityManagerActionScrollEventCallbackDelegate = new ActionScrollEventCallbackDelegate(OnActionScroll); - this.ActionScrollSignal().Connect(_accessibilityManagerActionScrollEventCallbackDelegate); - } - } - } - - remove - { - lock(this) - { - if (_accessibilityManagerActionScrollEventHandler != null) - { - this.ActionScrollSignal().Disconnect(_accessibilityManagerActionScrollEventCallbackDelegate); - } - - _accessibilityManagerActionScrollEventHandler -= value; - } - } - } - - // Callback for AccessibilityManager ActionScrollSignal - private bool OnActionScroll(IntPtr accessibilityManager, IntPtr touchEvent) - { - ActionScrollEventArgs e = new ActionScrollEventArgs(); - - // Populate all members of "e" (ActionScrollEventArgs) with real data - e.AccessibilityManager = AccessibilityManager.GetAccessibilityManagerFromPtr(accessibilityManager); - e.TouchEvent = TouchEvent.GetTouchEventFromPtr(touchEvent); - - if (_accessibilityManagerActionScrollEventHandler != null) - { - //here we send all data to user event handlers - return _accessibilityManagerActionScrollEventHandler(this, e); - } - return false; - } - */ - - // Common Signals - - /// - /// This signal is emitted when the current focused view is changed. - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler FocusChanged - { - add - { - // Restricted to only one listener - if (accessibilityManagerFocusChangedEventHandler == null) - { - accessibilityManagerFocusChangedEventCallbackDelegate = new FocusChangedEventCallbackDelegate(OnFocusChanged); - this.FocusChangedSignal().Connect(accessibilityManagerFocusChangedEventCallbackDelegate); - } - - accessibilityManagerFocusChangedEventHandler += value; - } - - remove - { - accessibilityManagerFocusChangedEventHandler -= value; - - if (accessibilityManagerFocusChangedEventHandler == null && FocusChangedSignal().Empty() == false) - { - this.FocusChangedSignal().Disconnect(accessibilityManagerFocusChangedEventCallbackDelegate); - } - } - } - - /// - /// This signal is emitted when the current focused view is activated. - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler FocusedViewActivated - { - add - { - // Restricted to only one listener - if (accessibilityManagerFocusedViewActivatedEventHandler == null) - { - accessibilityManagerFocusedViewActivatedEventCallbackDelegate = new FocusedViewActivatedEventCallbackDelegate(OnFocusedViewActivated); - Interop.AccessibilityManager.FocusedActorActivatedSignalConnect(SwigCPtr, accessibilityManagerFocusedViewActivatedEventCallbackDelegate.ToHandleRef(this)); - NDalicPINVOKE.ThrowExceptionIfExists(); - } - - accessibilityManagerFocusedViewActivatedEventHandler += value; - } - - remove - { - accessibilityManagerFocusedViewActivatedEventHandler -= value; - - if (accessibilityManagerFocusedViewActivatedEventHandler == null && accessibilityManagerFocusedViewActivatedEventCallbackDelegate != null) - { - Interop.AccessibilityManager.FocusedActorActivatedSignalDisconnect(SwigCPtr, accessibilityManagerFocusedViewActivatedEventCallbackDelegate.ToHandleRef(this)); - NDalicPINVOKE.ThrowExceptionIfExists(); - accessibilityManagerFocusedViewActivatedEventCallbackDelegate = null; - } - } - } - - /// - /// This signal is emitted when there is no way to move focus further. - /// - /// The signal to connect to - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public event EventHandler FocusOvershot - { - add - { - // Restricted to only one listener - if (accessibilityManagerFocusOvershotEventHandler == null) - { - accessibilityManagerFocusOvershotEventCallbackDelegate = new FocusOvershotEventCallbackDelegate(OnFocusOvershot); - this.FocusOvershotSignal().Connect(accessibilityManagerFocusOvershotEventCallbackDelegate); - } - - accessibilityManagerFocusOvershotEventHandler += value; - } - - remove - { - accessibilityManagerFocusOvershotEventHandler -= value; - - if (accessibilityManagerFocusOvershotEventHandler == null && FocusOvershotSignal().Empty() == false) - { - this.FocusOvershotSignal().Disconnect(accessibilityManagerFocusOvershotEventCallbackDelegate); - } - } - } - } -} diff --git a/src/Tizen.NUI/src/public/Accessibility/AccessibilityManagerEventArgs.cs b/src/Tizen.NUI/src/public/Accessibility/AccessibilityManagerEventArgs.cs deleted file mode 100755 index 6118cd8771a..00000000000 --- a/src/Tizen.NUI/src/public/Accessibility/AccessibilityManagerEventArgs.cs +++ /dev/null @@ -1,137 +0,0 @@ -/* - * Copyright(c) 2021 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -using System; -using System.ComponentModel; -using Tizen.NUI.BaseComponents; - -namespace Tizen.NUI.Accessibility -{ - public partial class AccessibilityManager - { - /// - /// Event arguments that passed via FocusChangedEvent signal - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class FocusChangedEventArgs : EventArgs - { - private View viewCurrent; - private View viewNext; - - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View ViewCurrent - { - get - { - return viewCurrent; - } - set - { - viewCurrent = value; - } - } - - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View ViewNext - { - get - { - return viewNext; - } - set - { - viewNext = value; - } - } - } - - /// - /// Event arguments that passed via FocusedViewActivated signal - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class FocusedViewActivatedEventArgs : EventArgs - { - private View view; - - - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View View - { - get - { - return view; - } - set - { - view = value; - } - } - } - - /// - /// Event arguments that passed via FocusOvershot signal - /// - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public class FocusOvershotEventArgs : EventArgs - { - private View currentFocusedView; - private AccessibilityManager.FocusOvershotDirection focusOvershotDirection; - - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public View CurrentFocusedView - { - get - { - return currentFocusedView; - } - set - { - currentFocusedView = value; - } - } - - /// 6 - /// This will be public opened in tizen_6.0 after ACR done. Before ACR, need to be hidden as inhouse API. - [EditorBrowsable(EditorBrowsableState.Never)] - public AccessibilityManager.FocusOvershotDirection FocusOvershotDirection - { - get - { - return focusOvershotDirection; - } - set - { - focusOvershotDirection = value; - } - } - } - } -} diff --git a/src/Tizen.NUI/src/public/BaseComponents/CustomView.cs b/src/Tizen.NUI/src/public/BaseComponents/CustomView.cs index 43030022b12..4454995a18f 100755 --- a/src/Tizen.NUI/src/public/BaseComponents/CustomView.cs +++ b/src/Tizen.NUI/src/public/BaseComponents/CustomView.cs @@ -550,35 +550,6 @@ protected override bool OnAccessibilityActivated() return OnKeyboardEnter(); } - /// - /// This method should be overridden by deriving classes when they wish to respond the accessibility. - /// - /// The pan gesture. - /// True if the pan gesture has been consumed by this control. - internal virtual bool OnAccessibilityPan(PanGesture gestures) - { - return false; - } - - /// - /// This method should be overridden by deriving classes when they wish to respond the accessibility up and down action (i.e., value change of slider control). - /// - /// Whether the value should be increased or decreased. - /// True if the value changed action has been consumed by this control. - internal virtual bool OnAccessibilityValueChange(bool isIncrease) - { - return false; - } - - /// - /// This method should be overridden by deriving classes when they wish to respond the accessibility zoom action. - /// - /// True if the zoom action has been consumed by this control. - internal virtual bool OnAccessibilityZoom() - { - return false; - } - /// /// Allows deriving classes to disable any of the gesture detectors.
/// Like EnableGestureDetection, this can also be called using bitwise or one at a time.
@@ -833,9 +804,6 @@ private void Initialize() viewWrapperImpl.OnLayoutNegotiated = new ViewWrapperImpl.OnLayoutNegotiatedDelegate(OnLayoutNegotiated); viewWrapperImpl.OnStyleChange = new ViewWrapperImpl.OnStyleChangeDelegate(OnStyleChange); viewWrapperImpl.OnAccessibilityActivated = new ViewWrapperImpl.OnAccessibilityActivatedDelegate(OnAccessibilityActivated); - viewWrapperImpl.OnAccessibilityPan = new ViewWrapperImpl.OnAccessibilityPanDelegate(OnAccessibilityPan); - viewWrapperImpl.OnAccessibilityValueChange = new ViewWrapperImpl.OnAccessibilityValueChangeDelegate(OnAccessibilityValueChange); - viewWrapperImpl.OnAccessibilityZoom = new ViewWrapperImpl.OnAccessibilityZoomDelegate(OnAccessibilityZoom); viewWrapperImpl.OnFocusGained = new ViewWrapperImpl.OnFocusGainedDelegate(OnFocusGained); viewWrapperImpl.OnFocusLost = new ViewWrapperImpl.OnFocusLostDelegate(OnFocusLost); viewWrapperImpl.GetNextFocusableView = new ViewWrapperImpl.GetNextFocusableViewDelegate(GetNextFocusableView); diff --git a/src/Tizen.NUI/src/public/CustomView/ViewWrapper.cs b/src/Tizen.NUI/src/public/CustomView/ViewWrapper.cs index 0a9651f9117..d5dc3992ee3 100755 --- a/src/Tizen.NUI/src/public/CustomView/ViewWrapper.cs +++ b/src/Tizen.NUI/src/public/CustomView/ViewWrapper.cs @@ -83,9 +83,6 @@ protected override void Dispose(DisposeTypes type) viewWrapperImpl.OnLayoutNegotiated = null; viewWrapperImpl.OnStyleChange = null; viewWrapperImpl.OnAccessibilityActivated = null; - viewWrapperImpl.OnAccessibilityPan = null; - viewWrapperImpl.OnAccessibilityValueChange = null; - viewWrapperImpl.OnAccessibilityZoom = null; viewWrapperImpl.OnFocusGained = null; viewWrapperImpl.OnFocusLost = null; viewWrapperImpl.GetNextFocusableView = null; diff --git a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/AccessibilityManagerSample.cs b/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/AccessibilityManagerSample.cs deleted file mode 100755 index 1cee8b2a559..00000000000 --- a/test/Tizen.NUI.Samples/Tizen.NUI.Samples/Samples/AccessibilityManagerSample.cs +++ /dev/null @@ -1,113 +0,0 @@ - -using System; -using Tizen.NUI.BaseComponents; -using Tizen.NUI.Accessibility; - -/////////////////////////////////////////////////////////////////////////////////////////////// -/// How to turn on and test Accessibility /// -/// There are two ways to turn on screen reader (TTS) in the target /// -/// 1) Settings > Accessibility > Screen reader > On /// -/// 2) Open Terminal and use command : /// -/// # vconftool set -f -t bool db/setting/accessibility/tts 1 /// -/// If you turn off screen reader, type and execute text based command below : /// -/// # vconftool set -f -t bool db/setting/accessibility/tts 0 /// -/////////////////////////////////////////////////////////////////////////////////////////////// - -namespace Tizen.NUI.Samples -{ - public class AccessibilityManagerSample : IExample - { - const string tag = "NUITEST"; - - const int mRow = 3; - const int mColumn = 3; - const int mContents = mRow * mColumn; - - Size2D windowSize; - TableView table; - - public void Activate() - { - Window window = NUIApplication.GetDefaultWindow(); - window.BackgroundColor = Color.White; - windowSize = window.Size; - - // Create Table - table = new TableView(mRow, mColumn) - { - PositionUsesPivotPoint = true, - PivotPoint = PivotPoint.Center, - ParentOrigin = ParentOrigin.Center, - Size = new Size((float)(windowSize.Width * 0.8), (float)(windowSize.Height * 0.8)), - BackgroundColor = new Color(0.2f, 0.5f, 0.5f, 1.0f), - CellPadding = new Vector2(10, 10), - }; - window.GetDefaultLayer().Add(table); - - uint exampleCount = 0; - - // Fill the contents in TableView - for (uint row = 0; row < mRow; row++) - { - for (uint column = 0; column < mColumn; column++) - { - TextLabel content = CreateText(); - content.Name = "TextLabel" + exampleCount; - content.Text = "R" + row + " - C" + column; - - /////////////////////////////////////////////////////////////////////////////////////////////// - /// How to set Accessibility attribute to components /// - /// 1. Create AccessibilityManager. /// - /// 2. Set the focus order of each view and the index of order should start 1 (one). /// - /// 3. Set the information of each view's accessibility attribute. /// - /// There are four attributes, which will be read by screen reader. /// - /// And the order of reading is : Label -> Trait -> Value (Optional) -> Hint (Optional) /// - /////////////////////////////////////////////////////////////////////////////////////////////// - - AccessibilityManager manager = AccessibilityManager.Instance; - manager.SetFocusOrder(content, ++exampleCount); - manager.SetAccessibilityAttribute(content, - AccessibilityManager.AccessibilityAttribute.Label, content.Name); - manager.SetAccessibilityAttribute(content, - AccessibilityManager.AccessibilityAttribute.Trait, "Tile"); - manager.SetAccessibilityAttribute(content, - AccessibilityManager.AccessibilityAttribute.Hint, "You can run this example"); - - table.AddChild(content, new TableView.CellPosition(row, column)); - } - } - - // You can connect with various Accessibility action signals. - // AccessibilityManager provides functionality of setting the focus and moving forward and backward. - // All touch interactions for screen will work with one more finger and tap. - - AccessibilityManager.Instance.FocusedViewActivated += OnFocusedView; - } - - TextLabel CreateText() - { - TextLabel label = new TextLabel(); - label.MultiLine = true; - label.HorizontalAlignment = HorizontalAlignment.Center; - label.VerticalAlignment = VerticalAlignment.Center; - label.Focusable = true; - return label; - } - - // Do something with activated View, for example, launching another application. - private void OnFocusedView(object source, AccessibilityManager.FocusedViewActivatedEventArgs args) - { - if (args.View) - { - // Here, in the sample, if one finger double tap, the following log will shows in terminal. - Tizen.Log.Error(tag, "The current focused view is "+ args.View.Name +"\n"); - } - } - - public void Deactivate() - { - AccessibilityManager.Instance.FocusedViewActivated -= OnFocusedView; - if(table) { table.Unparent(); } - } - } -} diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSScrollableBase.cs b/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSScrollableBase.cs index b7a7b3003e8..d7e313db7d9 100755 --- a/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSScrollableBase.cs +++ b/test/Tizen.NUI.Tests/Tizen.NUI.Components.Devel.Tests/testcase/Controls/TSScrollableBase.cs @@ -314,44 +314,6 @@ public void ScrollableBaseScrollTo() tlog.Debug(tag, $"ScrollableBaseScrollTo END (OK)"); } - [Test] - [Category("P1")] - [Description("ScrollableBase OnAccessibilityPan")] - [Property("SPEC", "Tizen.NUI.Components.ScrollableBase.OnAccessibilityPan M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("COVPARAM", "")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void ScrollableBaseOnAccessibilityPan() - { - tlog.Debug(tag, $"ScrollableBaseOnAccessibilityPan START"); - - var testingTarget = new ScrollableBase() - { - Size = new Size(100, 2), - BackgroundColor = Color.Cyan, - ScrollingDirection = ScrollableBase.Direction.Vertical, - }; - Assert.IsNotNull(testingTarget, "null handle"); - Assert.IsInstanceOf(testingTarget, "Should return ScrollableBase instance."); - - using (PanGesture gesture = new PanGesture()) - { - try - { - testingTarget.OnAccessibilityPan(gesture); - } - catch (Exception e) - { - tlog.Debug(tag, e.Message.ToString()); - Assert.Fail("Caught Exception : Failed!"); - } - } - - testingTarget.Dispose(); - tlog.Debug(tag, $"ScrollableBaseOnAccessibilityPan END (OK)"); - } - [Test] [Category("P1")] [Description("ScrollableBase Decelerating")] diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Accessibility/TSAccessibilityActionSignal.cs b/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Accessibility/TSAccessibilityActionSignal.cs deleted file mode 100755 index 53e7845c0de..00000000000 --- a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Accessibility/TSAccessibilityActionSignal.cs +++ /dev/null @@ -1,147 +0,0 @@ - -using global::System; -using NUnit.Framework; -using NUnit.Framework.TUnit; -using Tizen.NUI.Components; -using Tizen.NUI.BaseComponents; - -namespace Tizen.NUI.Devel.Tests -{ - using tlog = Tizen.Log; - - [TestFixture] - [Description("internal/Accessibility/AccessibilityActionSignal")] - public class InternalAccessibilityActionSignalTest - { - private const string tag = "NUITEST"; - private delegate bool dummyCallback(IntPtr accessibilityManager); - private bool OnDummyCallback(IntPtr data) - { - return false; - } - - [SetUp] - public void Init() - { - tlog.Info(tag, "Init() is called!"); - } - - [TearDown] - public void Destroy() - { - tlog.Info(tag, "Destroy() is called!"); - } - - [Test] - [Description("AccessibilityActionSignal constructor")] - [Property("AUTHOR", "dongsug.song@samsung.com")] - public void AccessibilityActionSignalConstructor() - { - tlog.Debug(tag, $"AccessibilityActionSignalConstructor START"); - - var testingTarget = new AccessibilityActionSignal(); - - Assert.IsNotNull(testingTarget, "should be not null"); - Assert.IsInstanceOf(testingTarget, "should be an instance of testing target class!"); - - testingTarget.Dispose(); - tlog.Debug(tag, $"AccessibilityActionSignalConstructor END (OK)"); - } - - [Test] - [Description("AccessibilityActionSignal Empty")] - [Property("AUTHOR", "dongsug.song@samsung.com")] - public void AccessibilityActionSignalEmpty() - { - tlog.Debug(tag, $"AccessibilityActionSignalEmpty START"); - - var testingTarget = new AccessibilityActionSignal(); - Assert.IsNotNull(testingTarget, "should be not null"); - Assert.IsInstanceOf(testingTarget, "should be an instance of testing target class!"); - - var result = testingTarget.Empty(); - Assert.IsTrue(result); - - testingTarget.Dispose(); - tlog.Debug(tag, $"AccessibilityActionSignalEmpty END (OK)"); - } - - [Test] - [Description("AccessibilityActionSignal GetConnectionCount")] - [Property("AUTHOR", "dongsug.song@samsung.com")] - public void AccessibilityActionSignalGetConnectionCount() - { - tlog.Debug(tag, $"AccessibilityActionSignal_GetConnectionCount START"); - - var testingTarget = new AccessibilityActionSignal(); - Assert.IsNotNull(testingTarget, "should be not null"); - Assert.IsInstanceOf(testingTarget, "should be an instance of testing target class!"); - - var result = testingTarget.GetConnectionCount(); - Assert.IsTrue(result == 0, "result should be 0"); - - testingTarget.Dispose(); - tlog.Debug(tag, $"AccessibilityActionSignalGetConnectionCount END (OK)"); - } - - [Test] - [Description("AccessibilityActionSignal Connection")] - [Property("AUTHOR", "dongsug.song@samsung.com")] - public void AccessibilityActionSignalConnection() - { - tlog.Debug(tag, $"AccessibilityActionSignalConnection START"); - - var testingTarget = new AccessibilityActionSignal(); - Assert.IsNotNull(testingTarget, "should be not null"); - Assert.IsInstanceOf(testingTarget, "should be an instance of testing target class!"); - - dummyCallback callback = OnDummyCallback; - testingTarget.Connect(callback); - testingTarget.Disconnect(callback); - testingTarget.Dispose(); - - tlog.Debug(tag, $"AccessibilityActionSignalConnection END (OK)"); - } - - [Test] - [Description("AccessibilityActionSignal Disconnection")] - [Property("AUTHOR", "dongsug.song@samsung.com")] - public void AccessibilityActionSignalDisconnection() - { - tlog.Debug(tag, $"AccessibilityActionSignalDisconnection START"); - - var testingTarget = new AccessibilityActionSignal(); - Assert.IsNotNull(testingTarget, "should be not null"); - Assert.IsInstanceOf(testingTarget, "should be an instance of testing target class!"); - - dummyCallback callback = OnDummyCallback; - testingTarget.Connect(callback); - testingTarget.Disconnect(callback); - testingTarget.Dispose(); - - tlog.Debug(tag, $"AccessibilityActionSignalDisconnection END (OK)"); - } - - [Test] - [Description("AccessibilityActionSignal Emit")] - [Property("AUTHOR", "dongsug.song@samsung.com")] - public void AccessibilityActionSignalEmit() - { - tlog.Debug(tag, $"AccessibilityActionSignalEmit START"); - var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id; - var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId; - - tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}"); - - var testingTarget = new AccessibilityActionSignal(); - Assert.IsNotNull(testingTarget, "should be not null"); - Assert.IsInstanceOf(testingTarget, "should be an instance of testing target class!"); - - testingTarget.Emit(Tizen.NUI.Accessibility.AccessibilityManager.Instance); - testingTarget.Dispose(); - - tlog.Debug(tag, $"AccessibilityActionSignalEmit END (OK)"); - } - - } -} diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Accessibility/TSAccessibilityFocusOvershotSignal.cs b/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Accessibility/TSAccessibilityFocusOvershotSignal.cs deleted file mode 100755 index 98afa2bc1d4..00000000000 --- a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Accessibility/TSAccessibilityFocusOvershotSignal.cs +++ /dev/null @@ -1,150 +0,0 @@ - -using global::System; -using NUnit.Framework; -using NUnit.Framework.TUnit; -using Tizen.NUI.Components; -using Tizen.NUI.BaseComponents; - -namespace Tizen.NUI.Devel.Tests -{ - using tlog = Tizen.Log; - - [TestFixture] - [Description("internal/Accessibility/AccessibilityFocusOvershotSignal")] - public class InternalAccessibilityFocusOvershotSignalTests - { - private const string tag = "NUITEST"; - private delegate bool dummyCallback(IntPtr accessibilityManager); - private bool OnDummyCallback(IntPtr data) - { - return false; - } - - [SetUp] - public void Init() - { - tlog.Info(tag, "Init() is called!"); - } - - [TearDown] - public void Destroy() - { - tlog.Info(tag, "Destroy() is called!"); - } - - [Test] - [Description("AccessibilityFocusOvershotSignal constructor")] - [Property("AUTHOR", "dongsug.song@samsung.com")] - public void AccessibilityFocusOvershotSignalConstructor() - { - tlog.Debug(tag, $"AccessibilityFocusOvershotSignalConstructor START"); - - var testingTarget = new AccessibilityFocusOvershotSignal(); - - Assert.IsNotNull(testingTarget, "should be not null"); - Assert.IsInstanceOf(testingTarget, "should be an instance of testing target class!"); - - testingTarget.Dispose(); - tlog.Debug(tag, $"AccessibilityFocusOvershotSignalConstructor END (OK)"); - } - - [Test] - [Description("AccessibilityFocusOvershotSignal Empty")] - [Property("AUTHOR", "dongsug.song@samsung.com")] - public void AccessibilityFocusOvershotSignalEmpty() - { - tlog.Debug(tag, $"AccessibilityFocusOvershotSignalEmpty START"); - - var testingTarget = new AccessibilityFocusOvershotSignal(); - Assert.IsNotNull(testingTarget, "should be not null"); - Assert.IsInstanceOf(testingTarget, "should be an instance of testing target class!"); - - var result = testingTarget.Empty(); - Assert.IsTrue(result); - - testingTarget.Dispose(); - tlog.Debug(tag, $"AccessibilityFocusOvershotSignalEmpty END (OK)"); - } - - [Test] - [Description("AccessibilityFocusOvershotSignal GetConnectionCount")] - [Property("AUTHOR", "dongsug.song@samsung.com")] - public void AccessibilityFocusOvershotSignalGetConnectionCount() - { - tlog.Debug(tag, $"AccessibilityFocusOvershotSignalGetConnectionCount START"); - - var testingTarget = new AccessibilityFocusOvershotSignal(); - Assert.IsNotNull(testingTarget, "should be not null"); - Assert.IsInstanceOf(testingTarget, "should be an instance of testing target class!"); - - var result = testingTarget.GetConnectionCount(); - Assert.IsTrue(result == 0, "result should be 0"); - - testingTarget.Dispose(); - tlog.Debug(tag, $"AccessibilityFocusOvershotSignalGetConnectionCount END (OK)"); - } - - [Test] - [Description("AccessibilityFocusOvershotSignal Connection")] - [Property("AUTHOR", "dongsug.song@samsung.com")] - public void AccessibilityFocusOvershotSignalConnection() - { - tlog.Debug(tag, $"AccessibilityFocusOvershotSignalConnection START"); - - var testingTarget = new AccessibilityFocusOvershotSignal(); - Assert.IsNotNull(testingTarget, "should be not null"); - Assert.IsInstanceOf(testingTarget, "should be an instance of testing target class!"); - - dummyCallback callback = OnDummyCallback; - testingTarget.Connect(callback); - testingTarget.Disconnect(callback); - testingTarget.Dispose(); - - tlog.Debug(tag, $"AccessibilityFocusOvershotSignalConnection END (OK)"); - } - - [Test] - [Description("AccessibilityFocusOvershotSignal Disconnection")] - [Property("AUTHOR", "dongsug.song@samsung.com")] - public void AccessibilityFocusOvershotSignalDisconnection() - { - tlog.Debug(tag, $"AccessibilityFocusOvershotSignalDisconnection START"); - - var testingTarget = new AccessibilityFocusOvershotSignal(); - Assert.IsNotNull(testingTarget, "should be not null"); - Assert.IsInstanceOf(testingTarget, "should be an instance of testing target class!"); - - dummyCallback callback = OnDummyCallback; - testingTarget.Connect(callback); - testingTarget.Disconnect(callback); - testingTarget.Dispose(); - - tlog.Debug(tag, $"AccessibilityFocusOvershotSignalDisconnection END (OK)"); - } - - [Test] - [Description("AccessibilityFocusOvershotSignal Emit")] - [Property("AUTHOR", "dongsug.song@samsung.com")] - public void AccessibilityFocusOvershotSignalEmit() - { - tlog.Debug(tag, $"AccessibilityFocusOvershotSignalEmit START"); - var currentPid = global::System.Diagnostics.Process.GetCurrentProcess().Id; - var currentTid = global::System.Threading.Thread.CurrentThread.ManagedThreadId; - - tlog.Debug(tag, $"thread check! main pid={App.mainPid}, current pid={currentPid}, main tid={App.mainTid}, current tid={currentTid}"); - - var testingTarget = new AccessibilityFocusOvershotSignal(); - Assert.IsNotNull(testingTarget, "should be not null"); - Assert.IsInstanceOf(testingTarget, "should be an instance of testing target class!"); - - View dummy = new View(); - testingTarget.Emit(dummy, Accessibility.AccessibilityManager.FocusOvershotDirection.Previous); - - testingTarget.Dispose(); - dummy.Dispose(); - - tlog.Debug(tag, $"AccessibilityFocusOvershotSignalEmit END (OK)"); - } - - } -} diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Common/TSViewImpl.cs b/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Common/TSViewImpl.cs index bb4636ae5fd..10e30211ffb 100755 --- a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Common/TSViewImpl.cs +++ b/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/internal/Common/TSViewImpl.cs @@ -294,52 +294,6 @@ public void ViewImplOnAccessibilityActivated() tlog.Debug(tag, $"ViewImplOnAccessibilityActivated (OK)"); } - [Test] - [Category("P1")] - [Description("ViewImpl OnAccessibilityValueChange.")] - [Property("SPEC", "Tizen.NUI.ViewImpl.OnAccessibilityValueChange M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("COVPARAM", "")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void ViewImplOnAccessibilityValueChange() - { - tlog.Debug(tag, $"ViewImplOnAccessibilityValueChange START"); - - var testingTarget = NDalic.GetImplementation(new View()); - Assert.IsNotNull(testingTarget, "should be not null"); - Assert.IsInstanceOf(testingTarget, "should be an instance of testing target class!"); - - var result = testingTarget.OnAccessibilityValueChange(true); - Assert.IsTrue(!result); - - testingTarget.Dispose(); - tlog.Debug(tag, $"ViewImplOnAccessibilityValueChange (OK)"); - } - - [Test] - [Category("P1")] - [Description("ViewImpl OnAccessibilityZoom.")] - [Property("SPEC", "Tizen.NUI.ViewImpl.OnAccessibilityZoom M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("COVPARAM", "")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void ViewImplOnAccessibilityZoom() - { - tlog.Debug(tag, $"ViewImplOnAccessibilityZoom START"); - - var testingTarget = NDalic.GetImplementation(new View()); - Assert.IsNotNull(testingTarget, "should be not null"); - Assert.IsInstanceOf(testingTarget, "should be an instance of testing target class!"); - - var result = testingTarget.OnAccessibilityZoom(); - Assert.IsTrue(!result); - - testingTarget.Dispose(); - tlog.Debug(tag, $"ViewImplOnAccessibilityZoom (OK)"); - } - [Test] [Category("P1")] [Description("ViewImpl OnKeyboardEnter.")] diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Accessibility/TSAccessibilityManager.cs b/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Accessibility/TSAccessibilityManager.cs deleted file mode 100755 index bb34a5c4470..00000000000 --- a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Accessibility/TSAccessibilityManager.cs +++ /dev/null @@ -1,932 +0,0 @@ -using global::System; -using NUnit.Framework; -using NUnit.Framework.TUnit; -using Tizen.NUI.Components; -using Tizen.NUI.BaseComponents; - -namespace Tizen.NUI.Devel.Tests -{ - using tlog = Tizen.Log; - - [TestFixture] - [Description("public/Accessibility/AccessibilityManager")] - public class PublicAccessibilityManagerTest - { - private const string tag = "NUITEST"; - - [SetUp] - public void Init() - { - tlog.Info(tag, "Init() is called!"); - } - - [TearDown] - public void Destroy() - { - tlog.Info(tag, "Destroy() is called!"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager construcotr.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.AccessibilityManager M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerConstructor() - { - tlog.Debug(tag, $"AccessibilityManagerConstructor START"); - - var testingTarget = new Accessibility.AccessibilityManager(); - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - testingTarget.Dispose(); - tlog.Debug(tag, $"AccessibilityManagerConstructor END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager SetAccessibilityAttribute.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.SetAccessibilityAttribute M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerSetAccessibilityAttribute() - { - tlog.Debug(tag, $"AccessibilityManagerSetAccessibilityAttribute START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - try - { - using (View view = new View() { Size = new Size(100, 50) }) - { - testingTarget.SetAccessibilityAttribute(view, Accessibility.AccessibilityManager.AccessibilityAttribute.Label, "label"); - var result = testingTarget.GetAccessibilityAttribute(view, Accessibility.AccessibilityManager.AccessibilityAttribute.Label); - tlog.Debug(tag, "Attribute : " + result); - } - } - catch (Exception e) - { - tlog.Debug(tag, e.Message.ToString()); - Assert.Fail("Caught Exception : Failed!"); - } - - tlog.Debug(tag, $"AccessibilityManagerSetAccessibilityAttribute END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager SetFocusOrder.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.SetFocusOrder M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerSetFocusOrder() - { - tlog.Debug(tag, $"AccessibilityManagerSetFocusOrder START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - try - { - using (View view = new View() { Size = new Size(100, 50) }) - { - testingTarget.SetFocusOrder(view, 1); - var result = testingTarget.GetFocusOrder(view); - tlog.Debug(tag, "FocusOrder : " + result); - - testingTarget.ClearFocus(); - } - } - catch (Exception e) - { - tlog.Debug(tag, e.Message.ToString()); - Assert.Fail("Caught Exception : Failed!"); - } - - tlog.Debug(tag, $"AccessibilityManagerSetFocusOrder END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager GenerateNewFocusOrder.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.GenerateNewFocusOrder M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerGenerateNewFocusOrder() - { - tlog.Debug(tag, $"AccessibilityManagerGenerateNewFocusOrder START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.GenerateNewFocusOrder(); - tlog.Debug(tag, "New focus order : " + result); - - tlog.Debug(tag, $"AccessibilityManagerGenerateNewFocusOrder END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager GetViewByFocusOrder.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.GetViewByFocusOrder M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerGetViewByFocusOrder() - { - tlog.Debug(tag, $"AccessibilityManagerGetViewByFocusOrder START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.GetViewByFocusOrder(1); - tlog.Debug(tag, "New focus order : " + result); - - tlog.Debug(tag, $"AccessibilityManagerGetViewByFocusOrder END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager SetCurrentFocusView.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.SetCurrentFocusView M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerSetCurrentFocusView() - { - tlog.Debug(tag, $"AccessibilityManagerSetCurrentFocusView START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - using (View view = new View() { Size = new Size(100, 50) }) - { - var result = testingTarget.SetCurrentFocusView(view); - tlog.Debug(tag, "Set current focus order : " + result); - tlog.Debug(tag, "Current focus : " + testingTarget.GetCurrentFocusView()); - tlog.Debug(tag, "Current focus order : " + testingTarget.GetCurrentFocusOrder()); - tlog.Debug(tag, "Current focus group : " + testingTarget.GetCurrentFocusGroup()); - - testingTarget.Reset(); - } - - tlog.Debug(tag, $"AccessibilityManagerSetCurrentFocusView END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager MoveFocusForward.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.MoveFocusForward M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerMoveFocusForward() - { - tlog.Debug(tag, $"AccessibilityManagerMoveFocusForward START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - tlog.Debug(tag, "Move focus forwrad : " + testingTarget.MoveFocusForward()); - tlog.Debug(tag, "Move focus backwrad : " + testingTarget.MoveFocusBackward()); - - tlog.Debug(tag, $"AccessibilityManagerMoveFocusForward END (OK)"); - } - - - - [Test] - [Category("P1")] - [Description("AccessibilityManager SetFocusGroup.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.SetFocusGroup M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerSetFocusGroup() - { - tlog.Debug(tag, $"AccessibilityManagerSetFocusGroup START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - using (View view = new View() { Size = new Size(100, 50) }) - { - try - { - testingTarget.SetFocusGroup(view, true); - tlog.Debug(tag, "Is focus group : " + testingTarget.IsFocusGroup(view)); - tlog.Debug(tag, "Focus group : " + testingTarget.GetFocusGroup(view)); - } - catch (Exception e) - { - tlog.Debug(tag, e.Message.ToString()); - Assert.Fail("Caught Exception : Failed!"); - } - } - - tlog.Debug(tag, $"AccessibilityManagerSetFocusGroup END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager SetGroupMode.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.SetGroupMode M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerSetGroupMode() - { - tlog.Debug(tag, $"AccessibilityManagerSetGroupMode START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - using (View view = new View() { Size = new Size(100, 50) }) - { - try - { - testingTarget.SetGroupMode(true); - tlog.Debug(tag, "Group mode : " + testingTarget.GetGroupMode()); - } - catch (Exception e) - { - tlog.Debug(tag, e.Message.ToString()); - Assert.Fail("Caught Exception : Failed!"); - } - } - - tlog.Debug(tag, $"AccessibilityManagerSetGroupMode END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager SetWrapMode.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.SetWrapMode M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerSetWrapMode() - { - tlog.Debug(tag, $"AccessibilityManagerSetWrapMode START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - testingTarget.SetWrapMode(true); - tlog.Debug(tag, "Wrap mode : " + testingTarget.GetWrapMode()); - - tlog.Debug(tag, $"AccessibilityManagerSetWrapMode END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager SetFocusIndicatorView.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.SetFocusIndicatorView M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerSetFocusIndicatorView() - { - tlog.Debug(tag, $"AccessibilityManagerSetFocusIndicatorView START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - using (View indicator = new View() { Size = new Size(8, 8), Color = Color.Black }) - { - testingTarget.SetFocusIndicatorView(indicator); - tlog.Debug(tag, "Group mode : " + testingTarget.GetFocusIndicatorView()); - } - - tlog.Debug(tag, $"AccessibilityManagerSetFocusIndicatorView END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager GetReadPosition.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.GetReadPosition M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerGetReadPosition() - { - tlog.Debug(tag, $"AccessibilityManagerGetReadPosition START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - using (View view = new View() { Size = new Size(8, 8), Position = new Position(100, 200) }) - { - testingTarget.SetFocusIndicatorView(view); - tlog.Debug(tag, "Group mode : " + testingTarget.GetReadPosition()); - } - - tlog.Debug(tag, $"AccessibilityManagerGetReadPosition END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager FocusChangedSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.FocusChangedSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerFocusChangedSignal() - { - tlog.Debug(tag, $"AccessibilityManagerFocusChangedSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.FocusChangedSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerFocusChangedSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager FocusOvershotSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.FocusOvershotSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerFocusOvershotSignal() - { - tlog.Debug(tag, $"AccessibilityManagerFocusOvershotSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.FocusOvershotSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerFocusOvershotSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager StatusChangedSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.StatusChangedSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerStatusChangedSignal() - { - tlog.Debug(tag, $"AccessibilityManagerStatusChangedSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.StatusChangedSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerStatusChangedSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionNextSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionNextSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionNextSignal() - { - tlog.Debug(tag, $"AccessibilityManagerStatusChangedSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionNextSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionNextSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionPreviousSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionPreviousSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionPreviousSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionPreviousSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionPreviousSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionPreviousSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionActivateSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionActivateSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionActivateSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionActivateSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionActivateSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionActivateSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionReadSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionReadSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionReadSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionReadSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionReadSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionReadSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionOverSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionOverSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionOverSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionOverSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionOverSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionOverSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionReadNextSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionReadNextSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionReadNextSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionReadNextSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionReadNextSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionReadNextSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionReadPreviousSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionReadPreviousSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionReadPreviousSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionReadPreviousSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionReadPreviousSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionReadPreviousSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionUpSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionUpSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionUpSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionUpSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionUpSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionUpSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionDownSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionDownSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionDownSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionDownSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionDownSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionDownSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionClearFocusSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionClearFocusSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionClearFocusSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionClearFocusSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionClearFocusSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionClearFocusSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionBackSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionBackSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionBackSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionBackSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionBackSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionBackSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionScrollUpSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionScrollUpSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionScrollUpSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionScrollUpSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionScrollUpSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionScrollUpSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionScrollDownSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionScrollDownSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionScrollDownSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionScrollDownSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionScrollDownSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionScrollDownSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionPageLeftSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionPageLeftSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionPageLeftSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionPageLeftSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionPageLeftSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionPageLeftSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionPageRightSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionPageRightSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionPageRightSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionPageRightSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionPageRightSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionPageRightSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionPageUpSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionPageUpSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionPageUpSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionPageUpSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionPageUpSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionPageUpSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionPageDownSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionPageDownSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionPageDownSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionPageDownSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionPageDownSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionPageDownSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionMoveToFirstSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionMoveToFirstSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionMoveToFirstSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionMoveToFirstSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionMoveToFirstSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionMoveToFirstSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionMoveToLastSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionMoveToLastSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionMoveToLastSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionMoveToLastSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionMoveToLastSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionMoveToLastSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionReadFromTopSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionReadFromTopSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionReadFromTopSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionReadFromTopSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionReadFromTopSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionReadFromTopSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionReadFromNextSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionReadFromNextSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionReadFromNextSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionReadFromNextSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionReadFromNextSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionReadFromNextSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionZoomSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionZoomSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionZoomSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionZoomSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionZoomSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionZoomSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionReadPauseResumeSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionReadPauseResumeSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionReadPauseResumeSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionReadPauseResumeSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionReadPauseResumeSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionReadPauseResumeSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionStartStopSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionStartStopSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionStartStopSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionStartStopSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionStartStopSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionStartStopSignal END (OK)"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager ActionScrollSignal.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.ActionScrollSignal M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerActionScrollSignal() - { - tlog.Debug(tag, $"AccessibilityManagerActionScrollSignal START"); - - var testingTarget = Accessibility.AccessibilityManager.Instance; - Assert.IsNotNull(testingTarget, "Can't create success object AccessibilityManager "); - Assert.IsInstanceOf(testingTarget, "Should be an instance of AccessibilityManager type."); - - var result = testingTarget.ActionScrollSignal(); - Assert.IsNotNull(result); - - tlog.Debug(tag, $"AccessibilityManagerActionScrollSignal END (OK)"); - } - } -} diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Accessibility/TSAccessibilityManagerEvent.cs b/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Accessibility/TSAccessibilityManagerEvent.cs deleted file mode 100755 index e8d93a09bd3..00000000000 --- a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Accessibility/TSAccessibilityManagerEvent.cs +++ /dev/null @@ -1,162 +0,0 @@ -using global::System; -using NUnit.Framework; -using NUnit.Framework.TUnit; -using Tizen.NUI.Components; -using Tizen.NUI.BaseComponents; - -namespace Tizen.NUI.Devel.Tests -{ - using tlog = Tizen.Log; - - [TestFixture] - [Description("public/Accessibility/AccessibilityManagerEvent")] - public class PublicAccessibilityManagerEventTest - { - private const string tag = "NUITEST"; - private Accessibility.AccessibilityManager manager; - - private bool OnStatusChanged(object source, EventArgs e) { return true; } - private bool OnActionNext(object source, EventArgs e) { return true; } - private bool OnActionPrevious(object source, EventArgs e) { return true; } - private bool OnActionActivate(object source, EventArgs e) { return true; } - private bool OnActionRead(object source, EventArgs e) { return true; } - private bool OnActionOver(object source, EventArgs e) { return true; } - private bool OnActionReadNext(object source, EventArgs e) { return true; } - private bool OnActionStartStop(object source, EventArgs e) { return true; } - private bool OnActionReadPauseResume(object source, EventArgs e) { return true; } - private bool OnActionZoom(object source, EventArgs e) { return true; } - private bool OnActionReadFromNext(object source, EventArgs e) { return true; } - private bool OnActionReadFromTop(object source, EventArgs e) { return true; } - private bool OnActionMoveToLast(object source, EventArgs e) { return true; } - private bool OnActionMoveToFirst(object source, EventArgs e) { return true; } - private bool OnActionPageDown(object source, EventArgs e) { return true; } - private bool OnActionPageUp(object source, EventArgs e) { return true; } - private bool OnActionPageRight(object source, EventArgs e) { return true; } - private bool OnActionPageLeft(object source, EventArgs e) { return true; } - private bool OnActionScrollDown(object source, EventArgs e) { return true; } - private bool OnActionScrollUp(object source, EventArgs e) { return true; } - private bool OnActionBack(object source, EventArgs e) { return true; } - private bool OnActionClearFocus(object source, EventArgs e) { return true; } - private bool OnActionDown(object source, EventArgs e) { return true; } - private bool OnActionUp(object source, EventArgs e) { return true; } - private bool OnActionReadPrevious(object source, EventArgs e) { return true; } - private void OnFocusOvershot(object sender, Accessibility.AccessibilityManager.FocusOvershotEventArgs e) { } - private void OnFocusedViewActivated(object sender, Accessibility.AccessibilityManager.FocusedViewActivatedEventArgs e) { } - private void OnFocusChanged(object sender, Accessibility.AccessibilityManager.FocusChangedEventArgs e) { } - - [SetUp] - public void Init() - { - tlog.Info(tag, "Init() is called!"); - - manager = Accessibility.AccessibilityManager.Instance; - } - - [TearDown] - public void Destroy() - { - manager.Dispose(); - manager = null; - - tlog.Info(tag, "Destroy() is called!"); - } - - [Test] - [Category("P1")] - [Description("AccessibilityManager events.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.StatusChanged... A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void AccessibilityManagerEvents() - { - tlog.Debug(tag, $"AccessibilityManagerEvents START"); - - manager.StatusChanged += OnStatusChanged; - manager.StatusChanged -= OnStatusChanged; - - manager.ActionNext += OnActionNext; - manager.ActionNext -= OnActionNext; - - manager.ActionPrevious += OnActionPrevious; - manager.ActionPrevious -= OnActionPrevious; - - manager.ActionActivate += OnActionActivate; - manager.ActionActivate -= OnActionActivate; - - manager.ActionRead += OnActionRead; - manager.ActionRead -= OnActionRead; - - manager.ActionOver += OnActionOver; - manager.ActionOver -= OnActionOver; - - manager.ActionReadNext += OnActionReadNext; - manager.ActionReadNext -= OnActionReadNext; - - manager.ActionReadPrevious += OnActionReadPrevious; - manager.ActionReadPrevious -= OnActionReadPrevious; - - manager.ActionUp += OnActionUp; - manager.ActionUp -= OnActionUp; - - manager.ActionDown += OnActionDown; - manager.ActionDown -= OnActionDown; - - manager.FocusOvershot += OnFocusOvershot; - manager.FocusOvershot -= OnFocusOvershot; - - manager.ActionClearFocus += OnActionClearFocus; - manager.ActionClearFocus -= OnActionClearFocus; - - manager.ActionBack += OnActionBack; - manager.ActionBack -= OnActionBack; - - manager.FocusedViewActivated += OnFocusedViewActivated; - manager.FocusedViewActivated -= OnFocusedViewActivated; - - manager.FocusChanged += OnFocusChanged; - manager.FocusChanged -= OnFocusChanged; - - manager.ActionStartStop += OnActionStartStop; - manager.ActionStartStop -= OnActionStartStop; - - manager.ActionReadPauseResume += OnActionReadPauseResume; - manager.ActionReadPauseResume -= OnActionReadPauseResume; - - manager.ActionReadFromNext += OnActionReadFromNext; - manager.ActionReadFromNext -= OnActionReadFromNext; - - manager.ActionPageDown += OnActionPageDown; - manager.ActionPageDown -= OnActionPageDown; - - manager.ActionZoom += OnActionZoom; - manager.ActionZoom -= OnActionZoom; - - manager.ActionScrollUp += OnActionScrollUp; - manager.ActionScrollUp -= OnActionScrollUp; - - manager.ActionScrollDown += OnActionScrollDown; - manager.ActionScrollDown -= OnActionScrollDown; - - manager.ActionPageLeft += OnActionPageLeft; - manager.ActionPageLeft -= OnActionPageLeft; - - manager.ActionPageRight += OnActionPageRight; - manager.ActionPageRight -= OnActionPageRight; - - manager.ActionReadFromTop += OnActionReadFromTop; - manager.ActionReadFromTop -= OnActionReadFromTop; - - manager.ActionMoveToLast += OnActionMoveToLast; - manager.ActionMoveToLast -= OnActionMoveToLast; - - manager.ActionMoveToFirst += OnActionMoveToFirst; - manager.ActionMoveToFirst -= OnActionMoveToFirst; - - manager.ActionPageUp += OnActionPageUp; - manager.ActionPageUp -= OnActionPageUp; - - tlog.Debug(tag, $"AccessibilityManagerEvents END (OK)"); - } - } -} diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Accessibility/TSAccessibilityManagerEventArgs.cs b/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Accessibility/TSAccessibilityManagerEventArgs.cs deleted file mode 100755 index 14a4857361e..00000000000 --- a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/Accessibility/TSAccessibilityManagerEventArgs.cs +++ /dev/null @@ -1,110 +0,0 @@ -using global::System; -using NUnit.Framework; -using NUnit.Framework.TUnit; -using Tizen.NUI.Components; -using Tizen.NUI.BaseComponents; - -namespace Tizen.NUI.Devel.Tests -{ - using tlog = Tizen.Log; - - [TestFixture] - [Description("public/Accessibility/AccessibilityManagerEventArgs")] - public class PublicAccessibilityManagerEventArgsTest - { - private const string tag = "NUITEST"; - - [SetUp] - public void Init() - { - tlog.Info(tag, "Init() is called!"); - } - - [TearDown] - public void Destroy() - { - tlog.Info(tag, "Destroy() is called!"); - } - - [Test] - [Category("P1")] - [Description("FocusChangedEventArgs ViewCurrent.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.FocusChangedEventArgs.ViewCurrent A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void FocusChangedEventArgsViewCurrent() - { - tlog.Debug(tag, $"FocusChangedEventArgsViewCurrent START"); - - var testingTarget = new Accessibility.AccessibilityManager.FocusChangedEventArgs(); - Assert.IsNotNull(testingTarget, "Can't create success object FocusChangedEventArgs"); - Assert.IsInstanceOf(testingTarget, "Should be an instance of FocusChangedEventArgs type."); - - using (View current = new View() { Size = new Size(100, 50) }) - { - testingTarget.ViewCurrent = current; - tlog.Debug(tag, "ViewCurrent : " + testingTarget.ViewCurrent); - } - - using (View next = new View() { Size = new Size(100, 50) }) - { - testingTarget.ViewNext = next; - tlog.Debug(tag, "ViewNext : " + testingTarget.ViewNext); - } - - tlog.Debug(tag, $"FocusChangedEventArgsViewCurrent END (OK)"); - } - - [Test] - [Category("P1")] - [Description("FocusedViewActivatedEventArgs View.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.FocusedViewActivatedEventArgs.View A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void FocusedViewActivatedEventArgsView() - { - tlog.Debug(tag, $"FocusedViewActivatedEventArgsView START"); - - var testingTarget = new Accessibility.AccessibilityManager.FocusedViewActivatedEventArgs(); - Assert.IsNotNull(testingTarget, "Can't create success object FocusedViewActivatedEventArgs"); - Assert.IsInstanceOf(testingTarget, "Should be an instance of FocusedViewActivatedEventArgs type."); - - using (View view = new View() { Size = new Size(100, 50) }) - { - testingTarget.View = view; - tlog.Debug(tag, "View : " + testingTarget.View); - } - - tlog.Debug(tag, $"FocusedViewActivatedEventArgsView END (OK)"); - } - - [Test] - [Category("P1")] - [Description("FocusOvershotEventArgs CurrentFocusedView.")] - [Property("SPEC", "Tizen.NUI.AccessibilityManager.FocusOvershotEventArgs.CurrentFocusedView A")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "PRW")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void FocusOvershotEventArgsViewCurrentFocusedView() - { - tlog.Debug(tag, $"FocusOvershotEventArgsCurrentFocusedView START"); - - var testingTarget = new Accessibility.AccessibilityManager.FocusOvershotEventArgs(); - Assert.IsNotNull(testingTarget, "Can't create success object FocusOvershotEventArgs"); - Assert.IsInstanceOf(testingTarget, "Should be an instance of FocusOvershotEventArgs type."); - - using (View view = new View() { Size = new Size(100, 50) }) - { - testingTarget.CurrentFocusedView = view; - tlog.Debug(tag, "CurrentFocusedView : " + testingTarget.CurrentFocusedView); - } - - testingTarget.FocusOvershotDirection = Accessibility.AccessibilityManager.FocusOvershotDirection.Next; - tlog.Debug(tag, "FocusOvershotDirection : " + testingTarget.FocusOvershotDirection); - - tlog.Debug(tag, $"FocusOvershotEventArgsCurrentFocusedView END (OK)"); - } - } -} diff --git a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/BaseComponents/TSCustomView.cs b/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/BaseComponents/TSCustomView.cs index 8c0d7303a29..8aa9e2b1eb6 100755 --- a/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/BaseComponents/TSCustomView.cs +++ b/test/Tizen.NUI.Tests/Tizen.NUI.Devel.Tests/testcase/public/BaseComponents/TSCustomView.cs @@ -25,21 +25,6 @@ public void OnAccessibilityDoAction(string name) base.AccessibilityDoAction(name); } - public void MyOnAccessibilityPan(PanGesture gestures) - { - base.OnAccessibilityPan(gestures); - } - - public void MyOnAccessibilityValueChange(bool isIncrease) - { - base.OnAccessibilityValueChange(isIncrease); - } - - public void MyOnAccessibilityZoom() - { - base.OnAccessibilityZoom(); - } - public void MyDisableGestureDetection(Gesture.GestureType type) { base.DisableGestureDetection(type); @@ -170,40 +155,5 @@ public void CustomViewAccessibilityDoAction() testingTarget.Dispose(); tlog.Debug(tag, $"CustomViewAccessibilityDoAction END (OK)"); } - - [Test] - [Category("P1")] - [Description("CustomView OnAccessibilityPan.")] - [Property("SPEC", "Tizen.NUI.CustomView.OnAccessibilityPan M")] - [Property("SPEC_URL", "-")] - [Property("CRITERIA", "MR")] - [Property("AUTHOR", "guowei.wang@samsung.com")] - public void CustomViewOnAccessibilityPan() - { - tlog.Debug(tag, $"CustomViewOnAccessibilityPan START"); - - var testingTarget = new MyCustomView("CustomView", CustomViewBehaviour.RequiresKeyboardNavigationSupport); - Assert.IsNotNull(testingTarget, "Can't create success object CustomView"); - Assert.IsInstanceOf(testingTarget, "Should be an instance of CustomView type."); - - using (View view = new View()) - { - try - { - testingTarget.MyOnAccessibilityPan(new PanGesture(view.SwigCPtr.Handle, false)); - testingTarget.MyOnAccessibilityValueChange(false); - testingTarget.MyOnAccessibilityZoom(); - testingTarget.MyDisableGestureDetection(Gesture.GestureType.LongPress); - } - catch (Exception e) - { - tlog.Debug(tag, e.Message.ToString()); - Assert.Fail("Caught Exception: Failed!"); - } - } - - testingTarget.Dispose(); - tlog.Debug(tag, $"CustomViewDispose END (OK)"); - } } }