Called by the browser to enumerate the members of this JSAPI object. This must be implemented by anything extending JSAPI directly. JSAPIAuto implements this for you.
Implements FB::JSAPI. Definition at line 52 of file NPObjectAPI.cpp. 00053 { 00054 if (m_browser.expired()) 00055 return; 00056 00057 NpapiBrowserHostPtr browser(getHost()); 00058 if (!browser->isMainThread()) { 00059 typedef void (FB::JSAPI::*getMemberNamesType)(std::vector<std::string> *nameVector) const; 00060 browser->CallOnMainThread(boost::bind((getMemberNamesType)&FB::JSAPI::getMemberNames, this, &nameVector)); 00061 return; 00062 } 00063 if (is_JSAPI) { 00064 FB::JSAPIPtr tmp = inner.lock(); 00065 if (tmp) 00066 tmp->getMemberNames(nameVector); 00067 return; 00068 } 00069 NPIdentifier *idArray(NULL); 00070 uint32_t count; 00071 00072 browser->Enumerate(obj, &idArray, &count); 00073 for (uint32_t i = 0; i < count; i++) { 00074 nameVector.push_back(browser->StringFromIdentifier(idArray[i])); 00075 } 00076 browser->MemFree(idArray); 00077 } |
Generated on 18 May 2013 for FireBreath by
1.6.1
Labels
