Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[TCSACR-598][InputMethod] Remove deprecated APIs #6313

Merged
merged 2 commits into from
Sep 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);

Inhong marked this conversation as resolved.
Show resolved Hide resolved
[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
Loading