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

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

UTF8ToUTF16;

namespace extensions {
namespace api {
namespace alarms {
//
// Types
//

Alarm::Alarm()
:{}

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

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

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

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

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

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


AlarmCreateInfo::AlarmCreateInfo()
 {}

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

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

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

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

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

base::Value::Dict AlarmCreateInfo::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) {}


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

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 Alarm& alarm) {}
}  // namespace Get

namespace GetAll {

base::Value::List Results::Create(const std::vector<Alarm>& alarms) {}
}  // namespace GetAll

namespace Clear {

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 was_cleared) {}
}  // namespace Clear

namespace ClearAll {

base::Value::List Results::Create(bool was_cleared) {}
}  // namespace ClearAll

//
// Events
//

namespace OnAlarm {

const char kEventName[] =;

base::Value::List Create(const Alarm& alarm) {}

}  // namespace OnAlarm

}  // namespace alarms
}  // namespace api
}  // namespace extensions