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
29 internal WebBackForwardListItem(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
36 [EditorBrowsable(EditorBrowsableState.Never)]
41 return new Uri(Interop.WebBackForwardListItem.GetUrl(SwigCPtr));
48 [EditorBrowsable(EditorBrowsableState.Never)]
53 return Interop.WebBackForwardListItem.GetTitle(SwigCPtr);
60 [EditorBrowsable(EditorBrowsableState.Never)]
61 public Uri OriginalUrl
65 return new Uri(Interop.WebBackForwardListItem.GetOriginalUrl(SwigCPtr));
71 /// WebBackForwardList is a class for back-forward list of web view.
73 [EditorBrowsable(EditorBrowsableState.Never)]
74 public class WebBackForwardList : Disposable
76 internal WebBackForwardList(global::System.IntPtr cPtr, bool cMemoryOwn) : base(cPtr, cMemoryOwn)
83 [EditorBrowsable(EditorBrowsableState.Never)]
88 return Interop.WebBackForwardList.GetItemCount(SwigCPtr);
95 [EditorBrowsable(EditorBrowsableState.Never)]
96 public WebBackForwardListItem GetCurrentItem()
98 System.IntPtr itemPtr = Interop.WebBackForwardList.GetCurrentItem(SwigCPtr);
99 return new WebBackForwardListItem(itemPtr, false);
103 /// Get current item.
105 [EditorBrowsable(EditorBrowsableState.Never)]
106 public WebBackForwardListItem GetItemAtIndex(int index)
108 System.IntPtr itemPtr = Interop.WebBackForwardList.GetItemAtIndex(SwigCPtr, index);
109 return new WebBackForwardListItem(itemPtr, false);