1 #ifndef DALI_TOOLKIT_WEB_BACK_FORWARD_LIST_H
2 #define DALI_TOOLKIT_WEB_BACK_FORWARD_LIST_H
5 * Copyright (c) 2020 Samsung Electronics Co., Ltd.
7 * Licensed under the Apache License, Version 2.0 (the "License");
8 * you may not use this file except in compliance with the License.
9 * You may obtain a copy of the License at
11 * http://www.apache.org/licenses/LICENSE-2.0
13 * Unless required by applicable law or agreed to in writing, software
14 * distributed under the License is distributed on an "AS IS" BASIS,
15 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16 * See the License for the specific language governing permissions and
17 * limitations under the License.
22 #include <dali-toolkit/devel-api/controls/web-view/web-back-forward-list-item.h>
23 #include <dali-toolkit/public-api/dali-toolkit-common.h>
28 class WebEngineBackForwardList;
32 class WebBackForwardListItem;
35 * @addtogroup dali_toolkit_controls_web_view
40 * @brief WebBackForwardList is a class for back-forward list item of WebView.
43 * For working WebBackForwardList, a Dali::WebBackForwardList should be provided.
46 class DALI_TOOLKIT_API WebBackForwardList
50 * @brief Creates a WebBackForwardList.
52 WebBackForwardList( const Dali::WebEngineBackForwardList& list );
57 virtual ~WebBackForwardList() final;
60 * @brief Returns the current item in the @a list.
61 * @return The current item in list.
63 WebBackForwardListItem* GetCurrentItem();
66 * @brief Returns the item at a given @a index relative to the current item.
67 * @param[in] index The index of the item
68 * @return The current item in list.
70 WebBackForwardListItem* GetItemAtIndex(uint32_t index);
73 * @brief Returns the length of the back-forward list including the current
75 * @return The length of the back-forward list including the current item,
76 * otherwise 0 in case of an error
78 uint32_t GetItemCount() const;
81 const Dali::WebEngineBackForwardList& mWebEngineBackForwardList;
82 Dali::Toolkit::WebBackForwardListItem mWebBackForwardListItem;
90 } // namespace Toolkit
94 #endif // DALI_TOOLKIT_WEB_BACK_FORWARD_LIST_H