On 2011/06/02 18:44:09, ihab.awad wrote:
On Thu, Jun 2, 2011 at 11:41 AM,
<https://mail.google.com/mail?view=cm&tf=0&ui=1&[email protected]>
wrote:
> So rather than expose plugin_* from the taming frame directly,
there'll
> be two layers of dispatch: the hostpage looks up the taming frame
from
> the plugin id and then invokes the plugin_dispatchToHandler___ from
that
> taming frame. That sounds rather slow, but straightforward to
> implement.
Sounds good. But why slow btw?
var targetFrame = targetFrames[pluginId];
Well, more like
function plugin_dispatchEvent___(thisNode, event, pluginId, handler) {
return
targetFrames[pluginId].contentWindow.plugin_dispatchEvent___(thisNode,
event, pluginId, handler);
}
But this is in response to a user action, not in a tight loop, so it
probably doesn't matter.
http://codereview.appspot.com/4530099/