plugins - Using NPAPI to detect browser minimize -


is there way use npapi determine whether browser minimized.

not directly. depending on platform want (you should specify things that) there might way.

for example, on windows might able browser hwnd (npn_getvalue npnvnetscapewindow) , check state of window windows api calls.

on mac you're going have harder time of it; possibly intuit clipping information passed npp_setwindow, doesn't tell if browser minimized or if plugin (or tab) not visible. again, you'd need try figure out way use system calls find way real window, on mac that's going non-trivial.

linux i'm not sure; gtksocket if use xembed (only thing chromium supports) , haven't clue if can use you'd need to check minimized state.

so short answer no; npapi doesn't provide that. you'd have try find provide gives enough info hack it.


Comments