From: dongsug-song <35130733+dongsug-song@users.noreply.github.com> Date: Tue, 17 Sep 2019 10:52:21 +0000 (+0900) Subject: [NUI] Add dali-atspi getState(), say(), say_callback() and pauseResume() as HiddenAPI... X-Git-Tag: 5.5_M2~76 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=8f87bdbd70298249566a34fd23927be5e4c5f71b;hp=9e63fbbe7cc89286398492dc456cd68793e04bb4;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Add dali-atspi getState(), say(), say_callback() and pauseResume() as HiddenAPI (#1021) --- diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.Accessibility.cs b/src/Tizen.NUI/src/internal/Interop/Interop.Accessibility.cs index 820028f..4ac134b 100755 --- a/src/Tizen.NUI/src/internal/Interop/Interop.Accessibility.cs +++ b/src/Tizen.NUI/src/internal/Interop/Interop.Accessibility.cs @@ -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 diff --git a/src/Tizen.NUI/src/public/Accessibility.cs b/src/Tizen.NUI/src/public/Accessibility.cs index f772346..a0fb0aa 100755 --- a/src/Tizen.NUI/src/public/Accessibility.cs +++ b/src/Tizen.NUI/src/public/Accessibility.cs @@ -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(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(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