#include "chrome/browser/ui/views/frame/dbus_appmenu_registrar.h"
#include "base/check_op.h"
#include "base/containers/contains.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/no_destructor.h"
#include "base/notreached.h"
#include "chrome/browser/ui/views/frame/dbus_appmenu.h"
#include "components/dbus/thread_linux/dbus_thread_linux.h"
#include "dbus/bus.h"
#include "dbus/message.h"
#include "dbus/object_path.h"
#include "dbus/object_proxy.h"
namespace {
const char kAppMenuRegistrarName[] = …;
const char kAppMenuRegistrarPath[] = …;
const char kAppMenuRegistrarInterface[] = …;
}
DbusAppmenuRegistrar* DbusAppmenuRegistrar::GetInstance() { … }
void DbusAppmenuRegistrar::OnMenuBarCreated(DbusAppmenu* menu) { … }
void DbusAppmenuRegistrar::OnMenuBarDestroyed(DbusAppmenu* menu) { … }
DbusAppmenuRegistrar::DbusAppmenuRegistrar() { … }
void DbusAppmenuRegistrar::InitializeMenu(DbusAppmenu* menu) { … }
void DbusAppmenuRegistrar::RegisterMenu(DbusAppmenu* menu) { … }
void DbusAppmenuRegistrar::OnMenuInitialized(DbusAppmenu* menu, bool success) { … }
void DbusAppmenuRegistrar::OnNameOwnerChanged(
const std::string& service_owner) { … }