chromium/ui/events/ozone/layout/xkb/xkb_modifier_converter.cc

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ui/events/ozone/layout/xkb/xkb_modifier_converter.h"

#include <xkbcommon/xkbcommon-names.h>
#include <xkbcommon/xkbcommon.h>

#include <algorithm>
#include <string_view>
#include <utility>

#include "base/ranges/algorithm.h"
#include "ui/events/event_constants.h"

namespace ui {
namespace {

// Mapping from ui::EventFlags to XKB modifier names.
constexpr struct {} kFlags[] =;

}  // namespace

XkbModifierConverter::XkbModifierConverter(std::vector<std::string> names)
    :{}

XkbModifierConverter::XkbModifierConverter(XkbModifierConverter&& other) =
    default;

XkbModifierConverter& XkbModifierConverter::operator=(
    XkbModifierConverter&& other) = default;

XkbModifierConverter::~XkbModifierConverter() = default;

// static
XkbModifierConverter XkbModifierConverter::CreateFromKeymap(
    xkb_keymap* keymap) {}

xkb_mod_mask_t XkbModifierConverter::MaskFromNames(
    const std::vector<std::string_view>& names) const {}

xkb_mod_mask_t XkbModifierConverter::MaskFromUiFlags(int flags) const {}

int XkbModifierConverter::UiFlagsFromMask(xkb_mod_mask_t mask) const {}

xkb_mod_mask_t XkbModifierConverter::MaskFromName(std::string_view name) const {}

}  // namespace ui