Changeset 50393 in webkit


Ignore:
Timestamp:
Nov 1, 2009 1:22:30 PM (14 years ago)
Author:
eric@webkit.org
Message:

2009-11-01 Joanmarie Diggs <joanmarie.diggs@gmail.com>

Reviewed by Jan Alonzo.

https://bugs.webkit.org/show_bug.cgi?id=30964
[Gtk] Implemment AtkDocument

Implements what has been implemented in AT-SPI.

  • accessibility/gtk/AccessibilityObjectWrapperAtk.cpp: (GetAtkInterfaceTypeFromWAIType): (getInterfaceMaskFromObject): (atk_document_interface_init): (webkit_accessible_document_get_document_attribute_value): (webkit_accessible_document_get_document_attributes): (webkit_accessible_document_get_locale):
Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r50392 r50393  
     12009-11-01  Joanmarie Diggs  <joanmarie.diggs@gmail.com>
     2
     3        Reviewed by Jan Alonzo.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=30964
     6        [Gtk] Implemment AtkDocument
     7
     8        Implements what has been implemented in AT-SPI.
     9
     10        * accessibility/gtk/AccessibilityObjectWrapperAtk.cpp:
     11        (GetAtkInterfaceTypeFromWAIType):
     12        (getInterfaceMaskFromObject):
     13        (atk_document_interface_init):
     14        (webkit_accessible_document_get_document_attribute_value):
     15        (webkit_accessible_document_get_document_attributes):
     16        (webkit_accessible_document_get_locale):
     17
    1182009-11-01  Laszlo Gombos  <laszlo.1.gombos@nokia.com>
    219
  • trunk/WebCore/accessibility/gtk/AccessibilityObjectWrapperAtk.cpp

    r50342 r50393  
    136136{
    137137    return core(ATK_OBJECT(table));
     138}
     139
     140static AccessibilityObject* core(AtkDocument* document)
     141{
     142    return core(ATK_OBJECT(document));
    138143}
    139144
     
    14071412}
    14081413
     1414static const gchar* webkit_accessible_document_get_attribute_value(AtkDocument* document, const gchar* attribute)
     1415{
     1416    // FIXME: This needs to be implemented.
     1417    notImplemented();
     1418    return 0;
     1419}
     1420
     1421static AtkAttributeSet* webkit_accessible_document_get_attributes(AtkDocument* document)
     1422{
     1423    // FIXME: This needs to be implemented.
     1424    notImplemented();
     1425    return 0;
     1426}
     1427
     1428static const gchar* webkit_accessible_document_get_locale(AtkDocument* document)
     1429{
     1430    // FIXME: This needs to be implemented.
     1431    notImplemented();
     1432    return 0;
     1433}
     1434
     1435static void atk_document_interface_init(AtkDocumentIface* iface)
     1436{
     1437    iface->get_document_attribute_value = webkit_accessible_document_get_attribute_value;
     1438    iface->get_document_attributes = webkit_accessible_document_get_attributes;
     1439    iface->get_document_locale = webkit_accessible_document_get_locale;
     1440}
     1441
    14091442static const GInterfaceInfo AtkInterfacesInitFunctions[] = {
    14101443    {(GInterfaceInitFunc)atk_action_interface_init,
     
    14211454     (GInterfaceFinalizeFunc) NULL, NULL},
    14221455    {(GInterfaceInitFunc)atk_table_interface_init,
     1456     (GInterfaceFinalizeFunc) NULL, NULL},
     1457    {(GInterfaceInitFunc)atk_document_interface_init,
    14231458     (GInterfaceFinalizeFunc) NULL, NULL}
    14241459};
     
    14311466    WAI_COMPONENT,
    14321467    WAI_IMAGE,
    1433     WAI_TABLE
     1468    WAI_TABLE,
     1469    WAI_DOCUMENT
    14341470};
    14351471
     
    14511487  case WAI_TABLE:
    14521488      return ATK_TYPE_TABLE;
     1489  case WAI_DOCUMENT:
     1490      return ATK_TYPE_DOCUMENT;
    14531491  }
    14541492
     
    14891527    if (role == TableRole)
    14901528        interfaceMask |= 1 << WAI_TABLE;
     1529
     1530    // Document
     1531    if (role == WebAreaRole)
     1532        interfaceMask |= 1 << WAI_DOCUMENT;
    14911533
    14921534    return interfaceMask;
Note: See TracChangeset for help on using the changeset viewer.