#include "extensions/common/api/virtual_keyboard_private.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"
#include <string_view>
UTF8ToUTF16;
namespace extensions {
namespace api {
namespace virtual_keyboard_private {
const char* ToString(VirtualKeyboardEventType enum_param) { … }
VirtualKeyboardEventType ParseVirtualKeyboardEventType(std::string_view enum_string) { … }
std::u16string GetVirtualKeyboardEventTypeParseError(std::string_view enum_string) { … }
VirtualKeyboardEvent::VirtualKeyboardEvent()
: … { … }
VirtualKeyboardEvent::~VirtualKeyboardEvent() = default;
VirtualKeyboardEvent::VirtualKeyboardEvent(VirtualKeyboardEvent&& rhs) noexcept = default;
VirtualKeyboardEvent& VirtualKeyboardEvent::operator=(VirtualKeyboardEvent&& rhs) noexcept = default;
VirtualKeyboardEvent VirtualKeyboardEvent::Clone() const { … }
bool VirtualKeyboardEvent::Populate(
const base::Value::Dict& dict, VirtualKeyboardEvent& out) { … }
bool VirtualKeyboardEvent::Populate(
const base::Value& value, VirtualKeyboardEvent& out) { … }
std::optional<VirtualKeyboardEvent> VirtualKeyboardEvent::FromValue(const base::Value::Dict& value) { … }
std::optional<VirtualKeyboardEvent> VirtualKeyboardEvent::FromValue(const base::Value& value) { … }
base::Value::Dict VirtualKeyboardEvent::ToValue() const { … }
const char* ToString(KeyboardMode enum_param) { … }
KeyboardMode ParseKeyboardMode(std::string_view enum_string) { … }
std::u16string GetKeyboardModeParseError(std::string_view enum_string) { … }
const char* ToString(KeyboardState enum_param) { … }
KeyboardState ParseKeyboardState(std::string_view enum_string) { … }
std::u16string GetKeyboardStateParseError(std::string_view enum_string) { … }
Bounds::Bounds()
: … { … }
Bounds::~Bounds() = default;
Bounds::Bounds(Bounds&& rhs) noexcept = default;
Bounds& Bounds::operator=(Bounds&& rhs) noexcept = default;
Bounds Bounds::Clone() const { … }
bool Bounds::Populate(
const base::Value::Dict& dict, Bounds& out) { … }
bool Bounds::Populate(
const base::Value& value, Bounds& out) { … }
std::optional<Bounds> Bounds::FromValue(const base::Value::Dict& value) { … }
std::optional<Bounds> Bounds::FromValue(const base::Value& value) { … }
base::Value::Dict Bounds::ToValue() const { … }
KeyboardConfig::KeyboardConfig()
: … { … }
KeyboardConfig::~KeyboardConfig() = default;
KeyboardConfig::KeyboardConfig(KeyboardConfig&& rhs) noexcept = default;
KeyboardConfig& KeyboardConfig::operator=(KeyboardConfig&& rhs) noexcept = default;
KeyboardConfig KeyboardConfig::Clone() const { … }
bool KeyboardConfig::Populate(
const base::Value::Dict& dict, KeyboardConfig& out) { … }
bool KeyboardConfig::Populate(
const base::Value& value, KeyboardConfig& out) { … }
std::optional<KeyboardConfig> KeyboardConfig::FromValue(const base::Value::Dict& value) { … }
std::optional<KeyboardConfig> KeyboardConfig::FromValue(const base::Value& value) { … }
base::Value::Dict KeyboardConfig::ToValue() const { … }
ContainerBehaviorOptions::ContainerBehaviorOptions()
: … { … }
ContainerBehaviorOptions::~ContainerBehaviorOptions() = default;
ContainerBehaviorOptions::ContainerBehaviorOptions(ContainerBehaviorOptions&& rhs) noexcept = default;
ContainerBehaviorOptions& ContainerBehaviorOptions::operator=(ContainerBehaviorOptions&& rhs) noexcept = default;
ContainerBehaviorOptions ContainerBehaviorOptions::Clone() const { … }
bool ContainerBehaviorOptions::Populate(
const base::Value::Dict& dict, ContainerBehaviorOptions& out) { … }
bool ContainerBehaviorOptions::Populate(
const base::Value& value, ContainerBehaviorOptions& out) { … }
std::optional<ContainerBehaviorOptions> ContainerBehaviorOptions::FromValue(const base::Value::Dict& value) { … }
std::optional<ContainerBehaviorOptions> ContainerBehaviorOptions::FromValue(const base::Value& value) { … }
base::Value::Dict ContainerBehaviorOptions::ToValue() const { … }
const char* ToString(DisplayFormat enum_param) { … }
DisplayFormat ParseDisplayFormat(std::string_view enum_string) { … }
std::u16string GetDisplayFormatParseError(std::string_view enum_string) { … }
ClipboardItem::ClipboardItem()
: … { … }
ClipboardItem::~ClipboardItem() = default;
ClipboardItem::ClipboardItem(ClipboardItem&& rhs) noexcept = default;
ClipboardItem& ClipboardItem::operator=(ClipboardItem&& rhs) noexcept = default;
ClipboardItem ClipboardItem::Clone() const { … }
bool ClipboardItem::Populate(
const base::Value::Dict& dict, ClipboardItem& out) { … }
bool ClipboardItem::Populate(
const base::Value& value, ClipboardItem& out) { … }
std::optional<ClipboardItem> ClipboardItem::FromValue(const base::Value::Dict& value) { … }
std::optional<ClipboardItem> ClipboardItem::FromValue(const base::Value& value) { … }
base::Value::Dict ClipboardItem::ToValue() const { … }
namespace InsertText {
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 SendKeyEvent {
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 HideKeyboard {
base::Value::List Results::Create() { … }
}
namespace SetHotrodKeyboard {
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) { … }
}
namespace LockKeyboard {
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) { … }
}
namespace KeyboardLoaded {
base::Value::List Results::Create() { … }
}
namespace GetKeyboardConfig {
base::Value::List Results::Create(const KeyboardConfig& config) { … }
}
namespace OpenSettings {
}
namespace OpenSuggestionSettings {
}
namespace SetContainerBehavior {
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 success) { … }
}
namespace SetDraggableArea {
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) { … }
}
namespace SetKeyboardState {
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) { … }
}
namespace SetOccludedBounds {
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) { … }
}
namespace SetHitTestBounds {
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) { … }
}
namespace SetAreaToRemainOnScreen {
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) { … }
}
namespace SetWindowBoundsInScreen {
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) { … }
}
namespace GetClipboardHistory {
Params::Options::Options()
{ … }
Params::Options::~Options() = default;
Params::Options::Options(Options&& rhs) noexcept = default;
Params::Options& Params::Options::operator=(Options&& rhs) noexcept = default;
Params::Options Params::Options::Clone() const { … }
bool Params::Options::Populate(
const base::Value::Dict& dict, Options& out) { … }
bool Params::Options::Populate(
const base::Value& value, Options& out) { … }
std::optional<Params::Options> Params::Options::FromValue(const base::Value::Dict& value) { … }
std::optional<Params::Options> Params::Options::FromValue(const base::Value& value) { … }
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 std::vector<ClipboardItem>& clipboard_history) { … }
}
namespace PasteClipboardItem {
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) { … }
}
namespace DeleteClipboardItem {
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) { … }
}
namespace OnBoundsChanged {
const char kEventName[] = …;
base::Value::List Create(const Bounds& bounds) { … }
}
namespace OnKeyboardClosed {
const char kEventName[] = …;
base::Value::List Create() { … }
}
namespace OnKeyboardConfigChanged {
const char kEventName[] = …;
base::Value::List Create(const KeyboardConfig& config) { … }
}
namespace OnClipboardHistoryChanged {
const char kEventName[] = …;
base::Value::List Create(const std::vector<std::string>& item_ids) { … }
}
namespace OnClipboardItemUpdated {
const char kEventName[] = …;
base::Value::List Create(const ClipboardItem& clipboard_history_item) { … }
}
namespace OnColorProviderChanged {
const char kEventName[] = …;
base::Value::List Create() { … }
}
}
}
}