void ewk_settings_cache_builder_enabled_set(Ewk_Settings *settings, Eina_Bool enabled)
{
-#if defined(OS_TIZEN_TV) && !defined(EWK_BRINGUP)
+#if defined(OS_TIZEN_TV)
EINA_SAFETY_ON_NULL_RETURN(settings);
- settings->setCacheBuilder(enabled);
+ settings->setCacheBuilderEnabled(enabled);
#else
LOG_EWK_API_MOCKUP("Only for Tizen TV Browser");
#endif
Eina_Bool ewk_settings_default_text_encoding_name_set(Ewk_Settings* settings, const char* encoding)
{
-#if defined(OS_TIZEN_TV) && !defined(EWK_BRINGUP)
EINA_SAFETY_ON_NULL_RETURN_VAL(settings, false);
EINA_SAFETY_ON_NULL_RETURN_VAL(encoding, false);
settings->setDefaultTextEncoding(encoding);
return true;
-#else
- LOG_EWK_API_MOCKUP("Only for Tizen TV Browser");
- return false;
-#endif
}
#if defined(OS_TIZEN_TV)
, m_autoFitting(false)
, m_linkEffectEnabled(true)
, m_evas_object(evas_object)
+#if defined(OS_TIZEN_TV)
+ , m_cacheBuilderEnabled(false)
+#endif
{ }
- const char* defaultTextEncoding() const { return m_defaultTextEncoding; }
+ const char* defaultTextEncoding() const {
+ return m_preferences.default_encoding.c_str();
+ }
void setDefaultTextEncoding(const char*);
bool autofillPasswordForm() const { return m_autofillPasswordForm; }
void setAutofillPasswordForm(bool enable) { m_autofillPasswordForm = enable; }
Evas_Object* getEvasObject() { return m_evas_object; }
content::WebPreferences& getPreferences() { return m_preferences; }
const content::WebPreferences& getPreferences() const { return m_preferences; }
+#if defined(OS_TIZEN_TV)
+ void setCacheBuilderEnabled(bool enable) { m_cacheBuilderEnabled = enable; }
+#endif
private:
content::WebPreferences m_preferences;
- Eina_Stringshare* m_defaultTextEncoding;
bool m_autofillPasswordForm;
bool m_formCandidateData;
bool m_autofillProfileForm;
bool m_linkEffectEnabled;
bool m_detectContentsAutomatically;
Evas_Object* m_evas_object;
+#if defined(OS_TIZEN_TV)
+ bool m_cacheBuilderEnabled;
+#endif
};
#endif // ewk_settings_private_h