Remove 'char' from IDL
We should just use int8_t or uint8_t instead of char in the IDL. BUG=255715 Review-Url: https://codereview.chromium.org/2394773002 Cr-Commit-Position: refs/heads/master@{#423524}
This commit is contained in:
@ -69,7 +69,7 @@ struct PP_InputEvent_Character {
|
||||
* maximum UTF-8 character is 4 bytes, there will always be at least one null
|
||||
* at the end so you can treat this as a null-terminated UTF-8 string.
|
||||
*/
|
||||
char[5] text;
|
||||
int8_t[5] text;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -111,8 +111,6 @@ struct PP_InputEvent_Mouse {
|
||||
* plugin will give non-integer values.
|
||||
*/
|
||||
float_t y;
|
||||
|
||||
/* TODO(brettw) figure out exactly what this means.*/
|
||||
int32_t click_count;
|
||||
};
|
||||
|
||||
|
@ -59,7 +59,7 @@ struct PP_GamepadSampleData {
|
||||
PP_Bool connected;
|
||||
|
||||
/* Padding to make the struct the same size between 64 and 32. */
|
||||
char[4] unused_pad_;
|
||||
int8_t[4] unused_pad_;
|
||||
};
|
||||
|
||||
/**
|
||||
@ -73,7 +73,7 @@ struct PP_GamepadsSampleData {
|
||||
uint32_t length;
|
||||
|
||||
/* Padding to make the struct the same size between 64 and 32. */
|
||||
char[4] unused_pad_;
|
||||
int8_t[4] unused_pad_;
|
||||
|
||||
/**
|
||||
* Data for an individual gamepad device connected to the system.
|
||||
|
@ -37,7 +37,7 @@ enum PP_NetAddressFamily_Private {
|
||||
[assert_size(132)]
|
||||
struct PP_NetAddress_Private {
|
||||
uint32_t size;
|
||||
char[128] data;
|
||||
int8_t[128] data;
|
||||
};
|
||||
|
||||
/**
|
||||
|
@ -81,7 +81,7 @@ struct PP_InputEvent_Character {
|
||||
* maximum UTF-8 character is 4 bytes, there will always be at least one null
|
||||
* at the end so you can treat this as a null-terminated UTF-8 string.
|
||||
*/
|
||||
char text[5];
|
||||
int8_t text[5];
|
||||
};
|
||||
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Character, 12);
|
||||
|
||||
@ -121,7 +121,6 @@ struct PP_InputEvent_Mouse {
|
||||
* plugin will give non-integer values.
|
||||
*/
|
||||
float y;
|
||||
/* TODO(brettw) figure out exactly what this means. */
|
||||
int32_t click_count;
|
||||
};
|
||||
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_InputEvent_Mouse, 20);
|
||||
|
@ -64,7 +64,7 @@ struct PP_GamepadSampleData {
|
||||
*/
|
||||
PP_Bool connected;
|
||||
/* Padding to make the struct the same size between 64 and 32. */
|
||||
char unused_pad_[4];
|
||||
int8_t unused_pad_[4];
|
||||
};
|
||||
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_GamepadSampleData, 472);
|
||||
|
||||
@ -77,7 +77,7 @@ struct PP_GamepadsSampleData {
|
||||
*/
|
||||
uint32_t length;
|
||||
/* Padding to make the struct the same size between 64 and 32. */
|
||||
char unused_pad_[4];
|
||||
int8_t unused_pad_[4];
|
||||
/**
|
||||
* Data for an individual gamepad device connected to the system.
|
||||
*/
|
||||
|
@ -60,7 +60,7 @@ PP_COMPILE_ASSERT_SIZE_IN_BYTES(PP_NetAddressFamily_Private, 4);
|
||||
*/
|
||||
struct PP_NetAddress_Private {
|
||||
uint32_t size;
|
||||
char data[128];
|
||||
int8_t data[128];
|
||||
};
|
||||
PP_COMPILE_ASSERT_STRUCT_SIZE_IN_BYTES(PP_NetAddress_Private, 132);
|
||||
/**
|
||||
|
Reference in New Issue
Block a user