⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 176514 in webkit


Ignore:
Timestamp:
Nov 24, 2014, 3:30:55 AM (12 years ago)
Author:
k.czech@samsung.com
Message:

[EFL] Utilize Eail library to support accessibility in EFL
https://bugs.webkit.org/show_bug.cgi?id=137742

Reviewed by Gyuyoung Kim.

Source/WebKit2:

Initialize EAIL module so that all the listeners and atk-bridge started properly.
Dynamic loading of EAIL help us to avoid elementary dependencies in WebKit.

  • WebProcess/efl/WebProcessMainEfl.cpp:

(eailLibraryPath): reads path provided by ACCESSIBILITY_EAIL_LIBRARY_PATH variable.
(eail):

Tools:

Eail, atk-bridge, at-spi2 are not mandatory modules for webkit-efl. They are rather optional.

  • efl/jhbuild-optional.modules: Added.
  • efl/jhbuild.modules:
Location:
trunk
Files:
1 added
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r176513 r176514  
     12014-11-24  Krzysztof Czech  <k.czech@samsung.com>
     2
     3        [EFL] Utilize Eail library to support accessibility in EFL
     4        https://bugs.webkit.org/show_bug.cgi?id=137742
     5
     6        Reviewed by Gyuyoung Kim.
     7
     8        Initialize EAIL module so that all the listeners and atk-bridge started properly.
     9        Dynamic loading of EAIL help us to avoid elementary dependencies in WebKit.
     10
     11        * WebProcess/efl/WebProcessMainEfl.cpp:
     12        (eailLibraryPath): reads path provided by ACCESSIBILITY_EAIL_LIBRARY_PATH variable.
     13        (eail):
     14
    1152014-11-24  Carlos Garcia Campos  <cgarcia@igalia.com>
    216
  • trunk/Source/WebKit2/WebProcess/efl/WebProcessMainEfl.cpp

    r172371 r176514  
    3535#include <WebCore/SoupNetworkSession.h>
    3636#include <libsoup/soup.h>
     37
     38#if HAVE(ACCESSIBILITY)
     39#include "Module.h"
     40/*
     41 * This should be defined and filled in elementary but to avoid undefined reference it's defined here.
     42 * Setting this variable to nullptr will not cause any trouble to webkit and eail as well.
     43 */
     44Eina_List* _elm_win_list = nullptr;
     45
     46typedef int (*EailFunction)(void*);
     47
     48static char* eailLibraryPath()
     49{
     50    return getenv("ACCESSIBILITY_EAIL_LIBRARY_PATH");
     51}
     52
     53static WebKit::Module& eail()
     54{
     55    static NeverDestroyed<WebKit::Module> eail(eailLibraryPath());
     56    return eail;
     57}
     58#endif
    3759
    3860#ifdef HAVE_ECORE_X
     
    99121            return false;
    100122
     123#if HAVE(ACCESSIBILITY)
     124        // Initialize EAIL module (adding listeners, init atk-bridge)
     125        if (eail().load()) {
     126            if (EailFunction eailInit = eail().functionPointer<EailFunction>("elm_modapi_init"))
     127                eailInit(nullptr);
     128        }
     129#endif
     130
    101131        SoupNetworkSession::defaultSession().setupHTTPProxyFromEnvironment();
    102132        return true;
     
    117147        ecore_shutdown();
    118148        eina_shutdown();
     149
     150#if HAVE(ACCESSIBILITY)
     151        if (EailFunction eailShutdown = eail().functionPointer<EailFunction>("elm_modapi_shutdown"))
     152            eailShutdown(nullptr);
     153#endif
    119154    }
    120155};
  • trunk/Tools/ChangeLog

    r176513 r176514  
     12014-11-24  Krzysztof Czech  <k.czech@samsung.com>
     2
     3        [EFL] Utilize Eail library to support accessibility in EFL
     4        https://bugs.webkit.org/show_bug.cgi?id=137742
     5
     6        Reviewed by Gyuyoung Kim.
     7
     8        Eail, atk-bridge, at-spi2 are not mandatory modules for webkit-efl. They are rather optional.
     9
     10        * efl/jhbuild-optional.modules: Added.
     11        * efl/jhbuild.modules:
     12
    1132014-11-24  Carlos Garcia Campos  <cgarcia@igalia.com>
    214
  • trunk/Tools/efl/jhbuild.modules

    r176196 r176514  
    2626    </dependencies>
    2727  </metamodule>
     28
     29  <include href="jhbuild-optional.modules"/>
    2830
    2931  <repository type="tarball" name="github.com"
Note: See TracChangeset for help on using the changeset viewer.