1 #ifndef DALI_WEB_ENGINE_BACK_FORWARD_LIST_H
2 #define DALI_WEB_ENGINE_BACK_FORWARD_LIST_H
5 * Copyright (c) 2021 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/devel-api/adaptor-framework/web-engine-back-forward-list-item.h>
27 class WebEngineBackForwardListItem;
30 * @brief A class WebBackForwardList for back forward list of web engine.
32 class WebEngineBackForwardList
38 WebEngineBackForwardList() = default;
43 virtual ~WebEngineBackForwardList() = default;
46 * @brief Returns the current item in the @a list.
47 * @return The item of back-forward list.
49 virtual WebEngineBackForwardListItem& GetCurrentItem() const = 0;
52 * @brief Returns the item at a given @a index relative to the current item.
53 * @param[in] index The index of the item
54 * @return The item of back-forward list.
56 virtual WebEngineBackForwardListItem& GetItemAtIndex(uint32_t index) const = 0;
59 * @brief Returns the length of the back-forward list including the current
61 * @return The length of the back-forward list including the current item,
62 * otherwise @c 0 in case of an error
64 virtual uint32_t GetItemCount() const = 0;
69 #endif // DALI_WEB_ENGINE_BACK_FORWARD_LIST_H