Title: [98376] trunk/Source/WebKit/efl
Revision
98376
Author
commit-qu...@webkit.org
Date
2011-10-25 12:32:31 -0700 (Tue, 25 Oct 2011)

Log Message

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

Patch by Ivan Briano <i...@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):

Modified Paths

Diff

Modified: trunk/Source/WebKit/efl/ChangeLog (98375 => 98376)


--- trunk/Source/WebKit/efl/ChangeLog	2011-10-25 19:31:35 UTC (rev 98375)
+++ trunk/Source/WebKit/efl/ChangeLog	2011-10-25 19:32:31 UTC (rev 98376)
@@ -1,3 +1,18 @@
+2011-10-25  Ivan Briano  <i...@profusion.mobi>
+
+        [EFL] Add necessary information for callback instropection
+        https://bugs.webkit.org/show_bug.cgi?id=70735
+
+        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):
+
 2011-10-24  Ivan Briano  <i...@profusion.mobi>
 
         [EFL] Build fix. Rename all instances of a variable when it gets changed

Modified: trunk/Source/WebKit/efl/ewk/ewk_view.cpp (98375 => 98376)


--- trunk/Source/WebKit/efl/ewk/ewk_view.cpp	2011-10-25 19:31:35 UTC (rev 98375)
+++ trunk/Source/WebKit/efl/ewk/ewk_view.cpp	2011-10-25 19:32:31 UTC (rev 98376)
@@ -82,6 +82,43 @@
 static const size_t EWK_VIEW_SCROLLS_SIZE_STEP = 2;
 static const size_t EWK_VIEW_SCROLLS_SIZE_MAX_FREE = 32;
 
+static const Evas_Smart_Cb_Description _ewk_view_callback_names[] = {
+    { "download,request", "p" },
+    { "editorclient,contents,changed", "" },
+    { "editorclient,selection,changed", "" },
+    { "frame,created", "p" },
+    { "icon,received", "" },
+    { "inputmethod,changed", "b" },
+    { "js,windowobject,clear", "" },
+    { "link,hover,in", "p" },
+    { "link,hover,out", "" },
+    { "load,document,finished", "p" },
+    { "load,error", "p" },
+    { "load,finished", "p" },
+    { "load,newwindow,show", "" },
+    { "load,progress", "d" },
+    { "load,provisional", "" },
+    { "load,started", "" },
+    { "menubar,visible,get", "b" },
+    { "menubar,visible,set", "b" },
+    { "popup,created", "p" },
+    { "popup,willdelete", "p" },
+    { "ready", "" },
+    { "scrollbars,visible,get", "b" },
+    { "scrollbars,visible,set", "b" },
+    { "statusbar,text,set", "s" },
+    { "statusbar,visible,get", "b" },
+    { "statusbar,visible,set", "b" },
+    { "title,changed", "s" },
+    { "toolbars,visible,get", "b" },
+    { "toolbars,visible,set", "b" },
+    { "tooltip,text,set", "s" },
+    { "uri,changed", "s" },
+    { "view,resized", "" },
+    { "zoom,animated,end", "" },
+    { 0, 0 }
+};
+
 /**
  * @brief Private data that is used internally by EFL WebKit
  * and should never be modified from outside.
@@ -1093,6 +1130,7 @@
     api->sc.show = _ewk_view_smart_show;
     api->sc.hide = _ewk_view_smart_hide;
     api->sc.data = "" /* used by type checking */
+    api->sc.callbacks = _ewk_view_callback_names;
 
     api->contents_resize = _ewk_view_smart_contents_resize;
     api->zoom_set = _ewk_view_smart_zoom_set;
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to