#include "chrome/common/extensions/api/chrome_web_view_internal.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 "chrome/common/extensions/api/context_menus.h"
UTF8ToUTF16;
namespace extensions {
namespace api {
namespace chrome_web_view_internal {
ContextMenuItem::ContextMenuItem()
: … { … }
ContextMenuItem::~ContextMenuItem() = default;
ContextMenuItem::ContextMenuItem(ContextMenuItem&& rhs) noexcept = default;
ContextMenuItem& ContextMenuItem::operator=(ContextMenuItem&& rhs) noexcept = default;
ContextMenuItem ContextMenuItem::Clone() const { … }
bool ContextMenuItem::Populate(
const base::Value::Dict& dict, ContextMenuItem& out) { … }
bool ContextMenuItem::Populate(
const base::Value& value, ContextMenuItem& out) { … }
std::optional<ContextMenuItem> ContextMenuItem::FromValue(const base::Value::Dict& value) { … }
std::optional<ContextMenuItem> ContextMenuItem::FromValue(const base::Value& value) { … }
base::Value::Dict ContextMenuItem::ToValue() const { … }
namespace ContextMenusCreate {
Params::CreateProperties::ParentId::ParentId()
{ … }
Params::CreateProperties::ParentId::~ParentId() = default;
Params::CreateProperties::ParentId::ParentId(ParentId&& rhs) noexcept = default;
Params::CreateProperties::ParentId& Params::CreateProperties::ParentId::operator=(ParentId&& rhs) noexcept = default;
Params::CreateProperties::ParentId Params::CreateProperties::ParentId::Clone() const { … }
bool Params::CreateProperties::ParentId::Populate(
const base::Value& value, ParentId& out) { … }
std::optional<Params::CreateProperties::ParentId> Params::CreateProperties::ParentId::FromValue(const base::Value& value) { … }
Params::CreateProperties::CreateProperties()
: … { … }
Params::CreateProperties::~CreateProperties() = default;
Params::CreateProperties::CreateProperties(CreateProperties&& rhs) noexcept = default;
Params::CreateProperties& Params::CreateProperties::operator=(CreateProperties&& rhs) noexcept = default;
Params::CreateProperties Params::CreateProperties::Clone() const { … }
bool Params::CreateProperties::Populate(
const base::Value::Dict& dict, CreateProperties& out) { … }
bool Params::CreateProperties::Populate(
const base::Value& value, CreateProperties& out) { … }
std::optional<Params::CreateProperties> Params::CreateProperties::FromValue(const base::Value::Dict& value) { … }
std::optional<Params::CreateProperties> Params::CreateProperties::FromValue(const base::Value& value) { … }
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) { … }
base::Value::List Results::Create() { … }
}
namespace ContextMenusUpdate {
Params::Id::Id()
{ … }
Params::Id::~Id() = default;
Params::Id::Id(Id&& rhs) noexcept = default;
Params::Id& Params::Id::operator=(Id&& rhs) noexcept = default;
Params::Id Params::Id::Clone() const { … }
bool Params::Id::Populate(
const base::Value& value, Id& out) { … }
std::optional<Params::Id> Params::Id::FromValue(const base::Value& value) { … }
Params::UpdateProperties::ParentId::ParentId()
{ … }
Params::UpdateProperties::ParentId::~ParentId() = default;
Params::UpdateProperties::ParentId::ParentId(ParentId&& rhs) noexcept = default;
Params::UpdateProperties::ParentId& Params::UpdateProperties::ParentId::operator=(ParentId&& rhs) noexcept = default;
Params::UpdateProperties::ParentId Params::UpdateProperties::ParentId::Clone() const { … }
bool Params::UpdateProperties::ParentId::Populate(
const base::Value& value, ParentId& out) { … }
std::optional<Params::UpdateProperties::ParentId> Params::UpdateProperties::ParentId::FromValue(const base::Value& value) { … }
Params::UpdateProperties::UpdateProperties()
: … { … }
Params::UpdateProperties::~UpdateProperties() = default;
Params::UpdateProperties::UpdateProperties(UpdateProperties&& rhs) noexcept = default;
Params::UpdateProperties& Params::UpdateProperties::operator=(UpdateProperties&& rhs) noexcept = default;
Params::UpdateProperties Params::UpdateProperties::Clone() const { … }
bool Params::UpdateProperties::Populate(
const base::Value::Dict& dict, UpdateProperties& out) { … }
bool Params::UpdateProperties::Populate(
const base::Value& value, UpdateProperties& out) { … }
std::optional<Params::UpdateProperties> Params::UpdateProperties::FromValue(const base::Value::Dict& value) { … }
std::optional<Params::UpdateProperties> Params::UpdateProperties::FromValue(const base::Value& value) { … }
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) { … }
base::Value::List Results::Create() { … }
}
namespace ContextMenusRemove {
Params::MenuItemId::MenuItemId()
{ … }
Params::MenuItemId::~MenuItemId() = default;
Params::MenuItemId::MenuItemId(MenuItemId&& rhs) noexcept = default;
Params::MenuItemId& Params::MenuItemId::operator=(MenuItemId&& rhs) noexcept = default;
Params::MenuItemId Params::MenuItemId::Clone() const { … }
bool Params::MenuItemId::Populate(
const base::Value& value, MenuItemId& out) { … }
std::optional<Params::MenuItemId> Params::MenuItemId::FromValue(const base::Value& value) { … }
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) { … }
base::Value::List Results::Create() { … }
}
namespace ContextMenusRemoveAll {
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) { … }
base::Value::List Results::Create() { … }
}
namespace ShowContextMenu {
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 OnClicked {
const char kEventName[] = …;
base::Value::List Create() { … }
}
namespace OnShow {
const char kEventName[] = …;
Event::Event()
{ … }
Event::~Event() = default;
Event::Event(Event&& rhs) noexcept = default;
Event& Event::operator=(Event&& rhs) noexcept = default;
base::Value::Dict Event::ToValue() const { … }
base::Value::List Create(const Event& event) { … }
}
}
}
}