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

Changeset 98376 in webkit


Ignore:
Timestamp:
Oct 25, 2011, 12:32:31 PM (15 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL] Add necessary information for callback instropection
https://bugs.webkit.org/show_bug.cgi?id=70735

Patch by Ivan Briano <ivan@profusion.mobi> on 2011-10-25
Reviewed by Antonio Gomes.

Provide the information about smart callbacks emitted by the ewk_view
object, so that these can be easily forwarded by other objects or used
by bindings in other languages without having to keep track of all of
them manually.

  • ewk/ewk_view.cpp:

(ewk_view_base_smart_set):

Location:
trunk/Source/WebKit/efl
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/efl/ChangeLog

    r98292 r98376  
     12011-10-25  Ivan Briano  <ivan@profusion.mobi>
     2
     3        [EFL] Add necessary information for callback instropection
     4        https://bugs.webkit.org/show_bug.cgi?id=70735
     5
     6        Reviewed by Antonio Gomes.
     7
     8        Provide the information about smart callbacks emitted by the ewk_view
     9        object, so that these can be easily forwarded by other objects or used
     10        by bindings in other languages without having to keep track of all of
     11        them manually.
     12
     13        * ewk/ewk_view.cpp:
     14        (ewk_view_base_smart_set):
     15
    1162011-10-24  Ivan Briano  <ivan@profusion.mobi>
    217
  • trunk/Source/WebKit/efl/ewk/ewk_view.cpp

    r98292 r98376  
    8282static const size_t EWK_VIEW_SCROLLS_SIZE_STEP = 2;
    8383static const size_t EWK_VIEW_SCROLLS_SIZE_MAX_FREE = 32;
     84
     85static const Evas_Smart_Cb_Description _ewk_view_callback_names[] = {
     86    { "download,request", "p" },
     87    { "editorclient,contents,changed", "" },
     88    { "editorclient,selection,changed", "" },
     89    { "frame,created", "p" },
     90    { "icon,received", "" },
     91    { "inputmethod,changed", "b" },
     92    { "js,windowobject,clear", "" },
     93    { "link,hover,in", "p" },
     94    { "link,hover,out", "" },
     95    { "load,document,finished", "p" },
     96    { "load,error", "p" },
     97    { "load,finished", "p" },
     98    { "load,newwindow,show", "" },
     99    { "load,progress", "d" },
     100    { "load,provisional", "" },
     101    { "load,started", "" },
     102    { "menubar,visible,get", "b" },
     103    { "menubar,visible,set", "b" },
     104    { "popup,created", "p" },
     105    { "popup,willdelete", "p" },
     106    { "ready", "" },
     107    { "scrollbars,visible,get", "b" },
     108    { "scrollbars,visible,set", "b" },
     109    { "statusbar,text,set", "s" },
     110    { "statusbar,visible,get", "b" },
     111    { "statusbar,visible,set", "b" },
     112    { "title,changed", "s" },
     113    { "toolbars,visible,get", "b" },
     114    { "toolbars,visible,set", "b" },
     115    { "tooltip,text,set", "s" },
     116    { "uri,changed", "s" },
     117    { "view,resized", "" },
     118    { "zoom,animated,end", "" },
     119    { 0, 0 }
     120};
    84121
    85122/**
     
    10941131    api->sc.hide = _ewk_view_smart_hide;
    10951132    api->sc.data = EWK_VIEW_TYPE_STR; /* used by type checking */
     1133    api->sc.callbacks = _ewk_view_callback_names;
    10961134
    10971135    api->contents_resize = _ewk_view_smart_contents_resize;
Note: See TracChangeset for help on using the changeset viewer.