ewk_settings_default_text_encoding_name_set( ewkSettings, defaultTextEncodingName.c_str() );
}
+bool TizenWebEngineSettings::SetViewportMetaTag(bool enable)
+{
+ return ewk_settings_viewport_meta_tag_set(ewkSettings, enable);
+}
+
+bool TizenWebEngineSettings::SetForceZoom(bool enable)
+{
+ return ewk_settings_force_zoom_set(ewkSettings, enable);
+}
+
+bool TizenWebEngineSettings::IsZoomForced() const
+{
+ return ewk_settings_force_zoom_get(ewkSettings);
+}
+
+bool TizenWebEngineSettings::SetTextZoomEnabled(bool enable)
+{
+ return ewk_settings_text_zoom_enabled_set(ewkSettings, enable);
+}
+
+bool TizenWebEngineSettings::IsTextZoomEnabled() const
+{
+ return ewk_settings_text_zoom_enabled_get(ewkSettings);
+}
+
+void TizenWebEngineSettings::SetExtraFeature(const std::string& feature, bool enable)
+{
+ ewk_settings_extra_feature_set(ewkSettings, feature.c_str(), enable);
+}
+
+bool TizenWebEngineSettings::IsExtraFeatureEnabled(const std::string& feature) const
+{
+ return ewk_settings_extra_feature_get(ewkSettings, feature.c_str());
+}
+
} // namespace Plugin
} // namespace Dali
*/
void SetDefaultTextEncodingName( const std::string& defaultTextEncodingName ) override;
+ /**
+ * @brief Enables/disables the viewport meta tag.
+ *
+ * By default, the viewport meta tag is enabled on mobile and wearable,
+ * but it is disabled on TV.
+ *
+ * @param[in] enable @c true to enable the viewport meta tag
+ * @c false to disable
+ *
+ * @return @c true on success or @c false on failure
+ */
+ bool SetViewportMetaTag(bool enable) override;
+
+ /**
+ * @brief Requests setting of force zoom.
+ *
+ * @param[in] enable to force zoom
+ *
+ * @return @c true on success or @c false on failure
+ */
+ bool SetForceZoom(bool enable) override;
+
+ /**
+ * @brief Returns the force zoom status.
+ *
+ * @return @c true if enable force zoom or @c false.
+ */
+ bool IsZoomForced() const override;
+
+ /**
+ * @brief Requests setting use of text zoom.
+ *
+ * @param[in] enable to text zoom.
+ *
+ * @return @c true on success or @c false on failure
+ */
+ bool SetTextZoomEnabled(bool enable) override;
+
+ /**
+ * @brief Returns whether text zoom is enabled or not.
+ *
+ * @return @c true if enable text zoom or @c false.
+ */
+ bool IsTextZoomEnabled() const override;
+
+ /**
+ * @brief Requests enables/disables to the specific extra feature
+ *
+ * @param[in] feature feature name
+ * @param[in] enable @c true to enable the specific extra feature
+ * @c false to disable
+ */
+ void SetExtraFeature(const std::string& feature, bool enable) override;
+
+ /**
+ * @brief Returns enable/disable to the specific extra feature
+ *
+ * @param[in] feature feature name
+ *
+ * @return @c true on enable or @c false on disable
+ */
+ bool IsExtraFeatureEnabled(const std::string& feature) const override;
+
private:
Ewk_Settings* ewkSettings;
bool AreImagesLoadedAutomatically() const override { return false; }
void AllowImagesLoadAutomatically( bool automatic ) override {}
std::string GetDefaultTextEncodingName() const override { return EMPTY_STRING; }
- void SetDefaultTextEncodingName( const std::string& defaultTextEncodingName ) override {}
+ void SetDefaultTextEncodingName( const std::string& defaultTextEncodingName ) override { }
+ bool SetViewportMetaTag(bool enable) override {return false;}
+ bool SetForceZoom(bool enable) override {return false;}
+ bool IsZoomForced() const override {return false;}
+ bool SetTextZoomEnabled(bool enable) override {return false;}
+ bool IsTextZoomEnabled() const override {return false;}
+ void SetExtraFeature(const std::string& feature, bool enable) override { }
+ bool IsExtraFeatureEnabled(const std::string& feature) const override {return false;}
};
Dali::WebEngineSettings& TizenWebEngineLWE::GetSettings() const