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

#ifndef CHROME_COMMON_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_H__
#define CHROME_COMMON_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_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 braille_display_private {

//
// Types
//

// Braille display keyboard command.
enum class KeyCommand {};


const char* ToString(KeyCommand as_enum);
KeyCommand ParseKeyCommand(std::string_view as_string);
std::u16string GetKeyCommandParseError(std::string_view as_string);

struct KeyEvent {};

struct DisplayState {};


//
// Functions
//

namespace GetDisplayState {

namespace Results {

base::Value::List Create(const DisplayState& result);
}  // namespace Results

}  // namespace GetDisplayState

namespace WriteDots {

struct Params {};

}  // namespace WriteDots

namespace UpdateBluetoothBrailleDisplayAddress {

struct Params {};

}  // namespace UpdateBluetoothBrailleDisplayAddress

//
// Events
//

namespace OnDisplayStateChanged {

extern const char kEventName[];  // "brailleDisplayPrivate.onDisplayStateChanged"

base::Value::List Create(const DisplayState& state);
}  // namespace OnDisplayStateChanged

namespace OnKeyEvent {

extern const char kEventName[];  // "brailleDisplayPrivate.onKeyEvent"

base::Value::List Create(const KeyEvent& event);
}  // namespace OnKeyEvent

}  // namespace braille_display_private
}  // namespace api
}  // namespace extensions

#endif  // CHROME_COMMON_EXTENSIONS_API_BRAILLE_DISPLAY_PRIVATE_H__