summaryrefslogtreecommitdiff
path: root/WindowServer/WSMenuBar.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-14 10:49:59 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-14 10:49:59 +0100
commit2733a788ebe0d9cac08f6ca489a221b69a4136c5 (patch)
treec253bd50961f9c5843a0369e0113f52e599d320c /WindowServer/WSMenuBar.h
parent7723c06f27c514e1f7cc6200a490d465858d28b5 (diff)
downloadserenity-2733a788ebe0d9cac08f6ca489a221b69a4136c5.zip
WindowServer: Make MenuBar unaware of Process.
Diffstat (limited to 'WindowServer/WSMenuBar.h')
-rw-r--r--WindowServer/WSMenuBar.h8
1 files changed, 3 insertions, 5 deletions
diff --git a/WindowServer/WSMenuBar.h b/WindowServer/WSMenuBar.h
index 285aa8d067..da209e9b9d 100644
--- a/WindowServer/WSMenuBar.h
+++ b/WindowServer/WSMenuBar.h
@@ -5,15 +5,13 @@
#include <AK/Weakable.h>
#include <AK/WeakPtr.h>
-class Process;
-
class WSMenuBar : public Weakable<WSMenuBar> {
public:
- WSMenuBar(int menubar_id, Process&);
+ WSMenuBar(int client_id, int menubar_id);
~WSMenuBar();
+ int client_id() const { return m_client_id; }
int menubar_id() const { return m_menubar_id; }
- const Process* process() const { return m_process.ptr(); }
void add_menu(WSMenu* menu) { m_menus.append(menu); }
template<typename Callback>
@@ -26,7 +24,7 @@ public:
}
private:
+ int m_client_id { 0 };
int m_menubar_id { 0 };
- WeakPtr<Process> m_process;
Vector<WSMenu*> m_menus;
};