X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Fwindow_manager.hpp;h=30881111c59274152c3737507c12cef23f0c7fe7;hb=838d50406889ecd96271153ed9ec3a8160bcfe16;hp=6cbd355c51a902d1f161ea18c3f5192c2e0c9321;hpb=c1d85371b1eb693128cf9553c356ea77e609d9a3;p=apps%2Fagl-service-windowmanager.git diff --git a/src/window_manager.hpp b/src/window_manager.hpp index 6cbd355..3088111 100644 --- a/src/window_manager.hpp +++ b/src/window_manager.hpp @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef TMCAGLWM_APP_HPP -#define TMCAGLWM_APP_HPP +#ifndef WINDOW_MANAGER_HPP +#define WINDOW_MANAGER_HPP #include #include @@ -29,6 +29,7 @@ #include "hmi-debug.h" #include "request.hpp" #include "wm_error.hpp" +#include "wm_layer_control.hpp" struct json_object; @@ -212,6 +213,7 @@ class WindowManager result api_request_surface(char const *appid, char const *role); char const *api_request_surface(char const *appid, char const *role, char const *ivi_id); + bool api_set_role(char const *appid, char const *role, unsigned pid); void api_activate_surface(char const *appid, char const *role, char const *drawing_area, const reply_func &reply); void api_deactivate_surface(char const *appid, char const *role, const reply_func &reply); void api_enddraw(char const *appid, char const *role); @@ -224,6 +226,7 @@ class WindowManager // Events from the compositor we are interested in void surface_created(uint32_t surface_id); void surface_removed(uint32_t surface_id); + void surface_properties(uint32_t surface_id, uint32_t pid); void removeClient(const std::string &appid); void exceptionProcessForTransition(); @@ -278,7 +281,7 @@ class WindowManager std::unordered_map area2size; std::unordered_map roleold2new; std::unordered_map rolenew2old; - + std::shared_ptr lm; PMWrapper pmw; static const char* kDefaultOldRoleDb; @@ -286,4 +289,4 @@ class WindowManager } // namespace wm -#endif // TMCAGLWM_APP_HPP +#endif // WINDOW_MANAGER_HPP