Skip to end of metadata
Go to start of metadata

bool NPObjectAPI::HasProperty ( int  idx  )  const [virtual]

Query if the property at "idx" exists.

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

       document.getElementById("plugin")[12];
Parameters:
idx Zero-based index of the property to check for
Returns:
true if property exists, false if not.

Implements FB::JSAPI.

Definition at line 142 of file NPObjectAPI.cpp.

00143 {
00144     if (m_browser.expired())
00145         return false;
00146 
00147     NpapiBrowserHostPtr browser(getHost());
00148     if (is_JSAPI) {
00149         FB::JSAPIPtr tmp = inner.lock();
00150         if (tmp)
00151             return tmp->HasProperty(idx);
00152         else 
00153             return false;
00154     }
00155     return browser->HasProperty(obj, browser->GetIntIdentifier(idx));
00156 }


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