chromium/out/Default/gen/extensions/common/api/web_view_internal.cc

// Copyright 2024 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

// GENERATED FROM THE API DEFINITION IN
//   extensions/common/api/web_view_internal.json
// by tools/json_schema_compiler.
// DO NOT EDIT.

#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 {
//
// Properties
//

const int MAX_CAPTURE_VISIBLE_REGION_CALLS_PER_SECOND =;

//
// Types
//

DataTypeSet::DataTypeSet()
 {}

DataTypeSet::~DataTypeSet() = default;
DataTypeSet::DataTypeSet(DataTypeSet&& rhs) noexcept = default;
DataTypeSet& DataTypeSet::operator=(DataTypeSet&& rhs) noexcept = default;
DataTypeSet DataTypeSet::Clone() const {}

// static
bool DataTypeSet::Populate(
    const base::Value::Dict& dict, DataTypeSet& out) {}

// static
bool DataTypeSet::Populate(
    const base::Value& value, DataTypeSet& out) {}

// static
std::optional<DataTypeSet> DataTypeSet::FromValue(const base::Value::Dict& value) {}

// static
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 {}

// static
bool RemovalOptions::Populate(
    const base::Value::Dict& dict, RemovalOptions& out) {}

// static
bool RemovalOptions::Populate(
    const base::Value& value, RemovalOptions& out) {}

// static
std::optional<RemovalOptions> RemovalOptions::FromValue(const base::Value::Dict& value) {}

// static
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 {}

// static
bool InjectionItems::Populate(
    const base::Value::Dict& dict, InjectionItems& out) {}

// static
bool InjectionItems::Populate(
    const base::Value& value, InjectionItems& out) {}

// static
std::optional<InjectionItems> InjectionItems::FromValue(const base::Value::Dict& value) {}

// static
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 {}

// static
bool ContentScriptDetails::Populate(
    const base::Value::Dict& dict, ContentScriptDetails& out) {}

// static
bool ContentScriptDetails::Populate(
    const base::Value& value, ContentScriptDetails& out) {}

// static
std::optional<ContentScriptDetails> ContentScriptDetails::FromValue(const base::Value::Dict& value) {}

// static
std::optional<ContentScriptDetails> ContentScriptDetails::FromValue(const base::Value& value) {}

base::Value::Dict ContentScriptDetails::ToValue() const {}



//
// Functions
//

namespace GetAudioState {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(bool audible) {}
}  // namespace GetAudioState

namespace SetAudioMuted {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace SetAudioMuted

namespace IsAudioMuted {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(bool muted) {}
}  // namespace IsAudioMuted

namespace ExecuteScript {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(const base::Value::List& result) {}
}  // namespace ExecuteScript

namespace InsertCSS {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace InsertCSS

namespace AddContentScripts {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace AddContentScripts

namespace RemoveContentScripts {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace RemoveContentScripts

namespace SetZoom {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace SetZoom

namespace GetZoom {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(double zoom_factor) {}
}  // namespace GetZoom

namespace SetZoomMode {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace SetZoomMode

namespace GetZoomMode {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(const ZoomMode& zoom_mode) {}
}  // namespace GetZoomMode

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 {}

// static
bool Params::Options::Populate(
    const base::Value::Dict& dict, Options& out) {}

// static
bool Params::Options::Populate(
    const base::Value& value, Options& out) {}

// static
std::optional<Params::Options> Params::Options::FromValue(const base::Value::Dict& value) {}

// static
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;

// static
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 Find

namespace StopFinding {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace StopFinding

namespace LoadDataWithBaseUrl {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace LoadDataWithBaseUrl

namespace Go {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(bool success) {}
}  // namespace Go

namespace OverrideUserAgent {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace OverrideUserAgent

namespace Reload {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace Reload

namespace SetAllowTransparency {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace SetAllowTransparency

namespace SetAllowScaling {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace SetAllowScaling

namespace SetName {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace SetName

namespace SetPermission {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(bool allowed) {}
}  // namespace SetPermission

namespace Navigate {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace Navigate

namespace Stop {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace Stop

namespace Terminate {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace Terminate

namespace CaptureVisibleRegion {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(const std::string& data_url) {}
}  // namespace CaptureVisibleRegion

namespace SetSpatialNavigationEnabled {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


}  // namespace SetSpatialNavigationEnabled

namespace IsSpatialNavigationEnabled {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create(bool spatial_nav_enabled) {}
}  // namespace IsSpatialNavigationEnabled

namespace ClearData {

Params::Params() = default;
Params::~Params() = default;
Params::Params(Params&& rhs) noexcept = default;
Params& Params::operator=(Params&& rhs) noexcept = default;

// static
std::optional<Params> Params::Create(const base::Value::List& args) {}


base::Value::List Results::Create() {}
}  // namespace ClearData

}  // namespace web_view_internal
}  // namespace api
}  // namespace extensions