chromium/out/Default/gen/extensions/common/api/app_window.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/app_window.idl
// by tools/json_schema_compiler.
// DO NOT EDIT.

#include "extensions/common/api/app_window.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/app_runtime.h"


UTF8ToUTF16;

namespace extensions {
namespace api {
namespace app_window {
//
// Types
//

ContentBounds::ContentBounds()
 {}

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

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

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

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

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

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


BoundsSpecification::BoundsSpecification()
 {}

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

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

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

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

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

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


Bounds::Bounds()
:{}

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

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

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

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

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

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


FrameOptions::FrameOptions()
 {}

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

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

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

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

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

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


const char* ToString(State enum_param) {}

State ParseState(std::string_view enum_string) {}

std::u16string GetStateParseError(std::string_view enum_string) {}


const char* ToString(WindowType enum_param) {}

WindowType ParseWindowType(std::string_view enum_string) {}

std::u16string GetWindowTypeParseError(std::string_view enum_string) {}


CreateWindowOptions::Frame::Frame()
 {}

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

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

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

base::Value CreateWindowOptions::Frame::ToValue() const {}



CreateWindowOptions::CreateWindowOptions()
:{}

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

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

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

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

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

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


AppWindow::ContentWindow::ContentWindow()
 {}

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

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

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

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

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

base::Value::Dict AppWindow::ContentWindow::ToValue() const {}



AppWindow::AppWindow()
:{}

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

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

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

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

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

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



//
// Functions
//

namespace Create {

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::CreatedWindow::CreatedWindow()
 {}

Results::CreatedWindow::~CreatedWindow() = default;
Results::CreatedWindow::CreatedWindow(CreatedWindow&& rhs) noexcept = default;
Results::CreatedWindow& Results::CreatedWindow::operator=(CreatedWindow&& rhs) noexcept = default;
base::Value::Dict Results::CreatedWindow::ToValue() const {}


base::Value::List Results::Create(const CreatedWindow& created_window) {}
}  // namespace Create

}  // namespace app_window
}  // namespace api
}  // namespace extensions