On Thu, Sep 18, 2008 at 8:20 PM, Marshall Greenblatt
<[EMAIL PROTECTED]> wrote:
> It would be helpful if CppBoundClass provided a means to discover the method
> name that was used to invoke a JavaScript callback.  This is particularly
> true for the fallback callback.  There are a number of ways in which we
> could support this functionality:
>
> 1. Set a member variable to the last executed method name in
> CppBoundClass::Invoke() before the callback method is called.
> 2. Return the method name as the first parameter in the argument list
> (fallback callback only).
> 3. Modify "Callback" so that the first parameter to the callback is the
> method name.
>
> Option 1 seems like the simplest and least inconsistent/intrusive solution,
> but it isn't reentrant.  Will JavaScript execution always run synchronously
> within a particular WebFrame?

I believe within a given execution context it's synchronous, but for
cleanliness anyway I'd prefer 2 or 3.  2 sounds more sane to me; the
only reason we have a fallback callback (I believe) is for one test.

I'd be happy to review such a patch.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Chromium-dev" group.
To post to this group, send email to chromium-dev@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/chromium-dev?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to