FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
void FB::JSAPIImpl::registerEventMethod ( const std::wstring &  name,
JSObjectPtr event 
)
inlinevirtual

This is an overloaded member function, provided for convenience. It differs from the above function only in what argument(s) it accepts.

Reimplemented from FB::JSAPI.

Definition at line 275 of file JSAPIImpl.h.

References registerEventMethod(), and FB::wstring_to_utf8().

276  {
277  registerEventMethod(wstring_to_utf8(name), event);
278  }
std::string wstring_to_utf8(const std::wstring &src)
Accepts a std::wstring and returns a UTF8-encoded std::string.
Definition: utf8_tools.cpp:37
virtual void registerEventMethod(const std::string &name, JSObjectPtr &event)
Called by the browser to register an event handler method.
Definition: JSAPIImpl.cpp:249

Here is the call graph for this function: