#include "chrome/browser/ui/global_media_controls/live_translate_combobox_model.h"
#include <vector>
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "components/live_caption/pref_names.h"
#include "components/prefs/pref_service.h"
#include "ui/base/l10n/l10n_util.h"
namespace {
bool LanguageSupportsTranslate(translate::TranslateLanguageInfo language) { … }
}
LiveTranslateComboboxModel::LiveTranslateComboboxModel(Profile* profile)
: … { … }
LiveTranslateComboboxModel::~LiveTranslateComboboxModel() = default;
size_t LiveTranslateComboboxModel::GetItemCount() const { … }
std::u16string LiveTranslateComboboxModel::GetItemAt(size_t index) const { … }
std::optional<size_t> LiveTranslateComboboxModel::GetDefaultIndex() const { … }
void LiveTranslateComboboxModel::UpdateTargetLanguageIndex(int index) { … }