Changeset 67498 in webkit


Ignore:
Timestamp:
Sep 14, 2010 2:29:35 PM (14 years ago)
Author:
abarth@webkit.org
Message:

2010-09-14 Chris Guillory <chris.guillory@google.com>

Reviewed by Chris Fleizach.

Send all accessibility notifications to Chromium.
https://bugs.webkit.org/show_bug.cgi?id=45156


Use postAccessibilityNotification to pass accessibility notifications
to chromium.

  • WebKit.gyp:
  • public/WebAccessibilityNotification.h: Added.
  • public/WebViewClient.h: (WebKit::WebViewClient::postAccessibilityNotification):
  • src/AssertMatchingEnums.h: Added.
  • src/ChromeClientImpl.cpp: (WebKit::toWebAccessibilityNotification): (WebKit::ChromeClientImpl::didChangeAccessibilityObjectChildren): (WebKit::ChromeClientImpl::postAccessibilityNotification):
  • src/ChromeClientImpl.h:

2010-09-14 Chris Guillory <chris.guillory@google.com>

Reviewed by Chris Fleizach.

Send all accessibility notifications to Chromium.
https://bugs.webkit.org/show_bug.cgi?id=45156


Use postAccessibilityNotification to pass accessibility notifications
to chromium.

Tests: platform/chromium/accessibility/post-notification-ActiveDescendantChanged.html

platform/chromium/accessibility/post-notification-CheckedStateChanged.html
platform/chromium/accessibility/post-notification-ChildrenChanged.html
platform/chromium/accessibility/post-notification-FocusedUIElementChanged.html
platform/chromium/accessibility/post-notification-LayoutComplete.html
platform/chromium/accessibility/post-notification-LiveRegionChanged.html
platform/chromium/accessibility/post-notification-LoadComplete.html
platform/chromium/accessibility/post-notification-MenuListValueChanged.html
platform/chromium/accessibility/post-notification-RowCollapsed.html
platform/chromium/accessibility/post-notification-RowCountChanged.html
platform/chromium/accessibility/post-notification-RowExpanded.html
platform/chromium/accessibility/post-notification-ScrolledToAnchor.html
platform/chromium/accessibility/post-notification-SelectedChildrenChanged.html
platform/chromium/accessibility/post-notification-SelectedTextChanged.html
platform/chromium/accessibility/post-notification-ValueChanged.html

  • accessibility/chromium/AXObjectCacheChromium.cpp: (WebCore::AXObjectCache::postPlatformNotification):
  • page/chromium/ChromeClientChromium.h:

2010-09-14 Chris Guillory <chris.guillory@google.com>

Reviewed by Chris Fleizach.

Send all accessibility notifications to Chromium.
https://bugs.webkit.org/show_bug.cgi?id=45156

  • platform/chromium/accessibility/children-changed-notification-expected.txt: Removed.
  • platform/chromium/accessibility/children-changed-notification.html: Removed.
  • platform/chromium/accessibility/post-notification-ActiveDescendantChanged-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-ActiveDescendantChanged.html: Added.
  • platform/chromium/accessibility/post-notification-CheckedStateChanged-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-CheckedStateChanged.html: Added.
  • platform/chromium/accessibility/post-notification-ChildrenChanged-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-ChildrenChanged.html: Added.
  • platform/chromium/accessibility/post-notification-FocusedUIElementChanged-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-FocusedUIElementChanged.html: Added.
  • platform/chromium/accessibility/post-notification-LayoutComplete-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-LayoutComplete.html: Added.
  • platform/chromium/accessibility/post-notification-LiveRegionChanged-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-LiveRegionChanged.html: Added.
  • platform/chromium/accessibility/post-notification-LoadComplete-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-LoadComplete.html: Added.
  • platform/chromium/accessibility/post-notification-MenuListValueChanged-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-MenuListValueChanged.html: Added.
  • platform/chromium/accessibility/post-notification-RowCollapsed-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-RowCollapsed.html: Added.
  • platform/chromium/accessibility/post-notification-RowCountChanged-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-RowCountChanged.html: Added.
  • platform/chromium/accessibility/post-notification-RowExpanded-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-RowExpanded.html: Added.
  • platform/chromium/accessibility/post-notification-ScrolledToAnchor-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-ScrolledToAnchor.html: Added.
  • platform/chromium/accessibility/post-notification-SelectedChildrenChanged-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-SelectedChildrenChanged.html: Added.
  • platform/chromium/accessibility/post-notification-SelectedTextChanged-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-SelectedTextChanged.html: Added.
  • platform/chromium/accessibility/post-notification-ValueChanged-expected.txt: Added.
  • platform/chromium/accessibility/post-notification-ValueChanged.html: Added.
  • platform/chromium/accessibility/post-notification.js: Added. (enumAccessibilityObjects): (testDone): (test):
  • platform/chromium/drt_expectations.txt:
  • platform/chromium/test_expectations.txt:

2010-09-14 Chris Guillory <chris.guillory@google.com>

Reviewed by Chris Fleizach.

Send all accessibility notifications to Chromium.
https://bugs.webkit.org/show_bug.cgi?id=45156

  • DumpRenderTree/chromium/WebViewHost.cpp: (WebViewHost::postAccessibilityNotification):
  • DumpRenderTree/chromium/WebViewHost.h:
Location:
trunk
Files:
32 added
2 deleted
14 edited

Legend:

Unmodified
Added
Removed
  • trunk/LayoutTests/ChangeLog

    r67496 r67498  
     12010-09-14  Chris Guillory   <chris.guillory@google.com>
     2
     3        Reviewed by Chris Fleizach.
     4
     5        Send all accessibility notifications to Chromium.
     6        https://bugs.webkit.org/show_bug.cgi?id=45156
     7
     8        * platform/chromium/accessibility/children-changed-notification-expected.txt: Removed.
     9        * platform/chromium/accessibility/children-changed-notification.html: Removed.
     10        * platform/chromium/accessibility/post-notification-ActiveDescendantChanged-expected.txt: Added.
     11        * platform/chromium/accessibility/post-notification-ActiveDescendantChanged.html: Added.
     12        * platform/chromium/accessibility/post-notification-CheckedStateChanged-expected.txt: Added.
     13        * platform/chromium/accessibility/post-notification-CheckedStateChanged.html: Added.
     14        * platform/chromium/accessibility/post-notification-ChildrenChanged-expected.txt: Added.
     15        * platform/chromium/accessibility/post-notification-ChildrenChanged.html: Added.
     16        * platform/chromium/accessibility/post-notification-FocusedUIElementChanged-expected.txt: Added.
     17        * platform/chromium/accessibility/post-notification-FocusedUIElementChanged.html: Added.
     18        * platform/chromium/accessibility/post-notification-LayoutComplete-expected.txt: Added.
     19        * platform/chromium/accessibility/post-notification-LayoutComplete.html: Added.
     20        * platform/chromium/accessibility/post-notification-LiveRegionChanged-expected.txt: Added.
     21        * platform/chromium/accessibility/post-notification-LiveRegionChanged.html: Added.
     22        * platform/chromium/accessibility/post-notification-LoadComplete-expected.txt: Added.
     23        * platform/chromium/accessibility/post-notification-LoadComplete.html: Added.
     24        * platform/chromium/accessibility/post-notification-MenuListValueChanged-expected.txt: Added.
     25        * platform/chromium/accessibility/post-notification-MenuListValueChanged.html: Added.
     26        * platform/chromium/accessibility/post-notification-RowCollapsed-expected.txt: Added.
     27        * platform/chromium/accessibility/post-notification-RowCollapsed.html: Added.
     28        * platform/chromium/accessibility/post-notification-RowCountChanged-expected.txt: Added.
     29        * platform/chromium/accessibility/post-notification-RowCountChanged.html: Added.
     30        * platform/chromium/accessibility/post-notification-RowExpanded-expected.txt: Added.
     31        * platform/chromium/accessibility/post-notification-RowExpanded.html: Added.
     32        * platform/chromium/accessibility/post-notification-ScrolledToAnchor-expected.txt: Added.
     33        * platform/chromium/accessibility/post-notification-ScrolledToAnchor.html: Added.
     34        * platform/chromium/accessibility/post-notification-SelectedChildrenChanged-expected.txt: Added.
     35        * platform/chromium/accessibility/post-notification-SelectedChildrenChanged.html: Added.
     36        * platform/chromium/accessibility/post-notification-SelectedTextChanged-expected.txt: Added.
     37        * platform/chromium/accessibility/post-notification-SelectedTextChanged.html: Added.
     38        * platform/chromium/accessibility/post-notification-ValueChanged-expected.txt: Added.
     39        * platform/chromium/accessibility/post-notification-ValueChanged.html: Added.
     40        * platform/chromium/accessibility/post-notification.js: Added.
     41        (enumAccessibilityObjects):
     42        (testDone):
     43        (test):
     44        * platform/chromium/drt_expectations.txt:
     45        * platform/chromium/test_expectations.txt:
     46
    1472010-09-14  Darin Adler  <darin@apple.com>
    248
  • trunk/LayoutTests/platform/chromium/drt_expectations.txt

    r67387 r67498  
    162162
    163163// Pass with DRT though FAIL on test_shell
    164 BUG_DRT : platform/chromium/accessibility/children-changed-notification.html = PASS
     164BUG_DRT : platform/chromium/accessibility = PASS
  • trunk/LayoutTests/platform/chromium/test_expectations.txt

    r67480 r67498  
    955955
    956956// Functionality is supported in DRT but not TestShell
    957 WONTFIX SKIP : platform/chromium/accessibility/children-changed-notification.html = FAIL
     957WONTFIX SKIP : platform/chromium/accessibility = FAIL
    958958
    959959// -----------------------------------------------------------------
  • trunk/WebCore/ChangeLog

    r67496 r67498  
     12010-09-14  Chris Guillory   <chris.guillory@google.com>
     2
     3        Reviewed by Chris Fleizach.
     4
     5        Send all accessibility notifications to Chromium.
     6        https://bugs.webkit.org/show_bug.cgi?id=45156
     7       
     8        Use postAccessibilityNotification to pass accessibility notifications
     9        to chromium.
     10
     11        Tests: platform/chromium/accessibility/post-notification-ActiveDescendantChanged.html
     12               platform/chromium/accessibility/post-notification-CheckedStateChanged.html
     13               platform/chromium/accessibility/post-notification-ChildrenChanged.html
     14               platform/chromium/accessibility/post-notification-FocusedUIElementChanged.html
     15               platform/chromium/accessibility/post-notification-LayoutComplete.html
     16               platform/chromium/accessibility/post-notification-LiveRegionChanged.html
     17               platform/chromium/accessibility/post-notification-LoadComplete.html
     18               platform/chromium/accessibility/post-notification-MenuListValueChanged.html
     19               platform/chromium/accessibility/post-notification-RowCollapsed.html
     20               platform/chromium/accessibility/post-notification-RowCountChanged.html
     21               platform/chromium/accessibility/post-notification-RowExpanded.html
     22               platform/chromium/accessibility/post-notification-ScrolledToAnchor.html
     23               platform/chromium/accessibility/post-notification-SelectedChildrenChanged.html
     24               platform/chromium/accessibility/post-notification-SelectedTextChanged.html
     25               platform/chromium/accessibility/post-notification-ValueChanged.html
     26
     27        * accessibility/chromium/AXObjectCacheChromium.cpp:
     28        (WebCore::AXObjectCache::postPlatformNotification):
     29        * page/chromium/ChromeClientChromium.h:
     30
    1312010-09-14  Darin Adler  <darin@apple.com>
    232
  • trunk/WebCore/accessibility/chromium/AXObjectCacheChromium.cpp

    r66317 r67498  
    6161
    6262    ChromeClientChromium* client = toChromeClientChromium(obj->documentFrameView());
    63     if (client) {
    64         switch (notification) {
    65         case AXCheckedStateChanged:
    66             client->didChangeAccessibilityObjectState(obj);
    67             break;
    68         case AXChildrenChanged:
    69             client->didChangeAccessibilityObjectChildren(obj);
    70             break;
    71         case AXActiveDescendantChanged:
    72         case AXFocusedUIElementChanged:
    73         case AXLayoutComplete:
    74         case AXLiveRegionChanged:
    75         case AXLoadComplete:
    76         case AXMenuListValueChanged:
    77         case AXRowCollapsed:
    78         case AXRowCountChanged:
    79         case AXRowExpanded:
    80         case AXScrolledToAnchor:
    81         case AXSelectedChildrenChanged:
    82         case AXSelectedTextChanged:
    83         case AXValueChanged:
    84             break;
    85         }
     63    if (!client)
     64        return;
     65
     66    // TODO: Remove after the new postAccessibilityNotification is used downstream.
     67    switch (notification) {
     68    case AXCheckedStateChanged:
     69        client->didChangeAccessibilityObjectState(obj);
     70        break;
     71    case AXChildrenChanged:
     72        client->didChangeAccessibilityObjectChildren(obj);
     73        break;
     74    case AXActiveDescendantChanged:
     75    case AXFocusedUIElementChanged:
     76    case AXLayoutComplete:
     77    case AXLiveRegionChanged:
     78    case AXLoadComplete:
     79    case AXMenuListValueChanged:
     80    case AXRowCollapsed:
     81    case AXRowCountChanged:
     82    case AXRowExpanded:
     83    case AXScrolledToAnchor:
     84    case AXSelectedChildrenChanged:
     85    case AXSelectedTextChanged:
     86    case AXValueChanged:
     87        break;
    8688    }
     89
     90    client->postAccessibilityNotification(obj, notification);       
    8791}
    8892
  • trunk/WebCore/page/chromium/ChromeClientChromium.h

    r66305 r67498  
    3232#define ChromeClientChromium_h
    3333
     34#include "AXObjectCache.h"
    3435#include "ChromeClient.h"
    3536#include <wtf/Forward.h>
     
    5960    // Notified embedder that the children of an accessibility object has changed.
    6061    virtual void didChangeAccessibilityObjectChildren(AccessibilityObject*) = 0;
     62   
     63    // Notifies embedder about an accessibility notification.
     64    virtual void postAccessibilityNotification(AccessibilityObject*, AXObjectCache::AXNotification) = 0;
    6165};
    6266
  • trunk/WebKit/chromium/ChangeLog

    r67487 r67498  
     12010-09-14  Chris Guillory   <chris.guillory@google.com>
     2
     3        Reviewed by Chris Fleizach.
     4
     5        Send all accessibility notifications to Chromium.
     6        https://bugs.webkit.org/show_bug.cgi?id=45156
     7       
     8        Use postAccessibilityNotification to pass accessibility notifications
     9        to chromium.
     10
     11        * WebKit.gyp:
     12        * public/WebAccessibilityNotification.h: Added.
     13        * public/WebViewClient.h:
     14        (WebKit::WebViewClient::postAccessibilityNotification):
     15        * src/AssertMatchingEnums.h: Added.
     16        * src/ChromeClientImpl.cpp:
     17        (WebKit::toWebAccessibilityNotification):
     18        (WebKit::ChromeClientImpl::didChangeAccessibilityObjectChildren):
     19        (WebKit::ChromeClientImpl::postAccessibilityNotification):
     20        * src/ChromeClientImpl.h:
     21
    1222010-09-14  Tony Chang  <tony@chromium.org>
    223
  • trunk/WebKit/chromium/WebKit.gyp

    r67446 r67498  
    9999                'public/mac/WebScreenInfoFactory.h',
    100100                'public/WebAccessibilityCache.h',
     101                'public/WebAccessibilityNotification.h',
    101102                'public/WebAccessibilityObject.h',
    102103                'public/WebAccessibilityRole.h',
  • trunk/WebKit/chromium/public/WebViewClient.h

    r66305 r67498  
    3232#define WebViewClient_h
    3333
     34#include "WebAccessibilityNotification.h"
    3435#include "WebDragOperation.h"
    3536#include "WebEditingAction.h"
     
    281282    // Notifies embedder that the children of an accessibility object has changed.
    282283    virtual void didChangeAccessibilityObjectChildren(const WebAccessibilityObject&) { }
     284   
     285    // Notifies embedder about an accessibility notification.
     286    virtual void postAccessibilityNotification(const WebAccessibilityObject&, WebAccessibilityNotification) { }
    283287
    284288
  • trunk/WebKit/chromium/src/ChromeClientImpl.cpp

    r67244 r67498  
    5757#include "Page.h"
    5858#include "PopupMenuChromium.h"
     59#include "ScriptController.h"
    5960#include "SearchPopupMenuChromium.h"
    60 #include "ScriptController.h"
    6161#include "SecurityOrigin.h"
    6262#include "SharedGraphicsContext3D.h"
    63 #include "WebGeolocationService.h"
    6463#if USE(V8)
    6564#include "V8Proxy.h"
     
    7170#include "WebFrameClient.h"
    7271#include "WebFrameImpl.h"
     72#include "WebGeolocationService.h"
    7373#include "WebInputEvent.h"
    7474#include "WebKit.h"
     
    104104}
    105105
     106// Converts a WebCore::AXObjectCache::AXNotification to a WebKit::WebAccessibilityNotification
     107static WebAccessibilityNotification toWebAccessibilityNotification(AXObjectCache::AXNotification notification)
     108{
     109    switch (notification) {
     110    case AXObjectCache::AXActiveDescendantChanged:
     111        return WebAccessibilityNotificationActiveDescendantChanged;
     112    case AXObjectCache::AXCheckedStateChanged:
     113        return WebAccessibilityNotificationCheckedStateChanged;
     114    case AXObjectCache::AXChildrenChanged:
     115        return WebAccessibilityNotificationChildrenChanged;
     116    case AXObjectCache::AXFocusedUIElementChanged:
     117        return WebAccessibilityNotificationFocusedUIElementChanged;
     118    case AXObjectCache::AXLayoutComplete:
     119        return WebAccessibilityNotificationLayoutComplete;
     120    case AXObjectCache::AXLoadComplete:
     121        return WebAccessibilityNotificationLoadComplete;
     122    case AXObjectCache::AXSelectedChildrenChanged:
     123        return WebAccessibilityNotificationSelectedChildrenChanged;
     124    case AXObjectCache::AXSelectedTextChanged:
     125        return WebAccessibilityNotificationSelectedTextChanged;
     126    case AXObjectCache::AXValueChanged:
     127        return WebAccessibilityNotificationValueChanged;
     128    case AXObjectCache::AXScrolledToAnchor:
     129        return WebAccessibilityNotificationScrolledToAnchor;
     130    case AXObjectCache::AXLiveRegionChanged:
     131        return WebAccessibilityNotificationLiveRegionChanged;
     132    case AXObjectCache::AXMenuListValueChanged:
     133        return WebAccessibilityNotificationMenuListValueChanged;
     134    case AXObjectCache::AXRowCountChanged:
     135        return WebAccessibilityNotificationRowCountChanged;
     136    case AXObjectCache::AXRowCollapsed:
     137        return WebAccessibilityNotificationRowCollapsed;
     138    case AXObjectCache::AXRowExpanded:
     139        return WebAccessibilityNotificationRowExpanded;
     140    default:
     141        ASSERT_NOT_REACHED();
     142        return WebAccessibilityNotificationInvalid;
     143    }
     144}
     145
    106146ChromeClientImpl::ChromeClientImpl(WebViewImpl* webView)
    107147    : m_webView(webView)
     
    344384{
    345385    m_scrollbarsVisible = value;
    346     WebFrameImpl* web_frame = static_cast<WebFrameImpl*>(m_webView->mainFrame());
    347     if (web_frame)
    348         web_frame->setCanHaveScrollbars(value);
     386    WebFrameImpl* webFrame = static_cast<WebFrameImpl*>(m_webView->mainFrame());
     387    if (webFrame)
     388        webFrame->setCanHaveScrollbars(value);
    349389}
    350390
     
    735775}
    736776
     777void ChromeClientImpl::postAccessibilityNotification(AccessibilityObject* obj, AXObjectCache::AXNotification notification)
     778{
     779    // Alert assistive technology about the accessibility object notification.
     780    if (obj)
     781        m_webView->client()->postAccessibilityNotification(WebAccessibilityObject(obj), toWebAccessibilityNotification(notification));
     782}
     783
    737784#if ENABLE(NOTIFICATIONS)
    738785NotificationPresenter* ChromeClientImpl::notificationPresenter() const
  • trunk/WebKit/chromium/src/ChromeClientImpl.h

    r66777 r67498  
    169169    virtual void didChangeAccessibilityObjectState(WebCore::AccessibilityObject*);
    170170    virtual void didChangeAccessibilityObjectChildren(WebCore::AccessibilityObject*);
     171    virtual void postAccessibilityNotification(WebCore::AccessibilityObject*, WebCore::AXObjectCache::AXNotification);
    171172
    172173    // ChromeClientImpl:
  • trunk/WebKitTools/ChangeLog

    r67495 r67498  
     12010-09-14  Chris Guillory   <chris.guillory@google.com>
     2
     3        Reviewed by Chris Fleizach.
     4
     5        Send all accessibility notifications to Chromium.
     6        https://bugs.webkit.org/show_bug.cgi?id=45156
     7
     8        * DumpRenderTree/chromium/WebViewHost.cpp:
     9        (WebViewHost::postAccessibilityNotification):
     10        * DumpRenderTree/chromium/WebViewHost.h:
     11
    1122010-09-14  Adam Barth  <abarth@webkit.org>
    213
  • trunk/WebKitTools/DumpRenderTree/chromium/WebViewHost.cpp

    r67294 r67498  
    4141#include "public/WebDataSource.h"
    4242#include "public/WebDragData.h"
     43#include "public/WebElement.h"
    4344#include "public/WebFrame.h"
    4445#include "public/WebGeolocationServiceMock.h"
     
    490491}
    491492
    492 void WebViewHost::didChangeAccessibilityObjectChildren(const WebAccessibilityObject& object)
    493 {
    494     if (m_shell->accessibilityController()->shouldDumpAccessibilityNotifications())
    495         printf("didChangeAccessibilityObjectChildren - new count: %d\n", object.childCount());
     493void WebViewHost::postAccessibilityNotification(const WebAccessibilityObject& obj, WebAccessibilityNotification notification)
     494{
     495    printf("AccessibilityNotification - ");
     496   
     497    if (m_shell->accessibilityController()->shouldDumpAccessibilityNotifications()) {
     498        switch (notification) {
     499        case WebAccessibilityNotificationActiveDescendantChanged:
     500            printf("ActiveDescendantChanged");
     501            break;
     502        case WebAccessibilityNotificationCheckedStateChanged:
     503            printf("CheckedStateChanged");
     504            break;
     505        case WebAccessibilityNotificationChildrenChanged:
     506            printf("ChildrenChanged");
     507            break;
     508        case WebAccessibilityNotificationFocusedUIElementChanged:
     509            printf("FocusedUIElementChanged");
     510            break;
     511        case WebAccessibilityNotificationLayoutComplete:
     512            printf("LayoutComplete");
     513            break;
     514        case WebAccessibilityNotificationLoadComplete:
     515            printf("LoadComplete");
     516            break;
     517        case WebAccessibilityNotificationSelectedChildrenChanged:
     518            printf("SelectedChildrenChanged");
     519            break;
     520        case WebAccessibilityNotificationSelectedTextChanged:
     521            printf("SelectedTextChanged");
     522            break;
     523        case WebAccessibilityNotificationValueChanged:
     524            printf("ValueChanged");
     525            break;
     526        case WebAccessibilityNotificationScrolledToAnchor:
     527            printf("ScrolledToAnchor");
     528            break;
     529        case WebAccessibilityNotificationLiveRegionChanged:
     530            printf("LiveRegionChanged");
     531            break;
     532        case WebAccessibilityNotificationMenuListValueChanged:
     533            printf("MenuListValueChanged");
     534            break;
     535        case WebAccessibilityNotificationRowCountChanged:
     536            printf("RowCountChanged");
     537            break;
     538        case WebAccessibilityNotificationRowCollapsed:
     539            printf("RowCollapsed");
     540            break;
     541        case WebAccessibilityNotificationRowExpanded:
     542            printf("RowExpanded");
     543            break;
     544        }
     545
     546        WebKit::WebNode node = obj.node();
     547        if (!node.isNull() && node.isElementNode()) {
     548            WebKit::WebElement element = node.to<WebKit::WebElement>();
     549            if (element.hasAttribute("id"))
     550                printf(" - id:%s", element.getAttribute("id").utf8().data());
     551        }
     552
     553        printf("\n");
     554    }
    496555}
    497556
  • trunk/WebKitTools/DumpRenderTree/chromium/WebViewHost.h

    r67177 r67498  
    3434#include "MockSpellCheck.h"
    3535#include "TestNavigationController.h"
     36#include "public/WebAccessibilityNotification.h"
    3637#include "public/WebCursorInfo.h"
    3738#include "public/WebFrameClient.h"
     
    128129    virtual int historyForwardListCount();
    129130    virtual void focusAccessibilityObject(const WebKit::WebAccessibilityObject&);
    130     virtual void didChangeAccessibilityObjectChildren(const WebKit::WebAccessibilityObject&);
     131    virtual void postAccessibilityNotification(const WebKit::WebAccessibilityObject&, WebKit::WebAccessibilityNotification);
    131132    virtual WebKit::WebNotificationPresenter* notificationPresenter();
    132133    virtual WebKit::WebGeolocationService* geolocationService();
Note: See TracChangeset for help on using the changeset viewer.