2 * Copyright (c) 2015 Samsung Electronics Co., Ltd.
4 * Licensed under the Apache License, Version 2.0 (the License);
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
8 * http://www.apache.org/licenses/LICENSE-2.0
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an AS IS BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
17 #ifndef WIDGETLISTMANAGER_H_
18 #define WIDGETLISTMANAGER_H_
22 #include "services/HistoryService/HistoryItem.h"
24 namespace tizen_browser
30 * Interface for classes managing list-like widgets.
31 * TODO: consider if it could be used in whole application, not only for URL
34 class WidgetListManager
37 virtual ~WidgetListManager()
40 virtual Evas_Object* createWidget(Evas_Object* parentLayout) = 0;
41 virtual Evas_Object* getWidget() = 0;
42 virtual void hideWidget() = 0;
43 virtual void showWidget(const std::string& editedUrl,
44 std::shared_ptr<services::HistoryItemVector> matchedEntries) = 0;
45 virtual void onMouseClick() = 0;
48 } /* namespace services */
49 } /* namespace tizen_browser */
51 #endif /* WIDGETLISTMANAGER_H_ */