[Web IME] Describe Additional protocol such as getSurroundingText, setSelection,...
authorJihoon Kim <jihoon48.kim@samsung.com>
Thu, 9 Apr 2015 12:09:28 +0000 (21:09 +0900)
committerJihoon Kim <jihoon48.kim@samsung.com>
Thu, 9 Apr 2015 12:09:28 +0000 (21:09 +0900)
Change-Id: I9dea2bf0a3f778631fbc3f68cab6a6fd1977ffce
Signed-off-by: Jihoon Kim <jihoon48.kim@samsung.com>
org.tizen.guides/html/web/tizen/ime/ime_w.htm

index 4844a12..b891372 100644 (file)
@@ -43,7 +43,7 @@
      <th class="note">Note</th> 
     </tr> 
     <tr> 
-     <td class="note">This feature is supported in wearable applications only.</td> 
+     <td class="note">This feature is supported in wearable applications only.</td>
     </tr> 
    </tbody> 
   </table> 
@@ -140,6 +140,35 @@ WebHelperClient.initialize(WebHelperClientHandler);</pre>
           </p>
         </td> 
     </tr>
+    <tr> 
+     <td><span style="font-family: Courier New,Courier,monospace">setSelection(start_index, end_index)</span></td> 
+     <td>Request to select text.
+        <p><span style="font-family: Courier New,Courier,monospace">start_index</span> parameter: The start position in text.<br/>
+          <span style="font-family: Courier New,Courier,monospace">end_index</span> parameter: The end position in text.<br/>
+          </p>
+        </td> 
+    </tr>
+    <tr> 
+     <td><span style="font-family: Courier New,Courier,monospace">getSelection()</span></td> 
+     <td>Request to get selected text.
+        </td> 
+    </tr>
+    <tr> 
+     <td><span style="font-family: Courier New,Courier,monospace">getSurroundingText(maxlen_before, maxlen_after)</span></td> 
+     <td>Request to select text.
+        <p><span style="font-family: Courier New,Courier,monospace">maxlen_before</span> parameter: The max length of before.<br/>
+          <span style="font-family: Courier New,Courier,monospace">maxlen_after</span> parameter: The max length of after.<br/>
+          </p>
+        </td> 
+    </tr>
+    <tr> 
+     <td><span style="font-family: Courier New,Courier,monospace">deleteSurroundingText(offset, len)</span></td> 
+     <td>Request to delete surrounding text.
+        <p><span style="font-family: Courier New,Courier,monospace">offset</span> parameter: The offset for cursor position.<br/>
+          <span style="font-family: Courier New,Courier,monospace">len</span> parameter: The length for delete text.<br/>
+          </p>
+        </td> 
+    </tr>
    </tbody>
   </table>
   
@@ -327,6 +356,24 @@ Keycode:
           <p>This method returns <span style="font-family: Courier New,Courier,monospace">true</span> if the event is processed; otherwise it is forwarded to the client application.</p>
         </td> 
     </tr>
+       <tr> 
+     <td><span style="font-family: Courier New,Courier,monospace">onUpdateSurroundingText(cursor, text)</span></td> 
+     <td>Handler on update surrounding text signal.
+        
+          <p>
+          <span style="font-family: Courier New,Courier,monospace">cursor</span> parameter: The cursor position.<br/>
+          <span style="font-family: Courier New,Courier,monospace">text</span> parameter: The surrounding text near the cursor.<br/>
+        </td> 
+    </tr>
+       <tr> 
+     <td><span style="font-family: Courier New,Courier,monospace">onUpdateSelection(text)</span></td> 
+     <td>Handler on update selection signal.
+        
+          <p>
+          <span style="font-family: Courier New,Courier,monospace">text</span> parameter: The currently selected text.<br/>
+          </p>
+        </td> 
+    </tr>
    </tbody>
   </table>
   <table class="note"> 
@@ -509,4 +556,4 @@ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga
 </script>
 
 </body>
-</html>
\ No newline at end of file
+</html>