input-method, text: Add protocol for selection text 26/67426/1
authorLi Zhang <li2012.zhang@samsung.com>
Tue, 26 Apr 2016 11:30:54 +0000 (19:30 +0800)
committerLi Zhang <li2012.zhang@samsung.com>
Tue, 26 Apr 2016 11:30:54 +0000 (19:30 +0800)
Change-Id: Id4fc2704a17ffa646048486fb10362abade657df

protocol/input-method.xml
protocol/text.xml

index 73bc9c6fa3529f017dbeebd439e17769082a6db4..1443adba2e3c0f7d35f539fccb31183f5ffa2879 100644 (file)
     <event name="bidi_direction">
       <arg name="direction" type="uint"/>
     </event>
+    <event name="selection_text">
+      <arg name="text" type="string"/>
+    </event>
   </interface>
 
   <interface name="wl_input_method" version="1">
index 6e788109811f5dce5bded9b3c79ce5a0e3837d68..e1adfd7c6edf1f6248395afe744f2c93d1410e0c 100644 (file)
     <request name="bidi_direction">
       <arg name="direction" type="uint"/>
     </request>
+    <request name="set_selection_text">
+      <description summary="set the selected text">
+        Set the selected text to the input panel.
+      </description>
+      <arg name="text" type="string"/>
+    </request>
     <event name="enter">
       <description summary="enter event">
         Notify the text-input object when it received focus. Typically in