#include "extensions/common/api/automation.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 automation {
const char* ToString(EventType enum_param) { … }
EventType ParseEventType(std::string_view enum_string) { … }
std::u16string GetEventTypeParseError(std::string_view enum_string) { … }
const char* ToString(RoleType enum_param) { … }
RoleType ParseRoleType(std::string_view enum_string) { … }
std::u16string GetRoleTypeParseError(std::string_view enum_string) { … }
const char* ToString(StateType enum_param) { … }
StateType ParseStateType(std::string_view enum_string) { … }
std::u16string GetStateTypeParseError(std::string_view enum_string) { … }
const char* ToString(ActionType enum_param) { … }
ActionType ParseActionType(std::string_view enum_string) { … }
std::u16string GetActionTypeParseError(std::string_view enum_string) { … }
const char* ToString(TreeChangeType enum_param) { … }
TreeChangeType ParseTreeChangeType(std::string_view enum_string) { … }
std::u16string GetTreeChangeTypeParseError(std::string_view enum_string) { … }
const char* ToString(NameFromType enum_param) { … }
NameFromType ParseNameFromType(std::string_view enum_string) { … }
std::u16string GetNameFromTypeParseError(std::string_view enum_string) { … }
const char* ToString(DescriptionFromType enum_param) { … }
DescriptionFromType ParseDescriptionFromType(std::string_view enum_string) { … }
std::u16string GetDescriptionFromTypeParseError(std::string_view enum_string) { … }
const char* ToString(Restriction enum_param) { … }
Restriction ParseRestriction(std::string_view enum_string) { … }
std::u16string GetRestrictionParseError(std::string_view enum_string) { … }
const char* ToString(HasPopup enum_param) { … }
HasPopup ParseHasPopup(std::string_view enum_string) { … }
std::u16string GetHasPopupParseError(std::string_view enum_string) { … }
const char* ToString(AriaCurrentState enum_param) { … }
AriaCurrentState ParseAriaCurrentState(std::string_view enum_string) { … }
std::u16string GetAriaCurrentStateParseError(std::string_view enum_string) { … }
const char* ToString(InvalidState enum_param) { … }
InvalidState ParseInvalidState(std::string_view enum_string) { … }
std::u16string GetInvalidStateParseError(std::string_view enum_string) { … }
const char* ToString(DefaultActionVerb enum_param) { … }
DefaultActionVerb ParseDefaultActionVerb(std::string_view enum_string) { … }
std::u16string GetDefaultActionVerbParseError(std::string_view enum_string) { … }
const char* ToString(MarkerType enum_param) { … }
MarkerType ParseMarkerType(std::string_view enum_string) { … }
std::u16string GetMarkerTypeParseError(std::string_view enum_string) { … }
const char* ToString(IntentCommandType enum_param) { … }
IntentCommandType ParseIntentCommandType(std::string_view enum_string) { … }
std::u16string GetIntentCommandTypeParseError(std::string_view enum_string) { … }
const char* ToString(IntentInputEventType enum_param) { … }
IntentInputEventType ParseIntentInputEventType(std::string_view enum_string) { … }
std::u16string GetIntentInputEventTypeParseError(std::string_view enum_string) { … }
const char* ToString(IntentTextBoundaryType enum_param) { … }
IntentTextBoundaryType ParseIntentTextBoundaryType(std::string_view enum_string) { … }
std::u16string GetIntentTextBoundaryTypeParseError(std::string_view enum_string) { … }
const char* ToString(IntentMoveDirectionType enum_param) { … }
IntentMoveDirectionType ParseIntentMoveDirectionType(std::string_view enum_string) { … }
std::u16string GetIntentMoveDirectionTypeParseError(std::string_view enum_string) { … }
const char* ToString(SortDirectionType enum_param) { … }
SortDirectionType ParseSortDirectionType(std::string_view enum_string) { … }
std::u16string GetSortDirectionTypeParseError(std::string_view enum_string) { … }
const char* ToString(PositionType enum_param) { … }
PositionType ParsePositionType(std::string_view enum_string) { … }
std::u16string GetPositionTypeParseError(std::string_view enum_string) { … }
Rect::Rect()
: … { … }
Rect::~Rect() = default;
Rect::Rect(Rect&& rhs) noexcept = default;
Rect& Rect::operator=(Rect&& rhs) noexcept = default;
Rect Rect::Clone() const { … }
bool Rect::Populate(
const base::Value::Dict& dict, Rect& out) { … }
bool Rect::Populate(
const base::Value& value, Rect& out) { … }
std::optional<Rect> Rect::FromValue(const base::Value::Dict& value) { … }
std::optional<Rect> Rect::FromValue(const base::Value& value) { … }
base::Value::Dict Rect::ToValue() const { … }
FindParams::FindParams()
{ … }
FindParams::~FindParams() = default;
FindParams::FindParams(FindParams&& rhs) noexcept = default;
FindParams& FindParams::operator=(FindParams&& rhs) noexcept = default;
FindParams FindParams::Clone() const { … }
bool FindParams::Populate(
const base::Value::Dict& dict, FindParams& out) { … }
bool FindParams::Populate(
const base::Value& value, FindParams& out) { … }
std::optional<FindParams> FindParams::FromValue(const base::Value::Dict& value) { … }
std::optional<FindParams> FindParams::FromValue(const base::Value& value) { … }
base::Value::Dict FindParams::ToValue() const { … }
SetDocumentSelectionParams::SetDocumentSelectionParams()
{ … }
SetDocumentSelectionParams::~SetDocumentSelectionParams() = default;
SetDocumentSelectionParams::SetDocumentSelectionParams(SetDocumentSelectionParams&& rhs) noexcept = default;
SetDocumentSelectionParams& SetDocumentSelectionParams::operator=(SetDocumentSelectionParams&& rhs) noexcept = default;
SetDocumentSelectionParams SetDocumentSelectionParams::Clone() const { … }
bool SetDocumentSelectionParams::Populate(
const base::Value::Dict& dict, SetDocumentSelectionParams& out) { … }
bool SetDocumentSelectionParams::Populate(
const base::Value& value, SetDocumentSelectionParams& out) { … }
std::optional<SetDocumentSelectionParams> SetDocumentSelectionParams::FromValue(const base::Value::Dict& value) { … }
std::optional<SetDocumentSelectionParams> SetDocumentSelectionParams::FromValue(const base::Value& value) { … }
base::Value::Dict SetDocumentSelectionParams::ToValue() const { … }
AutomationIntent::AutomationIntent()
{ … }
AutomationIntent::~AutomationIntent() = default;
AutomationIntent::AutomationIntent(AutomationIntent&& rhs) noexcept = default;
AutomationIntent& AutomationIntent::operator=(AutomationIntent&& rhs) noexcept = default;
AutomationIntent AutomationIntent::Clone() const { … }
bool AutomationIntent::Populate(
const base::Value::Dict& dict, AutomationIntent& out) { … }
bool AutomationIntent::Populate(
const base::Value& value, AutomationIntent& out) { … }
std::optional<AutomationIntent> AutomationIntent::FromValue(const base::Value::Dict& value) { … }
std::optional<AutomationIntent> AutomationIntent::FromValue(const base::Value& value) { … }
base::Value::Dict AutomationIntent::ToValue() const { … }
AutomationEvent::AutomationEvent()
{ … }
AutomationEvent::~AutomationEvent() = default;
AutomationEvent::AutomationEvent(AutomationEvent&& rhs) noexcept = default;
AutomationEvent& AutomationEvent::operator=(AutomationEvent&& rhs) noexcept = default;
AutomationEvent AutomationEvent::Clone() const { … }
bool AutomationEvent::Populate(
const base::Value::Dict& dict, AutomationEvent& out) { … }
bool AutomationEvent::Populate(
const base::Value& value, AutomationEvent& out) { … }
std::optional<AutomationEvent> AutomationEvent::FromValue(const base::Value::Dict& value) { … }
std::optional<AutomationEvent> AutomationEvent::FromValue(const base::Value& value) { … }
base::Value::Dict AutomationEvent::ToValue() const { … }
TreeChange::TreeChange()
{ … }
TreeChange::~TreeChange() = default;
TreeChange::TreeChange(TreeChange&& rhs) noexcept = default;
TreeChange& TreeChange::operator=(TreeChange&& rhs) noexcept = default;
TreeChange TreeChange::Clone() const { … }
bool TreeChange::Populate(
const base::Value::Dict& dict, TreeChange& out) { … }
bool TreeChange::Populate(
const base::Value& value, TreeChange& out) { … }
std::optional<TreeChange> TreeChange::FromValue(const base::Value::Dict& value) { … }
std::optional<TreeChange> TreeChange::FromValue(const base::Value& value) { … }
base::Value::Dict TreeChange::ToValue() const { … }
const char* ToString(TreeChangeObserverFilter enum_param) { … }
TreeChangeObserverFilter ParseTreeChangeObserverFilter(std::string_view enum_string) { … }
std::u16string GetTreeChangeObserverFilterParseError(std::string_view enum_string) { … }
CustomAction::CustomAction()
{ … }
CustomAction::~CustomAction() = default;
CustomAction::CustomAction(CustomAction&& rhs) noexcept = default;
CustomAction& CustomAction::operator=(CustomAction&& rhs) noexcept = default;
CustomAction CustomAction::Clone() const { … }
bool CustomAction::Populate(
const base::Value::Dict& dict, CustomAction& out) { … }
bool CustomAction::Populate(
const base::Value& value, CustomAction& out) { … }
std::optional<CustomAction> CustomAction::FromValue(const base::Value::Dict& value) { … }
std::optional<CustomAction> CustomAction::FromValue(const base::Value& value) { … }
base::Value::Dict CustomAction::ToValue() const { … }
Marker::Marker()
{ … }
Marker::~Marker() = default;
Marker::Marker(Marker&& rhs) noexcept = default;
Marker& Marker::operator=(Marker&& rhs) noexcept = default;
Marker Marker::Clone() const { … }
bool Marker::Populate(
const base::Value::Dict& dict, Marker& out) { … }
bool Marker::Populate(
const base::Value& value, Marker& out) { … }
std::optional<Marker> Marker::FromValue(const base::Value::Dict& value) { … }
std::optional<Marker> Marker::FromValue(const base::Value& value) { … }
base::Value::Dict Marker::ToValue() const { … }
AutomationPosition::AutomationPosition()
{ … }
AutomationPosition::~AutomationPosition() = default;
AutomationPosition::AutomationPosition(AutomationPosition&& rhs) noexcept = default;
AutomationPosition& AutomationPosition::operator=(AutomationPosition&& rhs) noexcept = default;
AutomationPosition AutomationPosition::Clone() const { … }
bool AutomationPosition::Populate(
const base::Value::Dict& dict, AutomationPosition& out) { … }
bool AutomationPosition::Populate(
const base::Value& value, AutomationPosition& out) { … }
std::optional<AutomationPosition> AutomationPosition::FromValue(const base::Value::Dict& value) { … }
std::optional<AutomationPosition> AutomationPosition::FromValue(const base::Value& value) { … }
base::Value::Dict AutomationPosition::ToValue() const { … }
AutomationNode::AutomationNode()
{ … }
AutomationNode::~AutomationNode() = default;
AutomationNode::AutomationNode(AutomationNode&& rhs) noexcept = default;
AutomationNode& AutomationNode::operator=(AutomationNode&& rhs) noexcept = default;
AutomationNode AutomationNode::Clone() const { … }
bool AutomationNode::Populate(
const base::Value::Dict& dict, AutomationNode& out) { … }
bool AutomationNode::Populate(
const base::Value& value, AutomationNode& out) { … }
std::optional<AutomationNode> AutomationNode::FromValue(const base::Value::Dict& value) { … }
std::optional<AutomationNode> AutomationNode::FromValue(const base::Value& value) { … }
base::Value::Dict AutomationNode::ToValue() const { … }
}
}
}