summaryrefslogtreecommitdiff
path: root/src/bindings/js
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2016-03-15 18:00:20 -0300
committerVitor Sousa <vitorsousasilva@gmail.com>2016-03-18 17:47:09 -0300
commit1422e62f302f2f2f0995b19f98d6f971e39a921f (patch)
tree13e7fbed6a0e5f4fde878907bc74645d241c8be6 /src/bindings/js
parentc7550b2964e8f1c1cd9f51c7db573c5361f8cb10 (diff)
efl js: Fix naming of manual binding functions.
Also removed references to the discarded manual binding "ecore_js_file".
Diffstat (limited to 'src/bindings/js')
-rw-r--r--src/bindings/js/ecore_js/Ecore_Js.hh2
-rw-r--r--src/bindings/js/ecore_js/ecore_js_animator.cc48
-rw-r--r--src/bindings/js/ecore_js/ecore_js_event.cc51
-rw-r--r--src/bindings/js/ecore_js/ecore_js_idle.cc12
-rw-r--r--src/bindings/js/ecore_js/ecore_js_init.cc16
-rw-r--r--src/bindings/js/ecore_js/ecore_js_job.cc2
-rw-r--r--src/bindings/js/ecore_js/ecore_js_mainloop.cc20
-rw-r--r--src/bindings/js/ecore_js/ecore_js_poller.cc12
-rw-r--r--src/bindings/js/ecore_js/ecore_js_throttle.cc4
-rw-r--r--src/bindings/js/ecore_js/ecore_js_timer.cc10
-rw-r--r--src/bindings/js/efl_js/efl_js.cc6
-rw-r--r--src/bindings/js/eio_js/Eio_Js.hh2
-rw-r--r--src/bindings/js/eio_js/eio_js.cc181
-rw-r--r--src/bindings/js/ethumb_js/Ethumb_Js.hh1
-rw-r--r--src/bindings/js/ethumb_js/ethumb_js_client.cc29
15 files changed, 192 insertions, 204 deletions
diff --git a/src/bindings/js/ecore_js/Ecore_Js.hh b/src/bindings/js/ecore_js/Ecore_Js.hh
index 3f877f3fc8..15331aa93e 100644
--- a/src/bindings/js/ecore_js/Ecore_Js.hh
+++ b/src/bindings/js/ecore_js/Ecore_Js.hh
@@ -5,6 +5,7 @@
5#include <Ecore.hh> 5#include <Ecore.hh>
6#include <Ecore_File.h> 6#include <Ecore_File.h>
7#include <Eina_Js.hh> 7#include <Eina_Js.hh>
8#include <Eo_Js.hh>
8 9
9#ifdef EAPI 10#ifdef EAPI
10# undef EAPI 11# undef EAPI
@@ -43,7 +44,6 @@ using ::efl::eina::js::compatibility_set_pointer_internal_field;
43 44
44EAPI void register_ecore_animator(v8::Isolate *isolate,v8::Handle<v8::Object> exports); 45EAPI void register_ecore_animator(v8::Isolate *isolate,v8::Handle<v8::Object> exports);
45EAPI void register_ecore_event(v8::Isolate* isolate, v8::Handle<v8::Object> exports); 46EAPI void register_ecore_event(v8::Isolate* isolate, v8::Handle<v8::Object> exports);
46EAPI void register_ecore_file(v8::Isolate* isolate, v8::Handle<v8::Object> exports);
47EAPI void register_ecore_idle(v8::Isolate *isolate,v8::Handle<v8::Object> exports); 47EAPI void register_ecore_idle(v8::Isolate *isolate,v8::Handle<v8::Object> exports);
48EAPI void register_ecore_job(v8::Isolate *isolate,v8::Handle<v8::Object> exports); 48EAPI void register_ecore_job(v8::Isolate *isolate,v8::Handle<v8::Object> exports);
49EAPI void register_ecore_mainloop(v8::Isolate *isolate,v8::Handle<v8::Object> exports); 49EAPI void register_ecore_mainloop(v8::Isolate *isolate,v8::Handle<v8::Object> exports);
diff --git a/src/bindings/js/ecore_js/ecore_js_animator.cc b/src/bindings/js/ecore_js/ecore_js_animator.cc
index 849e4d7f34..322db17b50 100644
--- a/src/bindings/js/ecore_js/ecore_js_animator.cc
+++ b/src/bindings/js/ecore_js/ecore_js_animator.cc
@@ -526,83 +526,75 @@ void register_ecore_animator(v8::Isolate* isolate, v8::Handle<v8::Object> export
526{ 526{
527 register_pos_map_linear(isolate, exports, 527 register_pos_map_linear(isolate, exports,
528 compatibility_new<v8::String>(isolate, 528 compatibility_new<v8::String>(isolate,
529 "ECORE_POS_MAP_LINEAR")); 529 "POS_MAP_LINEAR"));
530 register_pos_map_accelerate(isolate, exports, 530 register_pos_map_accelerate(isolate, exports,
531 compatibility_new<v8::String>(isolate, 531 compatibility_new<v8::String>(isolate,
532 "ECORE_POS_MAP" 532 "POS_MAP"
533 "_ACCELERATE")); 533 "_ACCELERATE"));
534 register_pos_map_decelerate(isolate, exports, 534 register_pos_map_decelerate(isolate, exports,
535 compatibility_new<v8::String>(isolate, 535 compatibility_new<v8::String>(isolate,
536 "ECORE_POS_MAP" 536 "POS_MAP"
537 "_DECELERATE")); 537 "_DECELERATE"));
538 register_pos_map_sinusoidal(isolate, exports, 538 register_pos_map_sinusoidal(isolate, exports,
539 compatibility_new<v8::String>(isolate, 539 compatibility_new<v8::String>(isolate,
540 "ECORE_POS_MAP" 540 "POS_MAP"
541 "_SINUSOIDAL")); 541 "_SINUSOIDAL"));
542 register_pos_map_accelerate_factor(isolate, exports, 542 register_pos_map_accelerate_factor(isolate, exports,
543 compatibility_new<v8::String>(isolate, 543 compatibility_new<v8::String>(isolate,
544 "ECORE_POS_MAP" 544 "POS_MAP"
545 "_ACCELERATE" 545 "_ACCELERATE"
546 "_FACTOR")); 546 "_FACTOR"));
547 register_pos_map_decelerate_factor(isolate, exports, 547 register_pos_map_decelerate_factor(isolate, exports,
548 compatibility_new<v8::String>(isolate, 548 compatibility_new<v8::String>(isolate,
549 "ECORE_POS_MAP" 549 "POS_MAP"
550 "_DECELERATE" 550 "_DECELERATE"
551 "_FACTOR")); 551 "_FACTOR"));
552 register_pos_map_sinusoidal_factor(isolate, exports, 552 register_pos_map_sinusoidal_factor(isolate, exports,
553 compatibility_new<v8::String>(isolate, 553 compatibility_new<v8::String>(isolate,
554 "ECORE_POS_MAP" 554 "POS_MAP"
555 "_SINUSOIDAL" 555 "_SINUSOIDAL"
556 "_FACTOR")); 556 "_FACTOR"));
557 register_pos_map_divisor_interp(isolate, exports, 557 register_pos_map_divisor_interp(isolate, exports,
558 compatibility_new<v8::String>(isolate, 558 compatibility_new<v8::String>(isolate,
559 "ECORE_POS_MAP" 559 "POS_MAP"
560 "_DIVISOR_INTERP")); 560 "_DIVISOR_INTERP"));
561 register_pos_map_bounce(isolate, exports, 561 register_pos_map_bounce(isolate, exports,
562 compatibility_new<v8::String>(isolate, 562 compatibility_new<v8::String>(isolate,
563 "ECORE_POS_MAP_BOUNCE")); 563 "POS_MAP_BOUNCE"));
564 register_pos_map_spring(isolate, exports, 564 register_pos_map_spring(isolate, exports,
565 compatibility_new<v8::String>(isolate, 565 compatibility_new<v8::String>(isolate,
566 "ECORE_POS_MAP_SPRING")); 566 "POS_MAP_SPRING"));
567 register_pos_map_cubic_bezier(isolate, exports, 567 register_pos_map_cubic_bezier(isolate, exports,
568 compatibility_new<v8::String>(isolate, 568 compatibility_new<v8::String>(isolate,
569 "ECORE_POS_MAP_CUBIC" 569 "POS_MAP_CUBIC"
570 "_BEZIER")); 570 "_BEZIER"));
571 register_animator_source_timer(isolate, exports, 571 register_animator_source_timer(isolate, exports,
572 compatibility_new<v8::String>(isolate, 572 compatibility_new<v8::String>(isolate,
573 "ECORE_ANIMATOR" 573 "SOURCE_TIMER"));
574 "_SOURCE_TIMER"));
575 register_animator_frametime_set(isolate, exports, 574 register_animator_frametime_set(isolate, exports,
576 compatibility_new<v8::String>(isolate, 575 compatibility_new<v8::String>(isolate,
577 "ecore_animator" 576 "setFrametime"));
578 "_frametime_set"));
579 register_animator_frametime_get(isolate, exports, 577 register_animator_frametime_get(isolate, exports,
580 compatibility_new<v8::String>(isolate, 578 compatibility_new<v8::String>(isolate,
581 "ecore_animator" 579 "getFrametime"));
582 "_frametime_get"));
583 register_animator_pos_map(isolate, exports, 580 register_animator_pos_map(isolate, exports,
584 compatibility_new<v8::String>(isolate, 581 compatibility_new<v8::String>(isolate,
585 "ecore_animator_pos" 582 "posMap"));
586 "_map"));
587 register_animator_pos_map_n(isolate, exports, 583 register_animator_pos_map_n(isolate, exports,
588 compatibility_new<v8::String>(isolate, 584 compatibility_new<v8::String>(isolate,
589 "ecore_animator_pos_map" 585 "posMapN"));
590 "_n"));
591 register_animator_source_set(isolate, exports, 586 register_animator_source_set(isolate, exports,
592 compatibility_new<v8::String>(isolate, 587 compatibility_new<v8::String>(isolate,
593 "ecore_animator_source" 588 "setSource"));
594 "_set"));
595 register_animator_source_get(isolate, exports, 589 register_animator_source_get(isolate, exports,
596 compatibility_new<v8::String>(isolate, 590 compatibility_new<v8::String>(isolate,
597 "ecore_animator_source" 591 "getSource"));
598 "_get"));
599 register_animator_add(isolate, exports, 592 register_animator_add(isolate, exports,
600 compatibility_new<v8::String>(isolate, 593 compatibility_new<v8::String>(isolate,
601 "ecore_animator_add")); 594 "add"));
602 register_animator_timeline_add(isolate, exports, 595 register_animator_timeline_add(isolate, exports,
603 compatibility_new<v8::String>(isolate, 596 compatibility_new<v8::String>(isolate,
604 "ecore_animator" 597 "addTimeline"));
605 "_timeline_add"));
606} 598}
607 599
608} } } // namespace efl { namespace js { 600} } } // namespace efl { namespace js {
diff --git a/src/bindings/js/ecore_js/ecore_js_event.cc b/src/bindings/js/ecore_js/ecore_js_event.cc
index a086d989d6..dbfa10c570 100644
--- a/src/bindings/js/ecore_js/ecore_js_event.cc
+++ b/src/bindings/js/ecore_js/ecore_js_event.cc
@@ -690,83 +690,80 @@ void register_ecore_event(v8::Isolate* isolate, v8::Handle<v8::Object> exports)
690{ 690{
691 register_event_none(isolate, exports, 691 register_event_none(isolate, exports,
692 compatibility_new<v8::String>(isolate, 692 compatibility_new<v8::String>(isolate,
693 "ECORE_EVENT_NONE")); 693 "NONE"));
694 register_event_signal_user(isolate, exports, 694 register_event_signal_user(isolate, exports,
695 compatibility_new<v8::String> 695 compatibility_new<v8::String>
696 (isolate, "ECORE_EVENT_SIGNAL_USER")); 696 (isolate, "SIGNAL_USER"));
697 register_event_signal_hup(isolate, exports, 697 register_event_signal_hup(isolate, exports,
698 compatibility_new<v8::String> 698 compatibility_new<v8::String>
699 (isolate, "ECORE_EVENT_SIGNAL_HUP")); 699 (isolate, "SIGNAL_HUP"));
700 register_event_signal_exit(isolate, exports, 700 register_event_signal_exit(isolate, exports,
701 compatibility_new<v8::String> 701 compatibility_new<v8::String>
702 (isolate, "ECORE_EVENT_SIGNAL_EXIT")); 702 (isolate, "SIGNAL_EXIT"));
703 register_event_signal_power(isolate, exports, 703 register_event_signal_power(isolate, exports,
704 compatibility_new<v8::String> 704 compatibility_new<v8::String>
705 (isolate, "ECORE_EVENT_SIGNAL_POWER")); 705 (isolate, "SIGNAL_POWER"));
706 register_event_signal_realtime(isolate, exports, 706 register_event_signal_realtime(isolate, exports,
707 compatibility_new<v8::String> 707 compatibility_new<v8::String>
708 (isolate, "ECORE_EVENT_SIGNAL_REALTIME")); 708 (isolate, "SIGNAL_REALTIME"));
709 register_event_memory_state(isolate, exports, 709 register_event_memory_state(isolate, exports,
710 compatibility_new<v8::String> 710 compatibility_new<v8::String>
711 (isolate, "ECORE_EVENT_MEMORY_STATE")); 711 (isolate, "MEMORY_STATE"));
712 register_event_power_state(isolate, exports, 712 register_event_power_state(isolate, exports,
713 compatibility_new<v8::String> 713 compatibility_new<v8::String>
714 (isolate, "ECORE_EVENT_POWER_STATE")); 714 (isolate, "POWER_STATE"));
715 register_event_locale_changed(isolate, exports, 715 register_event_locale_changed(isolate, exports,
716 compatibility_new<v8::String> 716 compatibility_new<v8::String>
717 (isolate, "ECORE_EVENT_LOCALE_CHANGED")); 717 (isolate, "LOCALE_CHANGED"));
718 register_event_hostname_changed(isolate, exports, 718 register_event_hostname_changed(isolate, exports,
719 compatibility_new<v8::String> 719 compatibility_new<v8::String>
720 (isolate, "ECORE_EVENT_HOSTNAME_CHANGED")); 720 (isolate, "HOSTNAME_CHANGED"));
721 register_event_system_timedate_changed(isolate, exports, 721 register_event_system_timedate_changed(isolate, exports,
722 compatibility_new<v8::String> 722 compatibility_new<v8::String>
723 (isolate, 723 (isolate,
724 "ECORE_EVENT_SYSTEM_TIMEDATE" 724 "SYSTEM_TIMEDATE"
725 "_CHANGED")); 725 "_CHANGED"));
726 register_event_type_new(isolate, exports, 726 register_event_type_new(isolate, exports,
727 compatibility_new<v8::String>(isolate, 727 compatibility_new<v8::String>(isolate,
728 "ecore_event_type_new")); 728 "newType"));
729 register_event_add(isolate, exports, 729 register_event_add(isolate, exports,
730 compatibility_new<v8::String>(isolate, "ecore_event_add")); 730 compatibility_new<v8::String>(isolate, "add"));
731 register_event_handler_add(isolate, exports, 731 register_event_handler_add(isolate, exports,
732 compatibility_new<v8::String> 732 compatibility_new<v8::String>
733 (isolate, "ecore_event_handler_add")); 733 (isolate, "addHandler"));
734 register_event_filter_add(isolate, exports, 734 register_event_filter_add(isolate, exports,
735 compatibility_new<v8::String> 735 compatibility_new<v8::String>
736 (isolate, "ecore_event_filter_add")); 736 (isolate, "addFilter"));
737 register_event_current_type_get(isolate, exports, 737 register_event_current_type_get(isolate, exports,
738 compatibility_new<v8::String> 738 compatibility_new<v8::String>
739 (isolate, "ecore_event_current_type_get")); 739 (isolate, "getCurrentType"));
740 register_memory_state_normal(isolate, exports, 740 register_memory_state_normal(isolate, exports,
741 compatibility_new<v8::String> 741 compatibility_new<v8::String>
742 (isolate, "ECORE_MEMORY_STATE_NORMAL")); 742 (isolate, "MEMORY_STATE_NORMAL"));
743 register_memory_state_low(isolate, exports, 743 register_memory_state_low(isolate, exports,
744 compatibility_new<v8::String> 744 compatibility_new<v8::String>
745 (isolate, "ECORE_MEMORY_STATE_LOW")); 745 (isolate, "MEMORY_STATE_LOW"));
746 register_power_state_mains(isolate, exports, 746 register_power_state_mains(isolate, exports,
747 compatibility_new<v8::String> 747 compatibility_new<v8::String>
748 (isolate, "ECORE_POWER_STATE_MAINS")); 748 (isolate, "POWER_STATE_MAINS"));
749 register_power_state_battery(isolate, exports, 749 register_power_state_battery(isolate, exports,
750 compatibility_new<v8::String> 750 compatibility_new<v8::String>
751 (isolate, "ECORE_POWER_STATE_BATTERY")); 751 (isolate, "POWER_STATE_BATTERY"));
752 register_power_state_low(isolate, exports, 752 register_power_state_low(isolate, exports,
753 compatibility_new<v8::String>(isolate, 753 compatibility_new<v8::String>(isolate,
754 "ECORE_POWER_STATE_LOW")); 754 "POWER_STATE_LOW"));
755 register_event_signal_user_handler_add(isolate, exports, 755 register_event_signal_user_handler_add(isolate, exports,
756 compatibility_new<v8::String> 756 compatibility_new<v8::String>
757 (isolate, 757 (isolate,
758 "ecore_event_signal_user_handler" 758 "addSignalUserHandler"));
759 "_add"));
760 register_event_signal_exit_handler_add(isolate, exports, 759 register_event_signal_exit_handler_add(isolate, exports,
761 compatibility_new<v8::String> 760 compatibility_new<v8::String>
762 (isolate, 761 (isolate,
763 "ecore_event_signal_exit_handler" 762 "addSignalExitHandler"));
764 "_add"));
765 register_event_signal_realtime_handler_add(isolate, exports, 763 register_event_signal_realtime_handler_add(isolate, exports,
766 compatibility_new<v8::String> 764 compatibility_new<v8::String>
767 (isolate, 765 (isolate,
768 "ecore_event_signal_realtime" 766 "addSignalRealtimeHandler"));
769 "_handler_add"));
770} 767}
771 768
772} } } // namespace efl { namespace js { 769} } } // namespace efl { namespace js {
diff --git a/src/bindings/js/ecore_js/ecore_js_idle.cc b/src/bindings/js/ecore_js/ecore_js_idle.cc
index 293cef2f45..9bad24bd77 100644
--- a/src/bindings/js/ecore_js/ecore_js_idle.cc
+++ b/src/bindings/js/ecore_js/ecore_js_idle.cc
@@ -276,19 +276,17 @@ EAPI
276void register_ecore_idle(v8::Isolate *isolate,v8::Handle<v8::Object> exports) 276void register_ecore_idle(v8::Isolate *isolate,v8::Handle<v8::Object> exports)
277{ 277{
278 register_idler_add(isolate, exports, 278 register_idler_add(isolate, exports,
279 compatibility_new<v8::String>(isolate, "ecore_idler_add")); 279 compatibility_new<v8::String>(isolate, "add"));
280 register_idle_enterer_add(isolate, exports, 280 register_idle_enterer_add(isolate, exports,
281 compatibility_new<v8::String>(isolate, 281 compatibility_new<v8::String>(isolate,
282 "ecore_idle_enterer" 282 "addEnterer"));
283 "_add"));
284 register_idle_enterer_before_add(isolate, exports, 283 register_idle_enterer_before_add(isolate, exports,
285 compatibility_new<v8::String>(isolate, 284 compatibility_new<v8::String>(isolate,
286 "ecore_idle" 285 "addEnterer"
287 "_enterer_before" 286 "Before"));
288 "_add"));
289 register_idle_exiter_add(isolate, exports, 287 register_idle_exiter_add(isolate, exports,
290 compatibility_new<v8::String>(isolate, 288 compatibility_new<v8::String>(isolate,
291 "ecore_idle_exiter_add")); 289 "addExiter"));
292} 290}
293 291
294} } } // namespace efl { namespace js { 292} } } // namespace efl { namespace js {
diff --git a/src/bindings/js/ecore_js/ecore_js_init.cc b/src/bindings/js/ecore_js/ecore_js_init.cc
index ba2b04f842..9f1c8cb504 100644
--- a/src/bindings/js/ecore_js/ecore_js_init.cc
+++ b/src/bindings/js/ecore_js/ecore_js_init.cc
@@ -63,14 +63,14 @@ void register_ecore(v8::Isolate *isolate,v8::Handle<v8::Object> exports)
63 efl::ecore::js::register_shutdown(isolate, exports, 63 efl::ecore::js::register_shutdown(isolate, exports,
64 efl::eina::js::compatibility_new<v8::String> 64 efl::eina::js::compatibility_new<v8::String>
65 (isolate, "ecore_shutdown")); 65 (isolate, "ecore_shutdown"));
66 register_ecore_animator(isolate, exports); 66 register_ecore_animator(isolate, efl::eo::js::get_namespace({"Ecore", "Animator"}, isolate, exports));
67 register_ecore_event(isolate, exports); 67 register_ecore_event(isolate, efl::eo::js::get_namespace({"Ecore", "Event"}, isolate, exports));
68 register_ecore_idle(isolate, exports); 68 register_ecore_idle(isolate, efl::eo::js::get_namespace({"Ecore", "Idle"}, isolate, exports));
69 register_ecore_job(isolate, exports); 69 register_ecore_job(isolate, efl::eo::js::get_namespace({"Ecore", "Job"}, isolate, exports));
70 register_ecore_mainloop(isolate, exports); 70 register_ecore_mainloop(isolate, efl::eo::js::get_namespace({"Ecore", "Mainloop"}, isolate, exports));
71 register_ecore_poller(isolate, exports); 71 register_ecore_poller(isolate, efl::eo::js::get_namespace({"Ecore", "Poller"}, isolate, exports));
72 register_ecore_throttle(isolate, exports); 72 register_ecore_throttle(isolate, efl::eo::js::get_namespace({"Ecore", "Throttle"}, isolate, exports));
73 register_ecore_timer(isolate, exports); 73 register_ecore_timer(isolate, efl::eo::js::get_namespace({"Ecore", "Timer"}, isolate, exports));
74} 74}
75 75
76} } } // namespace efl { namespace js { 76} } } // namespace efl { namespace js {
diff --git a/src/bindings/js/ecore_js/ecore_js_job.cc b/src/bindings/js/ecore_js/ecore_js_job.cc
index 4ec438aaaf..6e5f07644c 100644
--- a/src/bindings/js/ecore_js/ecore_js_job.cc
+++ b/src/bindings/js/ecore_js/ecore_js_job.cc
@@ -77,7 +77,7 @@ EAPI
77void register_ecore_job(v8::Isolate *isolate,v8::Handle<v8::Object> exports) 77void register_ecore_job(v8::Isolate *isolate,v8::Handle<v8::Object> exports)
78{ 78{
79 register_job_add(isolate, exports, 79 register_job_add(isolate, exports,
80 compatibility_new<v8::String>(isolate, "ecore_job_add")); 80 compatibility_new<v8::String>(isolate, "add"));
81} 81}
82 82
83} } } // namespace efl { namespace js { 83} } } // namespace efl { namespace js {
diff --git a/src/bindings/js/ecore_js/ecore_js_mainloop.cc b/src/bindings/js/ecore_js/ecore_js_mainloop.cc
index 180b35f0f6..bc00c8f858 100644
--- a/src/bindings/js/ecore_js/ecore_js_mainloop.cc
+++ b/src/bindings/js/ecore_js/ecore_js_mainloop.cc
@@ -172,36 +172,36 @@ void register_ecore_mainloop(v8::Isolate *isolate,v8::Handle<v8::Object> exports
172{ 172{
173 register_callback_cancel(isolate, exports, 173 register_callback_cancel(isolate, exports,
174 compatibility_new<v8::String> 174 compatibility_new<v8::String>
175 (isolate, "ECORE_CALLBACK_CANCEL")); 175 (isolate, "CALLBACK_CANCEL"));
176 register_callback_renew(isolate, exports, 176 register_callback_renew(isolate, exports,
177 compatibility_new<v8::String> 177 compatibility_new<v8::String>
178 (isolate, "ECORE_CALLBACK_RENEW")); 178 (isolate, "CALLBACK_RENEW"));
179 register_callback_pass_on(isolate, exports, 179 register_callback_pass_on(isolate, exports,
180 compatibility_new<v8::String> 180 compatibility_new<v8::String>
181 (isolate, "ECORE_CALLBACK_PASS_ON")); 181 (isolate, "CALLBACK_PASS_ON"));
182 register_callback_done(isolate, exports, 182 register_callback_done(isolate, exports,
183 compatibility_new<v8::String> 183 compatibility_new<v8::String>
184 (isolate, "ECORE_CALLBACK_DONE")); 184 (isolate, "CALLBACK_DONE"));
185 register_mainloop_iterate(isolate, exports, 185 register_mainloop_iterate(isolate, exports,
186 compatibility_new<v8::String> 186 compatibility_new<v8::String>
187 (isolate, "ecore_mainloop_iterate")); 187 (isolate, "iterate"));
188 register_mainloop_iterate_may_block(isolate, exports, 188 register_mainloop_iterate_may_block(isolate, exports,
189 compatibility_new<v8::String> 189 compatibility_new<v8::String>
190 (isolate, 190 (isolate,
191 "ecore_mainloop_iterate_may_block")); 191 "iterateMayBlock"));
192 register_mainloop_begin(isolate, exports, 192 register_mainloop_begin(isolate, exports,
193 compatibility_new<v8::String> 193 compatibility_new<v8::String>
194 (isolate, "ecore_mainloop_begin")); 194 (isolate, "begin"));
195 register_mainloop_quit(isolate, exports, 195 register_mainloop_quit(isolate, exports,
196 compatibility_new<v8::String> 196 compatibility_new<v8::String>
197 (isolate, "ecore_mainloop_quit")); 197 (isolate, "quit"));
198 register_mainloop_animator_ticked_get(isolate, exports, 198 register_mainloop_animator_ticked_get(isolate, exports,
199 compatibility_new<v8::String> 199 compatibility_new<v8::String>
200 (isolate, 200 (isolate,
201 "ecore_mainlop_animator_ticked_get")); 201 "getAnimatorTicked"));
202 register_mainloop_nested_get(isolate, exports, 202 register_mainloop_nested_get(isolate, exports,
203 compatibility_new<v8::String> 203 compatibility_new<v8::String>
204 (isolate, "ecore_mainloop_nested_get")); 204 (isolate, "getNested"));
205} 205}
206 206
207} } } // namespace efl { namespace js { 207} } } // namespace efl { namespace js {
diff --git a/src/bindings/js/ecore_js/ecore_js_poller.cc b/src/bindings/js/ecore_js/ecore_js_poller.cc
index e3bfbc843a..3a49464d1b 100644
--- a/src/bindings/js/ecore_js/ecore_js_poller.cc
+++ b/src/bindings/js/ecore_js/ecore_js_poller.cc
@@ -172,19 +172,15 @@ EAPI
172void register_ecore_poller(v8::Isolate *isolate,v8::Handle<v8::Object> exports) 172void register_ecore_poller(v8::Isolate *isolate,v8::Handle<v8::Object> exports)
173{ 173{
174 register_poller_core(isolate, exports, 174 register_poller_core(isolate, exports,
175 compatibility_new<v8::String>(isolate, "ECORE_POLLER_CORE")); 175 compatibility_new<v8::String>(isolate, "CORE"));
176 register_poller_poll_interval_set(isolate, exports, 176 register_poller_poll_interval_set(isolate, exports,
177 compatibility_new<v8::String>(isolate, 177 compatibility_new<v8::String>(isolate,
178 "ecore_poller" 178 "setPollInterval"));
179 "_poll_interval"
180 "_set"));
181 register_poller_poll_interval_get(isolate, exports, 179 register_poller_poll_interval_get(isolate, exports,
182 compatibility_new<v8::String>(isolate, 180 compatibility_new<v8::String>(isolate,
183 "ecore_poller" 181 "getPollInterval"));
184 "_poll_interval"
185 "_get"));
186 register_poller_add(isolate, exports, 182 register_poller_add(isolate, exports,
187 compatibility_new<v8::String>(isolate, "ecore_poller_add")); 183 compatibility_new<v8::String>(isolate, "add"));
188} 184}
189 185
190} } } // namespace efl { namespace js { 186} } } // namespace efl { namespace js {
diff --git a/src/bindings/js/ecore_js/ecore_js_throttle.cc b/src/bindings/js/ecore_js/ecore_js_throttle.cc
index 830a40fec6..9b184e5a0b 100644
--- a/src/bindings/js/ecore_js/ecore_js_throttle.cc
+++ b/src/bindings/js/ecore_js/ecore_js_throttle.cc
@@ -54,10 +54,10 @@ void register_ecore_throttle(v8::Isolate *isolate,v8::Handle<v8::Object> exports
54{ 54{
55 register_throttle_adjust(isolate, exports, 55 register_throttle_adjust(isolate, exports,
56 compatibility_new<v8::String>(isolate, 56 compatibility_new<v8::String>(isolate,
57 "ecore_throttle_adjust")); 57 "adjust"));
58 register_throttle_get(isolate, exports, 58 register_throttle_get(isolate, exports,
59 compatibility_new<v8::String>(isolate, 59 compatibility_new<v8::String>(isolate,
60 "ecore_throttle_get")); 60 "get"));
61} 61}
62 62
63} } } // namespace efl { namespace js { 63} } } // namespace efl { namespace js {
diff --git a/src/bindings/js/ecore_js/ecore_js_timer.cc b/src/bindings/js/ecore_js/ecore_js_timer.cc
index f22100c6a7..08c52d8970 100644
--- a/src/bindings/js/ecore_js/ecore_js_timer.cc
+++ b/src/bindings/js/ecore_js/ecore_js_timer.cc
@@ -216,17 +216,15 @@ void register_ecore_timer(v8::Isolate *isolate,v8::Handle<v8::Object> exports)
216{ 216{
217 register_timer_precision_get(isolate, exports, 217 register_timer_precision_get(isolate, exports,
218 compatibility_new<v8::String>(isolate, 218 compatibility_new<v8::String>(isolate,
219 "ecore_timer_precision" 219 "getPrecision"));
220 "_get"));
221 register_timer_precision_set(isolate, exports, 220 register_timer_precision_set(isolate, exports,
222 compatibility_new<v8::String>(isolate, 221 compatibility_new<v8::String>(isolate,
223 "ecore_timer_precision" 222 "setPrecision"));
224 "_set"));
225 register_timer_add(isolate, exports, 223 register_timer_add(isolate, exports,
226 compatibility_new<v8::String>(isolate, "ecore_timer_add")); 224 compatibility_new<v8::String>(isolate, "add"));
227 register_timer_loop_add(isolate, exports, 225 register_timer_loop_add(isolate, exports,
228 compatibility_new<v8::String>(isolate, 226 compatibility_new<v8::String>(isolate,
229 "ecore_timer_loop_add")); 227 "addLoop"));
230} 228}
231 229
232} } } // namespace efl { namespace ecore { namespace js { 230} } } // namespace efl { namespace ecore { namespace js {
diff --git a/src/bindings/js/efl_js/efl_js.cc b/src/bindings/js/efl_js/efl_js.cc
index 227766dc2b..b2f8e32b92 100644
--- a/src/bindings/js/efl_js/efl_js.cc
+++ b/src/bindings/js/efl_js/efl_js.cc
@@ -40,6 +40,7 @@ EAPI void eina_value_register(v8::Handle<v8::Object>, v8::Isolate* isolate);
40EAPI void register_ecore_mainloop(v8::Handle<v8::Object> global, v8::Isolate* isolate); 40EAPI void register_ecore_mainloop(v8::Handle<v8::Object> global, v8::Isolate* isolate);
41 41
42namespace ecore { 42namespace ecore {
43EAPI void register_animator(v8::Handle<v8::Object> global, v8::Isolate* isolate);
43EAPI void register_exe(v8::Handle<v8::Object> global, v8::Isolate* isolate); 44EAPI void register_exe(v8::Handle<v8::Object> global, v8::Isolate* isolate);
44EAPI void register_idler(v8::Handle<v8::Object> global, v8::Isolate* isolate); 45EAPI void register_idler(v8::Handle<v8::Object> global, v8::Isolate* isolate);
45EAPI void register_ecore(v8::Isolate* isolate, v8::Handle<v8::Object> exports); 46EAPI void register_ecore(v8::Isolate* isolate, v8::Handle<v8::Object> exports);
@@ -154,10 +155,10 @@ EAPI void init(v8::Handle<v8::Object> exports)
154 eina_log_register(exports, v8::Isolate::GetCurrent()); 155 eina_log_register(exports, v8::Isolate::GetCurrent());
155 eina_value_register(exports, v8::Isolate::GetCurrent()); 156 eina_value_register(exports, v8::Isolate::GetCurrent());
156 register_ecore_mainloop(exports, v8::Isolate::GetCurrent()); 157 register_ecore_mainloop(exports, v8::Isolate::GetCurrent());
157 efl::ecore::js::register_ecore(v8::Isolate::GetCurrent(), exports);
158 efl::eio::js::register_eio(v8::Isolate::GetCurrent(), exports); 158 efl::eio::js::register_eio(v8::Isolate::GetCurrent(), exports);
159 efl::eldbus::js::register_eldbus(v8::Isolate::GetCurrent(), exports); 159 efl::eldbus::js::register_eldbus(v8::Isolate::GetCurrent(), exports);
160 efl::ethumb::js::register_ethumb(v8::Isolate::GetCurrent(), exports); 160 efl::ethumb::js::register_ethumb(v8::Isolate::GetCurrent(), exports);
161 ecore::register_animator(exports, v8::Isolate::GetCurrent());
161 ecore::register_exe(exports, v8::Isolate::GetCurrent()); 162 ecore::register_exe(exports, v8::Isolate::GetCurrent());
162 ecore::register_idler(exports, v8::Isolate::GetCurrent()); 163 ecore::register_idler(exports, v8::Isolate::GetCurrent());
163 ecore::idle::register_enterer(exports, v8::Isolate::GetCurrent()); 164 ecore::idle::register_enterer(exports, v8::Isolate::GetCurrent());
@@ -180,6 +181,9 @@ EAPI void init(v8::Handle<v8::Object> exports)
180 register_ecore_audio_out_pulse(exports, v8::Isolate::GetCurrent()); 181 register_ecore_audio_out_pulse(exports, v8::Isolate::GetCurrent());
181 register_ecore_audio_out_sndfile(exports, v8::Isolate::GetCurrent()); 182 register_ecore_audio_out_sndfile(exports, v8::Isolate::GetCurrent());
182#endif 183#endif
184 // Manual ecore binding initialized last to allow extension of namespace
185 // created by eolian.
186 efl::ecore::js::register_ecore(v8::Isolate::GetCurrent(), exports);
183 efl::register_control(exports, v8::Isolate::GetCurrent()); 187 efl::register_control(exports, v8::Isolate::GetCurrent());
184 efl::register_file(exports, v8::Isolate::GetCurrent()); 188 efl::register_file(exports, v8::Isolate::GetCurrent());
185 efl::register_image(exports, v8::Isolate::GetCurrent()); 189 efl::register_image(exports, v8::Isolate::GetCurrent());
diff --git a/src/bindings/js/eio_js/Eio_Js.hh b/src/bindings/js/eio_js/Eio_Js.hh
index e379229870..dce7db2254 100644
--- a/src/bindings/js/eio_js/Eio_Js.hh
+++ b/src/bindings/js/eio_js/Eio_Js.hh
@@ -5,7 +5,7 @@
5#include <Ecore.h> 5#include <Ecore.h>
6 6
7#include <Eina.hh> 7#include <Eina.hh>
8 8#include <Eo_Js.hh>
9#include <Eina_Js.hh> 9#include <Eina_Js.hh>
10 10
11#ifdef EAPI 11#ifdef EAPI
diff --git a/src/bindings/js/eio_js/eio_js.cc b/src/bindings/js/eio_js/eio_js.cc
index 8441247e63..7fafe8b181 100644
--- a/src/bindings/js/eio_js/eio_js.cc
+++ b/src/bindings/js/eio_js/eio_js.cc
@@ -167,7 +167,7 @@ static v8::Local<v8::Object> wrap_monitor(Eio_Monitor *monitor,
167 167
168 ret->Set(compatibility_new<String>(isolate, "del"), 168 ret->Set(compatibility_new<String>(isolate, "del"),
169 compatibility_new<FunctionTemplate>(isolate, del)->GetFunction()); 169 compatibility_new<FunctionTemplate>(isolate, del)->GetFunction());
170 ret->Set(compatibility_new<String>(isolate, "path_get"), 170 ret->Set(compatibility_new<String>(isolate, "getPath"),
171 compatibility_new<FunctionTemplate>(isolate, path_get) 171 compatibility_new<FunctionTemplate>(isolate, path_get)
172 ->GetFunction()); 172 ->GetFunction());
173 173
@@ -226,11 +226,11 @@ v8::Local<v8::Object> wrap_eina_file_direct_info(const Eina_File_Direct_Info*
226 226
227 auto wrapped_info = compatibility_new<Object>(isolate); 227 auto wrapped_info = compatibility_new<Object>(isolate);
228 228
229 wrapped_info->Set(compatibility_new<String>(isolate, "path_length"), 229 wrapped_info->Set(compatibility_new<String>(isolate, "pathLength"),
230 compatibility_new<Integer>(isolate, info->path_length)); 230 compatibility_new<Integer>(isolate, info->path_length));
231 wrapped_info->Set(compatibility_new<String>(isolate, "mame_length"), 231 wrapped_info->Set(compatibility_new<String>(isolate, "nameLength"),
232 compatibility_new<Integer>(isolate, info->name_length)); 232 compatibility_new<Integer>(isolate, info->name_length));
233 wrapped_info->Set(compatibility_new<String>(isolate, "name_start"), 233 wrapped_info->Set(compatibility_new<String>(isolate, "nameStart"),
234 compatibility_new<Integer>(isolate, info->name_start)); 234 compatibility_new<Integer>(isolate, info->name_start));
235 wrapped_info->Set(compatibility_new<String>(isolate, "type"), 235 wrapped_info->Set(compatibility_new<String>(isolate, "type"),
236 compatibility_new<Integer>(isolate, info->type)); 236 compatibility_new<Integer>(isolate, info->type));
@@ -1623,134 +1623,135 @@ EAPI
1623void register_eio(v8::Isolate* isolate, v8::Handle<v8::Object> exports) 1623void register_eio(v8::Isolate* isolate, v8::Handle<v8::Object> exports)
1624{ 1624{
1625 using v8::String; 1625 using v8::String;
1626 register_init(isolate, exports, 1626 auto eioNamespace = efl::eo::js::get_namespace({"Eio"}, isolate, exports);
1627 compatibility_new<String>(isolate, "eio_init")); 1627 register_init(isolate, eioNamespace,
1628 register_shutdown(isolate, exports, 1628 compatibility_new<String>(isolate, "init"));
1629 compatibility_new<String>(isolate, "eio_shutdown")); 1629 register_shutdown(isolate, eioNamespace,
1630 register_op_file_copy(isolate, exports, 1630 compatibility_new<String>(isolate, "shutdown"));
1631 compatibility_new<String>(isolate, "EIO_FILE_COPY")); 1631 register_op_file_copy(isolate, eioNamespace,
1632 register_op_file_move(isolate, exports, 1632 compatibility_new<String>(isolate, "FILE_COPY"));
1633 compatibility_new<String>(isolate, "EIO_FILE_MOVE")); 1633 register_op_file_move(isolate, eioNamespace,
1634 register_op_dir_copy(isolate, exports, 1634 compatibility_new<String>(isolate, "FILE_MOVE"));
1635 compatibility_new<String>(isolate, "EIO_DIR_COPY")); 1635 register_op_dir_copy(isolate, eioNamespace,
1636 register_op_dir_move(isolate, exports, 1636 compatibility_new<String>(isolate, "DIR_COPY"));
1637 compatibility_new<String>(isolate, "EIO_DIR_MOVE")); 1637 register_op_dir_move(isolate, eioNamespace,
1638 register_op_unlink(isolate, exports, 1638 compatibility_new<String>(isolate, "DIR_MOVE"));
1639 compatibility_new<String>(isolate, "EIO_LINK")); 1639 register_op_unlink(isolate, eioNamespace,
1640 register_op_file_getpwnam(isolate, exports, 1640 compatibility_new<String>(isolate, "UNLINK"));
1641 register_op_file_getpwnam(isolate, eioNamespace,
1641 compatibility_new<String>(isolate, 1642 compatibility_new<String>(isolate,
1642 "EIO_FILE_GETPWNAM")); 1643 "FILE_GETPWNAM"));
1643 register_op_file_getgrnam(isolate, exports, 1644 register_op_file_getgrnam(isolate, eioNamespace,
1644 compatibility_new<String>(isolate, 1645 compatibility_new<String>(isolate,
1645 "EIO_FILE_GETGRNAM")); 1646 "FILE_GETGRNAM"));
1646 register_file_open(isolate, exports, 1647 register_file_open(isolate, eioNamespace,
1647 compatibility_new<String>(isolate, "eio_file_open")); 1648 compatibility_new<String>(isolate, "openFile"));
1648 register_monitor_file_created(isolate, exports, 1649 register_monitor_file_created(isolate, eioNamespace,
1649 compatibility_new<String>(isolate, 1650 compatibility_new<String>(isolate,
1650 "EIO_MONITOR_FILE" 1651 "MONITOR_FILE"
1651 "_CREATED")); 1652 "_CREATED"));
1652 register_monitor_file_deleted(isolate, exports, 1653 register_monitor_file_deleted(isolate, eioNamespace,
1653 compatibility_new<String>(isolate, 1654 compatibility_new<String>(isolate,
1654 "EIO_MONITOR_FILE" 1655 "MONITOR_FILE"
1655 "_DELETED")); 1656 "_DELETED"));
1656 register_monitor_file_modified(isolate, exports, 1657 register_monitor_file_modified(isolate, eioNamespace,
1657 compatibility_new<String>(isolate, 1658 compatibility_new<String>(isolate,
1658 "EIO_MONITOR_FILE" 1659 "MONITOR_FILE"
1659 "_MODIFIED")); 1660 "_MODIFIED"));
1660 register_monitor_file_closed(isolate, exports, 1661 register_monitor_file_closed(isolate, eioNamespace,
1661 compatibility_new<String>(isolate, 1662 compatibility_new<String>(isolate,
1662 "EIO_MONITOR_FILE" 1663 "MONITOR_FILE"
1663 "_CLOSED")); 1664 "_CLOSED"));
1664 register_monitor_directory_created(isolate, exports, 1665 register_monitor_directory_created(isolate, eioNamespace,
1665 compatibility_new<String> 1666 compatibility_new<String>
1666 (isolate, 1667 (isolate,
1667 "EIO_MONITOR_DIRECTORY_CREATED")); 1668 "MONITOR_DIRECTORY_CREATED"));
1668 register_monitor_directory_deleted(isolate, exports, 1669 register_monitor_directory_deleted(isolate, eioNamespace,
1669 compatibility_new<String> 1670 compatibility_new<String>
1670 (isolate, 1671 (isolate,
1671 "EIO_MONITOR_DIRECTORY_DELETED")); 1672 "MONITOR_DIRECTORY_DELETED"));
1672 register_monitor_directory_modified(isolate, exports, 1673 register_monitor_directory_modified(isolate, eioNamespace,
1673 compatibility_new<String> 1674 compatibility_new<String>
1674 (isolate, 1675 (isolate,
1675 "EIO_MONITOR_DIRECTORY_MODIFIED")); 1676 "MONITOR_DIRECTORY_MODIFIED"));
1676 register_monitor_directory_closed(isolate, exports, 1677 register_monitor_directory_closed(isolate, eioNamespace,
1677 compatibility_new<String> 1678 compatibility_new<String>
1678 (isolate, "EIO_MONITOR_DIRECTORY_CLOSED")); 1679 (isolate, "MONITOR_DIRECTORY_CLOSED"));
1679 register_monitor_self_rename(isolate, exports, 1680 register_monitor_self_rename(isolate, eioNamespace,
1680 compatibility_new<String> 1681 compatibility_new<String>
1681 (isolate, "EIO_MONITOR_SELF_RENAME")); 1682 (isolate, "MONITOR_SELF_RENAME"));
1682 register_monitor_self_deleted(isolate, exports, 1683 register_monitor_self_deleted(isolate, eioNamespace,
1683 compatibility_new<String> 1684 compatibility_new<String>
1684 (isolate, "EIO_MONITOR_SELF_DELETED")); 1685 (isolate, "MONITOR_SELF_DELETED"));
1685 register_monitor_error(isolate, exports, 1686 register_monitor_error(isolate, eioNamespace,
1686 compatibility_new<String>(isolate, 1687 compatibility_new<String>(isolate,
1687 "EIO_MONITOR_ERROR")); 1688 "MONITOR_ERROR"));
1688 register_monitor_add(isolate, exports, 1689 register_monitor_add(isolate, eioNamespace,
1689 compatibility_new<String>(isolate, "eio_monitor_add")); 1690 compatibility_new<String>(isolate, "addMonitor"));
1690 register_event_monitor_file_created_handler_add 1691 register_event_monitor_file_created_handler_add
1691 (isolate, exports, 1692 (isolate, eioNamespace,
1692 compatibility_new<String>(isolate, 1693 compatibility_new<String>(isolate,
1693 "eio_event_monitor_file_created_handler_add")); 1694 "addEventMonitorFileCreatedHandler"));
1694 register_event_monitor_file_deleted_handler_add 1695 register_event_monitor_file_deleted_handler_add
1695 (isolate, exports, 1696 (isolate, eioNamespace,
1696 compatibility_new<String>(isolate, 1697 compatibility_new<String>(isolate,
1697 "eio_event_monitor_file_deleted_handler_add")); 1698 "addEventMonitorFileDeletedHandler"));
1698 register_event_monitor_file_modified_handler_add 1699 register_event_monitor_file_modified_handler_add
1699 (isolate, exports, 1700 (isolate, eioNamespace,
1700 compatibility_new<String> 1701 compatibility_new<String>
1701 (isolate, "eio_event_monitor_file_modified_handler_add")); 1702 (isolate, "addEventMonitorFileModifiedHandler"));
1702 register_event_monitor_file_closed_handler_add 1703 register_event_monitor_file_closed_handler_add
1703 (isolate, exports, 1704 (isolate, eioNamespace,
1704 compatibility_new<String>(isolate, 1705 compatibility_new<String>(isolate,
1705 "eio_event_monitor_file_closed_handler_add")); 1706 "addEventMonitorFileClosedHandler"));
1706 register_event_monitor_directory_created_handler_add 1707 register_event_monitor_directory_created_handler_add
1707 (isolate, exports, 1708 (isolate, eioNamespace,
1708 compatibility_new<String> 1709 compatibility_new<String>
1709 (isolate, "eio_event_monitor_directory_created_handler_add")); 1710 (isolate, "addEventMonitorDirectoryCreatedHandler"));
1710 register_event_monitor_directory_deleted_handler_add 1711 register_event_monitor_directory_deleted_handler_add
1711 (isolate, exports, 1712 (isolate, eioNamespace,
1712 compatibility_new<String> 1713 compatibility_new<String>
1713 (isolate, "eio_event_monitor_directory_deleted_handler_add")); 1714 (isolate, "addEventMonitorDirectoryDeletedHandler"));
1714 register_event_monitor_directory_modified_handler_add 1715 register_event_monitor_directory_modified_handler_add
1715 (isolate, exports, 1716 (isolate, eioNamespace,
1716 compatibility_new<String> 1717 compatibility_new<String>
1717 (isolate, "eio_event_monitor_directory_modified_handler_add")); 1718 (isolate, "addEventMonitorDirectoryModifiedHandler"));
1718 register_event_monitor_directory_closed_handler_add 1719 register_event_monitor_directory_closed_handler_add
1719 (isolate, exports, 1720 (isolate, eioNamespace,
1720 compatibility_new<String> 1721 compatibility_new<String>
1721 (isolate, "eio_event_monitor_directory_closed_handler_add")); 1722 (isolate, "addEventMonitorDirectoryClosedHandler"));
1722 register_event_monitor_self_rename_handler_add 1723 register_event_monitor_self_rename_handler_add
1723 (isolate, exports, 1724 (isolate, eioNamespace,
1724 compatibility_new<String>(isolate, 1725 compatibility_new<String>(isolate,
1725 "eio_event_monitor_self_rename_handler_add")); 1726 "addEventMonitorSelfRenameHandler"));
1726 register_event_monitor_self_deleted_handler_add 1727 register_event_monitor_self_deleted_handler_add
1727 (isolate, exports, 1728 (isolate, eioNamespace,
1728 compatibility_new<String>(isolate, 1729 compatibility_new<String>(isolate,
1729 "eio_event_monitor_self_deleted_handler_add")); 1730 "addEventMonitorSelfDeletedHandler"));
1730 register_event_monitor_error_handler_add 1731 register_event_monitor_error_handler_add
1731 (isolate, exports, 1732 (isolate, eioNamespace,
1732 compatibility_new<String>(isolate, 1733 compatibility_new<String>(isolate,
1733 "eio_event_monitor_error_handler_add")); 1734 "addEventMonitorErrorHandler"));
1734 register_file_ls(isolate, exports, 1735 register_file_ls(isolate, eioNamespace,
1735 compatibility_new<String>(isolate, "eio_file_ls")); 1736 compatibility_new<String>(isolate, "lsFile"));
1736 register_file_chmod(isolate, exports, 1737 register_file_chmod(isolate, eioNamespace,
1737 compatibility_new<String>(isolate, "eio_file_chmod")); 1738 compatibility_new<String>(isolate, "chmodFile"));
1738 register_file_chown(isolate, exports, 1739 register_file_chown(isolate, eioNamespace,
1739 compatibility_new<String>(isolate, "eio_file_chown")); 1740 compatibility_new<String>(isolate, "chownFile"));
1740 register_file_unlink(isolate, exports, 1741 register_file_unlink(isolate, eioNamespace,
1741 compatibility_new<String>(isolate, "eio_file_unlink")); 1742 compatibility_new<String>(isolate, "unlinkFile"));
1742 register_file_mkdir(isolate, exports, 1743 register_file_mkdir(isolate, eioNamespace,
1743 compatibility_new<String>(isolate, "eio_file_mkdir")); 1744 compatibility_new<String>(isolate, "mkdirFile"));
1744 register_file_move(isolate, exports, 1745 register_file_move(isolate, eioNamespace,
1745 compatibility_new<String>(isolate, "eio_file_move")); 1746 compatibility_new<String>(isolate, "moveFile"));
1746 register_file_copy(isolate, exports, 1747 register_file_copy(isolate, eioNamespace,
1747 compatibility_new<String>(isolate, "eio_file_copy")); 1748 compatibility_new<String>(isolate, "copyFile"));
1748 register_dir_move(isolate, exports, 1749 register_dir_move(isolate, eioNamespace,
1749 compatibility_new<String>(isolate, "eio_dir_move")); 1750 compatibility_new<String>(isolate, "moveDir"));
1750 register_dir_copy(isolate, exports, 1751 register_dir_copy(isolate, eioNamespace,
1751 compatibility_new<String>(isolate, "eio_dir_copy")); 1752 compatibility_new<String>(isolate, "copyDir"));
1752 register_dir_unlink(isolate, exports, 1753 register_dir_unlink(isolate, eioNamespace,
1753 compatibility_new<String>(isolate, "eio_dir_unlink")); 1754 compatibility_new<String>(isolate, "unlinkDir"));
1754} 1755}
1755 1756
1756} } } // namespace efl { namespace eio { namespace js { 1757} } } // namespace efl { namespace eio { namespace js {
diff --git a/src/bindings/js/ethumb_js/Ethumb_Js.hh b/src/bindings/js/ethumb_js/Ethumb_Js.hh
index 39459708ae..b45b555eef 100644
--- a/src/bindings/js/ethumb_js/Ethumb_Js.hh
+++ b/src/bindings/js/ethumb_js/Ethumb_Js.hh
@@ -5,6 +5,7 @@
5 5
6#include <Eina_Js.hh> 6#include <Eina_Js.hh>
7#include <Ethumb_Client.h> 7#include <Ethumb_Client.h>
8#include <Eo_Js.hh>
8 9
9#ifdef EAPI 10#ifdef EAPI
10# undef EAPI 11# undef EAPI
diff --git a/src/bindings/js/ethumb_js/ethumb_js_client.cc b/src/bindings/js/ethumb_js/ethumb_js_client.cc
index 50aaee39a4..541538bdb3 100644
--- a/src/bindings/js/ethumb_js/ethumb_js_client.cc
+++ b/src/bindings/js/ethumb_js/ethumb_js_client.cc
@@ -417,32 +417,32 @@ v8::Local<v8::Object> wrap_ethumb_client(Ethumb_Client *client,
417 ret->Set(compatibility_new<String>(isolate, "disconnect"), 417 ret->Set(compatibility_new<String>(isolate, "disconnect"),
418 compatibility_new<FunctionTemplate>(isolate, disconnect) 418 compatibility_new<FunctionTemplate>(isolate, disconnect)
419 ->GetFunction()); 419 ->GetFunction());
420 ret->Set(compatibility_new<String>(isolate, "on_server_die_callback_set"), 420 ret->Set(compatibility_new<String>(isolate, "setOnServerDieCallback"),
421 compatibility_new<FunctionTemplate>(isolate, 421 compatibility_new<FunctionTemplate>(isolate,
422 on_server_die_callback_set) 422 on_server_die_callback_set)
423 ->GetFunction()); 423 ->GetFunction());
424 ret->Set(compatibility_new<String>(isolate, "file_set"), 424 ret->Set(compatibility_new<String>(isolate, "setFile"),
425 compatibility_new<FunctionTemplate>(isolate, file_set) 425 compatibility_new<FunctionTemplate>(isolate, file_set)
426 ->GetFunction()); 426 ->GetFunction());
427 ret->Set(compatibility_new<String>(isolate, "file_get"), 427 ret->Set(compatibility_new<String>(isolate, "getFile"),
428 compatibility_new<FunctionTemplate>(isolate, file_get) 428 compatibility_new<FunctionTemplate>(isolate, file_get)
429 ->GetFunction()); 429 ->GetFunction());
430 ret->Set(compatibility_new<String>(isolate, "file_free"), 430 ret->Set(compatibility_new<String>(isolate, "freeFile"),
431 compatibility_new<FunctionTemplate>(isolate, file_free) 431 compatibility_new<FunctionTemplate>(isolate, file_free)
432 ->GetFunction()); 432 ->GetFunction());
433 ret->Set(compatibility_new<String>(isolate, "thumb_exists"), 433 ret->Set(compatibility_new<String>(isolate, "existsThumb"),
434 compatibility_new<FunctionTemplate>(isolate, thumb_exists) 434 compatibility_new<FunctionTemplate>(isolate, thumb_exists)
435 ->GetFunction()); 435 ->GetFunction());
436 ret->Set(compatibility_new<String>(isolate, "generate"), 436 ret->Set(compatibility_new<String>(isolate, "generate"),
437 compatibility_new<FunctionTemplate>(isolate, generate) 437 compatibility_new<FunctionTemplate>(isolate, generate)
438 ->GetFunction()); 438 ->GetFunction());
439 ret->Set(compatibility_new<String>(isolate, "generate_cancel"), 439 ret->Set(compatibility_new<String>(isolate, "cancelGenerate"),
440 compatibility_new<FunctionTemplate>(isolate, generate_cancel) 440 compatibility_new<FunctionTemplate>(isolate, generate_cancel)
441 ->GetFunction()); 441 ->GetFunction());
442 ret->Set(compatibility_new<String>(isolate, "generate_cancel_all"), 442 ret->Set(compatibility_new<String>(isolate, "cancelAllGenerate"),
443 compatibility_new<FunctionTemplate>(isolate, generate_cancel_all) 443 compatibility_new<FunctionTemplate>(isolate, generate_cancel_all)
444 ->GetFunction()); 444 ->GetFunction());
445 ret->Set(compatibility_new<String>(isolate, "thumb_async_get"), 445 ret->Set(compatibility_new<String>(isolate, "getThumbAsync"),
446 compatibility_new<FunctionTemplate>(isolate, thumb_async_get) 446 compatibility_new<FunctionTemplate>(isolate, thumb_async_get)
447 ->GetFunction()); 447 ->GetFunction());
448 448
@@ -557,15 +557,16 @@ EAPI
557void register_ethumb(v8::Isolate *isolate, v8::Handle<v8::Object> exports) 557void register_ethumb(v8::Isolate *isolate, v8::Handle<v8::Object> exports)
558{ 558{
559 using v8::String; 559 using v8::String;
560 register_client_init(isolate, exports, 560 auto ethumbNamespace = efl::eo::js::get_namespace({"Ethumb"}, isolate, exports);
561 register_client_init(isolate, ethumbNamespace,
561 compatibility_new<String>(isolate, 562 compatibility_new<String>(isolate,
562 "ethumb_client_init")); 563 "initClient"));
563 register_client_shutdown(isolate, exports, 564 register_client_shutdown(isolate, ethumbNamespace,
564 compatibility_new<String>(isolate, 565 compatibility_new<String>(isolate,
565 "ethumb_client_shutdown")); 566 "shutdownClient"));
566 register_client_connect(isolate, exports, 567 register_client_connect(isolate, ethumbNamespace,
567 compatibility_new<String>(isolate, 568 compatibility_new<String>(isolate,
568 "ethumb_client_connect")); 569 "connectClient"));
569} 570}
570 571
571} } } // namespace efl { namespace ethumb { namespace js { 572} } } // namespace efl { namespace ethumb { namespace js {