Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(426)

Side by Side Diff: ppapi/api/dev/ppb_ime_input_event_dev.idl

Issue 10391101: Test for Pepper IME events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed comments from kochi & merge master. Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | ppapi/c/dev/ppb_ime_input_event_dev.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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_Dev</code> interface.
8 */ 8 */
9 9
10 label Chrome { 10 label Chrome {
11 M16 = 0.1 11 M16 = 0.1,
12 M21 = 0.2
12 }; 13 };
13 14
14 [version=0.1, macro="PPB_IME_INPUT_EVENT_DEV_INTERFACE"] 15 [macro="PPB_IME_INPUT_EVENT_DEV_INTERFACE"]
15 interface PPB_IMEInputEvent_Dev { 16 interface PPB_IMEInputEvent_Dev {
16 /** 17 /**
18 * Create() creates an IME input event with the given parameters. Normally
19 * 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
21 * their own for internal use.
22 *
23 * @param[in] instance The instance for which this event occurred.
24 *
25 * @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.
27 *
28 * @param[in] time_stamp A <code>PP_TimeTicks</code> indicating the time
29 * when the event occurred.
30 *
31 * @param[in] text The string returned by <code>GetText</code>.
32 *
33 * @param[in] segment_number The number returned by
34 * <code>GetSegmentNumber</code>.
35 *
36 * @param[in] segment_offsets The array of numbers returned by
37 * <code>GetSegmentOffset</code>. If <code>segment_number</code> is zero,
38 * the number of elements of the array should be zero. If
39 * <code>segment_number</code> is non-zero, the length of the array must be
40 * <code>segment_number</code> + 1.
41 *
42 * @param[in] target_segment The number returned by
43 * <code>GetTargetSegment</code>.
44 *
45 * @param[in] selection_start The start index returned by
46 * <code>GetSelection</code>.
47 *
48 * @param[in] selection_end The end index returned by
49 * <code>GetSelection</code>.
50 *
51 * @return A <code>PP_Resource</code> containing the new IME input event.
52 */
53 [version=0.2]
54 PP_Resource Create([in] PP_Instance instance,
55 [in] PP_InputEvent_Type type,
56 [in] PP_TimeTicks time_stamp,
57 [in] PP_Var text,
58 [in] uint32_t segment_number,
59 [in] uint32_t[] segment_offsets,
60 [in] int32_t target_segment,
61 [in] uint32_t selection_start,
62 [in] uint32_t selection_end);
63
64 /**
17 * IsIMEInputEvent() determines if a resource is an IME event. 65 * IsIMEInputEvent() determines if a resource is an IME event.
18 * 66 *
19 * @param[in] resource A <code>PP_Resource</code> corresponding to an event. 67 * @param[in] resource A <code>PP_Resource</code> corresponding to an event.
20 * 68 *
21 * @return <code>PP_TRUE</code> if the given resource is a valid input event. 69 * @return <code>PP_TRUE</code> if the given resource is a valid input event.
22 */ 70 */
23 PP_Bool IsIMEInputEvent([in] PP_Resource resource); 71 PP_Bool IsIMEInputEvent([in] PP_Resource resource);
24 72
25 /** 73 /**
26 * GetText() returns the composition text as a UTF-8 string for the given IME 74 * GetText() returns the composition text as a UTF-8 string for the given IME
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 * event. 134 * event.
87 * 135 *
88 * @param[out] start The start position of the current selection. 136 * @param[out] start The start position of the current selection.
89 * 137 *
90 * @param[out] end The end position of the current selection. 138 * @param[out] end The end position of the current selection.
91 */ 139 */
92 void GetSelection([in] PP_Resource ime_event, 140 void GetSelection([in] PP_Resource ime_event,
93 [out] uint32_t start, 141 [out] uint32_t start,
94 [out] uint32_t end); 142 [out] uint32_t end);
95 }; 143 };
OLDNEW
« no previous file with comments | « content/renderer/render_view_impl.cc ('k') | ppapi/c/dev/ppb_ime_input_event_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698