IRC Log Viewer » #firebreath » 2012-01-31

IRC Nick Time (GMT-7) Message
schteppe 00:01 Hi guys, I was wondering how FireBreath deals with the new operator in javascript. Is it possible to construct a plugin that can do something like: var v = new plugin.Vec3(); ?
taxilian 00:01 schteppe: unfortunately there is no method for doing "new" in NPAPI
so currently FireBreath simply doesn't handle it
however, you could inject a javascript function to do it for you and then call that
schteppe 00:01 Okay. Do you mean like: var v = plugin.Vec3()?
taxilian 00:01 I'm not sure what you mean
!findfile BrowserHost.cpp
FireBreathBot 00:01 Found 4 matching file(s) in the master branch. First 4 are:
src/ActiveXCore/ActiveXBrowserHost.cpp http://goo.gl/fiNiP
src/NpapiCore/NpapiBrowserHost.cpp http://goo.gl/AMLjZ
src/ScriptingCore/BrowserHost.cpp http://goo.gl/b94ag
src/WebKitCore/WebKitBrowserHost.cpp http://goo.gl/E4tk4
taxilian 00:01 https://github.com/firebreath/FireBreath/blob/master/src/ScriptingCore/BrowserHost.cpp#L144
if you look there you'll see that we actually do inject a single javascript method for use when firing events and making async calls into the DOM
so you could make another one called createObject or some such that just does a new for you
and returns the value
schteppe 00:01 Oh, now I get it
Thank you!
taxilian 00:01 good luck
prem_ 05:01 hai.. anyone here?
kun 05:01 someone available for a question?^^
kun 05:01 I have a FB::Variant list in my .htm file (var acctoken) and now I want to acces in the javasript context the strings in the variantlist. How do I do that?
FireBreathBot 06:01 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-158 issue created by ch
FireBreathBot 06:01 JIRA issue http://jira.firebreath.org/browse/FIREBREATH-158 issue commented by ch "http://jira.firebreath.org/browse/FIREBREATH-158
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-158 issue comment edited by ch "https://github.com/zeha/FireBreath/tree/no_log4cpus_complaints
prem 06:01 anyone here?
ch 06:01 .ask
FireBreathBot 06:01 If you need help, just ask your question and wait for people to come back.
prem 06:01 can i use FB::variant as an in/out param?
so far i haven't seen any way to get a reference to the variant object.
whatever value i assign to it, is lost when my function exits..
ch 06:01 i don't really know
i'd guess you need an FB::JSObjectPtr, but this is just a guess
prem 06:01 i've been trying to use jsobjectptr.. but to no avail..
:(
FireBreathBot 08:01 Commit 5286eec on master by Christian Hofstaedtler: "FIREBREATH-158: Delay initialization log until after InitLog..." http://goo.gl/DVCXx
Commit 03956b9 on master by Richard Bateman: "Merge pull request #41 from zeha/no_log4cpus_complaints
JIRA issue http://jira.firebreath.org/browse/FIREBREATH-158 issue resolved by richard "Thanks for the patch!"
taxilian 08:01 FireBreathBot: tell prem there is no way with NPAPI to pass in arguments by reference unless you pass in an array or a javascript object, in which case they will come in as a FB::JSObjectPtr and you can use GetProperty and SetProperty on them to update them.
FireBreathBot 08:01 taxilian: I'll pass that on when prem is around.
prem 11:01 @taxilian
FireBreathBot 11:01 prem: 15:58Z <taxilian> tell prem there is no way with NPAPI to pass in arguments by reference unless you pass in an array or a javascript object, in which case they will come in as a FB::JSObjectPtr and you can use GetProperty and SetProperty on them to update them.
prem 11:01 hai..i check the logs and saw ur reply
thanks.. will get right on it when i'm at my office..
taxilian 11:01 yw
prem 11:01 i'm off.. thanks again.. It's midnight here.. see you around..
taxilian 11:01 good luck
it's almost noon here ;-)
cornel_ 13:01 hello all
i need a little help...
taxilian 13:01 .sdk
.ask
FireBreathBot 13:01 If you need help, just ask your question and wait for people to come back.
taxilian 13:01 wow, strangely .sdk and .ask are right next to each other on the left hand… (assuming the left hand is in the wrong place and the right is not :-P)
cornel_ 13:01 :)
I added a function in my firebreath plugin that recives an argument...
variant HarrisonRunCmdPluginAPI::runCommand(const FB::variant& command)
taxilian 13:01 and what is the reason that you want to accept a variant as the parameter type?
cornel_ 13:01 i need to convert the command to a LPCWSTR type
sorry, i don't know, i just modified the existing echo function
that was allready there in the plugin...
taxilian 13:01 ahh
I see
if I might make a suggestion, try reading the Getting Started pages on the website
which explain how all of that works
!find Interacting with Javascript
FireBreathBot 13:01 Could not find any tags matching with
taxilian 13:01 !wiki Interacting with Javascript
FireBreathBot 13:01 5 results found. Note: Results limited to 8
"Interacting with Javascript": http://goo.gl/kN03n
"Using FireBreath": http://goo.gl/IHwid
"Plugin Lifecycle": http://goo.gl/nVhKS
"FireBreath Users": http://goo.gl/erPde
"Web Browser Plugins in the Age of Web Applications.pdf": http://goo.gl/vS7zB
taxilian 13:01 that first page in particular
cornel_ 13:01 thank you, I will start reading...