Limit number of opened tabs in brower
[profile/tv/apps/web/browser.git] / services / SimpleUI / SimpleUI.h
index 0e8c58a..74c425a 100644 (file)
@@ -38,7 +38,7 @@
 #include "MoreMenuUI.h"
 #include "HistoryUI.h"
 #include "SettingsUI.h"
-#include "MainUI.h"
+#include "QuickAccess.h"
 #include "TabUI.h"
 #include "ZoomUI.h"
 #include "HistoryService.h"
@@ -102,7 +102,7 @@ private:
     void bookmarkAdded();
     void bookmarkDeleted();
 
-    void showMainUI();
+    void showQuickAccess();
     void switchViewToQuickAccess();
     void switchViewToWebPage();
     void updateView();
@@ -113,6 +113,7 @@ private:
     void tabClicked(const tizen_browser::basic_webengine::TabId& tabId);
     void closeTabsClicked(const tizen_browser::basic_webengine::TabId& tabId);
     void tabCreated();
+    bool checkIfCreate();
     void tabClosed(const tizen_browser::basic_webengine::TabId& id);
 
     std::vector<std::shared_ptr<tizen_browser::services::BookmarkItem> > getBookmarks(int folder_id = -1);
@@ -213,8 +214,8 @@ private:
     void settingsDeleteSelectedData(const std::string& str);
     void settingsResetMostVisited();
     void settingsResetBrowser();
-    void onDeleteSelectedDataButton(PopupButtons button, std::shared_ptr<PopupData> popupData);
-    void onDeleteMostVisitedButton(PopupButtons button, std::shared_ptr<PopupData> popupData);
+    void onDeleteSelectedDataButton(const std::string &dataText);
+    void onDeleteMostVisitedButton(std::shared_ptr<PopupData> popupData);
     void onResetBrowserButton(PopupButtons button, std::shared_ptr<PopupData> popupData);
     void tabLimitPopupButtonClicked(PopupButtons button, std::shared_ptr< PopupData > /*popupData*/);
     int tabsCount();
@@ -234,7 +235,7 @@ private:
     std::shared_ptr<services::HistoryService> m_historyService;
     std::shared_ptr<MoreMenuUI> m_moreMenuUI;
     std::shared_ptr<BookmarkManagerUI> m_bookmarkManagerUI;
-    std::shared_ptr<MainUI> m_mainUI;
+    std::shared_ptr<QuickAccess> m_quickAccess;
     std::shared_ptr<HistoryUI> m_historyUI;
     std::shared_ptr<SettingsUI> m_settingsUI;
     std::shared_ptr<TabUI> m_tabUI;