Changeset 140667 in webkit


Ignore:
Timestamp:
Jan 24, 2013 2:11:51 AM (11 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL][WK2] Expose accessibility hierarchy in WebKit2-EFL.
https://bugs.webkit.org/show_bug.cgi?id=106216

Patch by Krzysztof Czech <k.czech@samsung.com> on 2013-01-24
Reviewed by Andreas Kling.

Create WebPage's accessibility object on WebPage initialization.
Wrap around WebCore's accessibility objects.
Updating accessibility hierarchy. Expands accessibility implementation
of WebKit-GTK to be used in EFL.

  • PlatformEfl.cmake:
  • WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:

(WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):

  • WebProcess/WebPage/WebPage.h:

(WebPage):

  • WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp:

(webPageAccessibilityObjectGetIndexInParent):
(web_page_accessibility_object_init):

  • WebProcess/WebPage/efl/WebPageEfl.cpp:

(WebKit::WebPage::platformInitialize):
(WebKit):
(WebKit::WebPage::updateAccessibilityTree):

Location:
trunk/Source/WebKit2
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r140656 r140667  
     12013-01-24  Krzysztof Czech  <k.czech@samsung.com>
     2
     3        [EFL][WK2] Expose accessibility hierarchy in WebKit2-EFL.
     4        https://bugs.webkit.org/show_bug.cgi?id=106216
     5
     6        Reviewed by Andreas Kling.
     7
     8        Create WebPage's accessibility object on WebPage initialization.
     9        Wrap around WebCore's accessibility objects.
     10        Updating accessibility hierarchy. Expands accessibility implementation
     11        of WebKit-GTK to be used in EFL.
     12
     13        * PlatformEfl.cmake:
     14        * WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp:
     15        (WebKit::WebFrameLoaderClient::dispatchDidClearWindowObjectInWorld):
     16        * WebProcess/WebPage/WebPage.h:
     17        (WebPage):
     18        * WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp:
     19        (webPageAccessibilityObjectGetIndexInParent):
     20        (web_page_accessibility_object_init):
     21        * WebProcess/WebPage/efl/WebPageEfl.cpp:
     22        (WebKit::WebPage::platformInitialize):
     23        (WebKit):
     24        (WebKit::WebPage::updateAccessibilityTree):
     25
    1262013-01-23  Seokju Kwon  <seokju.kwon@gmail.com>
    227
  • trunk/Source/WebKit2/PlatformEfl.cmake

    r140542 r140667  
    137137    WebProcess/WebCoreSupport/soup/WebFrameNetworkingContext.cpp
    138138
     139    WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp
    139140    WebProcess/WebPage/efl/WebInspectorEfl.cpp
    140141    WebProcess/WebPage/efl/WebPageEfl.cpp
     
    412413    )
    413414endif ()
     415
     416if (ENABLE_ACCESSIBILITY)
     417    list(APPEND WebKit2_INCLUDE_DIRECTORIES
     418        "${WEBKIT2_DIR}/WebProcess/WebPage/atk"
     419        ${ATK_INCLUDE_DIRS}
     420    )
     421    list(APPEND WebKit2_LIBRARIES
     422        ${ATK_LIBRARIES}
     423    )
     424endif ()
  • trunk/Source/WebKit2/WebProcess/WebCoreSupport/WebFrameLoaderClient.cpp

    r140285 r140667  
    14821482    webPage->injectedBundleLoaderClient().didClearWindowObjectForFrame(webPage, m_frame, world);
    14831483
    1484 #if PLATFORM(GTK)
     1484#if HAVE(ACCESSIBILITY) && (PLATFORM(GTK) || PLATFORM(EFL))
    14851485    // Ensure the accessibility hierarchy is updated.
    14861486    webPage->updateAccessibilityTree();
  • trunk/Source/WebKit2/WebProcess/WebPage/WebPage.h

    r140087 r140667  
    7979#endif
    8080
     81#if HAVE(ACCESSIBILITY) && (PLATFORM(GTK) || PLATFORM(EFL))
     82#include "WebPageAccessibilityObject.h"
     83#include <wtf/gobject/GRefPtr.h>
     84#endif
     85
    8186#if PLATFORM(GTK)
    8287#include "ArgumentCodersGtk.h"
    83 #include "WebPageAccessibilityObject.h"
    8488#include "WebPrintOperationGtk.h"
    8589#endif
     
    461465    void cancelComposition();
    462466#elif PLATFORM(GTK)
    463     void updateAccessibilityTree();
    464467#if USE(TEXTURE_MAPPER_GL)
    465468    void setAcceleratedCompositingWindowId(int64_t nativeWindowHandle);
    466469#endif
     470#endif
     471
     472#if HAVE(ACCESSIBILITY) && (PLATFORM(GTK) || PLATFORM(EFL))
     473    void updateAccessibilityTree();
    467474#endif
    468475
     
    850857    WebCore::KeyboardEvent* m_keyboardEventBeingInterpreted;
    851858
    852 #elif PLATFORM(GTK)
     859#elif HAVE(ACCESSIBILITY) && (PLATFORM(GTK) || PLATFORM(EFL))
    853860    GRefPtr<WebPageAccessibilityObject> m_accessibilityObject;
    854861
  • trunk/Source/WebKit2/WebProcess/WebPage/atk/WebPageAccessibilityObjectAtk.cpp

    r139421 r140667  
    7676}
    7777
    78 static gint webPageAccessibilityObjectGetIndexInParent(AtkObject *atkObject)
     78static gint webPageAccessibilityObjectGetIndexInParent(AtkObject*)
    7979{
    8080    // An AtkPlug is the only child an AtkSocket can have.
     
    107107}
    108108
    109 static void web_page_accessibility_object_init(WebPageAccessibilityObject* accessible)
     109static void web_page_accessibility_object_init(WebPageAccessibilityObject*)
    110110{
    111111}
  • trunk/Source/WebKit2/WebProcess/WebPage/efl/WebPageEfl.cpp

    r132210 r140667  
    4343#include <WebCore/Settings.h>
    4444
     45#if HAVE(ACCESSIBILITY)
     46#include "WebPageAccessibilityObject.h"
     47#endif
     48
    4549using namespace WebCore;
    4650
     
    4953void WebPage::platformInitialize()
    5054{
    51     notImplemented();
    52 }
     55#if HAVE(ACCESSIBILITY)
     56    m_accessibilityObject = adoptGRef(webPageAccessibilityObjectNew(this));
     57#else
     58    notImplemented();
     59#endif
     60}
     61
     62#if HAVE(ACCESSIBILITY)
     63void WebPage::updateAccessibilityTree()
     64{
     65    if (!m_accessibilityObject)
     66        return;
     67
     68    webPageAccessibilityObjectRefresh(m_accessibilityObject.get());
     69}
     70#endif
    5371
    5472void WebPage::platformPreferencesDidChange(const WebPreferencesStore&)
Note: See TracChangeset for help on using the changeset viewer.