X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fwindow_manager.hpp;h=6cbd355c51a902d1f161ea18c3f5192c2e0c9321;hb=254b0c2d399ba730a673a2073f5bef76562b6a07;hp=7f9a3b825956e2c9c1b5374268ee7dfc888aa7e4;hpb=3d1703f9a5c9d6a356b561ea7528c70a1dc4fe2d;p=apps%2Fagl-service-windowmanager-2017.git diff --git a/src/window_manager.hpp b/src/window_manager.hpp index 7f9a3b8..6cbd355 100644 --- a/src/window_manager.hpp +++ b/src/window_manager.hpp @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef WINDOW_MANAGER_HPP -#define WINDOW_MANAGER_HPP +#ifndef TMCAGLWM_APP_HPP +#define TMCAGLWM_APP_HPP #include #include @@ -25,6 +25,7 @@ #include "layers.hpp" #include "layout.hpp" #include "wayland_ivi_wm.hpp" +#include "pm_wrapper.hpp" #include "hmi-debug.h" #include "request.hpp" #include "wm_error.hpp" @@ -65,6 +66,7 @@ extern const char kKeyWidthPixel[]; extern const char kKeyHeightPixel[]; extern const char kKeyWidthMm[]; extern const char kKeyHeightMm[]; +extern const char kKeyScale[]; extern const char kKeyIds[]; struct id_allocator @@ -226,8 +228,11 @@ class WindowManager void removeClient(const std::string &appid); void exceptionProcessForTransition(); const char* convertRoleOldToNew(char const *role); + // Do not use this function void timerHandler(); + void startTransitionWrapper(std::vector &actions); + void processError(WMError error); private: bool pop_pending_events(); @@ -254,13 +259,11 @@ class WindowManager WMError doTransition(unsigned sequence_number); WMError checkPolicy(unsigned req_num); WMError startTransition(unsigned req_num); - WMError setInvisibleTask(const std::string &role, bool split); WMError doEndDraw(unsigned req_num); WMError layoutChange(const WMAction &action); WMError visibilityChange(const WMAction &action); WMError setSurfaceSize(unsigned surface, const std::string& area); - WMError changeCurrentState(unsigned req_num); void emitScreenUpdated(unsigned req_num); void setTimer(); @@ -271,16 +274,16 @@ class WindowManager const char *check_surface_exist(const char *role); - bool can_split(struct LayoutState const &state, int new_id); - private: std::unordered_map area2size; std::unordered_map roleold2new; std::unordered_map rolenew2old; + PMWrapper pmw; + static const char* kDefaultOldRoleDb; }; } // namespace wm -#endif // WINDOW_MANAGER_HPP +#endif // TMCAGLWM_APP_HPP