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 Input Event interfaces. | 7 * This file defines the Input Event interfaces. |
8 */ | 8 */ |
9 | 9 |
10 label Chrome { | 10 label Chrome { |
(...skipping 944 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
955 * | 955 * |
956 * @param[in] list The list. | 956 * @param[in] list The list. |
957 * | 957 * |
958 * @param[in] touch_id The id of the touch-point. | 958 * @param[in] touch_id The id of the touch-point. |
959 * | 959 * |
960 * @return A <code>PP_TouchPoint</code> representing the touch-point. | 960 * @return A <code>PP_TouchPoint</code> representing the touch-point. |
961 */ | 961 */ |
962 PP_TouchPoint GetTouchById([in] PP_Resource resource, | 962 PP_TouchPoint GetTouchById([in] PP_Resource resource, |
963 [in] PP_TouchListType list, | 963 [in] PP_TouchListType list, |
964 [in] uint32_t touch_id); | 964 [in] uint32_t touch_id); |
965 | |
966 /** | |
967 * Returns the touch-tilt with the specified index in the specified list. | |
968 * | |
969 * @param[in] resource A <code>PP_Resource</code> corresponding to a touch | |
970 * event. | |
971 * | |
972 * @param[in] list The list. | |
973 * | |
974 * @param[in] index The index. | |
975 * | |
976 * @return A <code>PP_FloatPoint</code> representing the tilt of the | |
977 * touch-point. | |
978 */ | |
979 [version=1.1] | |
bbudge
2017/05/24 00:28:31
You have to create a new version - otherwise the m
jkwang
2017/05/24 17:57:42
Done.
| |
980 PP_FloatPoint GetTouchTiltByIndex([in] PP_Resource resource, | |
981 [in] PP_TouchListType list, | |
982 [in] uint32_t index); | |
983 | |
984 /** | |
985 * Returns the touch-tilt with the specified touch-id in the specified list. | |
986 * | |
987 * @param[in] resource A <code>PP_Resource</code> corresponding to a touch | |
988 * event. | |
989 * | |
990 * @param[in] list The list. | |
991 * | |
992 * @param[in] touch_id The id of the touch-point. | |
993 * | |
994 * @return A <code>PP_FloatPoint</code> representing the tilt of the | |
995 * touch-point. | |
996 */ | |
997 [version=1.1] | |
998 PP_FloatPoint GetTouchTiltById([in] PP_Resource resource, | |
999 [in] PP_TouchListType list, | |
1000 [in] uint32_t touch_id); | |
965 }; | 1001 }; |
966 | 1002 |
967 [macro="PPB_IME_INPUT_EVENT_INTERFACE"] | 1003 [macro="PPB_IME_INPUT_EVENT_INTERFACE"] |
968 interface PPB_IMEInputEvent { | 1004 interface PPB_IMEInputEvent { |
969 /** | 1005 /** |
970 * Create() creates an IME input event with the given parameters. Normally | 1006 * Create() creates an IME input event with the given parameters. Normally |
971 * you will get an IME event passed through the <code>HandleInputEvent</code> | 1007 * 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 | 1008 * and will not need to create them, but some applications may want to create |
973 * their own for internal use. | 1009 * their own for internal use. |
974 * | 1010 * |
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1085 * event. | 1121 * event. |
1086 * | 1122 * |
1087 * @param[out] start The start position of the current selection. | 1123 * @param[out] start The start position of the current selection. |
1088 * | 1124 * |
1089 * @param[out] end The end position of the current selection. | 1125 * @param[out] end The end position of the current selection. |
1090 */ | 1126 */ |
1091 void GetSelection([in] PP_Resource ime_event, | 1127 void GetSelection([in] PP_Resource ime_event, |
1092 [out] uint32_t start, | 1128 [out] uint32_t start, |
1093 [out] uint32_t end); | 1129 [out] uint32_t end); |
1094 }; | 1130 }; |
OLD | NEW |