#include "extensions/common/api/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 <string_view>
#include "extensions/common/api/extension_types.h"
UTF8ToUTF16;
namespace extensions {
namespace api {
namespace web_view_internal {
const int MAX_CAPTURE_VISIBLE_REGION_CALLS_PER_SECOND = …;
DataTypeSet::DataTypeSet()
{ … }
DataTypeSet::~DataTypeSet() = default;
DataTypeSet::DataTypeSet(DataTypeSet&& rhs) noexcept = default;
DataTypeSet& DataTypeSet::operator=(DataTypeSet&& rhs) noexcept = default;
DataTypeSet DataTypeSet::Clone() const { … }
bool DataTypeSet::Populate(
const base::Value::Dict& dict, DataTypeSet& out) { … }
bool DataTypeSet::Populate(
const base::Value& value, DataTypeSet& out) { … }
std::optional<DataTypeSet> DataTypeSet::FromValue(const base::Value::Dict& value) { … }
std::optional<DataTypeSet> DataTypeSet::FromValue(const base::Value& value) { … }
base::Value::Dict DataTypeSet::ToValue() const { … }
RemovalOptions::RemovalOptions()
{ … }
RemovalOptions::~RemovalOptions() = default;
RemovalOptions::RemovalOptions(RemovalOptions&& rhs) noexcept = default;
RemovalOptions& RemovalOptions::operator=(RemovalOptions&& rhs) noexcept = default;
RemovalOptions RemovalOptions::Clone() const { … }
bool RemovalOptions::Populate(
const base::Value::Dict& dict, RemovalOptions& out) { … }
bool RemovalOptions::Populate(
const base::Value& value, RemovalOptions& out) { … }
std::optional<RemovalOptions> RemovalOptions::FromValue(const base::Value::Dict& value) { … }
std::optional<RemovalOptions> RemovalOptions::FromValue(const base::Value& value) { … }
base::Value::Dict RemovalOptions::ToValue() const { … }
const char* ToString(ZoomMode enum_param) { … }
ZoomMode ParseZoomMode(std::string_view enum_string) { … }
std::u16string GetZoomModeParseError(std::string_view enum_string) { … }
const char* ToString(StopFindingAction enum_param) { … }
StopFindingAction ParseStopFindingAction(std::string_view enum_string) { … }
std::u16string GetStopFindingActionParseError(std::string_view enum_string) { … }
const char* ToString(SetPermissionAction enum_param) { … }
SetPermissionAction ParseSetPermissionAction(std::string_view enum_string) { … }
std::u16string GetSetPermissionActionParseError(std::string_view enum_string) { … }
InjectionItems::InjectionItems()
{ … }
InjectionItems::~InjectionItems() = default;
InjectionItems::InjectionItems(InjectionItems&& rhs) noexcept = default;
InjectionItems& InjectionItems::operator=(InjectionItems&& rhs) noexcept = default;
InjectionItems InjectionItems::Clone() const { … }
bool InjectionItems::Populate(
const base::Value::Dict& dict, InjectionItems& out) { … }
bool InjectionItems::Populate(
const base::Value& value, InjectionItems& out) { … }
std::optional<InjectionItems> InjectionItems::FromValue(const base::Value::Dict& value) { … }
std::optional<InjectionItems> InjectionItems::FromValue(const base::Value& value) { … }
base::Value::Dict InjectionItems::ToValue() const { … }
ContentScriptDetails::ContentScriptDetails()
: … { … }
ContentScriptDetails::~ContentScriptDetails() = default;
ContentScriptDetails::ContentScriptDetails(ContentScriptDetails&& rhs) noexcept = default;
ContentScriptDetails& ContentScriptDetails::operator=(ContentScriptDetails&& rhs) noexcept = default;
ContentScriptDetails ContentScriptDetails::Clone() const { … }
bool ContentScriptDetails::Populate(
const base::Value::Dict& dict, ContentScriptDetails& out) { … }
bool ContentScriptDetails::Populate(
const base::Value& value, ContentScriptDetails& out) { … }
std::optional<ContentScriptDetails> ContentScriptDetails::FromValue(const base::Value::Dict& value) { … }
std::optional<ContentScriptDetails> ContentScriptDetails::FromValue(const base::Value& value) { … }
base::Value::Dict ContentScriptDetails::ToValue() const { … }
namespace GetAudioState {
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(bool audible) { … }
}
namespace SetAudioMuted {
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 IsAudioMuted {
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(bool muted) { … }
}
namespace ExecuteScript {
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(const base::Value::List& result) { … }
}
namespace InsertCSS {
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 AddContentScripts {
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 RemoveContentScripts {
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 SetZoom {
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 GetZoom {
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(double zoom_factor) { … }
}
namespace SetZoomMode {
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 GetZoomMode {
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(const ZoomMode& zoom_mode) { … }
}
namespace Find {
Params::Options::Options()
{ … }
Params::Options::~Options() = default;
Params::Options::Options(Options&& rhs) noexcept = default;
Params::Options& Params::Options::operator=(Options&& rhs) noexcept = default;
Params::Options Params::Options::Clone() const { … }
bool Params::Options::Populate(
const base::Value::Dict& dict, Options& out) { … }
bool Params::Options::Populate(
const base::Value& value, Options& out) { … }
std::optional<Params::Options> Params::Options::FromValue(const base::Value::Dict& value) { … }
std::optional<Params::Options> Params::Options::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) { … }
Results::Results::SelectionRect::SelectionRect()
: … { … }
Results::Results::SelectionRect::~SelectionRect() = default;
Results::Results::SelectionRect::SelectionRect(SelectionRect&& rhs) noexcept = default;
Results::Results::SelectionRect& Results::Results::SelectionRect::operator=(SelectionRect&& rhs) noexcept = default;
base::Value::Dict Results::Results::SelectionRect::ToValue() const { … }
Results::Results::Results()
: … { … }
Results::Results::~Results() = default;
Results::Results::Results(Results&& rhs) noexcept = default;
Results::Results& Results::Results::operator=(Results&& rhs) noexcept = default;
base::Value::Dict Results::Results::ToValue() const { … }
base::Value::List Results::Create(const Results& results) { … }
}
namespace StopFinding {
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 LoadDataWithBaseUrl {
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 Go {
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(bool success) { … }
}
namespace OverrideUserAgent {
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 Reload {
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 SetAllowTransparency {
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 SetAllowScaling {
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 SetName {
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 SetPermission {
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(bool allowed) { … }
}
namespace Navigate {
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 Stop {
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 Terminate {
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 CaptureVisibleRegion {
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(const std::string& data_url) { … }
}
namespace SetSpatialNavigationEnabled {
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 IsSpatialNavigationEnabled {
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(bool spatial_nav_enabled) { … }
}
namespace ClearData {
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() { … }
}
}
}
}