[NUI] Remove duplicate class WebContextMenuItemList (#3464)
authorJiyun Yang <ji.yang@samsung.com>
Mon, 30 Aug 2021 08:46:45 +0000 (17:46 +0900)
committerdongsug-song <35130733+dongsug-song@users.noreply.github.com>
Wed, 1 Sep 2021 08:20:01 +0000 (17:20 +0900)
The class WebContextMenuItemList is cenceptually same as WebContextMenu.

Signed-off-by: Jiyun Yang <ji.yang@samsung.com>
src/Tizen.NUI/src/internal/Interop/Interop.WebContextMenuItemList.cs [deleted file]
src/Tizen.NUI/src/internal/WebView/WebContextMenu.cs
src/Tizen.NUI/src/internal/WebView/WebContextMenuItemList.cs [deleted file]

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 (executable)
index 15017d8..0000000
+++ /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);
-        }
-    }
-}
-
index 511b8c1..2ed745e 100755 (executable)
@@ -51,19 +51,6 @@ namespace Tizen.NUI
         }
 
         /// <summary>
-        /// Gets the list of items.
-        /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public WebContextMenuItemList ItemList
-        {
-            get
-            {
-                IntPtr result = Interop.WebContextMenu.GetItemList(SwigCPtr);
-                return new WebContextMenuItemList(result, true);
-            }
-        }
-
-        /// <summary>
         /// Returns the nth item in a context menu.
         /// <param name="index">The position of the item</param>
         /// </summary>
diff --git a/src/Tizen.NUI/src/internal/WebView/WebContextMenuItemList.cs b/src/Tizen.NUI/src/internal/WebView/WebContextMenuItemList.cs
deleted file mode 100755 (executable)
index bb673d4..0000000
+++ /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
-{
-    /// <summary>
-    /// It is a class for form repost policy decision maker of web view.
-    /// </summary>
-    [EditorBrowsable(EditorBrowsableState.Never)]
-    public class WebContextMenuItemList : Disposable
-    {
-        internal WebContextMenuItemList(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
-        {
-        }
-
-        /// This will not be public opened.
-        /// <param name="swigCPtr"></param>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        protected override void ReleaseSwigCPtr(System.Runtime.InteropServices.HandleRef swigCPtr)
-        {
-            Interop.WebContextMenuItemList.DeleteWebContextMenuItemList(swigCPtr);
-        }
-
-        /// <summary>
-        /// Gets item count
-        /// </summary>
-        [EditorBrowsable(EditorBrowsableState.Never)]
-        public uint ItemCount
-        {
-            get
-            {
-                return Interop.WebContextMenuItemList.GetItemCount(SwigCPtr);
-            }
-        }
-
-        /// <summary>
-        /// Gets item at the index.
-        /// <param name="index">The index of item</param>
-        /// </summary>
-        [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);
-        }
-    }
-}