Source/WebKit: Patch by Jonas M. Gastal <jgastal@profusion.mobi> on 2011-08-23
authordemarchi@webkit.org <demarchi@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Aug 2011 21:01:52 +0000 (21:01 +0000)
committerdemarchi@webkit.org <demarchi@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 23 Aug 2011 21:01:52 +0000 (21:01 +0000)
commite8aa62c7b599640c174229f51a1d7e61d9e14887
treec15357179e5c71ca0d25669c0fd5f838f81f8716
parent6fb718ca589351806d8df1257d4a4c126940ff4d
Source/WebKit: Patch by Jonas M. Gastal <jgastal@profusion.mobi> on 2011-08-23
Reviewed by Antonio Gomes.

[EFL] Exporting JavaScript objects for EFL port
https://bugs.webkit.org/show_bug.cgi?id=43446

This patch allows to export objects to JavaScript API,
just like qt does, but it uses the netscape api
to do the convertion to javascript object.

* CMakeLists.txt:
Adding necessary files for the patch.

Source/WebKit/efl: [EFL] Exporting JavaScript objects for EFL port
https://bugs.webkit.org/show_bug.cgi?id=43446

Patch by Jonas M. Gastal <jgastal@profusion.mobi> on 2011-08-23
Reviewed by Antonio Gomes.

This patch allows to export objects to JavaScript API,
just like qt does, but it uses the netscape api
to do the convertion to javascript object.

* CMakeLists.txt:
* WebCoreSupport/FrameLoaderClientEfl.cpp:
(WebCore::FrameLoaderClientEfl::dispatchDidClearWindowObjectInWorld):
* ewk/EWebKit.h:
* ewk/ewk_js.cpp: Added.
(ewk_js_variant_to_npvariant):
(ewk_js_npvariant_to_variant):
(ewk_js_property_has):
(ewk_js_property_get):
(ewk_js_property_set):
(ewk_js_property_remove):
(ewk_js_properties_enumerate):
(ewk_js_method_has):
(ewk_js_method_invoke):
(ewk_js_class_new):
(ewk_js_class_free):
(ewk_js_object_new):
(ewk_js_object_free):
(ewk_js_object_properties_get):
(ewk_js_object_name_get):
(ewk_js_variant_free):
* ewk/ewk_js.h: Added.
* ewk/ewk_main.cpp:
(ewk_init):
* ewk/ewk_private.h:
* ewk/ewk_view.cpp:
(ewk_view_js_window_object_clear):
(ewk_view_js_object_add):
* ewk/ewk_view.h:

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@93637 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebKit/CMakeLists.txt
Source/WebKit/ChangeLog
Source/WebKit/efl/CMakeListsEfl.txt
Source/WebKit/efl/ChangeLog
Source/WebKit/efl/WebCoreSupport/FrameLoaderClientEfl.cpp
Source/WebKit/efl/ewk/EWebKit.h
Source/WebKit/efl/ewk/ewk_js.cpp [new file with mode: 0644]
Source/WebKit/efl/ewk/ewk_js.h [new file with mode: 0644]
Source/WebKit/efl/ewk/ewk_private.h
Source/WebKit/efl/ewk/ewk_view.cpp
Source/WebKit/efl/ewk/ewk_view.h