#include "components/dbus/menu/menu_property_list.h"
#include <string>
#include <utility>
#include "base/containers/contains.h"
#include "base/memory/ref_counted_memory.h"
#include "base/strings/utf_string_conversions.h"
#include "build/build_config.h"
#include "ui/base/accelerators/accelerator.h"
#include "ui/base/accelerators/menu_label_accelerator_util_linux.h"
#include "ui/base/models/image_model.h"
#include "ui/base/models/menu_model.h"
#include "ui/gfx/image/image.h"
#if BUILDFLAG(IS_OZONE)
#include "ui/ozone/public/ozone_platform.h"
#include "ui/ozone/public/platform_menu_utils.h"
#endif
namespace {
std::string ToDBusKeySym(ui::KeyboardCode code) { … }
std::vector<DbusString> GetDbusMenuShortcut(ui::Accelerator accelerator) { … }
}
MenuItemProperties ComputeMenuPropertiesForMenuItem(ui::MenuModel* menu,
size_t i) { … }
void ComputeMenuPropertyChanges(const MenuItemProperties& old_properties,
const MenuItemProperties& new_properties,
MenuPropertyList* item_updated_props,
MenuPropertyList* item_removed_props) { … }