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.
iceraven-browser/app/src/main/java/org/mozilla/fenix/tabstray/TabsTrayInteractor.kt

33 lines
973 B
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
import mozilla.components.concept.tabstray.Tab
interface TabsTrayInteractor {
/**
* Set the current tray item to the clamped [position].
*
* @param position The position on the tray to focus.
* @param smoothScroll If true, animate the scrolling from the current tab to [position].
*/
fun setCurrentTrayPosition(position: Int, smoothScroll: Boolean)
/**
* Dismisses the tabs tray and navigates to the browser.
*/
fun navigateToBrowser()
/**
* Invoked when a tab is removed from the tabs tray with the given [tabId].
*/
fun onDeleteTab(tabId: String)
/**
* Invoked when [Tab]s need to be deleted.
*/
fun onDeleteTabs(tabs: Collection<Tab>)
}