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

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

Issue 2394773002: Remove 'char' from IDL (Closed)
Patch Set: Created 4 years, 2 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 | « no previous file | ppapi/api/ppb_gamepad.idl » ('j') | ppapi/c/pp_input_event.h » ('J')
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 API used to handle mouse and keyboard input events. 7 * This file defines the API used to handle mouse and keyboard input events.
8 */ 8 */
9 9
10 /** 10 /**
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 struct PP_InputEvent_Character { 62 struct PP_InputEvent_Character {
63 /** A combination of the <code>PP_InputEvent_Modifier</code> flags. */ 63 /** A combination of the <code>PP_InputEvent_Modifier</code> flags. */
64 uint32_t modifier; 64 uint32_t modifier;
65 65
66 /** 66 /**
67 * This value represents the typed character as a single null-terminated UTF-8 67 * This value represents the typed character as a single null-terminated UTF-8
68 * character. Any unused bytes will be filled with null bytes. Since the 68 * character. Any unused bytes will be filled with null bytes. Since the
69 * maximum UTF-8 character is 4 bytes, there will always be at least one null 69 * maximum UTF-8 character is 4 bytes, there will always be at least one null
70 * at the end so you can treat this as a null-terminated UTF-8 string. 70 * at the end so you can treat this as a null-terminated UTF-8 string.
71 */ 71 */
72 char[5] text; 72 int8_t[5] text;
73 }; 73 };
74 74
75 /** 75 /**
76 * The <code>PP_InputEvent_Mouse</code> struct represents all mouse events 76 * The <code>PP_InputEvent_Mouse</code> struct represents all mouse events
77 * except mouse wheel events. 77 * except mouse wheel events.
78 */ 78 */
79 [assert_size(20)] 79 [assert_size(20)]
80 struct PP_InputEvent_Mouse { 80 struct PP_InputEvent_Mouse {
81 /** 81 /**
82 * This value is a bit field combination of the 82 * This value is a bit field combination of the
(...skipping 22 matching lines...) Expand all
105 * This values represents the y coordinate of the mouse when the event 105 * This values represents the y coordinate of the mouse when the event
106 * occurred. 106 * occurred.
107 * 107 *
108 * In most, but not all, cases these coordinates will just be integers. 108 * In most, but not all, cases these coordinates will just be integers.
109 * For example, the plugin element might be arbitrarily scaled or transformed 109 * For example, the plugin element might be arbitrarily scaled or transformed
110 * in the DOM, and translating a mouse event into the coordinate space of the 110 * in the DOM, and translating a mouse event into the coordinate space of the
111 * plugin will give non-integer values. 111 * plugin will give non-integer values.
112 */ 112 */
113 float_t y; 113 float_t y;
114 114
115 /* TODO(brettw) figure out exactly what this means.*/ 115 /* (brettw) figure out exactly what this means.*/
bbudge 2016/10/05 14:07:34 Just delete the comment.
116 int32_t click_count; 116 int32_t click_count;
117 }; 117 };
118 118
119 /** 119 /**
120 * The <code>PP_InputEvent_Wheel</code> struct represents all mouse wheel 120 * The <code>PP_InputEvent_Wheel</code> struct represents all mouse wheel
121 * events. 121 * events.
122 */ 122 */
123 [assert_size(24)] struct PP_InputEvent_Wheel { 123 [assert_size(24)] struct PP_InputEvent_Wheel {
124 /** 124 /**
125 * This value represents a combination of the <code>EVENT_MODIFIER</code> 125 * This value represents a combination of the <code>EVENT_MODIFIER</code>
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
194 float_t wheel_ticks_y; 194 float_t wheel_ticks_y;
195 195
196 /** 196 /**
197 * Indicates if the scroll <code>delta_x</code>/<code>delta_y</code> 197 * Indicates if the scroll <code>delta_x</code>/<code>delta_y</code>
198 * indicates pages or lines to scroll by. When true, the user is requesting 198 * indicates pages or lines to scroll by. When true, the user is requesting
199 * to scroll by pages. 199 * to scroll by pages.
200 */ 200 */
201 PP_Bool scroll_by_page; 201 PP_Bool scroll_by_page;
202 }; 202 };
203 203
OLDNEW
« no previous file with comments | « no previous file | ppapi/api/ppb_gamepad.idl » ('j') | ppapi/c/pp_input_event.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698