X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwindow_manager.hpp;h=546e771235a572f2b67a9d412600ad4ddfbcb8d2;hb=03a040ad80c40cca33b0dc21e50bddf7d72689c1;hp=f3b3c64d391016589f2b45f77e76ce25827cf9da;hpb=ffcfd15b087f7104f87aa2b30b76058a1bcfb1f4;p=apps%2Fagl-service-windowmanager.git diff --git a/src/window_manager.hpp b/src/window_manager.hpp index f3b3c64..546e771 100644 --- a/src/window_manager.hpp +++ b/src/window_manager.hpp @@ -21,10 +21,6 @@ #include #include #include -#include "controller_hooks.hpp" -//#include "layers.hpp" -// #include "layout.hpp" -//#include "wayland_ivi_wm.hpp" #include "result.hpp" #include "pm_wrapper.hpp" #include "util.hpp" @@ -38,16 +34,6 @@ extern "C" struct json_object; -namespace wl -{ -struct display; -} - -namespace compositor -{ -struct controller; -} - namespace wm { @@ -187,14 +173,12 @@ class WindowManager void api_enddraw(char const *appid, char const *role); result api_get_display_info(); result api_get_area_info(char const *role); - void api_ping(); void send_event(char const *evname, char const *label); void send_event(char const *evname, char const *label, char const *area, int x, int y, int w, int h); // 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(); @@ -217,10 +201,6 @@ class WindowManager std::map map_afb_event; private: - int init_layers(); - void surface_set_layout(int surface_id, const std::string& area = ""); - void layout_commit(); - // WM Events to clients void emit_activated(char const *label); void emit_deactivated(char const *label); @@ -239,9 +219,6 @@ class WindowManager WMError startTransition(unsigned req_num); WMError doEndDraw(unsigned req_num); - WMError layoutChange(const WMAction &action); - WMError visibilityChange(const WMAction &action); - WMError setSurfaceSize(unsigned surface, const std::string& area); void emitScreenUpdated(unsigned req_num); void setTimer(); @@ -253,19 +230,17 @@ class WindowManager const char *check_surface_exist(const char *role); private: - std::unordered_map area2size; std::unordered_map roleold2new; std::unordered_map rolenew2old; std::shared_ptr lc; PMWrapper pmw; - struct controller_hooks chooks; // ID allocation and proxy methods for lookup struct id_allocator id_alloc; // Surface are info (x, y, w, h) rect_map area_info; // FOR CES DEMO - std::vector surface_bg; + std::unordered_map tmp_surface2app; static const char* kDefaultOldRoleDb; };