summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
66318ae)
This API is not used anymore
Change-Id: Iee66afbeb2782dc5f4ce24f4af3e4486f8b14fca
Signed-off-by: Kazumasa Mitsunari <knimitz@witz-inc.co.jp>
if (state.main == -1)
{
HMI_DEBUG("wm", "Layout: %s", kNameLayoutNormal);
if (state.main == -1)
{
HMI_DEBUG("wm", "Layout: %s", kNameLayoutNormal);
- //state = LayoutState{*surface_id};
- /* this->try_layout(
- state, LayoutState{*surface_id}, [&](LayoutState const &nl) {
- HMI_DEBUG("wm", "Layout: %s", kNameLayoutNormal);
- //this->surface_set_layout(*surface_id);
- state = nl;
-
- //compositor::rect area_rect = this->area_info[*surface_id];
- }); */
-void App::try_layout(struct LayoutState & /*state*/,
- struct LayoutState const &new_layout,
- std::function<void(LayoutState const &nl)> apply)
-{
- if (this->policy.layout_is_valid(new_layout))
- {
- apply(new_layout);
- }
-}
-
/**
* controller_hooks
*/
/**
* controller_hooks
*/
WMError setSurfaceSize(unsigned surface, const std::string& area);
WMError changeCurrentState(unsigned req_num);
WMError setSurfaceSize(unsigned surface, const std::string& area);
WMError changeCurrentState(unsigned req_num);
void stopTimer();
void processNextRequest();
void stopTimer();
void processNextRequest();
void deactivate(int id);
bool can_split(struct LayoutState const &state, int new_id);
void deactivate(int id);
bool can_split(struct LayoutState const &state, int new_id);
- void try_layout(struct LayoutState &state,
- struct LayoutState const &new_layout,
- std::function<void(LayoutState const &nl)> apply);
private:
std::unordered_map<std::string, struct compositor::rect> area2size;
private:
std::unordered_map<std::string, struct compositor::rect> area2size;