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

#ifndef CHROME_COMMON_EXTENSIONS_API_TAB_CAPTURE_H__
#define CHROME_COMMON_EXTENSIONS_API_TAB_CAPTURE_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 tab_capture {

//
// Types
//

enum class TabCaptureState {};


const char* ToString(TabCaptureState as_enum);
TabCaptureState ParseTabCaptureState(std::string_view as_string);
std::u16string GetTabCaptureStateParseError(std::string_view as_string);

struct CaptureInfo {};

struct MediaStreamConstraint {};

struct CaptureOptions {};

struct GetMediaStreamOptions {};


//
// Functions
//

namespace Capture {

struct Params {};

namespace Results {

struct Stream {};


base::Value::List Create(const Stream& stream);
}  // namespace Results

}  // namespace Capture

namespace GetCapturedTabs {

namespace Results {

base::Value::List Create(const std::vector<CaptureInfo>& result);
}  // namespace Results

}  // namespace GetCapturedTabs

namespace GetMediaStreamId {

struct Params {};

namespace Results {

base::Value::List Create(const std::string& stream_id);
}  // namespace Results

}  // namespace GetMediaStreamId

//
// Events
//

namespace OnStatusChanged {

extern const char kEventName[];  // "tabCapture.onStatusChanged"

// CaptureInfo with new capture status for the tab.
base::Value::List Create(const CaptureInfo& info);
}  // namespace OnStatusChanged

}  // namespace tab_capture
}  // namespace api
}  // namespace extensions

#endif  // CHROME_COMMON_EXTENSIONS_API_TAB_CAPTURE_H__