summaryrefslogtreecommitdiff
path: root/WindowServer/WSWindowManager.h
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-02-12 11:53:45 +0100
committerAndreas Kling <awesomekling@gmail.com>2019-02-12 11:53:45 +0100
commitc61f9eba61a7ec49e74026bf9c78a4e09ff1d4e3 (patch)
tree5412c6bd73b473b4841fdd3346c8dae37faa295a /WindowServer/WSWindowManager.h
parent111589a5581d4bddce84ccb1ea7587b03dd55d98 (diff)
downloadserenity-c61f9eba61a7ec49e74026bf9c78a4e09ff1d4e3.zip
WindowServer: Add a WSWindowType enum.
So far there's only Normal and Menu. Maybe we'll need more later.
Diffstat (limited to 'WindowServer/WSWindowManager.h')
-rw-r--r--WindowServer/WSWindowManager.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/WindowServer/WSWindowManager.h b/WindowServer/WSWindowManager.h
index 3a3adb2ecd..3b93877281 100644
--- a/WindowServer/WSWindowManager.h
+++ b/WindowServer/WSWindowManager.h
@@ -10,6 +10,7 @@
#include <AK/HashMap.h>
#include "WSMessageReceiver.h"
#include "WSMenuBar.h"
+#include <WindowServer/WSWindowType.h>
class WSScreen;
class WSMenuBar;
@@ -75,7 +76,7 @@ private:
void handle_close_button_mouse_event(WSWindow&, WSMouseEvent&);
void set_active_window(WSWindow*);
-
+ template<typename Callback> void for_each_visible_window_of_type(WSWindowType, Callback);
template<typename Callback> void for_each_active_menubar_menu(Callback);
void close_current_menu();
WSMenu& create_menu(String&& name);