X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;ds=inline;f=src%2Fivi-compositor.h;h=7b5c18fd6c9292124f57f19ea9d7a06190fc6d82;hb=39ea644837dd29cd47a579a9703b43458187f82b;hp=bc3a81dd5ef69ce84b3dbf0aee26f76632cadb55;hpb=8df7681a823e5e6f7ead5150abf65dd84d05aecd;p=src%2Fagl-compositor.git diff --git a/src/ivi-compositor.h b/src/ivi-compositor.h index bc3a81d..7b5c18f 100644 --- a/src/ivi-compositor.h +++ b/src/ivi-compositor.h @@ -34,6 +34,8 @@ #include #include +#include "remote.h" + #include "agl-shell-server-protocol.h" struct ivi_compositor; @@ -66,6 +68,7 @@ struct ivi_compositor { } cmdline; const struct weston_windowed_output_api *window_api; const struct weston_drm_output_api *drm_api; + const struct weston_remoting_api *remoting_api; struct wl_global *agl_shell; struct wl_global *agl_shell_desktop; @@ -152,10 +155,16 @@ enum ivi_surface_role { IVI_SURFACE_ROLE_REMOTE, }; +struct ivi_bounding_box { + int x; int y; + int width; int height; +}; + struct pending_popup { struct ivi_output *ioutput; char *app_id; int x; int y; + struct ivi_bounding_box bb; struct wl_list link; /** ivi_compositor::popup_pending_surfaces */ }; @@ -190,8 +199,8 @@ struct ivi_background_surface { struct ivi_popup_surface { struct ivi_output *output; - int x; - int y; + int x; int y; /* initial position */ + struct ivi_bounding_box bb; /* bounding box */ }; struct ivi_fullscreen_surface { @@ -327,9 +336,6 @@ ivi_layout_activate(struct ivi_output *output, const char *app_id); void ivi_layout_desktop_committed(struct ivi_surface *surf); -void -ivi_layout_panel_committed(struct ivi_surface *surface); - void ivi_layout_popup_committed(struct ivi_surface *surface); @@ -358,4 +364,11 @@ remove_black_surface(struct ivi_output *output); const char * ivi_layout_get_surface_role_name(struct ivi_surface *surf); +void +ivi_set_pending_desktop_surface_remote(struct ivi_output *ioutput, + const char *app_id); + +struct ivi_output * +ivi_layout_find_with_app_id(const char *app_id, struct ivi_compositor *ivi); + #endif