1 #ifndef DALI_PLUGIN_WEB_ENGINE_SETTINGS_H
2 #define DALI_PLUGIN_WEB_ENGINE_SETTINGS_H
5 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
23 #include <dali/devel-api/adaptor-framework/web-engine-settings.h>
33 * @brief A class TizenWebEngineSettings for settings of chromium.
35 class TizenWebEngineSettings : public Dali::WebEngineSettings
43 TizenWebEngineSettings( Ewk_Settings* );
48 ~TizenWebEngineSettings();
51 *@brief Allow running mixed contents or not.
53 * @param[in] allowed if true, allow to run mixed contents,
56 void AllowMixedContents( bool allowed ) override;
59 * @brief Enable the spatial navigation or not.
61 * @param[in] enabled if true, use spatial navigation,
62 * otherwise to disable
64 void EnableSpatialNavigation( bool enabled ) override;
67 * @brief Get the default font size.
69 * @return defaut font size.
71 uint32_t GetDefaultFontSize() const override;
74 * @brief Set the default font size.
76 * @param[in] size a new default font size to set
78 void SetDefaultFontSize( uint32_t size ) override;
81 * @brief Enables/disables web security.
83 * @param[in] enabled if true, to enable the web security
84 * otherwise to disable
87 void EnableWebSecurity( bool enabled ) override;
90 * @brief Allow/Disallow file access from external url
92 * @param[in] allowed if true, to allow file access from external url
93 * otherwise to disallow
95 void AllowFileAccessFromExternalUrl( bool allowed ) override;
98 * @brief Check if javascript is enabled or not.
100 * @return true if enabled, false if disabled.
102 bool IsJavaScriptEnabled() const override;
105 * @brief Enable/Disable javascript
107 * @param[in] enabled if true, to enable javascript
108 * otherwise to disable
110 void EnableJavaScript( bool enabled ) override;
113 * @brief Enables/disables if the scripts can open new windows.
115 * @param[in] allowed if true, the scripts can open new windows,
118 void AllowScriptsOpenWindows( bool allowed ) override;
121 * @brief Check if images are loaded automatically or not.
123 * @return true if enabled, false if disabled.
125 bool AreImagesLoadedAutomatically() const override;
128 * @brief Enable/Disable to load images automatically
130 * @param[in] automatic if true, to load images automatically,
133 void AllowImagesLoadAutomatically( bool automatic ) override;
136 * @brief Get the default encoding name.
138 * @return defaut encoding name.
140 std::string GetDefaultTextEncodingName() const override;
143 * @brief Set the default encoding name.
145 * @param[in] defaultTextEncodingName a default encoding name to set
147 void SetDefaultTextEncodingName( const std::string& defaultTextEncodingName ) override;
151 Ewk_Settings* ewkSettings;
154 } // namespace Plugin
157 #endif // DALI_PLUGIN_WEB_ENGINE_SETTINGS_H