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

#include "chrome/common/extensions/api/windows.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 "chrome/common/extensions/api/tabs.h"


UTF8ToUTF16;

namespace extensions {
namespace api {
namespace windows {
//
// Properties
//

const int WINDOW_ID_NONE =;

const int WINDOW_ID_CURRENT =;

//
// Types
//

const char* ToString(WindowType enum_param) {}

WindowType ParseWindowType(std::string_view enum_string) {}

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


const char* ToString(WindowState enum_param) {}

WindowState ParseWindowState(std::string_view enum_string) {}

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


Window::Window()
:{}

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

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

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

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

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

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


const char* ToString(CreateType enum_param) {}

CreateType ParseCreateType(std::string_view enum_string) {}

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


QueryOptions::QueryOptions()
 {}

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

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

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

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

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

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



//
// Functions
//

namespace Get {

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 Window& window) {}
}  // namespace Get

namespace GetCurrent {

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 Window& window) {}
}  // namespace GetCurrent

namespace GetLastFocused {

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 Window& window) {}
}  // namespace GetLastFocused

namespace GetAll {

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::vector<Window>& windows) {}
}  // namespace GetAll

namespace Create {

Params::CreateData::Url::Url()
 {}

Params::CreateData::Url::~Url() = default;
Params::CreateData::Url::Url(Url&& rhs) noexcept = default;
Params::CreateData::Url& Params::CreateData::Url::operator=(Url&& rhs) noexcept = default;
Params::CreateData::Url Params::CreateData::Url::Clone() const {}

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

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



Params::CreateData::CreateData()
:{}

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

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

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

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

// static
std::optional<Params::CreateData> Params::CreateData::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) {}


base::Value::List Results::Create(const Window& window) {}
}  // namespace Create

namespace Update {

Params::UpdateInfo::UpdateInfo()
:{}

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

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

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

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

// static
std::optional<Params::UpdateInfo> Params::UpdateInfo::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) {}


base::Value::List Results::Create(const Window& window) {}
}  // namespace Update

namespace Remove {

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 Remove

//
// Events
//

namespace OnCreated {

const char kEventName[] =;

base::Value::List Create(const Window& window) {}

}  // namespace OnCreated

namespace OnRemoved {

const char kEventName[] =;

base::Value::List Create(int window_id) {}

}  // namespace OnRemoved

namespace OnFocusChanged {

const char kEventName[] =;

base::Value::List Create(int window_id) {}

}  // namespace OnFocusChanged

namespace OnBoundsChanged {

const char kEventName[] =;

base::Value::List Create(const Window& window) {}

}  // namespace OnBoundsChanged

}  // namespace windows
}  // namespace api
}  // namespace extensions