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

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

Issue 2289273002: Eraser tool type plumbing from ui/events to web events and PPAPI. (Closed)
Patch Set: add pen modifier and version uprev of ppapi Created 4 years, 3 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 M54 = 1.3
bbudge 2016/08/30 22:05:54 This doesn't actually version the API I'm going t
denniskempin 2016/09/01 16:56:21 There is one problem that I could see: Older ver
14 }; 15 };
15 16
16 /** 17 /**
17 * This enumeration contains the types of input events. 18 * This enumeration contains the types of input events.
18 */ 19 */
19 [assert_size(4)] 20 [assert_size(4)]
20 enum PP_InputEvent_Type { 21 enum PP_InputEvent_Type {
21 PP_INPUTEVENT_TYPE_UNDEFINED = -1, 22 PP_INPUTEVENT_TYPE_UNDEFINED = -1,
22 23
23 /** 24 /**
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2, 193 PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2,
193 PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3, 194 PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3,
194 PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4, 195 PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4,
195 PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5, 196 PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5,
196 PP_INPUTEVENT_MODIFIER_LEFTBUTTONDOWN = 1 << 6, 197 PP_INPUTEVENT_MODIFIER_LEFTBUTTONDOWN = 1 << 6,
197 PP_INPUTEVENT_MODIFIER_MIDDLEBUTTONDOWN = 1 << 7, 198 PP_INPUTEVENT_MODIFIER_MIDDLEBUTTONDOWN = 1 << 7,
198 PP_INPUTEVENT_MODIFIER_RIGHTBUTTONDOWN = 1 << 8, 199 PP_INPUTEVENT_MODIFIER_RIGHTBUTTONDOWN = 1 << 8,
199 PP_INPUTEVENT_MODIFIER_CAPSLOCKKEY = 1 << 9, 200 PP_INPUTEVENT_MODIFIER_CAPSLOCKKEY = 1 << 9,
200 PP_INPUTEVENT_MODIFIER_NUMLOCKKEY = 1 << 10, 201 PP_INPUTEVENT_MODIFIER_NUMLOCKKEY = 1 << 10,
201 PP_INPUTEVENT_MODIFIER_ISLEFT = 1 << 11, 202 PP_INPUTEVENT_MODIFIER_ISLEFT = 1 << 11,
202 PP_INPUTEVENT_MODIFIER_ISRIGHT = 1 << 12 203 PP_INPUTEVENT_MODIFIER_ISRIGHT = 1 << 12,
204 PP_INPUTEVENT_MODIFIER_ISPEN = 1 << 13,
205 PP_INPUTEVENT_MODIFIER_ISERASER = 1 << 14
bbudge 2016/08/30 22:05:54 Annotate these both with [version=1.3] even though
denniskempin 2016/09/01 16:56:21 Acknowledged.
203 }; 206 };
204 207
205 /** 208 /**
206 * This enumeration contains constants representing each mouse button. To get 209 * This enumeration contains constants representing each mouse button. To get
207 * the mouse button for a mouse down or up event, use GetMouseButton on 210 * the mouse button for a mouse down or up event, use GetMouseButton on
208 * PPB_InputEvent. 211 * PPB_InputEvent.
209 */ 212 */
210 [assert_size(4)] 213 [assert_size(4)]
211 enum PP_InputEvent_MouseButton { 214 enum PP_InputEvent_MouseButton {
212 PP_INPUTEVENT_MOUSEBUTTON_NONE = -1, 215 PP_INPUTEVENT_MOUSEBUTTON_NONE = -1,
(...skipping 865 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 * event. 1081 * event.
1079 * 1082 *
1080 * @param[out] start The start position of the current selection. 1083 * @param[out] start The start position of the current selection.
1081 * 1084 *
1082 * @param[out] end The end position of the current selection. 1085 * @param[out] end The end position of the current selection.
1083 */ 1086 */
1084 void GetSelection([in] PP_Resource ime_event, 1087 void GetSelection([in] PP_Resource ime_event,
1085 [out] uint32_t start, 1088 [out] uint32_t start,
1086 [out] uint32_t end); 1089 [out] uint32_t end);
1087 }; 1090 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698