2 * Copyright (c) 2021 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
19 using System.ComponentModel;
24 /// WebBackForwardListItem is a class for back-forward list item of web view.
26 [EditorBrowsable(EditorBrowsableState.Never)]
27 public class WebBackForwardListItem : Disposable
32 [EditorBrowsable(EditorBrowsableState.Never)]
37 return new Uri(Interop.WebBackForwardListItem.GetUrl(SwigCPtr));
44 [EditorBrowsable(EditorBrowsableState.Never)]
49 return Interop.WebBackForwardListItem.GetTitle(SwigCPtr);
56 [EditorBrowsable(EditorBrowsableState.Never)]
57 public Uri OriginalUrl
61 return new Uri(Interop.WebBackForwardListItem.GetOriginalUrl(SwigCPtr));
65 internal WebBackForwardListItem(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
69 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WebBackForwardListItem obj)
71 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
75 /// Dispose for IDisposable pattern
77 [EditorBrowsable(EditorBrowsableState.Never)]
78 protected override void Dispose(DisposeTypes type)
85 if (type == DisposeTypes.Explicit)
88 //Release your own managed resources here.
89 //You should release all of your own disposable objects here.
97 /// WebBackForwardList is a class for back-forward list of web view.
99 [EditorBrowsable(EditorBrowsableState.Never)]
100 public class WebBackForwardList : Disposable
105 [EditorBrowsable(EditorBrowsableState.Never)]
110 return Interop.WebBackForwardList.GetItemCount(SwigCPtr);
115 /// Get current item.
117 [EditorBrowsable(EditorBrowsableState.Never)]
118 public WebBackForwardListItem GetCurrentItem()
120 System.IntPtr itemPtr = Interop.WebBackForwardList.GetCurrentItem(SwigCPtr);
121 return new WebBackForwardListItem(itemPtr, false);
125 /// Get current item.
127 [EditorBrowsable(EditorBrowsableState.Never)]
128 public WebBackForwardListItem GetItemAtIndex(int index)
130 System.IntPtr itemPtr = Interop.WebBackForwardList.GetItemAtIndex(SwigCPtr, index);
131 return new WebBackForwardListItem(itemPtr, false);
134 internal WebBackForwardList(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
138 internal static global::System.Runtime.InteropServices.HandleRef getCPtr(WebBackForwardList obj)
140 return (obj == null) ? new global::System.Runtime.InteropServices.HandleRef(null, global::System.IntPtr.Zero) : obj.SwigCPtr;
144 /// Dispose for IDisposable pattern
146 [EditorBrowsable(EditorBrowsableState.Never)]
147 protected override void Dispose(DisposeTypes type)
154 if (type == DisposeTypes.Explicit)
157 //Release your own managed resources here.
158 //You should release all of your own disposable objects here.