Add the APIs of webview settings 25/255225/5
authorzhouleonlei <zhouleon.lei@samsung.com>
Mon, 15 Mar 2021 09:15:56 +0000 (17:15 +0800)
committerzhouleonlei <zhouleon.lei@samsung.com>
Wed, 31 Mar 2021 06:25:46 +0000 (14:25 +0800)
Change-Id: I11010ffece54d40f0c35dd4419c9665880e7da4b

dali/devel-api/adaptor-framework/web-engine-settings.h

index 5fabe59..b2ba728 100755 (executable)
@@ -339,6 +339,69 @@ public:
    * @param[in] defaultTextEncodingName a default encoding name to set
    */
   virtual void SetDefaultTextEncodingName(const std::string& defaultTextEncodingName) = 0;
+
+  /**
+   * @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
+   */
+  virtual bool SetViewportMetaTag(bool enable) = 0;
+
+  /**
+   * @brief Requests setting of force zoom.
+   *
+   * @param[in] enable to force zoom
+   *
+   * @return @c true on success or @c false on failure
+   */
+  virtual bool SetForceZoom(bool enable) = 0;
+
+  /**
+   * @brief Returns the force zoom status.
+   *
+   * @return @c true if enable force zoom or @c false.
+   */
+  virtual bool IsZoomForced() const = 0;
+
+  /**
+   * @brief Requests setting use of text zoom.
+   *
+   * @param[in] enable to text zoom.
+   *
+   * @return @c true on success or @c false on failure
+   */
+  virtual bool SetTextZoomEnabled(bool enable) = 0;
+
+  /**
+   * @brief Returns whether text zoom is enabled or not.
+   *
+   * @return @c true if enable text zoom or @c false.
+   */
+  virtual bool IsTextZoomEnabled() const = 0;
+
+  /**
+   * @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
+   */
+  virtual void SetExtraFeature(const std::string& feature, bool enable) = 0;
+
+  /**
+   * @brief Returns enable/disable to the specific extra feature
+   *
+   * @param[in] feature feature name
+   *
+   * @return @c true on enable or @c false on disable
+   */
+  virtual bool IsExtraFeatureEnabled(const std::string& feature) const = 0;
 };
 
 } // namespace Dali