chromium/out/Default/gen/extensions/common/api/offscreen.h

// 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/offscreen.idl
// by tools/json_schema_compiler.
// DO NOT EDIT.

#ifndef EXTENSIONS_COMMON_API_OFFSCREEN_H__
#define EXTENSIONS_COMMON_API_OFFSCREEN_H__

#include <stdint.h>

#include <map>
#include <memory>
#include <optional>
#include <string>
#include <vector>

#include "base/values.h"
#include <string_view>


namespace extensions {
namespace api {
namespace offscreen {

//
// Types
//

enum class Reason {};


const char* ToString(Reason as_enum);
Reason ParseReason(std::string_view as_string);
std::u16string GetReasonParseError(std::string_view as_string);

struct CreateParameters {};


//
// Functions
//

namespace CreateDocument {

struct Params {};

namespace Results {

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

}  // namespace CreateDocument

namespace CloseDocument {

namespace Results {

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

}  // namespace CloseDocument

namespace HasDocument {

namespace Results {

base::Value::List Create(bool result);
}  // namespace Results

}  // namespace HasDocument

}  // namespace offscreen
}  // namespace api
}  // namespace extensions

#endif  // EXTENSIONS_COMMON_API_OFFSCREEN_H__