X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwm_client.hpp;h=fc171f492f6c21e3d6902b2d4a5aeb7afdb64a0d;hb=f7536d2b6ff552e7c4849b36d9b6e140c5b1b9aa;hp=7e92ed5459cac682dd87109b1f77ede356a3347d;hpb=010ca3f3459a52e44deb5e70e94e9cd394814e3e;p=apps%2Fagl-service-windowmanager.git diff --git a/src/wm_client.hpp b/src/wm_client.hpp index 7e92ed5..fc171f4 100644 --- a/src/wm_client.hpp +++ b/src/wm_client.hpp @@ -52,8 +52,15 @@ class WMClient std::string role() const; unsigned layerID() const; unsigned surfaceID() const; + // void setRole(const std::string& role); + // void appendRole(const std::string& role); WMError addSurface(unsigned surface); bool removeSurfaceIfExist(unsigned surface); + // bool removeRole(const std::string& role); + std::vector renderOrder() const; + WMError setRenderOrder(const std::vector& order); + std::string attachTmpServiceSurface(const std::string& from, const std::string& service_surface); + WMError attachServiceSurface(const std::string& service_surface, unsigned surface); #if GTEST_ENABLED bool subscribe(afb_req req, const std::string &event_name); @@ -69,12 +76,15 @@ class WMClient std::string area; unsigned surface; // currently, main application has only one surface. //std::vector role_list; + std::vector surface_render_order; + std::unordered_map service2surfaces; std::unordered_map role2surface; + std::unordered_map service2supplier; #if GTEST_ENABLED // This is for unit test. afb_make_event occurs sig11 if call not in afb-binding - std::unordered_map event2list; + std::unordered_map evname2afb_event; #else - std::unordered_map evname2list; + std::unordered_map evname2afb_event; #endif }; } // namespace wm