From: Yeongjong Lee Date: Tue, 15 Dec 2020 02:56:44 +0000 (+0900) Subject: [NUI] Rename EventHandler WithReturnType to end in EventHandler X-Git-Tag: accepted/tizen/unified/20210219.040944~152 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ebcae577b4f69c8ce532f18407d694ffb41038f9;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [NUI] Rename EventHandler WithReturnType to end in EventHandler Fixes CA1710 --- diff --git a/src/Tizen.NUI/src/internal/DaliEventHandler.cs b/src/Tizen.NUI/src/internal/DaliEventHandler.cs index ca2e008..8adf76e 100755 --- a/src/Tizen.NUI/src/internal/DaliEventHandler.cs +++ b/src/Tizen.NUI/src/internal/DaliEventHandler.cs @@ -15,6 +15,7 @@ * */ using System; +using System.ComponentModel; using System.Runtime.InteropServices; namespace Tizen.NUI @@ -50,4 +51,11 @@ namespace Tizen.NUI /// 3 [UnmanagedFunctionPointer(CallingConvention.StdCall)] public delegate R EventHandlerWithReturnType(T source, U e); + + /// + /// [UnmanagedFunctionPointer(CallingConvention.StdCall)] + /// + [UnmanagedFunctionPointer(CallingConvention.StdCall)] + [EditorBrowsable(EditorBrowsableState.Never)] + public delegate TReturn ReturnTypeEventHandler(TSource source, TEvent e); } diff --git a/src/Tizen.NUI/src/public/Accessibility/AccessibilityManagerEvent.cs b/src/Tizen.NUI/src/public/Accessibility/AccessibilityManagerEvent.cs index a72a45b..6007ea8 100755 --- a/src/Tizen.NUI/src/public/Accessibility/AccessibilityManagerEvent.cs +++ b/src/Tizen.NUI/src/public/Accessibility/AccessibilityManagerEvent.cs @@ -25,127 +25,127 @@ namespace Tizen.NUI.Accessibility { [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool StatusChangedEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerStatusChangedEventHandler; + private ReturnTypeEventHandler _accessibilityManagerStatusChangedEventHandler; private StatusChangedEventCallbackDelegate _accessibilityManagerStatusChangedEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionNextEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionNextEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionNextEventHandler; private ActionNextEventCallbackDelegate _accessibilityManagerActionNextEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionPreviousEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionPreviousEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionPreviousEventHandler; private ActionPreviousEventCallbackDelegate _accessibilityManagerActionPreviousEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionActivateEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionActivateEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionActivateEventHandler; private ActionActivateEventCallbackDelegate _accessibilityManagerActionActivateEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionReadEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionReadEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionReadEventHandler; private ActionReadEventCallbackDelegate _accessibilityManagerActionReadEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionOverEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionOverEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionOverEventHandler; private ActionOverEventCallbackDelegate _accessibilityManagerActionOverEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionReadNextEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionReadNextEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionReadNextEventHandler; private ActionReadNextEventCallbackDelegate _accessibilityManagerActionReadNextEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionReadPreviousEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionReadPreviousEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionReadPreviousEventHandler; private ActionReadPreviousEventCallbackDelegate _accessibilityManagerActionReadPreviousEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionUpEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionUpEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionUpEventHandler; private ActionUpEventCallbackDelegate _accessibilityManagerActionUpEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionDownEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionDownEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionDownEventHandler; private ActionDownEventCallbackDelegate _accessibilityManagerActionDownEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionClearFocusEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionClearFocusEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionClearFocusEventHandler; private ActionClearFocusEventCallbackDelegate _accessibilityManagerActionClearFocusEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionBackEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionBackEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionBackEventHandler; private ActionBackEventCallbackDelegate _accessibilityManagerActionBackEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionScrollUpEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionScrollUpEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionScrollUpEventHandler; private ActionScrollUpEventCallbackDelegate _accessibilityManagerActionScrollUpEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionScrollDownEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionScrollDownEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionScrollDownEventHandler; private ActionScrollDownEventCallbackDelegate _accessibilityManagerActionScrollDownEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionPageLeftEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionPageLeftEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionPageLeftEventHandler; private ActionPageLeftEventCallbackDelegate _accessibilityManagerActionPageLeftEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionPageRightEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionPageRightEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionPageRightEventHandler; private ActionPageRightEventCallbackDelegate _accessibilityManagerActionPageRightEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionPageUpEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionPageUpEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionPageUpEventHandler; private ActionPageUpEventCallbackDelegate _accessibilityManagerActionPageUpEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionPageDownEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionPageDownEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionPageDownEventHandler; private ActionPageDownEventCallbackDelegate _accessibilityManagerActionPageDownEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionMoveToFirstEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionMoveToFirstEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionMoveToFirstEventHandler; private ActionMoveToFirstEventCallbackDelegate _accessibilityManagerActionMoveToFirstEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionMoveToLastEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionMoveToLastEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionMoveToLastEventHandler; private ActionMoveToLastEventCallbackDelegate _accessibilityManagerActionMoveToLastEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionReadFromTopEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionReadFromTopEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionReadFromTopEventHandler; private ActionReadFromTopEventCallbackDelegate _accessibilityManagerActionReadFromTopEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionReadFromNextEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionReadFromNextEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionReadFromNextEventHandler; private ActionReadFromNextEventCallbackDelegate _accessibilityManagerActionReadFromNextEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionZoomEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionZoomEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionZoomEventHandler; private ActionZoomEventCallbackDelegate _accessibilityManagerActionZoomEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionReadPauseResumeEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionReadPauseResumeEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionReadPauseResumeEventHandler; private ActionReadPauseResumeEventCallbackDelegate _accessibilityManagerActionReadPauseResumeEventCallbackDelegate; [UnmanagedFunctionPointer(CallingConvention.StdCall)] private delegate bool ActionStartStopEventCallbackDelegate(IntPtr accessibilityManager); - private EventHandlerWithReturnType _accessibilityManagerActionStartStopEventHandler; + private ReturnTypeEventHandler _accessibilityManagerActionStartStopEventHandler; private ActionStartStopEventCallbackDelegate _accessibilityManagerActionStartStopEventCallbackDelegate; /* @@ -180,7 +180,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType StatusChanged + public event ReturnTypeEventHandler StatusChanged { add { @@ -214,7 +214,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionNext + public event ReturnTypeEventHandler ActionNext { add { @@ -246,7 +246,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionPrevious + public event ReturnTypeEventHandler ActionPrevious { add { @@ -278,7 +278,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionActivate + public event ReturnTypeEventHandler ActionActivate { add { @@ -310,7 +310,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionRead + public event ReturnTypeEventHandler ActionRead { add { @@ -342,7 +342,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionOver + public event ReturnTypeEventHandler ActionOver { add { @@ -374,7 +374,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionReadNext + public event ReturnTypeEventHandler ActionReadNext { add { @@ -406,7 +406,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionReadPrevious + public event ReturnTypeEventHandler ActionReadPrevious { add { @@ -439,7 +439,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionUp + public event ReturnTypeEventHandler ActionUp { add { @@ -472,7 +472,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionDown + public event ReturnTypeEventHandler ActionDown { add { @@ -505,7 +505,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionClearFocus + public event ReturnTypeEventHandler ActionClearFocus { add { @@ -537,7 +537,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionBack + public event ReturnTypeEventHandler ActionBack { add { @@ -570,7 +570,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionScrollUp + public event ReturnTypeEventHandler ActionScrollUp { add { @@ -602,7 +602,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionScrollDown + public event ReturnTypeEventHandler ActionScrollDown { add { @@ -635,7 +635,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionPageLeft + public event ReturnTypeEventHandler ActionPageLeft { add { @@ -667,7 +667,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionPageRight + public event ReturnTypeEventHandler ActionPageRight { add { @@ -699,7 +699,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionPageUp + public event ReturnTypeEventHandler ActionPageUp { add { @@ -731,7 +731,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionPageDown + public event ReturnTypeEventHandler ActionPageDown { add { @@ -764,7 +764,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionMoveToFirst + public event ReturnTypeEventHandler ActionMoveToFirst { add { @@ -797,7 +797,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionMoveToLast + public event ReturnTypeEventHandler ActionMoveToLast { add { @@ -830,7 +830,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionReadFromTop + public event ReturnTypeEventHandler ActionReadFromTop { add { @@ -863,7 +863,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionReadFromNext + public event ReturnTypeEventHandler ActionReadFromNext { add { @@ -895,7 +895,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionZoom + public event ReturnTypeEventHandler ActionZoom { add { @@ -927,7 +927,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionReadPauseResume + public event ReturnTypeEventHandler ActionReadPauseResume { add { @@ -959,7 +959,7 @@ namespace Tizen.NUI.Accessibility /// 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 EventHandlerWithReturnType ActionStartStop + public event ReturnTypeEventHandler ActionStartStop { add {