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

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: The CQ works! We were stripping the SHIFT mod from NaCL events. Fixed. 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
« no previous file with comments | « content/renderer/pepper/event_conversion.cc ('k') | ppapi/c/pp_macros.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 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 }; 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 * 62 *
62 * Register for this event using the PP_INPUTEVENT_CLASS_WHEEL class. 63 * Register for this event using the PP_INPUTEVENT_CLASS_WHEEL class.
63 */ 64 */
64 PP_INPUTEVENT_TYPE_WHEEL = 5, 65 PP_INPUTEVENT_TYPE_WHEEL = 5,
65 66
66 /** 67 /**
67 * Notification that a key transitioned from "up" to "down". 68 * Notification that a key transitioned from "up" to "down".
68 * 69 *
69 * Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class. 70 * Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class.
70 */ 71 */
71
72 /*
73 * TODO(brettw) differentiate from KEYDOWN.
74 */
75 PP_INPUTEVENT_TYPE_RAWKEYDOWN = 6, 72 PP_INPUTEVENT_TYPE_RAWKEYDOWN = 6,
76 73
77 /** 74 /**
78 * Notification that a key was pressed. This does not necessarily correspond 75 * Notification that a key was pressed. This does not necessarily correspond
79 * to a character depending on the key and language. Use the 76 * to a character depending on the key and language. Use the
80 * PP_INPUTEVENT_TYPE_CHAR for character input. 77 * PP_INPUTEVENT_TYPE_CHAR for character input.
81 * 78 *
82 * Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class. 79 * Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class.
83 */ 80 */
84 PP_INPUTEVENT_TYPE_KEYDOWN = 7, 81 PP_INPUTEVENT_TYPE_KEYDOWN = 7,
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2, 189 PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2,
193 PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3, 190 PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3,
194 PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4, 191 PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4,
195 PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5, 192 PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5,
196 PP_INPUTEVENT_MODIFIER_LEFTBUTTONDOWN = 1 << 6, 193 PP_INPUTEVENT_MODIFIER_LEFTBUTTONDOWN = 1 << 6,
197 PP_INPUTEVENT_MODIFIER_MIDDLEBUTTONDOWN = 1 << 7, 194 PP_INPUTEVENT_MODIFIER_MIDDLEBUTTONDOWN = 1 << 7,
198 PP_INPUTEVENT_MODIFIER_RIGHTBUTTONDOWN = 1 << 8, 195 PP_INPUTEVENT_MODIFIER_RIGHTBUTTONDOWN = 1 << 8,
199 PP_INPUTEVENT_MODIFIER_CAPSLOCKKEY = 1 << 9, 196 PP_INPUTEVENT_MODIFIER_CAPSLOCKKEY = 1 << 9,
200 PP_INPUTEVENT_MODIFIER_NUMLOCKKEY = 1 << 10, 197 PP_INPUTEVENT_MODIFIER_NUMLOCKKEY = 1 << 10,
201 PP_INPUTEVENT_MODIFIER_ISLEFT = 1 << 11, 198 PP_INPUTEVENT_MODIFIER_ISLEFT = 1 << 11,
202 PP_INPUTEVENT_MODIFIER_ISRIGHT = 1 << 12 199 PP_INPUTEVENT_MODIFIER_ISRIGHT = 1 << 12,
200 [version=1.3]
201 PP_INPUTEVENT_MODIFIER_ISPEN = 1 << 13,
202 [version=1.3]
203 PP_INPUTEVENT_MODIFIER_ISERASER = 1 << 14
203 }; 204 };
204 205
205 /** 206 /**
206 * This enumeration contains constants representing each mouse button. To get 207 * This enumeration contains constants representing each mouse button. To get
207 * the mouse button for a mouse down or up event, use GetMouseButton on 208 * the mouse button for a mouse down or up event, use GetMouseButton on
208 * PPB_InputEvent. 209 * PPB_InputEvent.
209 */ 210 */
210 [assert_size(4)] 211 [assert_size(4)]
211 enum PP_InputEvent_MouseButton { 212 enum PP_InputEvent_MouseButton {
212 PP_INPUTEVENT_MOUSEBUTTON_NONE = -1, 213 PP_INPUTEVENT_MOUSEBUTTON_NONE = -1,
(...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after
566 * 567 *
567 * @param[in] mouse_event A <code>PP_Resource</code> corresponding to a 568 * @param[in] mouse_event A <code>PP_Resource</code> corresponding to a
568 * mouse event. 569 * mouse event.
569 * 570 *
570 * @return The point associated with the mouse event, relative to the upper- 571 * @return The point associated with the mouse event, relative to the upper-
571 * left of the instance receiving the event. These values can be negative for 572 * left of the instance receiving the event. These values can be negative for
572 * mouse drags. The return value will be (0, 0) for non-mouse events. 573 * mouse drags. The return value will be (0, 0) for non-mouse events.
573 */ 574 */
574 [returnByValue] PP_Point GetPosition([in] PP_Resource mouse_event); 575 [returnByValue] PP_Point GetPosition([in] PP_Resource mouse_event);
575 576
576 /*
577 * TODO(brettw) figure out exactly what this means.
578 */
579 int32_t GetClickCount([in] PP_Resource mouse_event); 577 int32_t GetClickCount([in] PP_Resource mouse_event);
580 578
581 /** 579 /**
582 * Returns the change in position of the mouse. When the mouse is locked, 580 * Returns the change in position of the mouse. When the mouse is locked,
583 * although the mouse position doesn't actually change, this function 581 * although the mouse position doesn't actually change, this function
584 * still provides movement information, which indicates what the change in 582 * still provides movement information, which indicates what the change in
585 * position would be had the mouse not been locked. 583 * position would be had the mouse not been locked.
586 * 584 *
587 * @param[in] mouse_event A <code>PP_Resource</code> corresponding to a 585 * @param[in] mouse_event A <code>PP_Resource</code> corresponding to a
588 * mouse event. 586 * mouse event.
(...skipping 489 matching lines...) Expand 10 before | Expand all | Expand 10 after
1078 * event. 1076 * event.
1079 * 1077 *
1080 * @param[out] start The start position of the current selection. 1078 * @param[out] start The start position of the current selection.
1081 * 1079 *
1082 * @param[out] end The end position of the current selection. 1080 * @param[out] end The end position of the current selection.
1083 */ 1081 */
1084 void GetSelection([in] PP_Resource ime_event, 1082 void GetSelection([in] PP_Resource ime_event,
1085 [out] uint32_t start, 1083 [out] uint32_t start,
1086 [out] uint32_t end); 1084 [out] uint32_t end);
1087 }; 1085 };
OLDNEW
« no previous file with comments | « content/renderer/pepper/event_conversion.cc ('k') | ppapi/c/pp_macros.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698