summaryrefslogtreecommitdiff
path: root/src/bindings
diff options
context:
space:
mode:
authorLauro Moura <lauromoura@expertisesolutions.com.br>2016-07-05 19:04:01 -0300
committerFelipe Magno de Almeida <felipe@expertisesolutions.com.br>2016-10-25 12:23:34 -0200
commitae3c74d879651a93a95bc83f5829a96459f6878f (patch)
tree53090213c9ca80d48dca2d7c5200401734453385 /src/bindings
parent966d51bf28e101ca9f26d37a4a62511d11574856 (diff)
efl_js: Update registration functions
After the Elm -> Efl.Ui and other changes. Also add extern C guards around private header (elm_widget).
Diffstat (limited to 'src/bindings')
-rw-r--r--src/bindings/js/efl_js/efl_js.cc47
1 files changed, 27 insertions, 20 deletions
diff --git a/src/bindings/js/efl_js/efl_js.cc b/src/bindings/js/efl_js/efl_js.cc
index 09c011b..8a5cec3 100644
--- a/src/bindings/js/efl_js/efl_js.cc
+++ b/src/bindings/js/efl_js/efl_js.cc
@@ -42,7 +42,6 @@ EAPI void eina_value_register(v8::Handle<v8::Object>, v8::Isolate* isolate);
42EAPI void register_ecore_mainloop(v8::Handle<v8::Object> global, v8::Isolate* isolate); 42EAPI void register_ecore_mainloop(v8::Handle<v8::Object> global, v8::Isolate* isolate);
43 43
44namespace ecore { 44namespace ecore {
45EAPI void register_animator(v8::Handle<v8::Object> global, v8::Isolate* isolate);
46EAPI void register_exe(v8::Handle<v8::Object> global, v8::Isolate* isolate); 45EAPI void register_exe(v8::Handle<v8::Object> global, v8::Isolate* isolate);
47EAPI void register_idler(v8::Handle<v8::Object> global, v8::Isolate* isolate); 46EAPI void register_idler(v8::Handle<v8::Object> global, v8::Isolate* isolate);
48EAPI void register_ecore(v8::Isolate* isolate, v8::Handle<v8::Object> exports); 47EAPI void register_ecore(v8::Isolate* isolate, v8::Handle<v8::Object> exports);
@@ -73,19 +72,36 @@ EAPI void register_ecore_audio_out_pulse(v8::Handle<v8::Object> global, v8::Isol
73EAPI void register_ecore_audio_out_sndfile(v8::Handle<v8::Object> global, v8::Isolate* isolate); 72EAPI void register_ecore_audio_out_sndfile(v8::Handle<v8::Object> global, v8::Isolate* isolate);
74 73
75namespace efl { 74namespace efl {
75EAPI void register_animator(v8::Handle<v8::Object> global, v8::Isolate* isolate);
76EAPI void register_control(v8::Handle<v8::Object> global, v8::Isolate* isolate); 76EAPI void register_control(v8::Handle<v8::Object> global, v8::Isolate* isolate);
77EAPI void register_file(v8::Handle<v8::Object> global, v8::Isolate* isolate); 77EAPI void register_file(v8::Handle<v8::Object> global, v8::Isolate* isolate);
78EAPI void register_image(v8::Handle<v8::Object> global, v8::Isolate* isolate); 78EAPI void register_image(v8::Handle<v8::Object> global, v8::Isolate* isolate);
79EAPI void register_orientation(v8::Handle<v8::Object> global, v8::Isolate* isolate);
79EAPI void register_player(v8::Handle<v8::Object> global, v8::Isolate* isolate); 80EAPI void register_player(v8::Handle<v8::Object> global, v8::Isolate* isolate);
80EAPI void register_text(v8::Handle<v8::Object> global, v8::Isolate* isolate); 81EAPI void register_text(v8::Handle<v8::Object> global, v8::Isolate* isolate);
81EAPI void register_text_properties(v8::Handle<v8::Object> global, v8::Isolate* isolate); 82EAPI void register_text_properties(v8::Handle<v8::Object> global, v8::Isolate* isolate);
82} 83}
83 84
85namespace efl { namespace ui {
86EAPI void register_video(v8::Handle<v8::Object> global, v8::Isolate* isolate);
87EAPI void register_flip(v8::Handle<v8::Object> global, v8::Isolate* isolate);
88EAPI void register_frame(v8::Handle<v8::Object> global, v8::Isolate* isolate);
89EAPI void register_box(v8::Handle<v8::Object> global, v8::Isolate* isolate);
90}}
91
92namespace efl { namespace ui { namespace win {
93EAPI void register_standard(v8::Handle<v8::Object> global, v8::Isolate* isolate);
94}}}
95
84namespace eo { 96namespace eo {
85EAPI void register_abstract_class(v8::Handle<v8::Object> global, v8::Isolate* isolate); 97EAPI void register_abstract_class(v8::Handle<v8::Object> global, v8::Isolate* isolate);
86EAPI void register_base(v8::Handle<v8::Object> global, v8::Isolate* isolate); 98EAPI void register_base(v8::Handle<v8::Object> global, v8::Isolate* isolate);
87} 99}
88 100
101namespace efl { namespace canvas {
102EAPI void register_rectangle(v8::Handle<v8::Object> global, v8::Isolate* isolate);
103}}
104
89namespace evas { 105namespace evas {
90EAPI void register_box(v8::Handle<v8::Object> global, v8::Isolate* isolate); 106EAPI void register_box(v8::Handle<v8::Object> global, v8::Isolate* isolate);
91EAPI void register_canvas(v8::Handle<v8::Object> global, v8::Isolate* isolate); 107EAPI void register_canvas(v8::Handle<v8::Object> global, v8::Isolate* isolate);
@@ -98,7 +114,6 @@ EAPI void register_line(v8::Handle<v8::Object> global, v8::Isolate* isolate);
98EAPI void register_object(v8::Handle<v8::Object> global, v8::Isolate* isolate); 114EAPI void register_object(v8::Handle<v8::Object> global, v8::Isolate* isolate);
99EAPI void register_object_smart(v8::Handle<v8::Object> global, v8::Isolate* isolate); 115EAPI void register_object_smart(v8::Handle<v8::Object> global, v8::Isolate* isolate);
100EAPI void register_out(v8::Handle<v8::Object> global, v8::Isolate* isolate); 116EAPI void register_out(v8::Handle<v8::Object> global, v8::Isolate* isolate);
101EAPI void register_rectangle(v8::Handle<v8::Object> global, v8::Isolate* isolate);
102EAPI void register_scrollable_interface(v8::Handle<v8::Object> global, v8::Isolate* isolate); 117EAPI void register_scrollable_interface(v8::Handle<v8::Object> global, v8::Isolate* isolate);
103EAPI void register_selectable_interface(v8::Handle<v8::Object> global, v8::Isolate* isolate); 118EAPI void register_selectable_interface(v8::Handle<v8::Object> global, v8::Isolate* isolate);
104EAPI void register_signal_interface(v8::Handle<v8::Object> global, v8::Isolate* isolate); 119EAPI void register_signal_interface(v8::Handle<v8::Object> global, v8::Isolate* isolate);
@@ -172,7 +187,6 @@ EAPI void register_fileselector_button(v8::Handle<v8::Object> global, v8::Isolat
172EAPI void register_fileselector_entry(v8::Handle<v8::Object> global, v8::Isolate* isolate); 187EAPI void register_fileselector_entry(v8::Handle<v8::Object> global, v8::Isolate* isolate);
173EAPI void register_flip(v8::Handle<v8::Object> global, v8::Isolate* isolate); 188EAPI void register_flip(v8::Handle<v8::Object> global, v8::Isolate* isolate);
174EAPI void register_flipselector(v8::Handle<v8::Object> global, v8::Isolate* isolate); 189EAPI void register_flipselector(v8::Handle<v8::Object> global, v8::Isolate* isolate);
175EAPI void register_frame(v8::Handle<v8::Object> global, v8::Isolate* isolate);
176EAPI void register_gengrid(v8::Handle<v8::Object> global, v8::Isolate* isolate); 190EAPI void register_gengrid(v8::Handle<v8::Object> global, v8::Isolate* isolate);
177EAPI void register_gengrid_pan(v8::Handle<v8::Object> global, v8::Isolate* isolate); 191EAPI void register_gengrid_pan(v8::Handle<v8::Object> global, v8::Isolate* isolate);
178EAPI void register_genlist(v8::Handle<v8::Object> global, v8::Isolate* isolate); 192EAPI void register_genlist(v8::Handle<v8::Object> global, v8::Isolate* isolate);
@@ -183,7 +197,6 @@ EAPI void register_grid(v8::Handle<v8::Object> global, v8::Isolate* isolate);
183EAPI void register_hover(v8::Handle<v8::Object> global, v8::Isolate* isolate); 197EAPI void register_hover(v8::Handle<v8::Object> global, v8::Isolate* isolate);
184EAPI void register_hoversel(v8::Handle<v8::Object> global, v8::Isolate* isolate); 198EAPI void register_hoversel(v8::Handle<v8::Object> global, v8::Isolate* isolate);
185EAPI void register_icon(v8::Handle<v8::Object> global, v8::Isolate* isolate); 199EAPI void register_icon(v8::Handle<v8::Object> global, v8::Isolate* isolate);
186EAPI void register_image(v8::Handle<v8::Object> global, v8::Isolate* isolate);
187EAPI void register_index(v8::Handle<v8::Object> global, v8::Isolate* isolate); 200EAPI void register_index(v8::Handle<v8::Object> global, v8::Isolate* isolate);
188EAPI void register_inwin(v8::Handle<v8::Object> global, v8::Isolate* isolate); 201EAPI void register_inwin(v8::Handle<v8::Object> global, v8::Isolate* isolate);
189EAPI void register_label(v8::Handle<v8::Object> global, v8::Isolate* isolate); 202EAPI void register_label(v8::Handle<v8::Object> global, v8::Isolate* isolate);
@@ -217,7 +230,6 @@ EAPI void register_systray(v8::Handle<v8::Object> global, v8::Isolate* isolate);
217EAPI void register_table(v8::Handle<v8::Object> global, v8::Isolate* isolate); 230EAPI void register_table(v8::Handle<v8::Object> global, v8::Isolate* isolate);
218EAPI void register_thumb(v8::Handle<v8::Object> global, v8::Isolate* isolate); 231EAPI void register_thumb(v8::Handle<v8::Object> global, v8::Isolate* isolate);
219EAPI void register_toolbar(v8::Handle<v8::Object> global, v8::Isolate* isolate); 232EAPI void register_toolbar(v8::Handle<v8::Object> global, v8::Isolate* isolate);
220EAPI void register_video(v8::Handle<v8::Object> global, v8::Isolate* isolate);
221EAPI void register_web(v8::Handle<v8::Object> global, v8::Isolate* isolate); 233EAPI void register_web(v8::Handle<v8::Object> global, v8::Isolate* isolate);
222EAPI void register_widget(v8::Handle<v8::Object> global, v8::Isolate* isolate); 234EAPI void register_widget(v8::Handle<v8::Object> global, v8::Isolate* isolate);
223EAPI void register_win(v8::Handle<v8::Object> global, v8::Isolate* isolate); 235EAPI void register_win(v8::Handle<v8::Object> global, v8::Isolate* isolate);
@@ -240,11 +252,6 @@ EAPI void register_toolbar_item(v8::Handle<v8::Object> global, v8::Isolate* isol
240EAPI void register_diskselector_item(v8::Handle<v8::Object> global, v8::Isolate* isolate); 252EAPI void register_diskselector_item(v8::Handle<v8::Object> global, v8::Isolate* isolate);
241EAPI void register_popup_item(v8::Handle<v8::Object> global, v8::Isolate* isolate); 253EAPI void register_popup_item(v8::Handle<v8::Object> global, v8::Isolate* isolate);
242 254
243namespace win {
244
245EAPI void register_standard(v8::Handle<v8::Object> global, v8::Isolate* isolate);
246
247}
248} 255}
249 256
250#ifdef HAVE_NODEJS 257#ifdef HAVE_NODEJS
@@ -272,7 +279,6 @@ EAPI void init(v8::Handle<v8::Object> exports)
272 efl::eio::js::register_eio(v8::Isolate::GetCurrent(), exports); 279 efl::eio::js::register_eio(v8::Isolate::GetCurrent(), exports);
273 efl::eldbus::js::register_eldbus(v8::Isolate::GetCurrent(), exports); 280 efl::eldbus::js::register_eldbus(v8::Isolate::GetCurrent(), exports);
274 efl::ethumb::js::register_ethumb(v8::Isolate::GetCurrent(), exports); 281 efl::ethumb::js::register_ethumb(v8::Isolate::GetCurrent(), exports);
275 ecore::register_animator(exports, v8::Isolate::GetCurrent());
276 ecore::register_exe(exports, v8::Isolate::GetCurrent()); 282 ecore::register_exe(exports, v8::Isolate::GetCurrent());
277 // ecore::register_idler(exports, v8::Isolate::GetCurrent()); 283 // ecore::register_idler(exports, v8::Isolate::GetCurrent());
278 // ecore::idle::register_enterer(exports, v8::Isolate::GetCurrent()); 284 // ecore::idle::register_enterer(exports, v8::Isolate::GetCurrent());
@@ -298,9 +304,11 @@ EAPI void init(v8::Handle<v8::Object> exports)
298 // Manual ecore binding initialized last to allow extension of namespace 304 // Manual ecore binding initialized last to allow extension of namespace
299 // created by eolian. 305 // created by eolian.
300 efl::ecore::js::register_ecore(v8::Isolate::GetCurrent(), exports); 306 efl::ecore::js::register_ecore(v8::Isolate::GetCurrent(), exports);
307 efl::register_animator(exports, v8::Isolate::GetCurrent());
301 efl::register_control(exports, v8::Isolate::GetCurrent()); 308 efl::register_control(exports, v8::Isolate::GetCurrent());
302 efl::register_file(exports, v8::Isolate::GetCurrent()); 309 efl::register_file(exports, v8::Isolate::GetCurrent());
303 efl::register_image(exports, v8::Isolate::GetCurrent()); 310 efl::register_image(exports, v8::Isolate::GetCurrent());
311 efl::register_orientation(exports, v8::Isolate::GetCurrent());
304 efl::register_player(exports, v8::Isolate::GetCurrent()); 312 efl::register_player(exports, v8::Isolate::GetCurrent());
305 efl::register_text(exports, v8::Isolate::GetCurrent()); 313 efl::register_text(exports, v8::Isolate::GetCurrent());
306 // efl::register_text_properties(exports, v8::Isolate::GetCurrent()); 314 // efl::register_text_properties(exports, v8::Isolate::GetCurrent());
@@ -318,7 +326,7 @@ EAPI void init(v8::Handle<v8::Object> exports)
318 // evas::register_object(exports, v8::Isolate::GetCurrent()); 326 // evas::register_object(exports, v8::Isolate::GetCurrent());
319 // evas::register_object_smart(exports, v8::Isolate::GetCurrent()); 327 // evas::register_object_smart(exports, v8::Isolate::GetCurrent());
320 // evas::register_out(exports, v8::Isolate::GetCurrent()); 328 // evas::register_out(exports, v8::Isolate::GetCurrent());
321 // evas::register_rectangle(exports, v8::Isolate::GetCurrent()); 329 efl::canvas::register_rectangle(exports, v8::Isolate::GetCurrent());
322 // evas::register_scrollable_interface(exports, v8::Isolate::GetCurrent()); 330 // evas::register_scrollable_interface(exports, v8::Isolate::GetCurrent());
323 // evas::register_selectable_interface(exports, v8::Isolate::GetCurrent()); 331 // evas::register_selectable_interface(exports, v8::Isolate::GetCurrent());
324 // evas::register_signal_interface(exports, v8::Isolate::GetCurrent()); 332 // evas::register_signal_interface(exports, v8::Isolate::GetCurrent());
@@ -387,9 +395,9 @@ EAPI void init(v8::Handle<v8::Object> exports)
387 395
388 elm::register_fileselector_entry(exports, v8::Isolate::GetCurrent()); 396 elm::register_fileselector_entry(exports, v8::Isolate::GetCurrent());
389 397
390 elm::register_flip(exports, v8::Isolate::GetCurrent());
391 elm::register_flipselector(exports, v8::Isolate::GetCurrent()); 398 elm::register_flipselector(exports, v8::Isolate::GetCurrent());
392 elm::register_frame(exports, v8::Isolate::GetCurrent()); 399 efl::ui::register_frame(exports, v8::Isolate::GetCurrent());
400 efl::ui::register_box(exports, v8::Isolate::GetCurrent());
393 401
394 // crash 402 // crash
395 // elm::register_gengrid(exports, v8::Isolate::GetCurrent()); 403 // elm::register_gengrid(exports, v8::Isolate::GetCurrent());
@@ -415,7 +423,6 @@ EAPI void init(v8::Handle<v8::Object> exports)
415 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr); 423 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr);
416 elm::register_icon(exports, v8::Isolate::GetCurrent()); 424 elm::register_icon(exports, v8::Isolate::GetCurrent());
417 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr); 425 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr);
418 elm::register_image(exports, v8::Isolate::GetCurrent());
419 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr); 426 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr);
420 elm::register_index(exports, v8::Isolate::GetCurrent()); 427 elm::register_index(exports, v8::Isolate::GetCurrent());
421 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr); 428 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr);
@@ -507,19 +514,19 @@ EAPI void init(v8::Handle<v8::Object> exports)
507 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr); 514 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr);
508 elm::register_toolbar(exports, v8::Isolate::GetCurrent()); 515 elm::register_toolbar(exports, v8::Isolate::GetCurrent());
509 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr); 516 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr);
510 517 efl::ui::register_flip(exports, v8::Isolate::GetCurrent());
511 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr); 518 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr);
512 elm::register_video(exports, v8::Isolate::GetCurrent()); 519 efl::ui::register_video(exports, v8::Isolate::GetCurrent());
513 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr); 520 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr);
514 elm::register_web(exports, v8::Isolate::GetCurrent()); 521 elm::register_web(exports, v8::Isolate::GetCurrent());
515 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr); 522 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr);
516 // elm::register_widget(exports, v8::Isolate::GetCurrent()); 523 elm::register_widget(exports, v8::Isolate::GetCurrent());
517 // fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr); 524 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr);
518 525
519 // crash 526 // crash
520 // elm::register_win(exports, v8::Isolate::GetCurrent()); 527 // elm::register_win(exports, v8::Isolate::GetCurrent());
521 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr); 528 fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr);
522 elm::win::register_standard(exports, v8::Isolate::GetCurrent()); 529 efl::ui::win::register_standard(exports, v8::Isolate::GetCurrent());
523 530
524 // fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr); 531 // fprintf(stderr, __FILE__ ":%d\n", __LINE__); fflush(stderr);
525 // elm::register_widget_item(exports, v8::Isolate::GetCurrent()); 532 // elm::register_widget_item(exports, v8::Isolate::GetCurrent());