[EFL] Expose JavaScript binding interface through ewk_extension
authorryuan.choi@navercorp.com <ryuan.choi@navercorp.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Mar 2015 02:42:30 +0000 (02:42 +0000)
committerryuan.choi@navercorp.com <ryuan.choi@navercorp.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 18 Mar 2015 02:42:30 +0000 (02:42 +0000)
commitef83167f56fce6c42f1e5182662e353ea8b82f3d
treef32f203570e8f949e3fc67dd8eac422dc2615c80
parente64202adf8937ccd04bda95865e228fd0b136d02
[EFL] Expose JavaScript binding interface through ewk_extension
https://bugs.webkit.org/show_bug.cgi?id=142033

Reviewed by Gyuyoung Kim.

.:

* Source/cmake/OptionsEfl.cmake: Added HEADER_INSTALL_DIR variable.

Source/JavaScriptCore:

* PlatformEfl.cmake: Install Javascript APIs.

Source/WebKit2:

* PlatformEfl.cmake:
* UIProcess/API/efl/tests/extensions/extension_sample.cpp: Registered test object for new test case.
* UIProcess/API/efl/tests/test_ewk2_javascript_binding.cpp: Added simple binding API test case.
(EWK2ContextTestWithExtension::messageReceivedCallback):
(EWK2ContextTestWithExtension::EWK2ContextTestWithExtension):
(TEST_F):
* WebProcess/InjectedBundle/API/efl/EWebKit_Extension.h:
* WebProcess/InjectedBundle/API/efl/ewk_extension.cpp:
(EwkExtension::didCreatePage):
(EwkExtension::willDestroyPage):
* WebProcess/InjectedBundle/API/efl/ewk_extension.h:
* WebProcess/InjectedBundle/API/efl/ewk_extension_private.h:
* WebProcess/InjectedBundle/API/efl/ewk_page.cpp: Added.
(toEwkPage):
(EwkPage::EwkPage):
(EwkPage::append):
(EwkPage::remove):
(EwkPage::didFinishDocumentLoadForFrame):
(ewk_page_js_global_context_get):
(ewk_page_client_register):
(ewk_page_client_unregister):
* WebProcess/InjectedBundle/API/efl/ewk_page.h: Added.
* WebProcess/InjectedBundle/API/efl/ewk_page_private.h: Added.
(EwkPage::page):
* efl/ewebkit2-extension.pc.in:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@181681 268f45cc-cd09-0410-ab3c-d52691b4dbfc
16 files changed:
ChangeLog
Source/JavaScriptCore/ChangeLog
Source/JavaScriptCore/PlatformEfl.cmake
Source/WebKit2/ChangeLog
Source/WebKit2/PlatformEfl.cmake
Source/WebKit2/UIProcess/API/efl/tests/extensions/extension_sample.cpp
Source/WebKit2/UIProcess/API/efl/tests/test_ewk2_javascript_binding.cpp [new file with mode: 0644]
Source/WebKit2/WebProcess/InjectedBundle/API/efl/EWebKit_Extension.h
Source/WebKit2/WebProcess/InjectedBundle/API/efl/ewk_extension.cpp
Source/WebKit2/WebProcess/InjectedBundle/API/efl/ewk_extension.h
Source/WebKit2/WebProcess/InjectedBundle/API/efl/ewk_extension_private.h
Source/WebKit2/WebProcess/InjectedBundle/API/efl/ewk_page.cpp [new file with mode: 0644]
Source/WebKit2/WebProcess/InjectedBundle/API/efl/ewk_page.h [new file with mode: 0644]
Source/WebKit2/WebProcess/InjectedBundle/API/efl/ewk_page_private.h [new file with mode: 0644]
Source/WebKit2/efl/ewebkit2-extension.pc.in
Source/cmake/OptionsEfl.cmake