From 58561703d4053dfd454fe564b59215ce025c4a12 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Fri, 31 Aug 2018 11:42:33 +0900 Subject: Update wm_layer * Set Area when layoutChange * Implement hasRole Change-Id: I684f3bce700d0bb6f4d4a6ef1a3e5242856c192b Signed-off-by: Kazumasa Mitsunari --- src/wm_layer.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/wm_layer.hpp') diff --git a/src/wm_layer.hpp b/src/wm_layer.hpp index 3362ba7..2a5f9bd 100644 --- a/src/wm_layer.hpp +++ b/src/wm_layer.hpp @@ -38,6 +38,9 @@ class LayerState const std::unordered_map popCurrentState(); const std::unordered_map getCurrentState(); const std::vector getIviIdList(); + void addLayer(unsigned layer); + void removeLayer(unsigned layer); + void setArea(const std::string& app, const std::string& area); private: std::vector render_order; @@ -62,9 +65,10 @@ class WMLayer MANAGEMENT_TYPE layerType() { return this->type; } void appendArea(const std::string& area); void removeLayerID(unsigned id); - LayerState getLayerState() const { return before_state; } - WMError setLayerState(const LayerState& l); - bool checkIDBelongTo(unsigned id); + LayerState& getLayerState() { return before_state; } + WMError setLayerState(const LayerState& l); + bool hasLayerID(unsigned id); + bool hasRole(const std::string& role); private: LayerState before_state; LayerState state; -- cgit 1.2.3-korg