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

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

Issue 9288006: Minor changes as per Christians most-recent review of the docs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 10 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
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 pp_input_event.idl modified Wed Oct 5 14:06:02 2011. */ 6 /* From pp_input_event.idl modified Fri Jan 20 13:08:22 2012. */
7 7
8 #ifndef PPAPI_C_PP_INPUT_EVENT_H_ 8 #ifndef PPAPI_C_PP_INPUT_EVENT_H_
9 #define PPAPI_C_PP_INPUT_EVENT_H_ 9 #define PPAPI_C_PP_INPUT_EVENT_H_
10 10
11 #include "ppapi/c/pp_bool.h" 11 #include "ppapi/c/pp_bool.h"
12 #include "ppapi/c/pp_macros.h" 12 #include "ppapi/c/pp_macros.h"
13 #include "ppapi/c/pp_stdint.h" 13 #include "ppapi/c/pp_stdint.h"
14 #include "ppapi/c/ppb_input_event.h" 14 #include "ppapi/c/ppb_input_event.h"
15 15
16 /** 16 /**
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 * character (can't combine it with 'R', so just send the raw unlaut so it 72 * character (can't combine it with 'R', so just send the raw unlaut so it
73 * isn't lost"), 'R' character event, 'R' key up. 73 * isn't lost"), 'R' character event, 'R' key up.
74 */ 74 */
75 struct PP_InputEvent_Character { 75 struct PP_InputEvent_Character {
76 /** A combination of the <code>PP_InputEvent_Modifier</code> flags. */ 76 /** A combination of the <code>PP_InputEvent_Modifier</code> flags. */
77 uint32_t modifier; 77 uint32_t modifier;
78 /** 78 /**
79 * This value represents the typed character as a single null-terminated UTF-8 79 * This value represents the typed character as a single null-terminated UTF-8
80 * character. Any unused bytes will be filled with null bytes. Since the 80 * character. Any unused bytes will be filled with null bytes. Since the
81 * maximum UTF-8 character is 4 bytes, there will always be at least one null 81 * maximum UTF-8 character is 4 bytes, there will always be at least one null
82 * at the end so you can treat this as a null-termianted UTF-8 string. 82 * at the end so you can treat this as a null-terminated UTF-8 string.
83 */ 83 */
84 char text[5]; 84 char text[5];
85 }; 85 };
86 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Character, 12); 86 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Character, 12);
87 87
88 /** 88 /**
89 * The <code>PP_InputEvent_Mouse</code> struct represents all mouse events 89 * The <code>PP_InputEvent_Mouse</code> struct represents all mouse events
90 * except mouse wheel events. 90 * except mouse wheel events.
91 */ 91 */
92 struct PP_InputEvent_Mouse { 92 struct PP_InputEvent_Mouse {
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 */ 205 */
206 PP_Bool scroll_by_page; 206 PP_Bool scroll_by_page;
207 }; 207 };
208 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Wheel, 24); 208 PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Wheel, 24);
209 /** 209 /**
210 * @} 210 * @}
211 */ 211 */
212 212
213 #endif /* PPAPI_C_PP_INPUT_EVENT_H_ */ 213 #endif /* PPAPI_C_PP_INPUT_EVENT_H_ */
214 214
OLDNEW
« no previous file with comments | « ppapi/api/ppb_file_system.idl ('k') | ppapi/c/ppb_audio_config.h » ('j') | ppapi/cpp/var.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698