#include <memory>
#include "base/notimplemented.h"
#include "chrome/browser/ui/tabs/tab_collection.h"
#include "chrome/browser/ui/tabs/tab_collection_storage.h"
#include "chrome/browser/ui/tabs/tab_model.h"
namespace tabs {
TabCollectionStorage::TabCollectionStorage(TabCollection& owner)
: … { … }
TabCollectionStorage::~TabCollectionStorage() = default;
bool TabCollectionStorage::ContainsTab(TabModel* tab_model) const { … }
TabModel* TabCollectionStorage::GetTabAtIndex(size_t index) const { … }
bool TabCollectionStorage::ContainsCollection(
TabCollection* tab_collection) const { … }
TabModel* TabCollectionStorage::AddTab(std::unique_ptr<TabModel> tab_model,
size_t index) { … }
void TabCollectionStorage::MoveTab(TabModel* tab_model, size_t dst_index) { … }
std::unique_ptr<TabModel> TabCollectionStorage::RemoveTab(TabModel* tab_model) { … }
void TabCollectionStorage::CloseTab(TabModel* tab) { … }
TabCollection* TabCollectionStorage::AddCollection(
std::unique_ptr<TabCollection> collection,
size_t index) { … }
void TabCollectionStorage::MoveCollection(TabCollection* collection,
size_t dst_index) { … }
std::unique_ptr<TabCollection> TabCollectionStorage::RemoveCollection(
TabCollection* collection) { … }
void TabCollectionStorage::CloseCollection(TabCollection* collection) { … }
std::optional<size_t> TabCollectionStorage::GetIndexOfTab(
const TabModel* const tab_model) const { … }
std::optional<size_t> TabCollectionStorage::GetIndexOfCollection(
TabCollection* tab_collection) const { … }
size_t TabCollectionStorage::GetChildrenCount() const { … }
}