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

Side by Side Diff: ppapi/c/ppb_input_event.h

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 | « ppapi/c/pp_macros.h ('k') | third_party/WebKit/Source/core/events/PointerEventFactory.cpp » ('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 /* From ppb_input_event.idl modified Thu Apr 3 14:52:10 2014. */ 6 /* From ppb_input_event.idl modified Thu Sep 1 12:40:05 2016. */
7 7
8 #ifndef PPAPI_C_PPB_INPUT_EVENT_H_ 8 #ifndef PPAPI_C_PPB_INPUT_EVENT_H_
9 #define PPAPI_C_PPB_INPUT_EVENT_H_ 9 #define PPAPI_C_PPB_INPUT_EVENT_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_instance.h" 12 #include "ppapi/c/pp_instance.h"
13 #include "ppapi/c/pp_macros.h" 13 #include "ppapi/c/pp_macros.h"
14 #include "ppapi/c/pp_point.h" 14 #include "ppapi/c/pp_point.h"
15 #include "ppapi/c/pp_resource.h" 15 #include "ppapi/c/pp_resource.h"
16 #include "ppapi/c/pp_stdint.h" 16 #include "ppapi/c/pp_stdint.h"
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 * Notification that the scroll wheel was used. 89 * Notification that the scroll wheel was used.
90 * 90 *
91 * Register for this event using the PP_INPUTEVENT_CLASS_WHEEL class. 91 * Register for this event using the PP_INPUTEVENT_CLASS_WHEEL class.
92 */ 92 */
93 PP_INPUTEVENT_TYPE_WHEEL = 5, 93 PP_INPUTEVENT_TYPE_WHEEL = 5,
94 /** 94 /**
95 * Notification that a key transitioned from "up" to "down". 95 * Notification that a key transitioned from "up" to "down".
96 * 96 *
97 * Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class. 97 * Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class.
98 */ 98 */
99 /*
100 * TODO(brettw) differentiate from KEYDOWN.
101 */
102 PP_INPUTEVENT_TYPE_RAWKEYDOWN = 6, 99 PP_INPUTEVENT_TYPE_RAWKEYDOWN = 6,
103 /** 100 /**
104 * Notification that a key was pressed. This does not necessarily correspond 101 * Notification that a key was pressed. This does not necessarily correspond
105 * to a character depending on the key and language. Use the 102 * to a character depending on the key and language. Use the
106 * PP_INPUTEVENT_TYPE_CHAR for character input. 103 * PP_INPUTEVENT_TYPE_CHAR for character input.
107 * 104 *
108 * Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class. 105 * Register for this event using the PP_INPUTEVENT_CLASS_KEYBOARD class.
109 */ 106 */
110 PP_INPUTEVENT_TYPE_KEYDOWN = 7, 107 PP_INPUTEVENT_TYPE_KEYDOWN = 7,
111 /** 108 /**
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
207 PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2, 204 PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2,
208 PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3, 205 PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3,
209 PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4, 206 PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4,
210 PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5, 207 PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5,
211 PP_INPUTEVENT_MODIFIER_LEFTBUTTONDOWN = 1 << 6, 208 PP_INPUTEVENT_MODIFIER_LEFTBUTTONDOWN = 1 << 6,
212 PP_INPUTEVENT_MODIFIER_MIDDLEBUTTONDOWN = 1 << 7, 209 PP_INPUTEVENT_MODIFIER_MIDDLEBUTTONDOWN = 1 << 7,
213 PP_INPUTEVENT_MODIFIER_RIGHTBUTTONDOWN = 1 << 8, 210 PP_INPUTEVENT_MODIFIER_RIGHTBUTTONDOWN = 1 << 8,
214 PP_INPUTEVENT_MODIFIER_CAPSLOCKKEY = 1 << 9, 211 PP_INPUTEVENT_MODIFIER_CAPSLOCKKEY = 1 << 9,
215 PP_INPUTEVENT_MODIFIER_NUMLOCKKEY = 1 << 10, 212 PP_INPUTEVENT_MODIFIER_NUMLOCKKEY = 1 << 10,
216 PP_INPUTEVENT_MODIFIER_ISLEFT = 1 << 11, 213 PP_INPUTEVENT_MODIFIER_ISLEFT = 1 << 11,
217 PP_INPUTEVENT_MODIFIER_ISRIGHT = 1 << 12 214 PP_INPUTEVENT_MODIFIER_ISRIGHT = 1 << 12,
215 PP_INPUTEVENT_MODIFIER_ISPEN = 1 << 13,
216 PP_INPUTEVENT_MODIFIER_ISERASER = 1 << 14
218 } PP_InputEvent_Modifier; 217 } PP_InputEvent_Modifier;
219 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Modifier, 4); 218 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Modifier, 4);
220 219
221 /** 220 /**
222 * This enumeration contains constants representing each mouse button. To get 221 * This enumeration contains constants representing each mouse button. To get
223 * the mouse button for a mouse down or up event, use GetMouseButton on 222 * the mouse button for a mouse down or up event, use GetMouseButton on
224 * PPB_InputEvent. 223 * PPB_InputEvent.
225 */ 224 */
226 typedef enum { 225 typedef enum {
227 PP_INPUTEVENT_MOUSEBUTTON_NONE = -1, 226 PP_INPUTEVENT_MOUSEBUTTON_NONE = -1,
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after
538 * mouse lock was entered. 537 * mouse lock was entered.
539 * 538 *
540 * @param[in] mouse_event A <code>PP_Resource</code> corresponding to a 539 * @param[in] mouse_event A <code>PP_Resource</code> corresponding to a
541 * mouse event. 540 * mouse event.
542 * 541 *
543 * @return The point associated with the mouse event, relative to the upper- 542 * @return The point associated with the mouse event, relative to the upper-
544 * left of the instance receiving the event. These values can be negative for 543 * left of the instance receiving the event. These values can be negative for
545 * mouse drags. The return value will be (0, 0) for non-mouse events. 544 * mouse drags. The return value will be (0, 0) for non-mouse events.
546 */ 545 */
547 struct PP_Point (*GetPosition)(PP_Resource mouse_event); 546 struct PP_Point (*GetPosition)(PP_Resource mouse_event);
548 /*
549 * TODO(brettw) figure out exactly what this means.
550 */
551 int32_t (*GetClickCount)(PP_Resource mouse_event); 547 int32_t (*GetClickCount)(PP_Resource mouse_event);
552 /** 548 /**
553 * Returns the change in position of the mouse. When the mouse is locked, 549 * Returns the change in position of the mouse. When the mouse is locked,
554 * although the mouse position doesn't actually change, this function 550 * although the mouse position doesn't actually change, this function
555 * still provides movement information, which indicates what the change in 551 * still provides movement information, which indicates what the change in
556 * position would be had the mouse not been locked. 552 * position would be had the mouse not been locked.
557 * 553 *
558 * @param[in] mouse_event A <code>PP_Resource</code> corresponding to a 554 * @param[in] mouse_event A <code>PP_Resource</code> corresponding to a
559 * mouse event. 555 * mouse event.
560 * 556 *
(...skipping 476 matching lines...) Expand 10 before | Expand all | Expand 10 after
1037 void (*GetSelection)(PP_Resource ime_event, uint32_t* start, uint32_t* end); 1033 void (*GetSelection)(PP_Resource ime_event, uint32_t* start, uint32_t* end);
1038 }; 1034 };
1039 1035
1040 typedef struct PPB_IMEInputEvent_1_0 PPB_IMEInputEvent; 1036 typedef struct PPB_IMEInputEvent_1_0 PPB_IMEInputEvent;
1041 /** 1037 /**
1042 * @} 1038 * @}
1043 */ 1039 */
1044 1040
1045 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */ 1041 #endif /* PPAPI_C_PPB_INPUT_EVENT_H_ */
1046 1042
OLDNEW
« no previous file with comments | « ppapi/c/pp_macros.h ('k') | third_party/WebKit/Source/core/events/PointerEventFactory.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698