X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fapp.hpp;h=a6608e0d3961dfe3dee7532a45f2073ced80ee2e;hb=c4d50e105fd1204bdf6cac88300d667c1af3d682;hp=e2f8d44eb46b7735b8f000d2fe3f3ced59d84ac4;hpb=91a38260c68db9cf9732a905680523bba820079d;p=apps%2Fagl-service-windowmanager.git diff --git a/src/app.hpp b/src/app.hpp index e2f8d44..a6608e0 100644 --- a/src/app.hpp +++ b/src/app.hpp @@ -234,6 +234,7 @@ struct App void surface_removed(uint32_t surface_id); void removeClient(const std::string &appid); + void exeptionProcessForTransition(); bool subscribeEventForApp(const std::string &appid, afb_req req, const std::string &evname); // Do not use this function //static int processTimerHandler(sd_event_source *s, uint64_t usec, void *userdata); @@ -250,7 +251,7 @@ struct App int init_layers(); - void surface_set_layout(int surface_id, optional sub_surface_id = nullopt); + void surface_set_layout(int surface_id, const std::string& area = ""); void layout_commit(); // TMC WM Events to clients @@ -274,17 +275,17 @@ struct App WMError layoutChange(const WMAction &action); WMError visibilityChange(const WMAction &action); WMError setSurfaceSize(unsigned surface, const std::string& area); + WMError changeCurrentState(unsigned req_num); - void setTimer(); + void + setTimer(); void stopTimer(); void processNextRequest(); - //void currentAppInvisible(const std::string &role); const char *check_surface_exist(const char *drawing_name); void activate(int id); void deactivate(int id); - void deactivate_main_surface(); bool can_split(struct LayoutState const &state, int new_id); void try_layout(struct LayoutState &state, @@ -293,10 +294,7 @@ struct App // The following function is temporary. // Then will be removed when layermanager is finished - //void lm_layout_change(const char *drawing_name); - //WMError lm_layout_change(const struct WMAction &action); WMError lm_release(const struct WMAction &action); - //void lm_enddraw(const char *drawing_name); private: std::unordered_map area2size;