Skip to end of metadata
Go to start of metadata

FB::variant NPObjectAPI::GetProperty ( int  idx  )  [virtual]

Gets the value of an indexed property.

This can be used for providing array-style access on your object. For example, the following will result in a call to GetProperty with idx = 12:

       var i = document.getElementById("plugin")[12];
Parameters:
idx Zero-based index of the property to get the value of.
Returns:
The property value.

Implements FB::JSAPI.

Definition at line 232 of file NPObjectAPI.cpp.

References GetProperty().

00233 {
00234     if (m_browser.expired())
00235         return FB::FBVoid();
00236 
00237     NpapiBrowserHostPtr browser(getHost());
00238     std::string strIdx(boost::lexical_cast<std::string>(idx));
00239     if (is_JSAPI) {
00240         FB::JSAPIPtr tmp = inner.lock();
00241         if (tmp)
00242             return tmp->GetProperty(idx);
00243     }
00244     return GetProperty(strIdx);
00245 }

Here is the call graph for this function:


Generated on 19 Jun 2013 for FireBreath by  doxygen 1.6.1
Labels
  • None