[NUI] Add dali-atspi getState(), say(), say_callback() and pauseResume() as HiddenAPI...
authordongsug-song <35130733+dongsug-song@users.noreply.github.com>
Tue, 17 Sep 2019 10:52:21 +0000 (19:52 +0900)
committerGitHub <noreply@github.com>
Tue, 17 Sep 2019 10:52:21 +0000 (19:52 +0900)
src/Tizen.NUI/src/internal/Interop/Interop.Accessibility.cs
src/Tizen.NUI/src/public/Accessibility.cs

index 820028f..4ac134b 100755 (executable)
@@ -15,9 +15,6 @@
  *
  */
 
-#if (NUI_DEBUG_ON)
-
-
 namespace Tizen.NUI
 {
     internal static partial class Interop
@@ -35,6 +32,3 @@ namespace Tizen.NUI
         }
     }
 }
-
-
-#endif
\ No newline at end of file
index f772346..a0fb0aa 100755 (executable)
@@ -15,9 +15,6 @@
  *
  */
 
-#if (NUI_DEBUG_ON)
-
-
 using global::System;
 using System.ComponentModel;
 using System.Runtime.InteropServices;
@@ -86,7 +83,7 @@ namespace Tizen.NUI
             IntPtr callbackIntPtr = IntPtr.Zero;
             if (_sayFinishedEventHandler != null)
             {
-                _sayFinishedEventCallbackType callback = _sayFinishedEventCallback;
+                callback = _sayFinishedEventCallback;
                 callbackIntPtr = Marshal.GetFunctionPointerForDelegate<Delegate>(callback);
             }
             bool ret = Interop.Accessibility.accessibility_say(View.getCPtr(dummy), sentence, discardable, callbackIntPtr);
@@ -192,7 +189,7 @@ namespace Tizen.NUI
             IntPtr callbackIntPtr = IntPtr.Zero;
             if (_sayFinishedEventHandler != null)
             {
-                _sayFinishedEventCallbackType callback = _sayFinishedEventCallback;
+                callback = _sayFinishedEventCallback;
                 callbackIntPtr = Marshal.GetFunctionPointerForDelegate<Delegate>(callback);
             }
             bool ret = Interop.Accessibility.accessibility_say(View.getCPtr(target), sentence, discardable, callbackIntPtr);
@@ -210,6 +207,8 @@ namespace Tizen.NUI
         [UnmanagedFunctionPointer(CallingConvention.StdCall)]
         private delegate void _sayFinishedEventCallbackType(int result);
 
+        private _sayFinishedEventCallbackType callback = null;
+
         private void _sayFinishedEventCallback(int result)
         {
             tlog.Fatal(tag, $"_sayFinishedEventCallback(res={result}) called!");
@@ -222,6 +221,3 @@ namespace Tizen.NUI
         #endregion Private
     }
 }
-
-
-#endif
\ No newline at end of file