tab trees

This commit is contained in:
Fabian Freund
2025-06-23 19:43:36 +02:00
parent 8445b768f0
commit 4f682744da
28 changed files with 2687 additions and 2256 deletions
@@ -185,6 +185,7 @@ class GeckoTabsApiImpl : GeckoTabsApi {
System.currentTimeMillis(),
TabContentState(
id = tab.id,
parentId = tab.parentId,
contextId = tab.contextId,
url = tab.content.url,
title = tab.content.title,
@@ -158,6 +158,7 @@ class Events(
System.currentTimeMillis(),
TabContentState(
id = tab.id,
parentId = tab.parentId,
contextId = tab.contextId,
url = tab.content.url,
title = tab.content.title,
@@ -1,4 +1,4 @@
// Autogenerated from Pigeon (v25.3.1), do not edit directly.
// Autogenerated from Pigeon (v25.3.2), do not edit directly.
// See also: https://pub.dev/packages/pigeon
@file:Suppress("UNCHECKED_CAST", "ArrayInDataClass")
@@ -1194,6 +1194,7 @@ data class SecurityInfoState (
/** Generated class from Pigeon that represents data sent in messages. */
data class TabContentState (
val id: String,
val parentId: String? = null,
val contextId: String? = null,
val url: String,
val title: String,
@@ -1206,19 +1207,21 @@ data class TabContentState (
companion object {
fun fromList(pigeonVar_list: List<Any?>): TabContentState {
val id = pigeonVar_list[0] as String
val contextId = pigeonVar_list[1] as String?
val url = pigeonVar_list[2] as String
val title = pigeonVar_list[3] as String
val progress = pigeonVar_list[4] as Long
val isPrivate = pigeonVar_list[5] as Boolean
val isFullScreen = pigeonVar_list[6] as Boolean
val isLoading = pigeonVar_list[7] as Boolean
return TabContentState(id, contextId, url, title, progress, isPrivate, isFullScreen, isLoading)
val parentId = pigeonVar_list[1] as String?
val contextId = pigeonVar_list[2] as String?
val url = pigeonVar_list[3] as String
val title = pigeonVar_list[4] as String
val progress = pigeonVar_list[5] as Long
val isPrivate = pigeonVar_list[6] as Boolean
val isFullScreen = pigeonVar_list[7] as Boolean
val isLoading = pigeonVar_list[8] as Boolean
return TabContentState(id, parentId, contextId, url, title, progress, isPrivate, isFullScreen, isLoading)
}
}
fun toList(): List<Any?> {
return listOf(
id,
parentId,
contextId,
url,
title,