tizen_policy: add new request - snap_window 99/281799/2
authorDoyoun Kang <doyoun.kang@samsung.com>
Thu, 22 Sep 2022 04:48:09 +0000 (13:48 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Thu, 22 Sep 2022 07:17:50 +0000 (16:17 +0900)
Change-Id: Ia33dd6da8a73a9dede7288111cbbcfb266126cb5

protocol/tizen/tizen-extension.xml

index 69cc10c..ebacb2f 100644 (file)
@@ -19,7 +19,7 @@
     </event>
   </interface>
 
-  <interface name="tizen_policy" version="11">
+  <interface name="tizen_policy" version="12">
     <request name="get_visibility">
       <arg name="id" type="new_id" interface="tizen_visibility" summary="new visibility object"/>
       <arg name="surface" type="object" interface="wl_surface" summary="surface object"/>
       <arg name="w" type="uint" summary="width after resize"/>
       <arg name="h" type="uint" summary="height after resize"/>
     </event>
+
+    <!-- for snap type -->
+    <enum name="snap_type">
+      <entry name="left" value="0" summary="the left side of the screen"/>
+      <entry name="right" value="1" summary="the right side of the screen"/>
+      <entry name="top" value="2" summary="the top of the screen"/>
+      <entry name="bottom" value="3" summary="the bottom of the screen"/>
+    </enum>
+
+    <request name="snap_window" since="12">
+      <description summary="snap window">
+         Snap the window to the location (such as the side of the screen) where you want it to be.
+      </description>
+      <arg name="surface" type="object" interface="wl_surface" summary="surface object"/>
+      <arg name="type" type="uint"/>
+    </request>
   </interface>
 
   <interface name="tizen_visibility" version="5">