summaryrefslogtreecommitdiffstats
path: root/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/recentsyncedtabs/interactor/RecentSyncedTabInteractor.kt
diff options
context:
space:
mode:
Diffstat (limited to 'mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/recentsyncedtabs/interactor/RecentSyncedTabInteractor.kt')
-rw-r--r--mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/recentsyncedtabs/interactor/RecentSyncedTabInteractor.kt33
1 files changed, 33 insertions, 0 deletions
diff --git a/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/recentsyncedtabs/interactor/RecentSyncedTabInteractor.kt b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/recentsyncedtabs/interactor/RecentSyncedTabInteractor.kt
new file mode 100644
index 0000000000..602047e056
--- /dev/null
+++ b/mobile/android/fenix/app/src/main/java/org/mozilla/fenix/home/recentsyncedtabs/interactor/RecentSyncedTabInteractor.kt
@@ -0,0 +1,33 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+
+package org.mozilla.fenix.home.recentsyncedtabs.interactor
+
+import org.mozilla.fenix.home.recentsyncedtabs.RecentSyncedTab
+
+/**
+ * Interface for recent synced tab related actions in the Home screen.
+ */
+interface RecentSyncedTabInteractor {
+ /**
+ * Opens the synced tab locally. Called when a user clicks on a recent synced tab.
+ *
+ * @param tab The recent synced tab that has been clicked.
+ */
+ fun onRecentSyncedTabClicked(tab: RecentSyncedTab)
+
+ /**
+ * Opens the tabs tray to the synced tab page. Called when a user clicks on the "See all synced
+ * tabs" button.
+ */
+ fun onSyncedTabShowAllClicked()
+
+ /**
+ * Adds the url of the synced tab to the homescreen blocklist and removes the tab
+ * from the recent synced tabs.
+ *
+ * @param tab The recent synced tab to be removed.
+ */
+ fun onRemovedRecentSyncedTab(tab: RecentSyncedTab)
+}