You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1.4 KiB
Kotlin
49 lines
1.4 KiB
Kotlin
/* 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.tabstray.browser
|
|
|
|
import mozilla.components.browser.state.state.TabSessionState
|
|
|
|
/**
|
|
* Interactor for all things related to inactive tabs in the tabs tray.
|
|
*/
|
|
interface InactiveTabsInteractor {
|
|
/**
|
|
* Invoked when the inactive tabs header is clicked.
|
|
*
|
|
* @param expanded true when the tap should expand the inactive section.
|
|
*/
|
|
fun onInactiveTabsHeaderClicked(expanded: Boolean)
|
|
|
|
/**
|
|
* Invoked when an inactive tab is clicked.
|
|
*
|
|
* @param tab [TabSessionState] that was clicked.
|
|
*/
|
|
fun onInactiveTabClicked(tab: TabSessionState)
|
|
|
|
/**
|
|
* Invoked when an inactive tab is closed.
|
|
*
|
|
* @param tab [TabSessionState] that was closed.
|
|
*/
|
|
fun onInactiveTabClosed(tab: TabSessionState)
|
|
|
|
/**
|
|
* Invoked when the user clicks on the delete all inactive tabs button.
|
|
*/
|
|
fun onDeleteAllInactiveTabsClicked()
|
|
|
|
/**
|
|
* Invoked when the user clicks the close button in the auto close dialog.
|
|
*/
|
|
fun onAutoCloseDialogCloseButtonClicked()
|
|
|
|
/**
|
|
* Invoked when the user clicks to enable the inactive tab auto-close feature.
|
|
*/
|
|
fun onEnableAutoCloseClicked()
|
|
}
|