blob: a082768de1699c4f392ee4692428aba0cd2fbafc [file] [log] [blame]
// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include <string>
#include "base/component_export.h"
#include "ui/events/keycodes/keyboard_codes_posix.h"
namespace ui {
enum class DomCode;
// Platform-specific functions related to menus.
class COMPONENT_EXPORT(OZONE_BASE) PlatformMenuUtils {
PlatformMenuUtils(const PlatformMenuUtils&) = delete;
PlatformMenuUtils& operator=(const PlatformMenuUtils&) = delete;
virtual ~PlatformMenuUtils();
// Returns a bitmask of EventFlags showing the state of Alt, Shift and Ctrl
// keys that came with the most recent UI event.
virtual int GetCurrentKeyModifiers() const;
// Converts the keyboard code into a keysym label compatible with DBus menu
// protocol.
virtual std::string ToDBusKeySym(KeyboardCode code) const;
} // namespace ui