Change variable name and class name 44/151844/1 preview1-00241
authorsungwook79.park <sungwook79.park@samsung.com>
Fri, 22 Sep 2017 06:24:42 +0000 (15:24 +0900)
committersungwook79.park <sungwook79.park@samsung.com>
Fri, 22 Sep 2017 06:24:42 +0000 (15:24 +0900)
Change-Id: I4cdd824ff5e6110e3840112e28a6e735cbf0f6bb
Signed-off-by: sungwook79.park <sungwook79.park@samsung.com>
src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs
src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/CursorPositionUpdatedEventArgs.cs
src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/InputMethodContext.cs
src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/InputMethodDeviceInformation.cs
src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/InputMethodEditor.cs

index 4b5ccb3..5c7d227 100755 (executable)
@@ -120,7 +120,7 @@ internal static partial class Interop
         internal static extern ErrorCode ImeEventSetInputContextResetCb(ImeInputContextResetCb callbackFunction, IntPtr userData);
 
         [DllImport(Libraries.InputMethod, EntryPoint = "ime_event_set_cursor_position_updated_cb")]
-        internal static extern ErrorCode ImeEventSetCursorPositionitionUpdatedCb(ImeCursorPositionitionUpdatedCb callbackFunction, IntPtr userData);
+        internal static extern ErrorCode ImeEventSetCursorPositionUpdatedCb(ImeCursorPositionUpdatedCb callbackFunction, IntPtr userData);
 
         [DllImport(Libraries.InputMethod, EntryPoint = "ime_event_set_language_requested_cb")]
         internal static extern ErrorCode ImeEventSetLanguageRequestedCallbackCb(ImeLanguageRequestedCb callbackFunction, IntPtr userData);
@@ -207,7 +207,7 @@ internal static partial class Interop
         internal static extern ErrorCode ImeContextGetLayoutVariation(IntPtr context, out LayoutVariation layoutVariation);
 
         [DllImport(Libraries.InputMethod, EntryPoint = "ime_context_get_cursor_position")]
-        internal static extern ErrorCode ImeContextGetCursorPositionition(IntPtr context, out int cursorPos);
+        internal static extern ErrorCode ImeContextGetCursorPosition(IntPtr context, out int cursorPos);
 
         [DllImport(Libraries.InputMethod, EntryPoint = "ime_context_get_autocapital_type")]
         internal static extern ErrorCode ImeContextGetAutocapitalType(IntPtr context, out AutoCapitalization autocapitalType);
@@ -268,7 +268,7 @@ internal static partial class Interop
         internal delegate void ImeInputContextResetCb(IntPtr userData);
 
         [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
-        internal delegate void ImeCursorPositionitionUpdatedCb(int cursorPos, IntPtr userData);
+        internal delegate void ImeCursorPositionUpdatedCb(int cursorPos, IntPtr userData);
 
         [UnmanagedFunctionPointer(CallingConvention.Cdecl)]
         internal delegate void ImeLanguageRequestedCb(IntPtr userData, out IntPtr langCode);
index afbf445..55e818e 100755 (executable)
 namespace Tizen.Uix.InputMethod
 {
     /// <summary>
-    /// This Class contains data related to CursorPositionitionUpdated Event
+    /// This Class contains data related to CursorPositionUpdated Event
     /// </summary>
-    public class CursorPositionitionUpdatedEventArgs
+    public class CursorPositionUpdatedEventArgs
     {
-        internal CursorPositionitionUpdatedEventArgs(int cursorPos)
+        internal CursorPositionUpdatedEventArgs(int cursorPos)
         {
             CursorPosition = cursorPos;
         }
@@ -35,4 +35,4 @@ namespace Tizen.Uix.InputMethod
             internal set;
         }
     }
-}
\ No newline at end of file
+}
index d5e4ba0..6b573c7 100755 (executable)
@@ -331,15 +331,15 @@ namespace Tizen.Uix.InputMethod
         /// <summary>
         /// Gets the cursor position information.
         /// </summary>
-        public int CursorPositionition
+        public int CursorPosition
         {
             get
             {
                 int cursorPosition;
-                ErrorCode error = ImeContextGetCursorPositionition(_handle, out cursorPosition);
+                ErrorCode error = ImeContextGetCursorPosition(_handle, out cursorPosition);
                 if (error != ErrorCode.None)
                 {
-                    Log.Error(LogTag, "GetCursorPositionition Failed with error " + error);
+                    Log.Error(LogTag, "GetCursorPosition Failed with error " + error);
                     return -1;
                 }
                 return cursorPosition;
index 6f3d788..242e291 100755 (executable)
@@ -122,10 +122,10 @@ namespace Tizen.Uix.InputMethod
     /// <summary>
     /// this class gives the device information, like the name, class and subclass
     /// </summary>
-    public class VoiceControlDeviceInformation
+    public class InputMethodDeviceInformation
     {
         private IntPtr _handle;
-        internal VoiceControlDeviceInformation(IntPtr handle)
+        internal InputMethodDeviceInformation(IntPtr handle)
         {
             _handle = handle;
         }
index 1d0967b..dc48ce4 100755 (executable)
@@ -966,8 +966,8 @@ namespace Tizen.Uix.InputMethod
         private static ImeSurroundingTextUpdatedCb _imeSurroundingTextUpdatedDelegate;
         private static event EventHandler<EventArgs> _inputContextReset;
         private static ImeInputContextResetCb _imeInputContextResetDelegate;
-        private static event EventHandler<CursorPositionitionUpdatedEventArgs> _cursorPositionUpdated;
-        private static ImeCursorPositionitionUpdatedCb _imeCursorPositionitionUpdatedDelegate;
+        private static event EventHandler<CursorPositionUpdatedEventArgs> _cursorPositionUpdated;
+        private static ImeCursorPositionUpdatedCb _imeCursorPositionUpdatedDelegate;
         private static event EventHandler<LanguageSetEventArgs> _langaugeSet;
         private static ImeLanguageSetCb _imeLanguageSetDelegate;
         private static event EventHandler<SetDataEventArgs> _imDataSet;
@@ -987,7 +987,7 @@ namespace Tizen.Uix.InputMethod
         private static ImeAccessibilityStateChangedCb _imeAccessibilityStateChangedDelegate;
         private static ImeLanguageRequestedCb _imeLanguageRequestedDelegate;
         private static OutAction<string> _languageRequestedDelegate;
-        private static BoolAction<KeyCode, KeyMask, VoiceControlDeviceInformation> _processKeyDelagate;
+        private static BoolAction<KeyCode, KeyMask, InputMethodDeviceInformation> _processKeyDelagate;
         private static ImeImdataRequestedCb _imeImDataRequestedDelegate;
         private static OutArrayAction<byte> _imDataRequestedDelegate;
         private static ImeGeometryRequestedCb _imeGeometryRequestedDelegate;
@@ -1230,21 +1230,21 @@ namespace Tizen.Uix.InputMethod
         /// <summary>
         /// Called when the position of the cursor in an associated text input UI control changes.
         /// </summary>
-        public static event EventHandler<CursorPositionitionUpdatedEventArgs> CursorPositionitionUpdated
+        public static event EventHandler<CursorPositionUpdatedEventArgs> CursorPositionUpdated
         {
             add
             {
                 lock (thisLock)
                 {
-                    _imeCursorPositionitionUpdatedDelegate = (int cursorPos, IntPtr userData) =>
+                    _imeCursorPositionUpdatedDelegate = (int cursorPos, IntPtr userData) =>
                     {
-                        CursorPositionitionUpdatedEventArgs args = new CursorPositionitionUpdatedEventArgs(cursorPos);
+                        CursorPositionUpdatedEventArgs args = new CursorPositionUpdatedEventArgs(cursorPos);
                         _cursorPositionUpdated?.Invoke(null, args);
                     };
-                    ErrorCode error = ImeEventSetCursorPositionitionUpdatedCb(_imeCursorPositionitionUpdatedDelegate, IntPtr.Zero);
+                    ErrorCode error = ImeEventSetCursorPositionUpdatedCb(_imeCursorPositionUpdatedDelegate, IntPtr.Zero);
                     if (error != ErrorCode.None)
                     {
-                        Log.Error(LogTag, "Add CursorPositionitionUpdated Failed with error " + error);
+                        Log.Error(LogTag, "Add CursorPositionUpdated Failed with error " + error);
                     }
                     else
                     {
@@ -1570,11 +1570,11 @@ namespace Tizen.Uix.InputMethod
         /// The Action is alled when the key event is received from the external devices or SendKey function.
         /// This Event processes the key event before an associated text input UI control does.
         /// </param>
-        public static void SetProcessKeyCallback(BoolAction<KeyCode, KeyMask, VoiceControlDeviceInformation> processKey)
+        public static void SetProcessKeyCallback(BoolAction<KeyCode, KeyMask, InputMethodDeviceInformation> processKey)
         {
             _imeProcessKeyDelegate = (KeyCode keyCode, KeyMask keyMask, IntPtr devInfo, IntPtr userData) =>
             {
-                return _processKeyDelagate(keyCode, keyMask, new VoiceControlDeviceInformation(devInfo));
+                return _processKeyDelagate(keyCode, keyMask, new InputMethodDeviceInformation(devInfo));
             };
             ErrorCode error = ImeEventSetProcessKeyEventCb(_imeProcessKeyDelegate, IntPtr.Zero);
             if (error != ErrorCode.None)