X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fwm_client.hpp;h=53383fb676b61c9c2c5994b65e332fdeb9a1eba3;hb=7ca956bddffa9b251fc9df88a07c49a78e83a379;hp=7e92ed5459cac682dd87109b1f77ede356a3347d;hpb=010ca3f3459a52e44deb5e70e94e9cd394814e3e;p=apps%2Fagl-service-windowmanager.git diff --git a/src/wm_client.hpp b/src/wm_client.hpp index 7e92ed5..53383fb 100644 --- a/src/wm_client.hpp +++ b/src/wm_client.hpp @@ -24,7 +24,6 @@ extern "C" { -#define AFB_BINDING_VERSION 2 #include } @@ -52,11 +51,14 @@ class WMClient std::string role() const; unsigned layerID() const; unsigned surfaceID() const; + void registerSurface(unsigned surface); WMError addSurface(unsigned surface); + bool isSourceSizeSet(); + void setSurfaceSizeCorrectly(); bool removeSurfaceIfExist(unsigned surface); #if GTEST_ENABLED - bool subscribe(afb_req req, const std::string &event_name); + bool subscribe(afb_req_t req, const std::string &event_name); void emitError(WM_CLIENT_ERROR_EVENT ev); #endif @@ -65,6 +67,7 @@ class WMClient private: std::string id; unsigned layer; + bool is_source_set; std::string main_role; std::string area; unsigned surface; // currently, main application has only one surface. @@ -74,9 +77,9 @@ class WMClient // This is for unit test. afb_make_event occurs sig11 if call not in afb-binding std::unordered_map event2list; #else - std::unordered_map evname2list; + std::unordered_map evname2list; #endif }; } // namespace wm -#endif \ No newline at end of file +#endif