Skip to content

Commit

Permalink
[TCSACR-598][InputMethod] Remove deprecated APIs (Samsung#6313)
Browse files Browse the repository at this point in the history
  • Loading branch information
Inhong authored and bshsqa committed Sep 25, 2024
1 parent ab6434c commit e2b6b86
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 122 deletions.
6 changes: 0 additions & 6 deletions src/Tizen.Uix.InputMethod/Interop/Interop.InputMethod.cs
Original file line number Diff line number Diff line change
Expand Up @@ -201,9 +201,6 @@ public void Dispose()
[DllImport(Libraries.InputMethod, EntryPoint = "ime_set_selection")]
internal static extern ErrorCode ImeSetSelection(int start, int end);

[DllImport(Libraries.InputMethod, EntryPoint = "ime_get_main_window")]
internal static extern IntPtr ImeGetMainWindow();

[DllImport(Libraries.InputMethod, EntryPoint = "ime_request_hide")]
internal static extern ErrorCode ImeRequestHide();

Expand All @@ -219,9 +216,6 @@ public void Dispose()
[DllImport(Libraries.InputMethod, EntryPoint = "ime_set_dotnet_flag")]
internal static extern ErrorCode ImeSetDotnetFlag(bool set);

[DllImport(Libraries.InputMethod, EntryPoint = "ime_set_size")]
internal static extern ErrorCode ImeSetSize(int portraitWidth, int portraitHeight, int landscapeWidth, int landscapeHeight);

[DllImport(Libraries.InputMethod, EntryPoint = "ime_context_get_layout")]
internal static extern ErrorCode ImeContextGetLayout(IntPtr context, out InputPanelLayout layout);

Expand Down
1 change: 0 additions & 1 deletion src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
<ItemGroup>
<ProjectReference Include="..\Tizen\Tizen.csproj" />
<ProjectReference Include="..\Tizen.Log\Tizen.Log.csproj" />
<ProjectReference Include="..\ElmSharp\ElmSharp.csproj" />
</ItemGroup>

</Project>
87 changes: 0 additions & 87 deletions src/Tizen.Uix.InputMethod/Tizen.Uix.InputMethod/EditorWindow.cs

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -1877,34 +1877,6 @@ public static void SetSelection(int start, int end)
}
}

/// <summary>
/// This API returns the input panel main window.
/// </summary>
/// <privilege>
/// http://tizen.org/privilege/ime
/// </privilege>
/// <returns>The input panel main window object on success, otherwise null.</returns>
/// <exception cref="UnauthorizedAccessException">This exception can be due to permission denied.</exception>
/// <exception cref="InvalidOperationException">
/// This can occur due to the following reasons:
/// 1) The IME main loop has not started yet.
/// 2) Operation failed.
/// </exception>
/// <since_tizen> 4 </since_tizen>
[Obsolete("Deprecated since API10. Will be removed in API12.")]
public static EditorWindow GetMainWindow()
{
EditorWindow._handle = ImeGetMainWindow();
EditorWindow obj = new EditorWindow();
ErrorCode error = (ErrorCode)Tizen.Internals.Errors.ErrorFacts.GetLastResult();
if (error != ErrorCode.None)
{
Log.Error(LogTag, "GetMainWindow Failed with error " + error);
throw InputMethodExceptionFactory.CreateException(error);
}
return obj;
}

/// <summary>
/// Sends the request to hide the IME.
/// </summary>
Expand Down

0 comments on commit e2b6b86

Please sign in to comment.