#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 {
Alarm::Alarm()
: … { … }
Alarm::~Alarm() = default;
Alarm::Alarm(Alarm&& rhs) noexcept = default;
Alarm& Alarm::operator=(Alarm&& rhs) noexcept = default;
Alarm Alarm::Clone() const { … }
bool Alarm::Populate(
const base::Value::Dict& dict, Alarm& out) { … }
bool Alarm::Populate(
const base::Value& value, Alarm& out) { … }
std::optional<Alarm> Alarm::FromValue(const base::Value::Dict& value) { … }
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 { … }
bool AlarmCreateInfo::Populate(
const base::Value::Dict& dict, AlarmCreateInfo& out) { … }
bool AlarmCreateInfo::Populate(
const base::Value& value, AlarmCreateInfo& out) { … }
std::optional<AlarmCreateInfo> AlarmCreateInfo::FromValue(const base::Value::Dict& value) { … }
std::optional<AlarmCreateInfo> AlarmCreateInfo::FromValue(const base::Value& value) { … }
base::Value::Dict AlarmCreateInfo::ToValue() const { … }
namespace Create {
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 Get {
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 Alarm& alarm) { … }
}
namespace GetAll {
base::Value::List Results::Create(const std::vector<Alarm>& alarms) { … }
}
namespace Clear {
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 was_cleared) { … }
}
namespace ClearAll {
base::Value::List Results::Create(bool was_cleared) { … }
}
namespace OnAlarm {
const char kEventName[] = …;
base::Value::List Create(const Alarm& alarm) { … }
}
}
}
}