About C++ call JavascriptCore Function

40 views
Skip to first unread message

wenbin wang

unread,
Dec 3, 2009, 7:45:54 AM12/3/09
to google-gadgets-for-linux-user
slot->call(NULL, 0, NULL) of TimerWatchCallback(View.cc:150)
will goto
call(scriptableInterface*, argc, argv) in JSFunctionSlot
(js_script_context.cc:451)

There are not argv passed.




But for javascript example:

function UpdataHourHand(Now)
function ShowSecondHand(show)

in main.js of gadget analog_clock
The paragram"Now" and "show" should be passed from c++ code (call() in
JSFunctionSlot)


I don't know where the "Now"(Date type) and "show"(bool type) be
passed.
Can you tell me in detail about that?
Thanks Very much.

James Su

unread,
Dec 3, 2009, 7:55:23 AM12/3/09
to google-gadgets...@googlegroups.com


2009/12/3 wenbin wang <wbwan...@gmail.com>

slot->call(NULL, 0, NULL)  of TimerWatchCallback(View.cc:150)
will goto
call(scriptableInterface*, argc, argv) in JSFunctionSlot
(js_script_context.cc:451)

There are not argv passed.




But for javascript example:

function UpdataHourHand(Now)
function ShowSecondHand(show)
These functions are never called from c++ code directly. Please read the main.js carefully.
 

in main.js of gadget analog_clock
The paragram"Now" and "show" should be passed from c++ code (call() in
JSFunctionSlot)


I don't know where the "Now"(Date type) and "show"(bool type) be
passed.
Can you tell me in detail about that?
Thanks Very much.

--

You received this message because you are subscribed to the Google Groups "google-gadgets-for-linux-user" group.
To post to this group, send email to google-gadgets...@googlegroups.com.
To unsubscribe from this group, send email to google-gadgets-for-l...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-gadgets-for-linux-user?hl=en.



Reply all
Reply to author
Forward
0 new messages