Changeset 159287 in webkit


Ignore:
Timestamp:
Nov 14, 2013 8:49:29 AM (10 years ago)
Author:
commit-queue@webkit.org
Message:

[ATK] Change WKTR/DRT AX methods to use nullptr
https://bugs.webkit.org/show_bug.cgi?id=124352

Patch by Krzysztof Czech <k.czech@samsung.com> on 2013-11-14
Reviewed by Anders Carlsson.

Change WKTR/DRT accessibility related methods to use nullptr.

  • DumpRenderTree/atk/AccessibilityControllerAtk.cpp:

(AccessibilityController::AccessibilityController):
(AccessibilityController::elementAtPoint):
(AccessibilityController::removeNotificationListener):
(AccessibilityController::childElementById):

  • DumpRenderTree/atk/AccessibilityNotificationHandlerAtk.cpp:

(AccessibilityNotificationHandler::AccessibilityNotificationHandler):

  • DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:

(AccessibilityUIElement::elementAtPoint):
(AccessibilityUIElement::linkedUIElementAtIndex):
(AccessibilityUIElement::getChildAtIndex):
(AccessibilityUIElement::titleUIElement):
(AccessibilityUIElement::parentElement):
(AccessibilityUIElement::subrole):
(AccessibilityUIElement::roleDescription):
(AccessibilityUIElement::orientation):
(AccessibilityUIElement::ariaDropEffects):
(AccessibilityUIElement::uiElementForSearchPredicate):
(AccessibilityUIElement::cellForColumnAndRow):
(AccessibilityUIElement::disclosedRowAtIndex):
(AccessibilityUIElement::ariaOwnsElementAtIndex):
(AccessibilityUIElement::ariaFlowToElementAtIndex):
(AccessibilityUIElement::selectedRowAtIndex):
(AccessibilityUIElement::rowAtIndex):
(AccessibilityUIElement::disclosedByRow):
(AccessibilityUIElement::removeNotificationListener):
(AccessibilityUIElement::classList):

  • WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp:

(WTR::AccessibilityController::logAccessibilityEvents):
(WTR::AccessibilityController::resetToConsistentState):
(WTR::childElementById):
(WTR::AccessibilityController::accessibleElementById):
(WTR::AccessibilityController::removeNotificationListener):

  • WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.cpp:

(WTR::AccessibilityNotificationHandler::setNotificationFunctionCallback):
(WTR::AccessibilityNotificationHandler::removeAccessibilityNotificationHandler):

  • WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:

(WTR::AccessibilityUIElement::elementAtPoint):
(WTR::AccessibilityUIElement::childAtIndex):
(WTR::AccessibilityUIElement::linkedUIElementAtIndex):
(WTR::AccessibilityUIElement::ariaOwnsElementAtIndex):
(WTR::AccessibilityUIElement::ariaFlowToElementAtIndex):
(WTR::AccessibilityUIElement::disclosedRowAtIndex):
(WTR::AccessibilityUIElement::rowAtIndex):
(WTR::AccessibilityUIElement::selectedChildAtIndex):
(WTR::AccessibilityUIElement::selectedRowAtIndex):
(WTR::AccessibilityUIElement::titleUIElement):
(WTR::AccessibilityUIElement::parentElement):
(WTR::AccessibilityUIElement::disclosedByRow):
(WTR::AccessibilityUIElement::uiElementAttributeValue):
(WTR::AccessibilityUIElement::orientation):
(WTR::AccessibilityUIElement::uiElementForSearchPredicate):
(WTR::AccessibilityUIElement::cellForColumnAndRow):
(WTR::AccessibilityUIElement::horizontalScrollbar):
(WTR::AccessibilityUIElement::verticalScrollbar):
(WTR::AccessibilityUIElement::removeNotificationListener):
(WTR::AccessibilityUIElement::textMarkerRangeForElement):
(WTR::AccessibilityUIElement::previousTextMarker):
(WTR::AccessibilityUIElement::nextTextMarker):
(WTR::AccessibilityUIElement::textMarkerRangeForMarkers):
(WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange):
(WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange):
(WTR::AccessibilityUIElement::endTextMarkerForBounds):
(WTR::AccessibilityUIElement::startTextMarkerForBounds):
(WTR::AccessibilityUIElement::textMarkerForPoint):
(WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
(WTR::AccessibilityUIElement::textMarkerForIndex):
(WTR::AccessibilityUIElement::supportedActions):
(WTR::AccessibilityUIElement::pathDescription):
(WTR::AccessibilityUIElement::mathPostscriptsDescription):
(WTR::AccessibilityUIElement::mathPrescriptsDescription):
(WTR::AccessibilityUIElement::classList):

Location:
trunk/Tools
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r159285 r159287  
     12013-11-14  Krzysztof Czech  <k.czech@samsung.com>
     2
     3        [ATK] Change WKTR/DRT AX methods to use nullptr
     4        https://bugs.webkit.org/show_bug.cgi?id=124352
     5
     6        Reviewed by Anders Carlsson.
     7
     8        Change WKTR/DRT accessibility related methods to use nullptr.
     9
     10        * DumpRenderTree/atk/AccessibilityControllerAtk.cpp:
     11        (AccessibilityController::AccessibilityController):
     12        (AccessibilityController::elementAtPoint):
     13        (AccessibilityController::removeNotificationListener):
     14        (AccessibilityController::childElementById):
     15        * DumpRenderTree/atk/AccessibilityNotificationHandlerAtk.cpp:
     16        (AccessibilityNotificationHandler::AccessibilityNotificationHandler):
     17        * DumpRenderTree/atk/AccessibilityUIElementAtk.cpp:
     18        (AccessibilityUIElement::elementAtPoint):
     19        (AccessibilityUIElement::linkedUIElementAtIndex):
     20        (AccessibilityUIElement::getChildAtIndex):
     21        (AccessibilityUIElement::titleUIElement):
     22        (AccessibilityUIElement::parentElement):
     23        (AccessibilityUIElement::subrole):
     24        (AccessibilityUIElement::roleDescription):
     25        (AccessibilityUIElement::orientation):
     26        (AccessibilityUIElement::ariaDropEffects):
     27        (AccessibilityUIElement::uiElementForSearchPredicate):
     28        (AccessibilityUIElement::cellForColumnAndRow):
     29        (AccessibilityUIElement::disclosedRowAtIndex):
     30        (AccessibilityUIElement::ariaOwnsElementAtIndex):
     31        (AccessibilityUIElement::ariaFlowToElementAtIndex):
     32        (AccessibilityUIElement::selectedRowAtIndex):
     33        (AccessibilityUIElement::rowAtIndex):
     34        (AccessibilityUIElement::disclosedByRow):
     35        (AccessibilityUIElement::removeNotificationListener):
     36        (AccessibilityUIElement::classList):
     37        * WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp:
     38        (WTR::AccessibilityController::logAccessibilityEvents):
     39        (WTR::AccessibilityController::resetToConsistentState):
     40        (WTR::childElementById):
     41        (WTR::AccessibilityController::accessibleElementById):
     42        (WTR::AccessibilityController::removeNotificationListener):
     43        * WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.cpp:
     44        (WTR::AccessibilityNotificationHandler::setNotificationFunctionCallback):
     45        (WTR::AccessibilityNotificationHandler::removeAccessibilityNotificationHandler):
     46        * WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp:
     47        (WTR::AccessibilityUIElement::elementAtPoint):
     48        (WTR::AccessibilityUIElement::childAtIndex):
     49        (WTR::AccessibilityUIElement::linkedUIElementAtIndex):
     50        (WTR::AccessibilityUIElement::ariaOwnsElementAtIndex):
     51        (WTR::AccessibilityUIElement::ariaFlowToElementAtIndex):
     52        (WTR::AccessibilityUIElement::disclosedRowAtIndex):
     53        (WTR::AccessibilityUIElement::rowAtIndex):
     54        (WTR::AccessibilityUIElement::selectedChildAtIndex):
     55        (WTR::AccessibilityUIElement::selectedRowAtIndex):
     56        (WTR::AccessibilityUIElement::titleUIElement):
     57        (WTR::AccessibilityUIElement::parentElement):
     58        (WTR::AccessibilityUIElement::disclosedByRow):
     59        (WTR::AccessibilityUIElement::uiElementAttributeValue):
     60        (WTR::AccessibilityUIElement::orientation):
     61        (WTR::AccessibilityUIElement::uiElementForSearchPredicate):
     62        (WTR::AccessibilityUIElement::cellForColumnAndRow):
     63        (WTR::AccessibilityUIElement::horizontalScrollbar):
     64        (WTR::AccessibilityUIElement::verticalScrollbar):
     65        (WTR::AccessibilityUIElement::removeNotificationListener):
     66        (WTR::AccessibilityUIElement::textMarkerRangeForElement):
     67        (WTR::AccessibilityUIElement::previousTextMarker):
     68        (WTR::AccessibilityUIElement::nextTextMarker):
     69        (WTR::AccessibilityUIElement::textMarkerRangeForMarkers):
     70        (WTR::AccessibilityUIElement::startTextMarkerForTextMarkerRange):
     71        (WTR::AccessibilityUIElement::endTextMarkerForTextMarkerRange):
     72        (WTR::AccessibilityUIElement::endTextMarkerForBounds):
     73        (WTR::AccessibilityUIElement::startTextMarkerForBounds):
     74        (WTR::AccessibilityUIElement::textMarkerForPoint):
     75        (WTR::AccessibilityUIElement::accessibilityElementForTextMarker):
     76        (WTR::AccessibilityUIElement::textMarkerForIndex):
     77        (WTR::AccessibilityUIElement::supportedActions):
     78        (WTR::AccessibilityUIElement::pathDescription):
     79        (WTR::AccessibilityUIElement::mathPostscriptsDescription):
     80        (WTR::AccessibilityUIElement::mathPrescriptsDescription):
     81        (WTR::AccessibilityUIElement::classList):
     82
    1832013-11-14  Éva Balázsfalvi  <balazsfalvi.eva@stud.u-szeged.hu>
    284
  • trunk/Tools/DumpRenderTree/atk/AccessibilityControllerAtk.cpp

    r155448 r159287  
    3939
    4040AccessibilityController::AccessibilityController()
    41     : m_globalNotificationHandler(0)
     41    : m_globalNotificationHandler(nullptr)
    4242{
    4343}
     
    5050{
    5151    // FIXME: implement
    52     return 0;
     52    return nullptr;
    5353}
    5454
     
    101101    ASSERT(m_globalNotificationHandler);
    102102
    103     m_globalNotificationHandler = 0;
     103    m_globalNotificationHandler = nullptr;
    104104}
    105105
     
    107107{
    108108    if (!ATK_IS_OBJECT(parent))
    109         return 0;
     109        return nullptr;
    110110
    111111    bool parentFound = false;
     
    131131    }
    132132
    133     return 0;
     133    return nullptr;
    134134}
    135135
  • trunk/Tools/DumpRenderTree/atk/AccessibilityNotificationHandlerAtk.cpp

    r159181 r159287  
    2626
    2727AccessibilityNotificationHandler::AccessibilityNotificationHandler(void)
    28     : m_platformElement(0)
    29     , m_notificationFunctionCallback(0)
     28    : m_platformElement(nullptr)
     29    , m_notificationFunctionCallback(nullptr)
    3030{
    3131}
  • trunk/Tools/DumpRenderTree/atk/AccessibilityUIElementAtk.cpp

    r158913 r159287  
    127127    if (type == TextAttributeType) {
    128128        if (!ATK_IS_TEXT(accessible))
    129             return 0;
     129            return nullptr;
    130130
    131131        return atk_text_get_default_attributes(ATK_TEXT(accessible));
     
    133133
    134134    ASSERT_NOT_REACHED();
    135     return 0;
     135    return nullptr;
    136136}
    137137
     
    562562{
    563563    if (!ATK_IS_COMPONENT(m_element))
    564         return 0;
     564        return nullptr;
    565565
    566566    GRefPtr<AtkObject> objectAtPoint = adoptGRef(atk_component_ref_accessible_at_point(ATK_COMPONENT(m_element), x, y, ATK_XY_WINDOW));
     
    571571{
    572572    // FIXME: implement
    573     return 0;
     573    return nullptr;
    574574}
    575575
     
    577577{
    578578    if (!ATK_IS_OBJECT(m_element))
    579         return 0;
     579        return nullptr;
    580580
    581581    Vector<AccessibilityUIElement> children;
     
    585585        return children.at(0);
    586586
    587     return 0;
     587    return nullptr;
    588588}
    589589
     
    617617{
    618618    if (!ATK_IS_OBJECT(m_element))
    619         return 0;
     619        return nullptr;
    620620
    621621    AtkRelationSet* set = atk_object_ref_relation_set(ATK_OBJECT(m_element));
    622622    if (!set)
    623         return 0;
    624 
    625     AtkObject* target = 0;
     623        return nullptr;
     624
     625    AtkObject* target = nullptr;
    626626    int count = atk_relation_set_get_n_relations(set);
    627627    for (int i = 0; i < count; i++) {
     
    635635
    636636    g_object_unref(set);
    637     return target ? AccessibilityUIElement(target) : 0;
     637    return target ? AccessibilityUIElement(target) : nullptr;
    638638}
    639639
     
    641641{
    642642    if (!ATK_IS_OBJECT(m_element))
    643         return 0;
     643        return nullptr;
    644644
    645645    AtkObject* parent =  atk_object_get_parent(ATK_OBJECT(m_element));
    646     return parent ? AccessibilityUIElement(parent) : 0;
     646    return parent ? AccessibilityUIElement(parent) : nullptr;
    647647}
    648648
     
    679679JSStringRef AccessibilityUIElement::subrole()
    680680{
    681     return 0;
     681    return nullptr;
    682682}
    683683
    684684JSStringRef AccessibilityUIElement::roleDescription()
    685685{
    686     return 0;
     686    return nullptr;
    687687}
    688688
     
    822822        return JSStringCreateWithCharacters(0, 0);
    823823
    824     const char* axOrientation = 0;
     824    const char* axOrientation = nullptr;
    825825    if (checkElementState(m_element, ATK_STATE_HORIZONTAL))
    826826        axOrientation = "AXOrientation: AXHorizontalOrientation";
     
    958958JSStringRef AccessibilityUIElement::ariaDropEffects() const
    959959{   
    960     return 0;
     960    return nullptr;
    961961}
    962962
     
    10911091{
    10921092    // FIXME: implement
    1093     return 0;
     1093    return nullptr;
    10941094}
    10951095
     
    10971097{
    10981098    if (!ATK_IS_TABLE(m_element))
    1099         return 0;
     1099        return nullptr;
    11001100
    11011101    // Adopt the AtkObject representing the cell because
    11021102    // at_table_ref_at() transfers full ownership.
    11031103    GRefPtr<AtkObject> foundCell = adoptGRef(atk_table_ref_at(ATK_TABLE(m_element), row, column));
    1104     return foundCell ? AccessibilityUIElement(foundCell.get()) : 0;
     1104    return foundCell ? AccessibilityUIElement(foundCell.get()) : nullptr;
    11051105}
    11061106
     
    12171217AccessibilityUIElement AccessibilityUIElement::disclosedRowAtIndex(unsigned index)
    12181218{
    1219     return 0;
     1219    return nullptr;
    12201220}
    12211221
    12221222AccessibilityUIElement AccessibilityUIElement::ariaOwnsElementAtIndex(unsigned index)
    12231223{
    1224     return 0;
     1224    return nullptr;
    12251225}
    12261226
    12271227AccessibilityUIElement AccessibilityUIElement::ariaFlowToElementAtIndex(unsigned index)
    12281228{
    1229     return 0;
     1229    return nullptr;
    12301230}
    12311231
    12321232AccessibilityUIElement AccessibilityUIElement::selectedRowAtIndex(unsigned index)
    12331233{
    1234     return 0;
     1234    return nullptr;
    12351235}
    12361236
    12371237AccessibilityUIElement AccessibilityUIElement::rowAtIndex(unsigned index)
    12381238{
    1239     return 0;
     1239    return nullptr;
    12401240}
    12411241
    12421242AccessibilityUIElement AccessibilityUIElement::disclosedByRow()
    12431243{
    1244     return 0;
     1244    return nullptr;
    12451245}
    12461246
     
    13101310    ASSERT(m_notificationHandler);
    13111311
    1312     m_notificationHandler = 0;
     1312    m_notificationHandler = nullptr;
    13131313}
    13141314
     
    14111411{
    14121412    // FIXME: implement
    1413     return 0;
     1413    return nullptr;
    14141414}
    14151415
  • trunk/Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityControllerAtk.cpp

    r159181 r159287  
    5757    // Ensure the Atk interface types are registered, otherwise
    5858    // the AtkDocument signal handlers below won't get registered.
    59     GObject* dummyAxObject = G_OBJECT(g_object_new(ATK_TYPE_OBJECT, 0));
     59    GObject* dummyAxObject = G_OBJECT(g_object_new(ATK_TYPE_OBJECT, nullptr));
    6060    AtkObject* dummyNoOpAxObject = atk_no_op_object_new(dummyAxObject);
    6161    g_object_unref(G_OBJECT(dummyNoOpAxObject));
     
    6565void AccessibilityController::resetToConsistentState()
    6666{
    67     m_globalNotificationHandler = 0;
     67    m_globalNotificationHandler = nullptr;
    6868}
    6969
     
    7171{
    7272    if (!ATK_IS_OBJECT(parent))
    73         return 0;
     73        return nullptr;
    7474
    7575    bool parentFound = false;
     
    9595    }
    9696
    97     return 0;
     97    return nullptr;
    9898}
    9999
     
    102102    AtkObject* root = ATK_OBJECT(WKAccessibilityRootObject(InjectedBundle::shared().page()->page()));
    103103    if (!root)
    104         return 0;
     104        return nullptr;
    105105
    106106    size_t bufferSize = JSStringGetMaximumUTF8CStringSize(id);
     
    112112        return AccessibilityUIElement::create(result);
    113113
    114     return 0;
     114    return nullptr;
    115115}
    116116
     
    149149    ASSERT(m_globalNotificationHandler);
    150150
    151     m_globalNotificationHandler = 0;
     151    m_globalNotificationHandler = nullptr;
    152152    return false;
    153153}
  • trunk/Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityNotificationHandlerAtk.cpp

    r159181 r159287  
    4848unsigned loadCompleteListenerId = 0;
    4949NotificationHandlersMap notificationHandlers;
    50 AccessibilityNotificationHandler* globalNotificationHandler = 0;
     50AccessibilityNotificationHandler* globalNotificationHandler = nullptr;
    5151bool loggingAccessibilityEvents = false;
    5252
     
    8686    GOwnPtr<char> signalName;
    8787    GOwnPtr<char> signalValue;
    88     const char* notificationName = 0;
     88    const char* notificationName = nullptr;
    8989
    9090    g_signal_query(signalHint->signal_id, &signalQuery);
     
    122122    JSContextRef jsContext = WKBundleFrameGetJavaScriptContext(mainFrame);
    123123#else
    124     JSContextRef jsContext = 0;
     124    JSContextRef jsContext = nullptr;
    125125#endif
    126126    if (!jsContext)
     
    183183    JSContextRef jsContext = WKBundleFrameGetJavaScriptContext(mainFrame);
    184184#else
    185     JSContextRef jsContext = 0;
     185    JSContextRef jsContext = nullptr;
    186186#endif
    187187    if (!jsContext)
     
    214214    JSContextRef jsContext = WKBundleFrameGetJavaScriptContext(mainFrame);
    215215#else
    216     JSContextRef jsContext = 0;
     216    JSContextRef jsContext = nullptr;
    217217#endif
    218218    if (!jsContext)
     
    221221    if (globalNotificationHandler == this) {
    222222        JSValueUnprotect(jsContext, globalNotificationHandler->notificationFunctionCallback());
    223         globalNotificationHandler = 0;
     223        globalNotificationHandler = nullptr;
    224224    } else if (m_platformElement.get()) {
    225225        NotificationHandlersMap::iterator removeNotificationHandler = notificationHandlers.find(m_platformElement.get());
  • trunk/Tools/WebKitTestRunner/InjectedBundle/atk/AccessibilityUIElementAtk.cpp

    r159181 r159287  
    131131    if (type == TextAttributeType) {
    132132        if (!ATK_IS_TEXT(accessible))
    133             return 0;
     133            return nullptr;
    134134
    135135        return atk_text_get_default_attributes(ATK_TEXT(accessible));
     
    137137
    138138    ASSERT_NOT_REACHED();
    139     return 0;
     139    return nullptr;
    140140}
    141141
     
    388388    builder.append("AXParent: ");
    389389    RefPtr<AccessibilityUIElement> parent = element->parentElement();
    390     AtkObject* atkParent = parent ? parent->platformUIElement().get() : 0;
     390    AtkObject* atkParent = parent ? parent->platformUIElement().get() : nullptr;
    391391    if (atkParent) {
    392392        builder.append(roleToString(atk_object_get_role(atkParent)));
     
    541541{
    542542    if (!ATK_IS_COMPONENT(m_element.get()))
    543         return 0;
     543        return nullptr;
    544544
    545545    GRefPtr<AtkObject> objectAtPoint = adoptGRef(atk_component_ref_accessible_at_point(ATK_COMPONENT(m_element.get()), x, y, ATK_XY_WINDOW));
     
    566566{
    567567    if (!ATK_IS_OBJECT(m_element.get()))
    568         return 0;
     568        return nullptr;
    569569
    570570    Vector<RefPtr<AccessibilityUIElement> > children;
     
    574574        return children[0];
    575575
     576    return nullptr;
     577}
     578
     579PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::linkedUIElementAtIndex(unsigned index)
     580{
     581    // FIXME: implement
     582    return nullptr;
     583}
     584
     585PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::ariaOwnsElementAtIndex(unsigned index)
     586{
     587    // FIXME: implement
     588    return nullptr;
     589}
     590
     591PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::ariaFlowToElementAtIndex(unsigned index)
     592{
     593    // FIXME: implement
     594    return nullptr;
     595}
     596
     597PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::disclosedRowAtIndex(unsigned index)
     598{
     599    // FIXME: implement
     600    return nullptr;
     601}
     602
     603PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::rowAtIndex(unsigned index)
     604{
     605    // FIXME: implement
     606    return nullptr;
     607}
     608
     609PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::selectedChildAtIndex(unsigned index) const
     610{
     611    // FIXME: implement
     612    return nullptr;
     613}
     614
     615unsigned AccessibilityUIElement::selectedChildrenCount() const
     616{
     617    // FIXME: implement
    576618    return 0;
    577619}
    578620
    579 PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::linkedUIElementAtIndex(unsigned index)
    580 {
    581     // FIXME: implement
    582     return 0;
    583 }
    584 
    585 PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::ariaOwnsElementAtIndex(unsigned index)
    586 {
    587     // FIXME: implement
    588     return 0;
    589 }
    590 
    591 PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::ariaFlowToElementAtIndex(unsigned index)
    592 {
    593     // FIXME: implement
    594     return 0;
    595 }
    596 
    597 PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::disclosedRowAtIndex(unsigned index)
    598 {
    599     // FIXME: implement
    600     return 0;
    601 }
    602 
    603 PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::rowAtIndex(unsigned index)
    604 {
    605     // FIXME: implement
    606     return 0;
    607 }
    608 
    609 PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::selectedChildAtIndex(unsigned index) const
    610 {
    611     // FIXME: implement
    612     return 0;
    613 }
    614 
    615 unsigned AccessibilityUIElement::selectedChildrenCount() const
    616 {
    617     // FIXME: implement
    618     return 0;
    619 }
    620 
    621621PassRefPtr<AccessibilityUIElement> AccessibilityUIElement::selectedRowAtIndex(unsigned index)
    622622{
    623623    // FIXME: implement
    624     return 0;
     624    return nullptr;
    625625}
    626626
     
    628628{
    629629    if (!ATK_IS_OBJECT(m_element.get()))
    630         return 0;
     630        return nullptr;
    631631
    632632    AtkRelationSet* set = atk_object_ref_relation_set(ATK_OBJECT(m_element.get()));
    633633    if (!set)
    634         return 0;
    635 
    636     AtkObject* target = 0;
     634        return nullptr;
     635
     636    AtkObject* target = nullptr;
    637637    int count = atk_relation_set_get_n_relations(set);
    638638    for (int i = 0; i < count; i++) {
     
    646646
    647647    g_object_unref(set);
    648     return target ? AccessibilityUIElement::create(target) : 0;
     648    return target ? AccessibilityUIElement::create(target) : nullptr;
    649649}
    650650
     
    652652{
    653653    if (!ATK_IS_OBJECT(m_element.get()))
    654         return 0;
     654        return nullptr;
    655655
    656656    AtkObject* parent = atk_object_get_parent(ATK_OBJECT(m_element.get()));
    657     return parent ? AccessibilityUIElement::create(parent) : 0;
     657    return parent ? AccessibilityUIElement::create(parent) : nullptr;
    658658}
    659659
     
    661661{
    662662    // FIXME: implement
    663     return 0;
     663    return nullptr;
    664664}
    665665
     
    735735{
    736736    // FIXME: implement
    737     return 0;
     737    return nullptr;
    738738}
    739739
     
    828828        return JSStringCreateWithCharacters(0, 0);
    829829
    830     const gchar* axOrientation = 0;
     830    const gchar* axOrientation = nullptr;
    831831    if (checkElementState(m_element.get(), ATK_STATE_HORIZONTAL))
    832832        axOrientation = "AXOrientation: AXHorizontalOrientation";
     
    11391139{
    11401140    // FIXME: implement
    1141     return 0;
     1141    return nullptr;
    11421142}
    11431143
     
    12241224{
    12251225    if (!ATK_IS_TABLE(m_element.get()))
    1226         return 0;
     1226        return nullptr;
    12271227
    12281228    // Adopt the AtkObject representing the cell because
    12291229    // at_table_ref_at() transfers full ownership.
    12301230    GRefPtr<AtkObject> foundCell = adoptGRef(atk_table_ref_at(ATK_TABLE(m_element.get()), row, col));
    1231     return foundCell ? AccessibilityUIElement::create(foundCell.get()) : 0;
     1231    return foundCell ? AccessibilityUIElement::create(foundCell.get()) : nullptr;
    12321232}
    12331233
     
    12351235{
    12361236    // FIXME: implement
    1237     return 0;
     1237    return nullptr;
    12381238}
    12391239
     
    12411241{
    12421242    // FIXME: implement
    1243     return 0;
     1243    return nullptr;
    12441244}
    12451245
     
    13571357    // Programmers should not be trying to remove a listener that's already removed.
    13581358    ASSERT(m_notificationHandler);
    1359     m_notificationHandler = 0;
     1359    m_notificationHandler = nullptr;
    13601360
    13611361    return true;
     
    14331433{
    14341434    // FIXME: implement
     1435    return nullptr;
     1436}
     1437
     1438int AccessibilityUIElement::textMarkerRangeLength(AccessibilityTextMarkerRange* range)
     1439{
     1440    // FIXME: implement
    14351441    return 0;
    14361442}
    14371443
    1438 int AccessibilityUIElement::textMarkerRangeLength(AccessibilityTextMarkerRange* range)
    1439 {
    1440     // FIXME: implement
    1441     return 0;
    1442 }
    1443 
    14441444PassRefPtr<AccessibilityTextMarker> AccessibilityUIElement::previousTextMarker(AccessibilityTextMarker* textMarker)
    14451445{
    14461446    // FIXME: implement
    1447     return 0;
     1447    return nullptr;
    14481448}
    14491449
     
    14511451{
    14521452    // FIXME: implement
    1453     return 0;
     1453    return nullptr;
    14541454}
    14551455
     
    14631463{
    14641464    // FIXME: implement
    1465     return 0;
     1465    return nullptr;
    14661466}
    14671467
     
    14691469{
    14701470    // FIXME: implement
    1471     return 0;
     1471    return nullptr;
    14721472}
    14731473
     
    14751475{
    14761476    // FIXME: implement
    1477     return 0;
     1477    return nullptr;
    14781478}
    14791479
     
    14811481{
    14821482    // FIXME: implement
    1483     return 0;
     1483    return nullptr;
    14841484}
    14851485
     
    14871487{
    14881488    // FIXME: implement
    1489     return 0;
     1489    return nullptr;
    14901490}
    14911491
     
    14931493{
    14941494    // FIXME: implement
    1495     return 0;
     1495    return nullptr;
    14961496}
    14971497
     
    14991499{
    15001500    // FIXME: implement
    1501     return 0;
     1501    return nullptr;
    15021502}
    15031503
     
    15231523{
    15241524    // FIXME: implement
    1525     return 0;
     1525    return nullptr;
    15261526}
    15271527   
     
    15461546{
    15471547    // FIXME: implement
    1548     return 0;
     1548    return nullptr;
    15491549}
    15501550
     
    15521552{
    15531553    notImplemented();
    1554     return 0;
     1554    return nullptr;
    15551555}
    15561556
     
    15581558{
    15591559    notImplemented();
    1560     return 0;
     1560    return nullptr;
    15611561}
    15621562
     
    15641564{
    15651565    notImplemented();
    1566     return 0;
     1566    return nullptr;
    15671567}
    15681568
     
    15701570{
    15711571    notImplemented();
    1572     return 0;
     1572    return nullptr;
    15731573}
    15741574
Note: See TracChangeset for help on using the changeset viewer.