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

Side by Side Diff: ppapi/api/ppb_input_event.idl

Issue 2890323002: Add tilt_x and tilt_y to ppapi touchpoint. (Closed)
Patch Set: Add tilt_x and tilt_y to ppapi touchpoint. Created 3 years, 6 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
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 Input Event interfaces. 7 * This file defines the Input Event interfaces.
8 */ 8 */
9 9
10 label Chrome { 10 label Chrome {
11 M13 = 1.0, 11 M13 = 1.0,
12 M14 = 1.1, 12 M14 = 1.1,
13 M34 = 1.2, 13 M34 = 1.2,
14 M55 = 1.3 14 M55 = 1.3,
15 M60 = 1.4
15 }; 16 };
16 17
17 /** 18 /**
18 * This enumeration contains the types of input events. 19 * This enumeration contains the types of input events.
19 */ 20 */
20 [assert_size(4)] 21 [assert_size(4)]
21 enum PP_InputEvent_Type { 22 enum PP_InputEvent_Type {
22 PP_INPUTEVENT_TYPE_UNDEFINED = -1, 23 PP_INPUTEVENT_TYPE_UNDEFINED = -1,
23 24
24 /** 25 /**
(...skipping 930 matching lines...) Expand 10 before | Expand all | Expand 10 after
955 * 956 *
956 * @param[in] list The list. 957 * @param[in] list The list.
957 * 958 *
958 * @param[in] touch_id The id of the touch-point. 959 * @param[in] touch_id The id of the touch-point.
959 * 960 *
960 * @return A <code>PP_TouchPoint</code> representing the touch-point. 961 * @return A <code>PP_TouchPoint</code> representing the touch-point.
961 */ 962 */
962 PP_TouchPoint GetTouchById([in] PP_Resource resource, 963 PP_TouchPoint GetTouchById([in] PP_Resource resource,
963 [in] PP_TouchListType list, 964 [in] PP_TouchListType list,
964 [in] uint32_t touch_id); 965 [in] uint32_t touch_id);
966
967 /**
968 * Returns the touch-tilt with the specified index in the specified list.
969 *
970 * @param[in] resource A <code>PP_Resource</code> corresponding to a touch
971 * event.
972 *
973 * @param[in] list The list.
974 *
975 * @param[in] index The index.
976 *
977 * @return A <code>PP_FloatPoint</code> representing the tilt of the
978 * touch-point.
979 */
980 [version=1.4]
981 PP_FloatPoint GetTouchTiltByIndex([in] PP_Resource resource,
982 [in] PP_TouchListType list,
983 [in] uint32_t index);
984
985 /**
986 * Returns the touch-tilt with the specified touch-id in the specified list.
987 *
988 * @param[in] resource A <code>PP_Resource</code> corresponding to a touch
989 * event.
990 *
991 * @param[in] list The list.
992 *
993 * @param[in] touch_id The id of the touch-point.
994 *
995 * @return A <code>PP_FloatPoint</code> representing the tilt of the
996 * touch-point.
997 */
998 [version=1.4]
999 PP_FloatPoint GetTouchTiltById([in] PP_Resource resource,
1000 [in] PP_TouchListType list,
1001 [in] uint32_t touch_id);
965 }; 1002 };
966 1003
967 [macro="PPB_IME_INPUT_EVENT_INTERFACE"] 1004 [macro="PPB_IME_INPUT_EVENT_INTERFACE"]
968 interface PPB_IMEInputEvent { 1005 interface PPB_IMEInputEvent {
969 /** 1006 /**
970 * Create() creates an IME input event with the given parameters. Normally 1007 * Create() creates an IME input event with the given parameters. Normally
971 * you will get an IME event passed through the <code>HandleInputEvent</code> 1008 * you will get an IME event passed through the <code>HandleInputEvent</code>
972 * and will not need to create them, but some applications may want to create 1009 * and will not need to create them, but some applications may want to create
973 * their own for internal use. 1010 * their own for internal use.
974 * 1011 *
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
1085 * event. 1122 * event.
1086 * 1123 *
1087 * @param[out] start The start position of the current selection. 1124 * @param[out] start The start position of the current selection.
1088 * 1125 *
1089 * @param[out] end The end position of the current selection. 1126 * @param[out] end The end position of the current selection.
1090 */ 1127 */
1091 void GetSelection([in] PP_Resource ime_event, 1128 void GetSelection([in] PP_Resource ime_event,
1092 [out] uint32_t start, 1129 [out] uint32_t start,
1093 [out] uint32_t end); 1130 [out] uint32_t end);
1094 }; 1131 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698