EINA_SAFETY_ON_NULL_RETURN_VAL(settings, EINA_FALSE);
return settings->getPreferences().dom_paste_enabled;
}
+
+void ewk_settings_multiple_windows_support_set(Ewk_Settings* settings,
+ Eina_Bool support) {
+ EINA_SAFETY_ON_NULL_RETURN(settings);
+ settings->getPreferences().supports_multiple_windows = support;
+ ewkUpdateWebkitPreferences(settings->getEvasObject());
+}
+
+Eina_Bool ewk_settings_multiple_windows_support_get(Ewk_Settings* settings) {
+ EINA_SAFETY_ON_NULL_RETURN_VAL(settings, EINA_FALSE);
+ return settings->getPreferences().supports_multiple_windows;
+}
unsigned minor,
unsigned release);
+/**
+ * Sets whether the webview supports multiple windows.
+ *
+ * If set to true, 'create,window' callback must be implemented by appliction.
+ * If it is false, current webview will be reused to navigate.
+ *
+ * Default value is @c EINA_TRUE.
+ *
+ * @since_tizen 6.0
+ *
+ * @param settings setting object
+ * @param support whether to support multiple windows
+ */
+EXPORT_API void ewk_settings_multiple_windows_support_set(
+ Ewk_Settings* settings,
+ Eina_Bool support);
+
+/**
+ * Gets whether the webview supports multiple windows.
+ *
+ * @since_tizen 6.0
+ *
+ * @param settings setting object
+ */
+EXPORT_API Eina_Bool
+ewk_settings_multiple_windows_support_get(Ewk_Settings* settings);
+
#ifdef __cplusplus
}
#endif