* atk-adaptor/component-adaptor.c, atk-adaptor/image-adaptor.c,
authorMike Gorse <mgorse@boston.site>
Thu, 16 Apr 2009 16:49:25 +0000 (11:49 -0500)
committerMark Doffman <mdoff@silver-wind.(none)>
Tue, 21 Apr 2009 16:16:03 +0000 (17:16 +0100)
atk-adaptor/text-adaptor.c, xml/org.freedesktop.atspi.Accessible.xml,
xml/org.freedesktop.atspi.Component.xml,
xml/org.freedesktop.atspi.Image.xml,
xml/org.freedesktop.atspi.Text.xml:
Conver tenums to DBUS_TYPE_UINT32 for consistency.

atk-adaptor/component-adaptor.c
atk-adaptor/image-adaptor.c
atk-adaptor/text-adaptor.c
xml/org.freedesktop.atspi.Accessible.xml
xml/org.freedesktop.atspi.Component.xml
xml/org.freedesktop.atspi.Image.xml
xml/org.freedesktop.atspi.Text.xml

index d51c5fb..7e96ef9 100644 (file)
@@ -33,7 +33,7 @@ impl_contains (DBusConnection * bus, DBusMessage * message, void *user_data)
 {
   AtkComponent *component = (AtkComponent *) user_data;
   dbus_int32_t x, y;
-  dbus_int16_t coord_type;
+  dbus_uint32_t coord_type;
   DBusError error;
   dbus_bool_t retval;
   DBusMessage *reply;
@@ -44,7 +44,7 @@ impl_contains (DBusConnection * bus, DBusMessage * message, void *user_data)
   dbus_error_init (&error);
   if (!dbus_message_get_args
       (message, &error, DBUS_TYPE_INT32, &x, DBUS_TYPE_INT32, &y,
-       DBUS_TYPE_INT16, &coord_type, DBUS_TYPE_INVALID))
+       DBUS_TYPE_UINT32, &coord_type, DBUS_TYPE_INVALID))
     {
       return droute_invalid_arguments_error (message);
     }
@@ -65,7 +65,7 @@ impl_getAccessibleAtPoint (DBusConnection * bus, DBusMessage * message,
 {
   AtkComponent *component = (AtkComponent *) user_data;
   dbus_int32_t x, y;
-  dbus_int16_t coord_type;
+  dbus_uint32_t coord_type;
   DBusError error;
   AtkObject *child;
 
@@ -75,7 +75,7 @@ impl_getAccessibleAtPoint (DBusConnection * bus, DBusMessage * message,
   dbus_error_init (&error);
   if (!dbus_message_get_args
       (message, &error, DBUS_TYPE_INT32, &x, DBUS_TYPE_INT32, &y,
-       DBUS_TYPE_INT16, &coord_type, DBUS_TYPE_INVALID))
+       DBUS_TYPE_UINT32, &coord_type, DBUS_TYPE_INVALID))
     {
       return droute_invalid_arguments_error (message);
     }
@@ -90,7 +90,7 @@ impl_getExtents (DBusConnection * bus, DBusMessage * message, void *user_data)
 {
   AtkComponent *component = (AtkComponent *) user_data;
   DBusError error;
-  dbus_int16_t coord_type;
+  dbus_uint32_t coord_type;
   gint ix, iy, iwidth, iheight;
 
   g_return_val_if_fail (ATK_IS_COMPONENT (user_data),
@@ -98,7 +98,7 @@ impl_getExtents (DBusConnection * bus, DBusMessage * message, void *user_data)
 
   dbus_error_init (&error);
   if (!dbus_message_get_args
-      (message, &error, DBUS_TYPE_INT16, &coord_type, DBUS_TYPE_INVALID))
+      (message, &error, DBUS_TYPE_UINT32, &coord_type, DBUS_TYPE_INVALID))
     {
       return droute_invalid_arguments_error (message);
     }
@@ -113,7 +113,7 @@ impl_getPosition (DBusConnection * bus, DBusMessage * message,
 {
   AtkComponent *component = (AtkComponent *) user_data;
   DBusError error;
-  dbus_int16_t coord_type;
+  dbus_uint32_t coord_type;
   gint ix = 0, iy = 0;
   dbus_int32_t x, y;
   DBusMessage *reply;
@@ -123,7 +123,7 @@ impl_getPosition (DBusConnection * bus, DBusMessage * message,
 
   dbus_error_init (&error);
   if (!dbus_message_get_args
-      (message, &error, DBUS_TYPE_INT16, &coord_type, DBUS_TYPE_INVALID))
+      (message, &error, DBUS_TYPE_UINT32, &coord_type, DBUS_TYPE_INVALID))
     {
       return droute_invalid_arguments_error (message);
     }
index 7e6143e..966ec38 100644 (file)
@@ -52,14 +52,14 @@ impl_getImageExtents (DBusConnection * bus, DBusMessage * message,
 {
   AtkImage *image = (AtkImage *) user_data;
   DBusError error;
-  dbus_int16_t coordType;
+  dbus_uint32_t coordType;
   gint ix, iy, iwidth, iheight;
 
   g_return_val_if_fail (ATK_IS_IMAGE (user_data),
                         droute_not_yet_handled_error (message));
   dbus_error_init (&error);
   if (!dbus_message_get_args
-      (message, &error, DBUS_TYPE_INT16, &coordType, DBUS_TYPE_INVALID))
+      (message, &error, DBUS_TYPE_UINT32, &coordType, DBUS_TYPE_INVALID))
     {
       return droute_invalid_arguments_error (message);
     }
@@ -74,7 +74,7 @@ impl_getImagePosition (DBusConnection * bus, DBusMessage * message,
 {
   AtkImage *image = (AtkImage *) user_data;
   DBusError error;
-  dbus_int16_t coord_type;
+  dbus_uint32_t coord_type;
   gint ix = 0, iy = 0;
   dbus_int32_t x, y;
   DBusMessage *reply;
@@ -83,7 +83,7 @@ impl_getImagePosition (DBusConnection * bus, DBusMessage * message,
                         droute_not_yet_handled_error (message));
   dbus_error_init (&error);
   if (!dbus_message_get_args
-      (message, &error, DBUS_TYPE_INT16, &coord_type, DBUS_TYPE_INVALID))
+      (message, &error, DBUS_TYPE_UINT32, &coord_type, DBUS_TYPE_INVALID))
     {
       return droute_invalid_arguments_error (message);
     }
index ae3eed6..4a43542 100644 (file)
@@ -408,7 +408,7 @@ impl_getCharacterExtents (DBusConnection * bus, DBusMessage * message,
 {
   AtkText *text = (AtkText *) user_data;
   dbus_int32_t offset;
-  dbus_int16_t coordType;
+  dbus_uint32_t coordType;
   dbus_int32_t x, y, width, height;
   gint ix = 0, iy = 0, iw = 0, ih = 0;
   DBusError error;
@@ -418,7 +418,7 @@ impl_getCharacterExtents (DBusConnection * bus, DBusMessage * message,
                         droute_not_yet_handled_error (message));
   dbus_error_init (&error);
   if (!dbus_message_get_args
-      (message, &error, DBUS_TYPE_INT32, &offset, DBUS_TYPE_INT16, &coordType,
+      (message, &error, DBUS_TYPE_INT32, &offset, DBUS_TYPE_UINT32, &coordType,
        DBUS_TYPE_INVALID))
     {
       return droute_invalid_arguments_error (message);
@@ -445,7 +445,7 @@ impl_getOffsetAtPoint (DBusConnection * bus, DBusMessage * message,
 {
   AtkText *text = (AtkText *) user_data;
   dbus_int32_t x, y;
-  dbus_int16_t coordType;
+  dbus_uint32_t coordType;
   dbus_int32_t rv;
   DBusError error;
   DBusMessage *reply;
@@ -455,7 +455,7 @@ impl_getOffsetAtPoint (DBusConnection * bus, DBusMessage * message,
   dbus_error_init (&error);
   if (!dbus_message_get_args
       (message, &error, DBUS_TYPE_INT32, &x, DBUS_TYPE_INT32, &y,
-       DBUS_TYPE_INT16, &coordType, DBUS_TYPE_INVALID))
+       DBUS_TYPE_UINT32, &coordType, DBUS_TYPE_INVALID))
     {
       return droute_invalid_arguments_error (message);
     }
@@ -615,7 +615,7 @@ impl_getRangeExtents (DBusConnection * bus, DBusMessage * message,
 {
   AtkText *text = (AtkText *) user_data;
   dbus_int32_t startOffset, endOffset;
-  dbus_int16_t coordType;
+  dbus_uint32_t coordType;
   AtkTextRectangle rect;
   dbus_int32_t x, y, width, height;
   DBusError error;
@@ -626,7 +626,7 @@ impl_getRangeExtents (DBusConnection * bus, DBusMessage * message,
   dbus_error_init (&error);
   if (!dbus_message_get_args
       (message, &error, DBUS_TYPE_INT32, &startOffset, DBUS_TYPE_INT32,
-       &endOffset, DBUS_TYPE_INT16, &coordType, DBUS_TYPE_INVALID))
+       &endOffset, DBUS_TYPE_UINT32, &coordType, DBUS_TYPE_INVALID))
     {
       return droute_invalid_arguments_error (message);
     }
@@ -655,7 +655,7 @@ impl_getBoundedRanges (DBusConnection * bus, DBusMessage * message,
 {
   AtkText *text = (AtkText *) user_data;
   dbus_int32_t x, y, width, height;
-  dbus_int16_t coordType, xClipType, yClipType;
+  dbus_uint32_t coordType, xClipType, yClipType;
   DBusError error;
   AtkTextRange **range_list = NULL;
   AtkTextRectangle rect;
@@ -667,8 +667,8 @@ impl_getBoundedRanges (DBusConnection * bus, DBusMessage * message,
   dbus_error_init (&error);
   if (!dbus_message_get_args
       (message, &error, DBUS_TYPE_INT32, &x, DBUS_TYPE_INT32, &y,
-       DBUS_TYPE_INT32, &height, DBUS_TYPE_INT32, &width, DBUS_TYPE_INT16,
-       &coordType, DBUS_TYPE_INT32, &xClipType, DBUS_TYPE_INT32, &yClipType,
+       DBUS_TYPE_INT32, &height, DBUS_TYPE_INT32, &width, DBUS_TYPE_UINT32,
+       &coordType, DBUS_TYPE_UINT32, &xClipType, DBUS_TYPE_UINT32, &yClipType,
        DBUS_TYPE_INVALID))
     {
       return droute_invalid_arguments_error (message);
index 4a40d41..f34eba9 100644 (file)
   <tp:enumvalue suffix="LOCALE_TYPE_NUMERIC" value="4"/>
   <tp:enumvalue suffix="LOCALE_TYPE_TIME" value="5"/>
 </tp:enum>
+
+<tp:enum name="COORD_TYPE" type="u">
+  <tp:docstring>
+  Used by Component, Image, and Text interfaces to specify whether coordinates are relative to the window or the screen.
+  </tp:docstring>
+  <tp:enumvalue suffix="COORD_TYPE_SCREEN"/>
+  <tp:enumvalue suffix="COORD_TYPE_WINDOW" value="1"/>
+</tp:enum>
+
 <tp:struct name="BoundingBox">
   <tp:docstring xmlns="http://www.w3.org/1999/xhtml">
     Used by Component and Text interfaces, a struct defining a bounding rectangle. 
index 129e2dc..26ee741 100644 (file)
@@ -96,7 +96,7 @@
   <method name="contains">
     <arg direction="in" name="x" type="i"/>
     <arg direction="in" name="y" type="i"/>
-    <arg direction="in" name="coord_type" type="n" tp:type="short"/>
+    <arg direction="in" name="coord_type" type="u" tp:type="COORD_TYPE"/>
     <arg direction="out" type="b" tp:type="boolean">
     <tp:docstring>
            <code>True</code>if the specified point lies within the Component's bounding box, <code>False</code> otherwise. 
   <method name="getAccessibleAtPoint">
     <arg direction="in" name="x" type="i"/>
     <arg direction="in" name="y" type="i"/>
-    <arg direction="in" name="coord_type" type="n" tp:type="short"/>
+    <arg direction="in" name="coord_type" type="u" tp:type="COORD_TYPE"/>
     <arg direction="out" type="o" tp:type="Accessible">
     <tp:docstring>
       The Accessible child whose bounding box contains the specified point. 
     <tp:docstring>
       Obtain the Component's bounding box, in pixels, relative to the specified coordinate system. 
     </tp:docstring>
-    <arg direction="in" name="coord_type" type="n" tp:type="short"/>
+    <arg direction="in" name="coord_type" type="u" tp:type="COORD_TYPE"/>
     <arg direction="out" type="(iiii)" tp:type="BoundingBox">
     <tp:docstring>
       A BoundingBox which entirely contains the object's onscreen visual representation.
         by <code>coord_type.</code>
       </p>
     </tp:docstring>
-    <arg direction="in" name="coord_type" type="n" tp:type="short">
+    <arg direction="in" name="coord_type" type="u" tp:type="COORD_TYPE">
            <tp:docstring>
            <ol>
              <li>0 indicates coord_type_xy_screen, coordinates are relative to the display screen, in pixels.</li>
index f9dea53..17b63e5 100644 (file)
@@ -41,7 +41,7 @@
         view, and not the nominal size of the source data in the
         event that the original image has been rescaled.    </p>
     </tp:docstring>
-    <arg direction="in" name="coordType" type="n" tp:type="short">
+    <arg direction="in" name="coordType" type="u" tp:type="COORD_TYPE">
            <tp:docstring>
       <p>If 0, the returned bounding box position is returned
         relative to the screen; if 1, the bounding box position is returned 
@@ -71,7 +71,7 @@
         onscreen image (i.e. the minimum y coordinate)
        </tp:docstring>
     </arg>
-    <arg direction="in" name="coordType" type="n" tp:type="short">
+    <arg direction="in" name="coordType" type="u" tp:type="COORD_TYPE">
        <tp:docstring>
         If 0, the returned x and y coordinates are 
         returned relative to the screen; 
index ca26016..50ede9c 100644 (file)
     </arg>
     <arg direction="in" name="type" type="u" tp:type="TEXT_BOUNDARY_TYPE">
            <tp:docstring>
-        The text-boundary delimiter which determines whether the returned text constitures
+        The text-boundary delimiter which determines whether the returned text constitutes
         a character, word, line, or sentence (and possibly attendant whitespace), 
         and whether the start or ending of such a substring forms the boundary condition.
            </tp:docstring>
        the character at <code>offset</code>.
            </tp:docstring>
     </arg>
-    <arg direction="in" name="coordType" type="n" tp:type="short">
+    <arg direction="in" name="coordType" type="u" tp:type="COORD_TYPE">
            <tp:docstring>
                    <p>If 0, the results will be reported in screen coordinates, i.e. in pixels
         relative to the upper-left corner of the screen, with the x axis pointing right
     </tp:docstring>
     <arg direction="in" name="x" type="i"/>
     <arg direction="in" name="y" type="i"/>
-    <arg direction="in" name="coordType" type="n" tp:type="short">
+    <arg direction="in" name="coordType" type="u" tp:type="COORD_TYPE">
            <tp:docstring>
         If 0, the input coordinates are interpreted relative to the entire screen, if 1,
         they are relative to the toplevel window containing this Text object.
         An integer parameter which is back-filled with the
         vertical extent of the bounding box.
     </arg>
-    <arg direction="in" name="coordType" type="n" tp:type="short">
+    <arg direction="in" name="coordType" type="u" tp:type="COORD_TYPE">
     <tp:docstring>
         If 0, the above coordinates are reported in pixels relative to
         corner of the screen; if 1, the coordinates are reported relative to the
         is (y + height);
            </tp:docstring>
     </arg>
-    <arg direction="in" name="coordType" type="n" tp:type="short">
+    <arg direction="in" name="coordType" type="u" tp:type="COORD_TYPE">
            <tp:docstring>
         If 0, the above coordinates are interpreted as pixels relative to
         corner of the screen; if 1, the coordinates are interpreted as pixels relative to the