Update autobuild script to create new targets
[apps/agl-service-windowmanager.git] / src / wm_layer_control.hpp
index 25d71fd..e675e12 100644 (file)
@@ -1,5 +1,6 @@
 /*
  * Copyright (c) 2017 TOYOTA MOTOR CORPORATION
+ * Copyright (c) 2019 Konsulko Group
  *
  * Licensed under the Apache License, Version 2.0 (the "License");
  * you may not use this file except in compliance with the License.
@@ -63,8 +64,8 @@ class LayerControl
     explicit LayerControl(const std::string& root);
     ~LayerControl() = default;
     WMError init(const LayerControlCallbacks& cb);
-    void createNewLayer(unsigned id);
-    unsigned getNewLayerID(const std::string& role);
+    void createNewLayer(unsigned id, bool remote = false);
+    unsigned getNewLayerID(const std::string& role, std::string* layer_name = nullptr);
     std::shared_ptr<WMLayer> getWMLayer(unsigned layer);
     std::shared_ptr<WMLayer> getWMLayer(std::string layer_name);
     struct rect getAreaSize(const std::string& area);
@@ -76,6 +77,10 @@ class LayerControl
     void undoUpdate();
     WMError layoutChange(const WMAction& action);
     WMError visibilityChange(const WMAction &action);
+    const std::unordered_map<std::string, struct rect>& getAreaList() {return this->area2size;}
+    WMError updateAreaList(const ChangeAreaReq& req);
+    WMError getUpdateAreaList(ChangeAreaReq* req);
+    WMError changeAreaSize(std::shared_ptr<WMClient> client, const std::string& area);
     void appTerminated(const std::shared_ptr<WMClient> client);
 
     // Don't use this function.
@@ -95,6 +100,7 @@ class LayerControl
     std::unordered_map<unsigned, unsigned> lid2wmlid;
     std::unordered_map<std::string, struct rect> area2size;
     unsigned screenID;
+    signed remoteScreenID;
     struct ilmScreenProperties screen_prop;
     double scaling;
     int offset_x;
@@ -102,4 +108,4 @@ class LayerControl
     LayerControlCallbacks cb;
 };
 
-} // namespace wm
\ No newline at end of file
+} // namespace wm