Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. |
| 2 * Use of this source code is governed by a BSD-style license that can be | 2 * Use of this source code is governed by a BSD-style license that can be |
| 3 * found in the LICENSE file. | 3 * found in the LICENSE file. |
| 4 */ | 4 */ |
| 5 | 5 |
| 6 /** | 6 /** |
| 7 * This file defines the <code>PPB_IMEInputEvent_Dev</code> interface. | 7 * This file defines the <code>PPB_IMEInputEvent</code> interface. |
| 8 */ | 8 */ |
| 9 | 9 |
| 10 label Chrome { | 10 label Chrome { |
| 11 M16 = 0.1, | 11 M30 = 1.0 |
| 12 M21 = 0.2 | |
| 13 }; | 12 }; |
| 14 | 13 |
| 15 [macro="PPB_IME_INPUT_EVENT_DEV_INTERFACE"] | 14 [macro="PPB_IME_INPUT_EVENT_INTERFACE"] |
| 16 interface PPB_IMEInputEvent_Dev { | 15 interface PPB_IMEInputEvent { |
| 17 /** | 16 /** |
| 18 * Create() creates an IME input event with the given parameters. Normally | 17 * Create() creates an IME input event with the given parameters. Normally |
| 19 * you will get an IME event passed through the <code>HandleInputEvent</code> | 18 * you will get an IME event passed through the <code>HandleInputEvent</code> |
| 20 * and will not need to create them, but some applications may want to create | 19 * and will not need to create them, but some applications may want to create |
| 21 * their own for internal use. | 20 * their own for internal use. |
| 22 * | 21 * |
| 23 * @param[in] instance The instance for which this event occurred. | 22 * @param[in] instance The instance for which this event occurred. |
| 24 * | 23 * |
| 25 * @param[in] type A <code>PP_InputEvent_Type</code> identifying the type of | 24 * @param[in] type A <code>PP_InputEvent_Type</code> identifying the type of |
| 26 * input event. The type must be one of the IME event types. | 25 * input event. The type must be one of the IME event types. |
| (...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 76 * | 75 * |
| 77 * @param[in] ime_event A <code>PP_Resource</code> corresponding to an IME | 76 * @param[in] ime_event A <code>PP_Resource</code> corresponding to an IME |
| 78 * event. | 77 * event. |
| 79 * | 78 * |
| 80 * @return A string var representing the composition text. For non-IME input | 79 * @return A string var representing the composition text. For non-IME input |
| 81 * events the return value will be an undefined var. | 80 * events the return value will be an undefined var. |
| 82 */ | 81 */ |
| 83 PP_Var GetText([in] PP_Resource ime_event); | 82 PP_Var GetText([in] PP_Resource ime_event); |
| 84 | 83 |
| 85 /** | 84 /** |
| 86 * GetSegmentNumber() returns the number of segments in the composition text. | 85 * GetSegmentNumber() returns the number of segments in the composition text. |
|
dmichael (off chromium)
2013/07/16 22:42:07
I think GetSegmentCount might be a more descriptiv
Seigo Nonaka
2013/07/17 06:10:39
Done.
| |
| 87 * | 86 * |
| 88 * @param[in] ime_event A <code>PP_Resource</code> corresponding to an IME | 87 * @param[in] ime_event A <code>PP_Resource</code> corresponding to an IME |
| 89 * event. | 88 * event. |
| 90 * | 89 * |
| 91 * @return The number of segments. For events other than COMPOSITION_UPDATE, | 90 * @return The number of segments. For events other than COMPOSITION_UPDATE, |
| 92 * returns 0. | 91 * returns 0. |
| 93 */ | 92 */ |
| 94 uint32_t GetSegmentNumber([in] PP_Resource ime_event); | 93 uint32_t GetSegmentNumber([in] PP_Resource ime_event); |
| 95 | 94 |
| 96 /** | 95 /** |
| (...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 134 * event. | 133 * event. |
| 135 * | 134 * |
| 136 * @param[out] start The start position of the current selection. | 135 * @param[out] start The start position of the current selection. |
| 137 * | 136 * |
| 138 * @param[out] end The end position of the current selection. | 137 * @param[out] end The end position of the current selection. |
| 139 */ | 138 */ |
| 140 void GetSelection([in] PP_Resource ime_event, | 139 void GetSelection([in] PP_Resource ime_event, |
| 141 [out] uint32_t start, | 140 [out] uint32_t start, |
| 142 [out] uint32_t end); | 141 [out] uint32_t end); |
| 143 }; | 142 }; |
| OLD | NEW |