#include "chrome/common/extensions/api/language_settings_private.h"
#include <memory>
#include <optional>
#include <ostream>
#include <string>
#include <string_view>
#include <utility>
#include <vector>
#include "base/check.h"
#include "base/check_op.h"
#include "base/notreached.h"
#include "base/strings/string_number_conversions.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "tools/json_schema_compiler/util.h"
#include <string_view>
UTF8ToUTF16;
namespace extensions {
namespace api {
namespace language_settings_private {
const char* ToString(MoveType enum_param) { … }
MoveType ParseMoveType(std::string_view enum_string) { … }
std::u16string GetMoveTypeParseError(std::string_view enum_string) { … }
Language::Language()
{ … }
Language::~Language() = default;
Language::Language(Language&& rhs) noexcept = default;
Language& Language::operator=(Language&& rhs) noexcept = default;
Language Language::Clone() const { … }
bool Language::Populate(
const base::Value::Dict& dict, Language& out) { … }
bool Language::Populate(
const base::Value& value, Language& out) { … }
std::optional<Language> Language::FromValue(const base::Value::Dict& value) { … }
std::optional<Language> Language::FromValue(const base::Value& value) { … }
base::Value::Dict Language::ToValue() const { … }
SpellcheckDictionaryStatus::SpellcheckDictionaryStatus()
: … { … }
SpellcheckDictionaryStatus::~SpellcheckDictionaryStatus() = default;
SpellcheckDictionaryStatus::SpellcheckDictionaryStatus(SpellcheckDictionaryStatus&& rhs) noexcept = default;
SpellcheckDictionaryStatus& SpellcheckDictionaryStatus::operator=(SpellcheckDictionaryStatus&& rhs) noexcept = default;
SpellcheckDictionaryStatus SpellcheckDictionaryStatus::Clone() const { … }
bool SpellcheckDictionaryStatus::Populate(
const base::Value::Dict& dict, SpellcheckDictionaryStatus& out) { … }
bool SpellcheckDictionaryStatus::Populate(
const base::Value& value, SpellcheckDictionaryStatus& out) { … }
std::optional<SpellcheckDictionaryStatus> SpellcheckDictionaryStatus::FromValue(const base::Value::Dict& value) { … }
std::optional<SpellcheckDictionaryStatus> SpellcheckDictionaryStatus::FromValue(const base::Value& value) { … }
base::Value::Dict SpellcheckDictionaryStatus::ToValue() const { … }
InputMethod::InputMethod()
{ … }
InputMethod::~InputMethod() = default;
InputMethod::InputMethod(InputMethod&& rhs) noexcept = default;
InputMethod& InputMethod::operator=(InputMethod&& rhs) noexcept = default;
InputMethod InputMethod::Clone() const { … }
bool InputMethod::Populate(
const base::Value::Dict& dict, InputMethod& out) { … }
bool InputMethod::Populate(
const base::Value& value, InputMethod& out) { … }
std::optional<InputMethod> InputMethod::FromValue(const base::Value::Dict& value) { … }
std::optional<InputMethod> InputMethod::FromValue(const base::Value& value) { … }
base::Value::Dict InputMethod::ToValue() const { … }
InputMethodLists::InputMethodLists()
{ … }
InputMethodLists::~InputMethodLists() = default;
InputMethodLists::InputMethodLists(InputMethodLists&& rhs) noexcept = default;
InputMethodLists& InputMethodLists::operator=(InputMethodLists&& rhs) noexcept = default;
InputMethodLists InputMethodLists::Clone() const { … }
bool InputMethodLists::Populate(
const base::Value::Dict& dict, InputMethodLists& out) { … }
bool InputMethodLists::Populate(
const base::Value& value, InputMethodLists& out) { … }
std::optional<InputMethodLists> InputMethodLists::FromValue(const base::Value::Dict& value) { … }
std::optional<InputMethodLists> InputMethodLists::FromValue(const base::Value& value) { … }
base::Value::Dict InputMethodLists::ToValue() const { … }
namespace GetLanguageList {
base::Value::List Results::Create(const std::vector<Language>& languages) { … }
}
namespace EnableLanguage {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace DisableLanguage {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace SetEnableTranslationForLanguage {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace MoveLanguage {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace GetAlwaysTranslateLanguages {
base::Value::List Results::Create(const std::vector<std::string>& language_codes) { … }
}
namespace SetLanguageAlwaysTranslateState {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace GetNeverTranslateLanguages {
base::Value::List Results::Create(const std::vector<std::string>& language_codes) { … }
}
namespace GetSpellcheckDictionaryStatuses {
base::Value::List Results::Create(const std::vector<SpellcheckDictionaryStatus>& status) { … }
}
namespace GetSpellcheckWords {
base::Value::List Results::Create(const std::vector<std::string>& words) { … }
}
namespace AddSpellcheckWord {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace RemoveSpellcheckWord {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace GetTranslateTargetLanguage {
base::Value::List Results::Create(const std::string& language_code) { … }
}
namespace SetTranslateTargetLanguage {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace GetInputMethodLists {
base::Value::List Results::Create(const InputMethodLists& lists) { … }
}
namespace AddInputMethod {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace RemoveInputMethod {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace RetryDownloadDictionary {
Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;
std::optional<Params> Params::Create(const base::Value::List& args) { … }
}
namespace OnSpellcheckDictionariesChanged {
const char kEventName[] = …;
base::Value::List Create(const std::vector<SpellcheckDictionaryStatus>& statuses) { … }
}
namespace OnCustomDictionaryChanged {
const char kEventName[] = …;
base::Value::List Create(const std::vector<std::string>& words_added, const std::vector<std::string>& words_removed) { … }
}
namespace OnInputMethodAdded {
const char kEventName[] = …;
base::Value::List Create(const std::string& input_method_id) { … }
}
namespace OnInputMethodRemoved {
const char kEventName[] = …;
base::Value::List Create(const std::string& input_method_id) { … }
}
}
}
}