+++ /dev/null
-/*
- * 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);
- }
- }
-}
-
}
/// <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>
+++ /dev/null
-/*
- * 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);
- }
- }
-}