From: SooChan Lim Date: Fri, 23 Dec 2022 07:33:14 +0000 (+0900) Subject: tizen_policy: specify the descrption of the tizen_policy interface X-Git-Tag: submit/tizen/20230209.084950~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=dad9baf7f56686541dc4d5ac18737e43d7d1ca53;p=platform%2Fcore%2Fuifw%2Fwayland-extension.git tizen_policy: specify the descrption of the tizen_policy interface Change-Id: Ifc13a0a7e8a2931a60cf6e9cd1a389d510c05557 --- diff --git a/protocol/tizen/tizen-extension.xml b/protocol/tizen/tizen-extension.xml index 4b0680d..5db511e 100644 --- a/protocol/tizen/tizen-extension.xml +++ b/protocol/tizen/tizen-extension.xml @@ -10,7 +10,7 @@ Create a tizen_resource interface for the given surface. - + @@ -45,293 +45,538 @@ + + The tizen_policy provides tizen-specific requests and events for window + management at Tizen Platform. + + [TODO] Explain the window layer at the display server. Need to explain the + window layer to understand the requests and the events at tizen_policy + interface. + + - - + + Create a visibility interface for the given surface. + + + - - + + Create a position interface for the given surface. + [TODO]: need to explain the relationship with zxdg_positioner_v6 + + + - + + Activate the given surface. A client requests this when a client wants + to raise at the top of the windows stack in the window's layer at the + display server and also wants to get a keyboard focus from the display + server. However the display server does not always set the focus on the + reqested surface. It depends on the focus policy of the display server. + A client just demands a keyboard focus via this request. + + - - + + Activate the surface associated with the given res_id and position it + below the surface associated with the below_res_id. A client uses this + reuquest when it want to change the order of the window stack with the + gloal resource ids which are the surfaces belonging to different + processes. However, this requestit does not work when the surface + associated with the below_res_id is a parent of the surface assicated + with the res_id. + + + - + + This request raises the given surface to the top of the window stack + in a window layer. A client can decide the window layer with the + window_type for the given surface through the set_type request of + tizen_policy interface. The surface positions at the top in the window + layer. + + - + + This request lowers the given surface to the bottom of the window stack + in a window layer. The surface positions at the bottom in the window + layer. + + - + + This request lowers the surface associated with the given res_id to the + bottom of the window stack in a window layer. The surface positions at + the bottom in the window layer. + + - + + This request makes the given surface unable to be the focused surface. + The display server must not give the focus to the surface. + + - + + This request makes the given surface enable to be the focused surface. + + - - + + Give the role to the given surface. A client set the tizen-specific role + of the surface except for the role of xdg_surface interface, + xdg_top_level, xdg_popup and so on. + + + - - - - - - - - - - - - - - + + A client can set the window type through the set_type request with + win_type values. The value gives the surface the window_state, the + z-order at the window stack in the window layer and other types in the + display server. + + The following values are window types with z-order values in descending + order. Those are notification, dnd, dock, splash, fullscreen, + toplevel or maximized and desktop. + The menu, dnd, notification, utility, dialog, dock, splash and desktop + are the window type which is defined in netwm spefification. + https://specifications.freedesktop.org/wm-spec/wm-spec-1.4.html#idm46148902270160 + + + + + + + + + + + + + + + - - + + Set the type of the given surface. The display server use the window + type for the policy of the window management which are focus management, + visibility management, stack management and so on. + + + - + + Set the conformant surface. The conformant surface can get the event + through which the display server notifies the area covered by the + compormant_part that is the surface in another client. + + - + + Unset the conformant surface. + + - + + Ask if the given surface is the conformant surface or not. The display + server sents the result via the confirmant event. + + - - + + Notify the client when a client sends the get_conformant request. + + + - - - + + This value indicates the surface name at Tizen Platform. + + + + - - Notify of conformant area to client. Sending this event does NOT guarantee - perfect compositing of conformant owner client surface and - conformant part client surface. - - - - - - - - + + Notify a client when the conformant area is caclulated by the another + surface as the conformnat_part. This event does NOT guarantee the + perfect composition of the conformant surface and the surface of the + conformant part. + + + + + + + + - - + + This describes the state of error. + + + - - - - - - - - + + This is the level of the notification type. This level stands for the + z-order in the notification layer at the display server. The none, 1, 2, + 3, default, medium, high and top is z-order in ascending order. The + lower number value means the lower z-order. + + + + + + + + + - - + + This request sets the level in the notification layer. The display + server decides the z-order with the given level in the notification + layer. + + + - - - + + Notify a client when the surface is located in the z-order which has + been reuqested via the set_notification_level request. + + + + - - + + This request sets the transient parent for the surface associated with + the parent_id. The surface associated with the given child_id becomes + a transient children for the surface associated with the parent_id. + + + - + + This reuqest unsets the transient parent on the surface associated with + the child_id. + + - + + Notify a client when the surface associated with the child_id is to set + the transient parent or when it is to unset the transient parent. + + - - + + This value means how the screen is to operate. + + + - - + + A client sets the screen mode which it wants the screen to be as long as + the given surface is shown on the screen. + + + - - - + + Notify a client when the screen_mode from the client's request activates + in the display server. + + + + - + + This request places the surface of the subsurface below its' parent + surface. + + - + + This request makes the surface associated with the given subsurface not + follow the policy of the window managment triggered by the parent + surface. The window policy of the surface associated with the given + subsurface is not affected by its parent surface. + + - - - + + Get the subsurface of the given surface with the global resource parent_id. + + + + - + + Set the opaque state to the given surface. The display server makes this + surface be opaque even if the color depth of the buffer attached to the + surface is 32 depth. + + - + + Set the iconified state to the given surface. The iconfied state is the + window state in which the surface is not showing on the screen. + + + - + + Set the uniconified state to the given surface. The uniconfied state is + the window state in which the iconified surface is showing on the screen. + + - - - + + Notify a client when the iconfied state of the surface is changed. The + iconfied state is not only changed when the client requets the iconify + and uniconify but also changed when the iconfied state is decided by + the display server. + + + + - - - - + + Add the information of the auxiliary hint to the given surface. The name + and the value are changed when the display server already has the same + id with which the client sends this request. + + + + + - - - + + Change the value of the auxiliary hint id which the surface has. + + + + - - + + Delete the information of the auxiliary hint associated the hint id + which the given surface has. + + + - + + Get the ids of the aux hints which the given surface supports. The + display server send the supported_aux_hints events as the reply of this + requrest. + + - - - + + Notify a client when the display server get the get_supported_aux_hints + request. The display server send the id array of the suxiliary hints + which the surface supports. + + + + - - + + Notify a client when the auxiliary hint which the given surface has is + added and changed. + + + - - - - + + Notify a client when the display server sends the auxiliary message. + The display server can use this event when it notifies an additional + information to the client. + + + + + - + + Set the all surfaces associated with the given pid to be the background + state. The surfaces set to be the hide state and cannot show on a screen + even if the client send the show request and the activate request. + + - + + Set the all surfaces associated with the given pid not to be the + background state. The sufaces can allow to be showed and to be activated + by the client's request. + + - + + Set the floating mode to the given surface. The surface which sets to be + floating mode can be a partial window and can position over other + top-level windows. + + - + + Unset the floating mode to the given surface. The geometry of the + surface does not change and the z-order of it can be the same as the + top-level windows. + + + + The set_stack_mode request uses this mode values. + - - + + Set the stack mode to the given surface. The surface can changes the + z-order in the same layer by the stack mode. + + + - - + + Activate the surface associated with the given res_id which is the + global resource id and set to position over the surface assoicated with + the above_res_id. + + + - - + + Get the subsurface watcher associated with the given surface. A client + can get the information about the subsurface associated with the surface. + + + - - + + Set the parent/client relationship. The child surface position over the + parent surface. + + + @@ -342,53 +587,71 @@ If client is received this event, client should ack for it using tizen_policy@ack_conformant_region request. - - - - - - - - + + + + + + + + - A client can refresh its surface for applying new conformant region which - is from tizen_policy@conformant_region event. The client has to ack - after complete of its updates by this request. + A client can refresh its surface for applying new conformant region + which is from tizen_policy@conformant_region event. The client has to + ack after complete of its updates by this request. - - + + - Destroy the tizen_policy. + Destroy this tizen_policy object. - - + + A cleint sends the information that it has the tizen_video_object to the + display server. + + + - - + + Set the application id associated with the given pid. + + + - + + Notify showing the given surface. This request means that a client is + going to attach the buffer to the given surface. There is nothing to do + at the display server when a client sends this request. + + - + + Notify hiding the given surface. This request means that a client is + going to attach the null buffer to the given surface. There is nothing + to do at the display server when a client sends this request. + + - This makes a relationship between parent and child. A child is always placed under a parent. + This makes a relationship between parent and child. A child is always + placed under a parent. @@ -396,19 +659,20 @@ - This makes a relationship between parent and child. A child is always placed under a parent. - Setting a null parent for a child window removes any parent-child relationship for the child. + This makes a relationship between parent and child. A child is always + placed under a parent. Setting a null parent for a child window removes + any parent-child relationship for the child. - + - This event is sent when the display server finishes interactive moving the window. - The changed geometry of the window is sent together. + This event is sent when the display server finishes interactive moving + the window. The changed geometry of the window is sent together. - + @@ -418,10 +682,11 @@ - This event is sent when the display server finishes interactive resizing the window. - The changed geometry of the window is sent together. + This event is sent when the display server finishes interactive + resizing the window. The changed geometry of the window is sent + together. - + @@ -431,6 +696,9 @@ + + These values are used by the set_maximize_direction as the paremater. + @@ -443,29 +711,48 @@ Set the maximize direction of the surface. - + - + + A client wants to know the visiblity information of the surface. + - - - - - - + + + Destroy this tizen_visiblity object. + + + + + + These are the visibilty types which tells how the surface assoicated + with the tizen_visibility resource is showing on a screen or not. + + + + + + - + + Notify a client when the visibility of the surface is changed. + + + + Notify a client when the visibility of the surface is changed with the + extra vaule. + @@ -473,16 +760,30 @@ - + + A client can set the position information of the surface. + + + + + Destroy this tizen_position object. + + - - + + Set the position. + + + - - + + Notify a client when the posion is changed. + + +