@@ -141,8 +141,8 @@ struct MaiAtkObjectClass
141141static guint mai_atk_object_signals [LAST_SIGNAL] = { 0 , };
142142
143143#ifdef MAI_LOGGING
144- PRInt32 sMaiAtkObjCreated = 0 ;
145- PRInt32 sMaiAtkObjDeleted = 0 ;
144+ int32_t sMaiAtkObjCreated = 0 ;
145+ int32_t sMaiAtkObjDeleted = 0 ;
146146#endif
147147
148148G_BEGIN_DECLS
@@ -198,8 +198,8 @@ static AtkRelationSet* refRelationSetCB(AtkObject *aAtkObj);
198198*/
199199G_END_DECLS
200200
201- static GType GetMaiAtkType (PRUint16 interfacesBits);
202- static const char * GetUniqueMaiAtkTypeName (PRUint16 interfacesBits);
201+ static GType GetMaiAtkType (uint16_t interfacesBits);
202+ static const char * GetUniqueMaiAtkTypeName (uint16_t interfacesBits);
203203
204204static gpointer parent_class = NULL ;
205205
@@ -232,8 +232,8 @@ mai_atk_object_get_type(void)
232232}
233233
234234#ifdef MAI_LOGGING
235- PRInt32 AccessibleWrap::mAccWrapCreated = 0 ;
236- PRInt32 AccessibleWrap::mAccWrapDeleted = 0 ;
235+ int32_t AccessibleWrap::mAccWrapCreated = 0 ;
236+ int32_t AccessibleWrap::mAccWrapDeleted = 0 ;
237237#endif
238238
239239AccessibleWrap::
@@ -363,10 +363,10 @@ AccessibleWrap::GetAtkObject(nsIAccessible* acc)
363363}
364364
365365/* private */
366- PRUint16
366+ uint16_t
367367AccessibleWrap::CreateMaiInterfaces (void )
368368{
369- PRUint16 interfacesBits = 0 ;
369+ uint16_t interfacesBits = 0 ;
370370
371371 // The Component interface is supported by all accessibles.
372372 interfacesBits |= 1 << MAI_INTERFACE_COMPONENT;
@@ -422,7 +422,7 @@ AccessibleWrap::CreateMaiInterfaces(void)
422422}
423423
424424static GType
425- GetMaiAtkType (PRUint16 interfacesBits)
425+ GetMaiAtkType (uint16_t interfacesBits)
426426{
427427 GType type;
428428 static const GTypeInfo tinfo = {
@@ -454,15 +454,15 @@ GetMaiAtkType(PRUint16 interfacesBits)
454454 * gobject limits the number of types that can directly derive from any
455455 * given object type to 4095.
456456 */
457- static PRUint16 typeRegCount = 0 ;
457+ static uint16_t typeRegCount = 0 ;
458458 if (typeRegCount++ >= 4095 ) {
459459 return G_TYPE_INVALID;
460460 }
461461 type = g_type_register_static (MAI_TYPE_ATK_OBJECT,
462462 atkTypeName,
463463 &tinfo, GTypeFlags (0 ));
464464
465- for (PRUint32 index = 0 ; index < ArrayLength (atk_if_infos); index++) {
465+ for (uint32_t index = 0 ; index < ArrayLength (atk_if_infos); index++) {
466466 if (interfacesBits & (1 << index)) {
467467 g_type_add_interface_static (type,
468468 GetAtkTypeForMai ((MaiInterfaceType)index),
@@ -474,9 +474,9 @@ GetMaiAtkType(PRUint16 interfacesBits)
474474}
475475
476476static const char *
477- GetUniqueMaiAtkTypeName (PRUint16 interfacesBits)
477+ GetUniqueMaiAtkTypeName (uint16_t interfacesBits)
478478{
479- #define MAI_ATK_TYPE_NAME_LEN (30 ) /* 10+sizeof(PRUint16 )*8/4+1 < 30 */
479+ #define MAI_ATK_TYPE_NAME_LEN (30 ) /* 10+sizeof(uint16_t )*8/4+1 < 30 */
480480
481481 static gchar namePrefix[] = " MaiAtkType" ; /* size = 10 */
482482 static gchar name[MAI_ATK_TYPE_NAME_LEN + 1 ];
@@ -848,12 +848,12 @@ getIndexInParentCB(AtkObject *aAtkObj)
848848}
849849
850850static void
851- TranslateStates (PRUint64 aState, AtkStateSet* aStateSet)
851+ TranslateStates (uint64_t aState, AtkStateSet* aStateSet)
852852{
853853
854854 // Convert every state to an entry in AtkStateMap
855- PRUint32 stateIndex = 0 ;
856- PRUint64 bitMask = 1 ;
855+ uint32_t stateIndex = 0 ;
856+ uint64_t bitMask = 1 ;
857857 while (gAtkStateMap [stateIndex].stateMapEntryType != kNoSuchState ) {
858858 if (gAtkStateMap [stateIndex].atkState ) { // There's potentially an ATK state for this
859859 bool isStateOn = (aState & bitMask) != 0 ;
@@ -897,7 +897,7 @@ refRelationSetCB(AtkObject *aAtkObj)
897897 if (!accWrap)
898898 return relation_set;
899899
900- PRUint32 relationTypes[] = {
900+ uint32_t relationTypes[] = {
901901 nsIAccessibleRelation::RELATION_LABELLED_BY,
902902 nsIAccessibleRelation::RELATION_LABEL_FOR,
903903 nsIAccessibleRelation::RELATION_NODE_CHILD_OF,
@@ -910,7 +910,7 @@ refRelationSetCB(AtkObject *aAtkObj)
910910 nsIAccessibleRelation::RELATION_DESCRIPTION_FOR,
911911 };
912912
913- for (PRUint32 i = 0 ; i < ArrayLength (relationTypes); i++) {
913+ for (uint32_t i = 0 ; i < ArrayLength (relationTypes); i++) {
914914 AtkRelationType atkType = static_cast <AtkRelationType>(relationTypes[i]);
915915 AtkRelation* atkRelation =
916916 atk_relation_set_get_relation_by_type (relation_set, atkType);
@@ -969,7 +969,7 @@ AccessibleWrap::FirePlatformEvent(AccEvent* aEvent)
969969 Accessible* accessible = aEvent->GetAccessible ();
970970 NS_ENSURE_TRUE (accessible, NS_ERROR_FAILURE);
971971
972- PRUint32 type = aEvent->GetEventType ();
972+ uint32_t type = aEvent->GetEventType ();
973973
974974 AtkObject* atkObj = AccessibleWrap::GetAtkObject (accessible);
975975
@@ -1062,7 +1062,7 @@ AccessibleWrap::FirePlatformEvent(AccEvent* aEvent)
10621062 if (!caretMoveEvent)
10631063 break ;
10641064
1065- PRInt32 caretOffset = caretMoveEvent->GetCaretOffset ();
1065+ int32_t caretOffset = caretMoveEvent->GetCaretOffset ();
10661066
10671067 MAI_LOG_DEBUG ((" \n\n Caret postion: %d" , caretOffset));
10681068 g_signal_emit_by_name (atkObj,
@@ -1089,8 +1089,8 @@ AccessibleWrap::FirePlatformEvent(AccEvent* aEvent)
10891089 AccTableChangeEvent* tableEvent = downcast_accEvent (aEvent);
10901090 NS_ENSURE_TRUE (tableEvent, NS_ERROR_FAILURE);
10911091
1092- PRInt32 rowIndex = tableEvent->GetIndex ();
1093- PRInt32 numRows = tableEvent->GetCount ();
1092+ int32_t rowIndex = tableEvent->GetIndex ();
1093+ int32_t numRows = tableEvent->GetCount ();
10941094
10951095 g_signal_emit_by_name (atkObj,
10961096 " row_inserted" ,
@@ -1106,8 +1106,8 @@ AccessibleWrap::FirePlatformEvent(AccEvent* aEvent)
11061106 AccTableChangeEvent* tableEvent = downcast_accEvent (aEvent);
11071107 NS_ENSURE_TRUE (tableEvent, NS_ERROR_FAILURE);
11081108
1109- PRInt32 rowIndex = tableEvent->GetIndex ();
1110- PRInt32 numRows = tableEvent->GetCount ();
1109+ int32_t rowIndex = tableEvent->GetIndex ();
1110+ int32_t numRows = tableEvent->GetCount ();
11111111
11121112 g_signal_emit_by_name (atkObj,
11131113 " row_deleted" ,
@@ -1130,8 +1130,8 @@ AccessibleWrap::FirePlatformEvent(AccEvent* aEvent)
11301130 AccTableChangeEvent* tableEvent = downcast_accEvent (aEvent);
11311131 NS_ENSURE_TRUE (tableEvent, NS_ERROR_FAILURE);
11321132
1133- PRInt32 colIndex = tableEvent->GetIndex ();
1134- PRInt32 numCols = tableEvent->GetCount ();
1133+ int32_t colIndex = tableEvent->GetIndex ();
1134+ int32_t numCols = tableEvent->GetCount ();
11351135
11361136 g_signal_emit_by_name (atkObj,
11371137 " column_inserted" ,
@@ -1147,8 +1147,8 @@ AccessibleWrap::FirePlatformEvent(AccEvent* aEvent)
11471147 AccTableChangeEvent* tableEvent = downcast_accEvent (aEvent);
11481148 NS_ENSURE_TRUE (tableEvent, NS_ERROR_FAILURE);
11491149
1150- PRInt32 colIndex = tableEvent->GetIndex ();
1151- PRInt32 numCols = tableEvent->GetCount ();
1150+ int32_t colIndex = tableEvent->GetIndex ();
1151+ int32_t numCols = tableEvent->GetCount ();
11521152
11531153 g_signal_emit_by_name (atkObj,
11541154 " column_deleted" ,
@@ -1273,7 +1273,7 @@ AccessibleWrap::FireAtkStateChangeEvent(AccEvent* aEvent,
12731273 NS_ENSURE_TRUE (event, NS_ERROR_FAILURE);
12741274
12751275 bool isEnabled = event->IsStateEnabled ();
1276- PRInt32 stateIndex = AtkStateMap::GetStateIndexFor (event->GetState ());
1276+ int32_t stateIndex = AtkStateMap::GetStateIndexFor (event->GetState ());
12771277 if (stateIndex >= 0 ) {
12781278 NS_ASSERTION (gAtkStateMap [stateIndex].stateMapEntryType != kNoSuchState ,
12791279 " No such state" );
@@ -1304,8 +1304,8 @@ AccessibleWrap::FireAtkTextChangedEvent(AccEvent* aEvent,
13041304 AccTextChangeEvent* event = downcast_accEvent (aEvent);
13051305 NS_ENSURE_TRUE (event, NS_ERROR_FAILURE);
13061306
1307- PRInt32 start = event->GetStartOffset ();
1308- PRUint32 length = event->GetLength ();
1307+ int32_t start = event->GetStartOffset ();
1308+ uint32_t length = event->GetLength ();
13091309 bool isInserted = event->IsTextInserted ();
13101310 bool isFromUserInput = aEvent->IsFromUserInput ();
13111311 char * signal_name = nullptr ;
@@ -1346,7 +1346,7 @@ AccessibleWrap::FireAtkShowHideEvent(AccEvent* aEvent,
13461346 MAI_LOG_DEBUG ((" \n\n Received: Hide event\n " ));
13471347 }
13481348
1349- PRInt32 indexInParent = getIndexInParentCB (aObject);
1349+ int32_t indexInParent = getIndexInParentCB (aObject);
13501350 AtkObject *parentObject = getParentCB (aObject);
13511351 NS_ENSURE_STATE (parentObject);
13521352
0 commit comments