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.
18 using System.ComponentModel;
19 using Tizen.NUI.Binding;
21 namespace Tizen.NUI.BaseComponents
23 public partial class WebView
26 /// CacheModelProperty
28 [EditorBrowsable(EditorBrowsableState.Never)]
29 public static readonly BindableProperty CacheModelProperty = null;
31 internal static void SetInternalCacheModelProperty(BindableObject bindable, object oldValue, object newValue)
33 var instance = (Tizen.NUI.BaseComponents.WebView)bindable;
36 instance.InternalCacheModel = (Tizen.NUI.CacheModel)newValue;
40 internal static object GetInternalCacheModelProperty(BindableObject bindable)
42 var instance = (Tizen.NUI.BaseComponents.WebView)bindable;
43 return instance.InternalCacheModel;
47 /// CookieAcceptPolicyProperty
49 [EditorBrowsable(EditorBrowsableState.Never)]
50 public static readonly BindableProperty CookieAcceptPolicyProperty = null;
52 internal static void SetInternalCookieAcceptPolicyProperty(BindableObject bindable, object oldValue, object newValue)
54 var instance = (Tizen.NUI.BaseComponents.WebView)bindable;
57 instance.InternalCookieAcceptPolicy = (Tizen.NUI.CookieAcceptPolicy)newValue;
61 internal static object GetInternalCookieAcceptPolicyProperty(BindableObject bindable)
63 var instance = (Tizen.NUI.BaseComponents.WebView)bindable;
64 return instance.InternalCookieAcceptPolicy;
68 /// EnableJavaScriptProperty
70 [EditorBrowsable(EditorBrowsableState.Never)]
71 public static readonly BindableProperty EnableJavaScriptProperty = null;
73 internal static void SetInternalEnableJavaScriptProperty(BindableObject bindable, object oldValue, object newValue)
75 var instance = (Tizen.NUI.BaseComponents.WebView)bindable;
78 instance.InternalEnableJavaScript = (bool)newValue;
82 internal static object GetInternalEnableJavaScriptProperty(BindableObject bindable)
84 var instance = (Tizen.NUI.BaseComponents.WebView)bindable;
85 return instance.InternalEnableJavaScript;
89 /// LoadImagesAutomaticallyProperty
91 [EditorBrowsable(EditorBrowsableState.Never)]
92 public static readonly BindableProperty LoadImagesAutomaticallyProperty = null;
94 internal static void SetInternalLoadImagesAutomaticallyProperty(BindableObject bindable, object oldValue, object newValue)
96 var instance = (Tizen.NUI.BaseComponents.WebView)bindable;
99 instance.InternalLoadImagesAutomatically = (bool)newValue;
103 internal static object GetInternalLoadImagesAutomaticallyProperty(BindableObject bindable)
105 var instance = (Tizen.NUI.BaseComponents.WebView)bindable;
106 return instance.InternalLoadImagesAutomatically;
110 /// DefaultTextEncodingNameProperty
112 [EditorBrowsable(EditorBrowsableState.Never)]
113 public static readonly BindableProperty DefaultTextEncodingNameProperty = null;
115 internal static void SetInternalDefaultTextEncodingNameProperty(BindableObject bindable, object oldValue, object newValue)
117 var instance = (Tizen.NUI.BaseComponents.WebView)bindable;
118 if (newValue != null)
120 instance.InternalDefaultTextEncodingName = (string)newValue;
124 internal static object GetInternalDefaultTextEncodingNameProperty(BindableObject bindable)
126 var instance = (Tizen.NUI.BaseComponents.WebView)bindable;
127 return instance.InternalDefaultTextEncodingName;
131 /// DefaultFontSizeProperty
133 [EditorBrowsable(EditorBrowsableState.Never)]
134 public static readonly BindableProperty DefaultFontSizeProperty = null;
136 internal static void SetInternalDefaultFontSizeProperty(BindableObject bindable, object oldValue, object newValue)
138 var instance = (Tizen.NUI.BaseComponents.WebView)bindable;
139 if (newValue != null)
141 instance.InternalDefaultFontSize = (int)newValue;
145 internal static object GetInternalDefaultFontSizeProperty(BindableObject bindable)
147 var instance = (Tizen.NUI.BaseComponents.WebView)bindable;
148 return instance.InternalDefaultFontSize;