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

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

Issue 6257011: PPAPI: Add context menu events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: drive-by Created 9 years, 11 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | webkit/plugins/ppapi/event_conversion.cc » ('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) 2010 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2011 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 #ifndef PPAPI_C_PP_INPUT_EVENT_H_ 5 #ifndef PPAPI_C_PP_INPUT_EVENT_H_
6 #define PPAPI_C_PP_INPUT_EVENT_H_ 6 #define PPAPI_C_PP_INPUT_EVENT_H_
7 7
8 /** 8 /**
9 * @file 9 * @file
10 * Defines the API ... 10 * Defines the API ...
11 * 11 *
12 * @addtogroup PP 12 * @addtogroup PP
13 * @{ 13 * @{
14 */ 14 */
15 15
16 #include "ppapi/c/pp_bool.h" 16 #include "ppapi/c/pp_bool.h"
17 #include "ppapi/c/pp_macros.h" 17 #include "ppapi/c/pp_macros.h"
18 #include "ppapi/c/pp_stdint.h" 18 #include "ppapi/c/pp_stdint.h"
19 #include "ppapi/c/pp_time.h" 19 #include "ppapi/c/pp_time.h"
20 20
21 typedef enum { 21 typedef enum {
22 PP_INPUTEVENT_MOUSEBUTTON_NONE = -1, 22 PP_INPUTEVENT_MOUSEBUTTON_NONE = -1,
23 PP_INPUTEVENT_MOUSEBUTTON_LEFT = 0, 23 PP_INPUTEVENT_MOUSEBUTTON_LEFT = 0,
24 PP_INPUTEVENT_MOUSEBUTTON_MIDDLE = 1, 24 PP_INPUTEVENT_MOUSEBUTTON_MIDDLE = 1,
25 PP_INPUTEVENT_MOUSEBUTTON_RIGHT = 2 25 PP_INPUTEVENT_MOUSEBUTTON_RIGHT = 2
26 } PP_InputEvent_MouseButton; 26 } PP_InputEvent_MouseButton;
27 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_MouseButton, 4); 27 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_MouseButton, 4);
28 28
29 typedef enum { 29 typedef enum {
30 PP_INPUTEVENT_TYPE_UNDEFINED = -1, 30 PP_INPUTEVENT_TYPE_UNDEFINED = -1,
31 PP_INPUTEVENT_TYPE_MOUSEDOWN = 0, 31 PP_INPUTEVENT_TYPE_MOUSEDOWN = 0, // PP_InputEvent_Mouse
32 PP_INPUTEVENT_TYPE_MOUSEUP = 1, 32 PP_INPUTEVENT_TYPE_MOUSEUP = 1, // PP_InputEvent_Mouse
33 PP_INPUTEVENT_TYPE_MOUSEMOVE = 2, 33 PP_INPUTEVENT_TYPE_MOUSEMOVE = 2, // PP_InputEvent_Mouse
34 PP_INPUTEVENT_TYPE_MOUSEENTER = 3, 34 PP_INPUTEVENT_TYPE_MOUSEENTER = 3, // PP_InputEvent_Mouse
35 PP_INPUTEVENT_TYPE_MOUSELEAVE = 4, 35 PP_INPUTEVENT_TYPE_MOUSELEAVE = 4, // PP_InputEvent_Mouse
36 PP_INPUTEVENT_TYPE_MOUSEWHEEL = 5, 36 PP_INPUTEVENT_TYPE_MOUSEWHEEL = 5, // PP_InputEvent_Wheel
37 PP_INPUTEVENT_TYPE_RAWKEYDOWN = 6, 37 PP_INPUTEVENT_TYPE_RAWKEYDOWN = 6, // PP_InputEvent_Key
38 PP_INPUTEVENT_TYPE_KEYDOWN = 7, 38 PP_INPUTEVENT_TYPE_KEYDOWN = 7, // PP_InputEvent_Key
39 PP_INPUTEVENT_TYPE_KEYUP = 8, 39 PP_INPUTEVENT_TYPE_KEYUP = 8, // PP_InputEvent_Key
40 PP_INPUTEVENT_TYPE_CHAR = 9 40 PP_INPUTEVENT_TYPE_CHAR = 9, // PP_InputEvent_Character
41 PP_INPUTEVENT_TYPE_CONTEXTMENU = 10 // PP_InputEvent_Mouse
41 } PP_InputEvent_Type; 42 } PP_InputEvent_Type;
42 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Type, 4); 43 PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_InputEvent_Type, 4);
43 44
44 typedef enum { 45 typedef enum {
45 PP_INPUTEVENT_MODIFIER_SHIFTKEY = 1 << 0, 46 PP_INPUTEVENT_MODIFIER_SHIFTKEY = 1 << 0,
46 PP_INPUTEVENT_MODIFIER_CONTROLKEY = 1 << 1, 47 PP_INPUTEVENT_MODIFIER_CONTROLKEY = 1 << 1,
47 PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2, 48 PP_INPUTEVENT_MODIFIER_ALTKEY = 1 << 2,
48 PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3, 49 PP_INPUTEVENT_MODIFIER_METAKEY = 1 << 3,
49 PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4, 50 PP_INPUTEVENT_MODIFIER_ISKEYPAD = 1 << 4,
50 PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5, 51 PP_INPUTEVENT_MODIFIER_ISAUTOREPEAT = 1 << 5,
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 } u; 188 } u;
188 }; 189 };
189 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent, 80); 190 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent, 80);
190 191
191 /** 192 /**
192 * @} 193 * @}
193 * End of addtogroup PP 194 * End of addtogroup PP
194 */ 195 */
195 196
196 #endif /* PPAPI_C_PP_INPUT_EVENT_H_ */ 197 #endif /* PPAPI_C_PP_INPUT_EVENT_H_ */
197
OLDNEW
« no previous file with comments | « no previous file | webkit/plugins/ppapi/event_conversion.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698