text: Introduce input_method_context interface

Add an input_method_context interface which is the representation of a
text_model on input_method side.

Signed-off-by: Jan Arne Petersen <jpetersen@openismus.com>
This commit is contained in:
Jan Arne Petersen
2012-09-09 23:08:32 +02:00
committed by Kristian Høgsberg
parent b13b9ff90a
commit 620cd62cbd
3 changed files with 140 additions and 16 deletions
+14 -1
View File
@@ -49,10 +49,23 @@
</request>
</interface>
<interface name="input_method" version="1">
<interface name="input_method_context" version="1">
<request name="destroy" type="destructor"/>
<request name="commit_string">
<arg name="text" type="string"/>
<arg name="index" type="uint"/>
</request>
<event name="set_surrounding_text">
<arg name="text" type="string"/>
</event>
</interface>
<interface name="input_method" version="1">
<event name="activate">
<arg name="id" type="new_id" interface="input_method_context"/>
</event>
<event name="deactivate">
<arg name="context" type="object" interface="input_method_context"/>
</event>
</interface>
</protocol>