Changeset 83271 in webkit


Ignore:
Timestamp:
Apr 8, 2011 2:15:17 AM (13 years ago)
Author:
mario@webkit.org
Message:

2011-04-08 Mario Sanchez Prada <msanchez@igalia.com>

Reviewed by Martin Robinson.

[GTK] Implement increment() and decrement() functions in DRT's AccessibilityUIElement
https://bugs.webkit.org/show_bug.cgi?id=58039

Implemented missing functions in GTK's DRT.

  • WebCoreSupport/DumpRenderTreeSupportGtk.h:
  • WebCoreSupport/DumpRenderTreeSupportGtk.cpp: (modifyAccessibilityValue): Helper function to increment or decrement the current value for an object through the AccessibilityObject's API. (DumpRenderTreeSupportGtk::incrementAccessibilityValue): New function, to be used from GTK's DRT. (DumpRenderTreeSupportGtk::decrementAccessibilityValue): Ditto.

2011-04-08 Mario Sanchez Prada <msanchez@igalia.com>

Reviewed by Martin Robinson.

[GTK] Implement increment() and decrement() functions in DRT's AccessibilityUIElement
https://bugs.webkit.org/show_bug.cgi?id=58039

Implement missing functions in GTK's DRT.

  • DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp: (AccessibilityUIElement::increment): Implemented. (AccessibilityUIElement::decrement): Implemented.
Location:
trunk
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/gtk/ChangeLog

    r83185 r83271  
     12011-04-08  Mario Sanchez Prada  <msanchez@igalia.com>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [GTK] Implement increment() and decrement() functions in DRT's AccessibilityUIElement
     6        https://bugs.webkit.org/show_bug.cgi?id=58039
     7
     8        Implemented missing functions in GTK's DRT.
     9
     10        * WebCoreSupport/DumpRenderTreeSupportGtk.h:
     11        * WebCoreSupport/DumpRenderTreeSupportGtk.cpp:
     12        (modifyAccessibilityValue): Helper function to increment or decrement
     13        the current value for an object through the AccessibilityObject's API.
     14        (DumpRenderTreeSupportGtk::incrementAccessibilityValue): New function,
     15        to be used from GTK's DRT.
     16        (DumpRenderTreeSupportGtk::decrementAccessibilityValue): Ditto.
     17
    1182011-04-06  Gustavo Noronha Silva  <gns@gnome.org>
    219
  • trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp

    r82774 r83271  
    680680}
    681681
     682static void modifyAccessibilityValue(AtkObject* axObject, bool increment)
     683{
     684    if (!axObject || !WEBKIT_IS_ACCESSIBLE(axObject))
     685        return;
     686
     687    AccessibilityObject* coreObject = webkit_accessible_get_accessibility_object(WEBKIT_ACCESSIBLE(axObject));
     688    if (!coreObject)
     689        return;
     690
     691    if (increment)
     692        coreObject->increment();
     693    else
     694        coreObject->decrement();
     695}
     696
     697void DumpRenderTreeSupportGtk::incrementAccessibilityValue(AtkObject* axObject)
     698{
     699    modifyAccessibilityValue(axObject, true);
     700}
     701
     702void DumpRenderTreeSupportGtk::decrementAccessibilityValue(AtkObject* axObject)
     703{
     704    modifyAccessibilityValue(axObject, false);
     705}
     706
    682707void DumpRenderTreeSupportGtk::setAutofilled(JSContextRef context, JSValueRef nodeObject, bool autofilled)
    683708{
  • trunk/Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.h

    r82774 r83271  
    101101    static void setMinimumTimerInterval(WebKitWebView*, double);
    102102
     103    // Accessibility
     104    static void incrementAccessibilityValue(AtkObject*);
     105    static void decrementAccessibilityValue(AtkObject*);
     106
    103107    // GC
    104108    static void gcCollectJavascriptObjects();
  • trunk/Tools/ChangeLog

    r83270 r83271  
     12011-04-08  Mario Sanchez Prada  <msanchez@igalia.com>
     2
     3        Reviewed by Martin Robinson.
     4
     5        [GTK] Implement increment() and decrement() functions in DRT's AccessibilityUIElement
     6        https://bugs.webkit.org/show_bug.cgi?id=58039
     7
     8        Implement missing functions in GTK's DRT.
     9
     10        * DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp:
     11        (AccessibilityUIElement::increment): Implemented.
     12        (AccessibilityUIElement::decrement): Implemented.
     13
    1142011-04-08  Dominic Cooney  <dominicc@google.com>
    215
  • trunk/Tools/DumpRenderTree/gtk/AccessibilityUIElementGtk.cpp

    r75009 r83271  
    2727#include "config.h"
    2828#include "AccessibilityUIElement.h"
     29
    2930#include "GOwnPtr.h"
    3031#include "GRefPtr.h"
    31 
     32#include "WebCoreSupport/DumpRenderTreeSupportGtk.h"
    3233#include <JavaScriptCore/JSStringRef.h>
    33 #include <wtf/Assertions.h>
    34 
    3534#include <atk/atk.h>
    3635#include <gtk/gtk.h>
    37 
     36#include <wtf/Assertions.h>
    3837
    3938AccessibilityUIElement::AccessibilityUIElement(PlatformUIElement element)
     
    573572void AccessibilityUIElement::increment()
    574573{
    575     // FIXME: implement
     574    if (!m_element)
     575        return;
     576
     577    ASSERT(ATK_IS_OBJECT(m_element));
     578    DumpRenderTreeSupportGtk::incrementAccessibilityValue(ATK_OBJECT(m_element));
    576579}
    577580
    578581void AccessibilityUIElement::decrement()
    579582{
    580     // FIXME: implement
     583    if (!m_element)
     584        return;
     585
     586    ASSERT(ATK_IS_OBJECT(m_element));
     587    DumpRenderTreeSupportGtk::decrementAccessibilityValue(ATK_OBJECT(m_element));
    581588}
    582589
Note: See TracChangeset for help on using the changeset viewer.