OLD | NEW |
1 <p id="classSummary"> | |
2 Use the <code>chrome.input.ime</code> module to implement a custom IME for | |
3 Chrome OS. | |
4 | |
5 This allows your extension to handle keystrokes, set the composition, and | |
6 manage the candidate window. | |
7 </p> | |
8 | |
9 <h2 id="manifest">Manifest</h2> | 1 <h2 id="manifest">Manifest</h2> |
10 <p>You must declare the "input" permission | 2 <p>You must declare the "input" permission |
11 in the <a href="manifest.html">extension manifest</a> | 3 in the <a href="manifest.html">extension manifest</a> |
12 to use the input.ime API. | 4 to use the input.ime API. |
13 For example:</p> | 5 For example:</p> |
14 <pre>{ | 6 <pre>{ |
15 "name": "My extension", | 7 "name": "My extension", |
16 ... | 8 ... |
17 <b>"permissions": [ | 9 <b>"permissions": [ |
18 "input" | 10 "input" |
(...skipping 26 matching lines...) Expand all Loading... |
45 }); | 37 }); |
46 </pre> | 38 </pre> |
47 | 39 |
48 <p> | 40 <p> |
49 For an example of using this API, see the | 41 For an example of using this API, see the |
50 <a | 42 <a |
51 href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions
/docs/examples/api/input.ime/basic/">basic input.ime sample</a>. | 43 href="http://src.chromium.org/viewvc/chrome/trunk/src/chrome/common/extensions
/docs/examples/api/input.ime/basic/">basic input.ime sample</a>. |
52 For other examples and for help in viewing the source code, see | 44 For other examples and for help in viewing the source code, see |
53 <a href="samples.html">Samples</a>. | 45 <a href="samples.html">Samples</a>. |
54 </p> | 46 </p> |
OLD | NEW |