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

#ifndef EXTENSIONS_COMMON_API_APP_WINDOW_H__
#define EXTENSIONS_COMMON_API_APP_WINDOW_H__

#include <stdint.h>

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

#include "base/values.h"
#include <string_view>
#include "extensions/common/api/app_runtime.h"


namespace extensions {
namespace api {
namespace app_window {

//
// Types
//

struct ContentBounds {};

struct BoundsSpecification {};

struct Bounds {};

struct FrameOptions {};

// State of a window: normal, fullscreen, maximized, minimized.
enum class State {};


const char* ToString(State as_enum);
State ParseState(std::string_view as_string);
std::u16string GetStateParseError(std::string_view as_string);

// Specifies the type of window to create.
enum class WindowType {};


const char* ToString(WindowType as_enum);
WindowType ParseWindowType(std::string_view as_string);
std::u16string GetWindowTypeParseError(std::string_view as_string);

struct CreateWindowOptions {};

struct AppWindow {};


//
// Functions
//

namespace Create {

struct Params {};

namespace Results {

struct CreatedWindow {};


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

}  // namespace Create

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

#endif  // EXTENSIONS_COMMON_API_APP_WINDOW_H__