[chromium-dev] Re: V8 global context and V8 differences between chromium and gears

2008-10-01 Thread Mike Belshe
On Wed, Oct 1, 2008 at 6:35 AM, Marshall Greenblatt [EMAIL PROTECTED]wrote: Hi Mike, On Wed, Oct 1, 2008 at 4:02 AM, Mike Belshe [EMAIL PROTECTED] wrote: You should be able to use v8::Array for this; (see v8.h). Create your array: v8::Localv8::Array array = v8::Array::New(); for (int

[chromium-dev] Re: V8 global context and V8 differences between chromium and gears

2008-10-01 Thread Marshall Greenblatt
Hi Mike, On Wed, Oct 1, 2008 at 1:02 PM, Mike Belshe [EMAIL PROTECTED] wrote: Generally, I don't think you should touch the bridge (btw - the bridge is going away as we reconcile differences w/ webkit- it will be the scriptController, I believe). I don't have source in front of me; but

[chromium-dev] Re: V8 global context and V8 differences between chromium and gears

2008-10-01 Thread Mike Belshe
OK - btw - I think its v8_np_utils where you could add the v8-npobject functions for your arrays. And then you shouldn't need anything on the bridge - just CppBoundClass::BindProperty should work. I don't know quite how to do the KJS side of this, though. And now I see why you were trying to hit

[chromium-dev] Re: V8 global context and V8 differences between chromium and gears

2008-09-30 Thread Mike Belshe
Hi, Marshall, I'm not quite sure what you are trying to do; a frame-independent script object is generally something we'd try not to do. I admit, I'm not up to speed with what Gears may have needed to do to support some of its background workers, and maybe that is where you found this call. Are