[Tizen] Support YUV decoding for JPEG
[platform/core/uifw/dali-adaptor.git] / dali / devel-api / adaptor-framework / web-engine-back-forward-list.h
index 26fd66a..0dee5c4 100755 (executable)
  *
  */
 
+// INTERNAL INCLUDES
+#include <dali/devel-api/adaptor-framework/web-engine-back-forward-list-item.h>
+
 // EXTERNAL INCLUDES
 #include <string>
-#include <dali/devel-api/adaptor-framework/web-engine-back-forward-list-item.h>
+#include <memory>
+#include <vector>
 
 namespace Dali
 {
-
 class WebEngineBackForwardListItem;
 
 /**
@@ -32,9 +35,7 @@ class WebEngineBackForwardListItem;
  */
 class WebEngineBackForwardList
 {
-
 public:
-
   /**
    * @brief Constructor.
    */
@@ -49,14 +50,26 @@ public:
    * @brief Returns the current item in the @a list.
    * @return The item of back-forward list.
    */
-  virtual WebEngineBackForwardListItem& GetCurrentItem() const = 0;
+  virtual std::unique_ptr<Dali::WebEngineBackForwardListItem> GetCurrentItem() const = 0;
+
+  /**
+   * @brief Returns the previous item in the @a list.
+   * @return The previous item of back-forward list.
+   */
+  virtual std::unique_ptr<Dali::WebEngineBackForwardListItem> GetPreviousItem() const = 0;
+
+  /**
+   * @brief Returns the next item in the @a list.
+   * @return The next item of back-forward list.
+   */
+  virtual std::unique_ptr<Dali::WebEngineBackForwardListItem> GetNextItem() const = 0;
 
   /**
    * @brief Returns the item at a given @a index relative to the current item.
    * @param[in] index The index of the item
    * @return The item of back-forward list.
    */
-  virtual WebEngineBackForwardListItem& GetItemAtIndex( uint32_t index ) const = 0;
+  virtual std::unique_ptr<Dali::WebEngineBackForwardListItem> GetItemAtIndex(uint32_t index) const = 0;
 
   /**
    * @brief Returns the length of the back-forward list including the current
@@ -66,6 +79,35 @@ public:
    */
   virtual uint32_t GetItemCount() const = 0;
 
+  /**
+   * @brief Creates a list containing the items preceding the current item limited
+   *        by @a limit.
+   *
+   * @details The WebEngineBackForwardListItem elements are located in the result
+              list starting with the oldest one.\n
+   *          If @a limit is equal to @c -1 all the items preceding the current
+   *          item are returned.
+   *
+   * @param[in] limit The number of items to retrieve
+   *
+   * @return @c Dali::Vector containing @c WebEngineBackForwardListItem elements,\n
+   */
+  virtual std::vector<std::unique_ptr<Dali::WebEngineBackForwardListItem>> GetBackwardItems(int limit) = 0;
+
+  /**
+   * @brief Creates the list containing the items following the current item
+   *        limited by @a limit.
+   *
+   * @details The @c WebEngineBackForwardListItem elements are located in the result
+   *          list starting with the oldest one.\n
+   *          If @a limit is equal to @c -1 all the items preceding the current
+   *          item are returned.
+   *
+   * @param[in] limit The number of items to retrieve
+   *
+   * @return @c Dali::Vector containing @c WebEngineBackForwardListItem elements,\n
+   */
+ virtual std::vector<std::unique_ptr<Dali::WebEngineBackForwardListItem>> GetForwardItems(int limit) = 0;
 };
 
 } // namespace Dali