summaryrefslogtreecommitdiffstats
path: root/src/wm_layer.cpp
diff options
context:
space:
mode:
authorKazumasa Mitsunari <knimitz@witz-inc.co.jp>2018-12-20 10:34:08 +0900
committerKazumasa Mitsunari <knimitz@witz-inc.co.jp>2019-02-12 02:00:41 +0000
commit692208b29ec18373960928bcbfdf4474a1af7b7b (patch)
tree72130f4f8b99e9ba2e5473c1484198e4e9ef91be /src/wm_layer.cpp
parent923df38d358f8971cf16cc78365adb2b45182bc5 (diff)
Introduce changeAreaSize and getAreaList
In CES2019 demo, these features are introduced in demo3. 1. changeAreaSize : change area definition on runtime 2. getAreaList : get area definition list v2. fix merge conflict util.hpp util.cpp Bug-AGL : SPEC-2077 Change-Id: I1fa3c9e3648c69e14a3916cbeeb9775ed94c833a Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
Diffstat (limited to 'src/wm_layer.cpp')
-rw-r--r--src/wm_layer.cpp17
1 files changed, 17 insertions, 0 deletions
diff --git a/src/wm_layer.cpp b/src/wm_layer.cpp
index 294e356..66fb0a2 100644
--- a/src/wm_layer.cpp
+++ b/src/wm_layer.cpp
@@ -36,6 +36,11 @@ LayerState::LayerState()
area2appid()
{}
+const unordered_map<string, string> LayerState::getCurrentState()
+{
+ return this->area2appid;
+}
+
const vector<unsigned> LayerState::getIviIdList()
{
return this->render_order;
@@ -183,6 +188,18 @@ void WMLayer::attachAppToArea(const string& app, const string& area)
this->tmp_state.attachAppToArea(app, area);
}
+string WMLayer::attachedApp(const string& area)
+{
+ string ret;
+ auto list = this->state.getCurrentState();
+ auto app = list.find(area);
+ if(app != list.end())
+ {
+ ret = app->second;
+ }
+ return ret;
+}
+
void WMLayer::appendArea(const string& area)
{
this->area_list.push_back(area);