From 7b092a9cb7d4235de69d55164bf063ab0f6c2add Mon Sep 17 00:00:00 2001 From: Jiyun Yang Date: Mon, 30 Aug 2021 17:46:45 +0900 Subject: [PATCH] [NUI] Remove duplicate class WebContextMenuItemList (#3464) The class WebContextMenuItemList is cenceptually same as WebContextMenu. Signed-off-by: Jiyun Yang --- .../Interop/Interop.WebContextMenuItemList.cs | 35 ------------ .../src/internal/WebView/WebContextMenu.cs | 13 ----- .../src/internal/WebView/WebContextMenuItemList.cs | 65 ---------------------- 3 files changed, 113 deletions(-) delete mode 100755 src/Tizen.NUI/src/internal/Interop/Interop.WebContextMenuItemList.cs delete mode 100755 src/Tizen.NUI/src/internal/WebView/WebContextMenuItemList.cs diff --git a/src/Tizen.NUI/src/internal/Interop/Interop.WebContextMenuItemList.cs b/src/Tizen.NUI/src/internal/Interop/Interop.WebContextMenuItemList.cs deleted file mode 100755 index 15017d8..0000000 --- a/src/Tizen.NUI/src/internal/Interop/Interop.WebContextMenuItemList.cs +++ /dev/null @@ -1,35 +0,0 @@ -/* - * Copyright(c) 2021 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -namespace Tizen.NUI -{ - internal static partial class Interop - { - internal static partial class WebContextMenuItemList - { - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_delete_WebContextMenu_ItemList")] - public static extern void DeleteWebContextMenuItemList(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebContextMenu_ItemList_GetItemCount")] - public static extern uint GetItemCount(global::System.Runtime.InteropServices.HandleRef jarg1); - - [global::System.Runtime.InteropServices.DllImport(NDalicPINVOKE.Lib, EntryPoint = "CSharp_Dali_WebContextMenu_ItemList_ValueOfIndex")] - public static extern System.IntPtr ValueOfIndex(global::System.Runtime.InteropServices.HandleRef jarg1, uint jarg2); - } - } -} - diff --git a/src/Tizen.NUI/src/internal/WebView/WebContextMenu.cs b/src/Tizen.NUI/src/internal/WebView/WebContextMenu.cs index 511b8c1..2ed745e 100755 --- a/src/Tizen.NUI/src/internal/WebView/WebContextMenu.cs +++ b/src/Tizen.NUI/src/internal/WebView/WebContextMenu.cs @@ -51,19 +51,6 @@ namespace Tizen.NUI } /// - /// Gets the list of items. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public WebContextMenuItemList ItemList - { - get - { - IntPtr result = Interop.WebContextMenu.GetItemList(SwigCPtr); - return new WebContextMenuItemList(result, true); - } - } - - /// /// Returns the nth item in a context menu. /// The position of the item /// diff --git a/src/Tizen.NUI/src/internal/WebView/WebContextMenuItemList.cs b/src/Tizen.NUI/src/internal/WebView/WebContextMenuItemList.cs deleted file mode 100755 index bb673d4..0000000 --- a/src/Tizen.NUI/src/internal/WebView/WebContextMenuItemList.cs +++ /dev/null @@ -1,65 +0,0 @@ -/* - * Copyright (c) 2021 Samsung Electronics Co., Ltd. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - */ - -using System; -using System.ComponentModel; - -namespace Tizen.NUI -{ - /// - /// It is a class for form repost policy decision maker of web view. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public class WebContextMenuItemList : Disposable - { - internal WebContextMenuItemList(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn) - { - } - - /// This will not be public opened. - /// - [EditorBrowsable(EditorBrowsableState.Never)] - protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr) - { - Interop.WebContextMenuItemList.DeleteWebContextMenuItemList(swigCPtr); - } - - /// - /// Gets item count - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public uint ItemCount - { - get - { - return Interop.WebContextMenuItemList.GetItemCount(SwigCPtr); - } - } - - /// - /// Gets item at the index. - /// The index of item - /// - [EditorBrowsable(EditorBrowsableState.Never)] - public WebContextMenuItem GetItemAtIndex(uint index) - { - IntPtr result = Interop.WebContextMenuItemList.ValueOfIndex(SwigCPtr, index); - if (NDalicPINVOKE.SWIGPendingException.Pending) throw NDalicPINVOKE.SWIGPendingException.Retrieve(); - return new WebContextMenuItem(result, false); - } - } -} -- 2.7.4