[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 820028f6d1829081aa9dfcade3e12fff9cca3ac3..4ac134b8b37cf41f7190cbecddb75b18a1d15545 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 f772346a3402bf5f00e5c46bbfbb20aeded7f1b2..a0fb0aa97a89cff14924f04aac7634e7d6aeaf16 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