2 * Copyright (c) 2017 Samsung Electronics Co., Ltd All Rights Reserved
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 namespace Tizen.WebView
23 private IntPtr _handle;
25 internal Settings(IntPtr handle)
31 /// Whether JavaScript can be executable.
33 public bool JavaScriptEnabled
37 return Interop.ChromiumEwk.ewk_settings_javascript_enabled_get(_handle);
42 Interop.ChromiumEwk.ewk_settings_javascript_enabled_set(_handle, value);
47 /// Whether images can be loaded automatically.
49 public bool LoadImageAutomatically
53 return Interop.ChromiumEwk.ewk_settings_loads_images_automatically_get(_handle);
58 Interop.ChromiumEwk.ewk_settings_loads_images_automatically_set(_handle, value);
63 /// The default text encoding name.
65 public string DefaultTextEncodingName
69 return Interop.ChromiumEwk.ewk_settings_default_text_encoding_name_get(_handle);
74 Interop.ChromiumEwk.ewk_settings_default_text_encoding_name_set(_handle, value);
79 /// The default font size of a pixel.
81 public int DefaultFontSize
85 return Interop.ChromiumEwk.ewk_settings_default_font_size_get(_handle);
90 Interop.ChromiumEwk.ewk_settings_default_font_size_set(_handle, value);