[NUI][AT-SPI] Remove AccessibilityAnimated
authorArtur Świgoń <a.swigon@samsung.com>
Tue, 25 May 2021 14:33:15 +0000 (16:33 +0200)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 1 Jun 2021 08:03:31 +0000 (17:03 +0900)
This property was used to control automatic emission of the
BoundsChanged event. However, we no longer emit this event, so this
property serves no purpose.

Not to be confused with AT-SPI state Animated which is still available.

src/Tizen.NUI/src/internal/Interop/Interop.ViewProperty.cs
src/Tizen.NUI/src/public/BaseComponents/ViewAccessibility.cs
src/Tizen.NUI/src/public/BaseComponents/ViewAccessibilityProperties.cs
src/Tizen.NUI/src/public/BaseComponents/ViewBindableProperty.cs
src/Tizen.NUI/src/public/BaseComponents/ViewEnum.cs

index 7a0dac0..173f307 100755 (executable)
@@ -86,9 +86,6 @@ namespace Tizen.NUI
 
             [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_View_Property_ACCESSIBILITY_ATTRIBUTES_get")]
             public static extern int AccessibilityAttributesGet();
-
-            [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_View_Property_ACCESSIBILITY_ANIMATED_get")]
-            public static extern int AccessibilityAnimatedGet();
         }
     }
 }
index bc20bd4..8cfd4bb 100755 (executable)
@@ -599,7 +599,6 @@ namespace Tizen.NUI.BaseComponents
             FlagSetter(ref states, AccessibilityStates.Highlighted, this.IsHighlighted);
             FlagSetter(ref states, AccessibilityStates.Enabled, this.State != States.Disabled);
             FlagSetter(ref states, AccessibilityStates.Sensitive, this.Sensitive);
-            FlagSetter(ref states, AccessibilityStates.Animated, this.AccessibilityAnimated);
             FlagSetter(ref states, AccessibilityStates.Visible, true);
             FlagSetter(ref states, AccessibilityStates.Showing, this.Visibility);
             FlagSetter(ref states, AccessibilityStates.Defunct, !this.IsOnWindow);
index efd27ec..f397625 100755 (executable)
@@ -118,27 +118,6 @@ namespace Tizen.NUI.BaseComponents
         }
 
         /// <summary>
-        /// Gets or sets whether the view is animated for accessibility or not.
-        /// </summary>
-        /// <remarks>
-        /// For views, which intend to block notification of theirs position or size change to AT-SPI2, this value should be set as true.
-        /// Otherwise it is set to false by default and the object position or size change is notified to AT-SPI2.
-        /// </remarks>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public bool AccessibilityAnimated
-        {
-            get
-            {
-                return (bool)GetValue(AccessibilityAnimatedProperty);
-            }
-            set
-            {
-                SetValue(AccessibilityAnimatedProperty, value);
-                NotifyPropertyChanged();
-            }
-        }
-
-        /// <summary>
         /// Gets or sets a value that allows the automation framework to find and interact with this element.
         /// </summary>
         [EditorBrowsable(EditorBrowsableState.Never)]
index 81b27b2..5fb6d1d 100755 (executable)
@@ -1796,26 +1796,6 @@ namespace Tizen.NUI.BaseComponents
             return temp;
         });
 
-        /// <summary>
-        /// AccessibilityAnimatedProperty
-        /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public static readonly BindableProperty AccessibilityAnimatedProperty = BindableProperty.Create(nameof(AccessibilityAnimated), typeof(bool), typeof(View), false, propertyChanged: (bindable, oldValue, newValue) =>
-        {
-            var view = (View)bindable;
-            if (newValue != null)
-            {
-                Tizen.NUI.Object.SetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityAnimated, new Tizen.NUI.PropertyValue((bool)newValue));
-            }
-        },
-        defaultValueCreator: (bindable) =>
-        {
-            var view = (View)bindable;
-            bool temp = false;
-            Tizen.NUI.Object.GetProperty((System.Runtime.InteropServices.HandleRef)view.SwigCPtr, View.Property.AccessibilityAnimated).Get(out temp);
-            return temp;
-        });
-
         private void SetBackgroundImage(string value)
         {
             if (string.IsNullOrEmpty(value))
index dd07402..bbc1e6e 100755 (executable)
@@ -226,7 +226,6 @@ namespace Tizen.NUI.BaseComponents
             internal static readonly int AccessibilityRole = Interop.ViewProperty.AccessibilityRoleGet();
             internal static readonly int AccessibilityHighlightable = Interop.ViewProperty.AccessibilityHighlightableGet();
             internal static readonly int AccessibilityAttributes = Interop.ViewProperty.AccessibilityAttributesGet();
-            internal static readonly int AccessibilityAnimated = Interop.ViewProperty.AccessibilityAnimatedGet();
         }
     }
 }