// Copyright 2022 The Chromium Authors // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef COMPONENTS_TAB_GROUPS_TAB_GROUP_INFO_H_ #define COMPONENTS_TAB_GROUPS_TAB_GROUP_INFO_H_ #include "base/component_export.h" #include "components/tab_groups/tab_group_visual_data.h" #include "ui/gfx/range/range.h" namespace tab_groups { // String kConstants used by TabGroupColorToString. These are used by desks // storage as part of its admin JSON storage format, hence why we use this // instead of the `TabGroupColorLabelMap`. constexpr char kTabGroupColorUnknown[] = …; constexpr char kTabGroupColorGrey[] = …; constexpr char kTabGroupColorBlue[] = …; constexpr char kTabGroupColorRed[] = …; constexpr char kTabGroupColorYellow[] = …; constexpr char kTabGroupColorGreen[] = …; constexpr char kTabGroupColorPink[] = …; constexpr char kTabGroupColorPurple[] = …; constexpr char kTabGroupColorCyan[] = …; constexpr char kTabGroupColorOrange[] = …; // Used in ToString as well as in Conversion Logic for // components/desks_storage/core/desk_template_conversion.cc std::string COMPONENT_EXPORT(TAB_GROUPS) TabGroupColorToString(TabGroupColorId color); // Tab group info is a structure representing a tab group that // is associated with a specific browser window. This struct lives // in a list of instances of its kind located under the tab_group_infos // field of an AppRestoreData struct. This structure is used by saved desks // to store data relating to tab groups and is not directly used by full // restore. struct COMPONENT_EXPORT(TAB_GROUPS) TabGroupInfo { … }; } // namespace tab_groups #endif // COMPONENTS_TAB_GROUPS_TAB_GROUP_INFO_H_