summaryrefslogtreecommitdiff
path: root/LibGUI/GMenuBar.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-11 15:37:12 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-11 15:37:12 +0100
commit757429fb5582d6865fce301433821822493fe195 (patch)
tree658579d8f215081a566841ff8e6b176fb7970a09 /LibGUI/GMenuBar.h
parentc75ecaae322910e0100cce90a26a47538710219d (diff)
downloadserenity-757429fb5582d6865fce301433821822493fe195.zip
LibGUI: More work on client-side menus.
Diffstat (limited to 'LibGUI/GMenuBar.h')
-rw-r--r--LibGUI/GMenuBar.h11
1 files changed, 10 insertions, 1 deletions
diff --git a/LibGUI/GMenuBar.h b/LibGUI/GMenuBar.h
index f9263226ab..011a70f596 100644
--- a/LibGUI/GMenuBar.h
+++ b/LibGUI/GMenuBar.h
@@ -1,13 +1,22 @@
#pragma once
#include <LibGUI/GMenu.h>
+#include <AK/Badge.h>
+#include <AK/OwnPtr.h>
#include <AK/Vector.h>
+class GApplication;
+
class GMenuBar {
public:
GMenuBar();
~GMenuBar();
+ void add_menu(OwnPtr<GMenu>&&);
+
+ void notify_added_to_application(Badge<GApplication>);
+ void notify_removed_from_application(Badge<GApplication>);
+
private:
- Vector<GMenu> m_menus;
+ Vector<OwnPtr<GMenu>> m_menus;
};