FireBreath  1.4.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Pages
Public Member Functions | List of all members
FB::ActiveX::ActiveXBrowserHost Class Reference

Provides a BrowserHost implementation for ActiveX. More...

#include "ActiveXBrowserHost.h"

Inheritance diagram for FB::ActiveX::ActiveXBrowserHost:
Inheritance graph
Collaboration diagram for FB::ActiveX::ActiveXBrowserHost:
Collaboration graph

Public Member Functions

virtual void * getContextID () const
 Gets a unique identifier for this BrowserHost. There are cases where you may need multiple BrowserHosts in a single FireBreath plugin, primarily if you are embedding some sort of web browser inside your plugin, and this is needed for that. More...
 
FB::DOM::DocumentPtr getDOMDocument ()
 Gets a DOM::Document wrapper for the document object that the plugin resides in. More...
 
FB::DOM::WindowPtr getDOMWindow ()
 Gets a DOM::Window wrapper for the DOM/JS window object that the plugin resides in. More...
 
FB::DOM::ElementPtr getDOMElement ()
 Gets a DOM::Element wrapper for the DOM/JS object tag that the plugin resides in. More...
 
void Navigate (const std::string &url, const std::string &target)
 Instructs the browser to navigate to the specified url in the target window. More...
 
void evaluateJavaScript (const std::string &script)
 Evaluates arbitrary javascript; note that it does not return the result due to cross- browser compatibility issues. More...
 
void shutdown ()
 Notifies the browserhost object that the associated plugin object is shutting down. More...
 
void DoDeferredRelease () const
 Releases any browser-specific objects that were destroyed on a thread other than the main thread. Usually safe to just let FireBreath deal with this. More...
 
- Public Member Functions inherited from FB::BrowserHost
 BrowserHost ()
 Default constructor. More...
 
virtual ~BrowserHost ()
 Finaliser. More...
 
bool ScheduleAsyncCall (void(*func)(void *), void *userData) const
 Schedule asynchronous call to be executed on the main thread. More...
 
template<class Functor >
Functor::result_type CallOnMainThread (Functor func) const
 Execute a call on the main thread, wait for the result, and return it. More...
 
template<class C , class Functor >
void ScheduleOnMainThread (const boost::shared_ptr< C > &obj, Functor func) const
 Schedule a call to be executed on the main thread. More...
 
virtual BrowserStreamPtr createStream (const std::string &url, const PluginEventSinkPtr &callback, bool cache=true, bool seekable=false, size_t internalBufferSize=128 *1024) const
 Creates a BrowserStream (deprecated since 1.7.0) More...
 
virtual BrowserStreamPtr createPostStream (const std::string &url, const PluginEventSinkPtr &callback, const std::string &postdata, bool cache=true, bool seekable=false, size_t internalBufferSize=128 *1024) const
 Creates a BrowserStream. More...
 
virtual BrowserStreamPtr createUnsolicitedStream (const BrowserStreamRequest &req) const
 Used internally to create a BrowserStream to handle an unsolicited NPP_NewStream. More...
 
void assertMainThread () const
 When running in debug mode, asserts that the call is made on the main thread. More...
 
bool isMainThread () const
 Query if this object is on the main thread. More...
 
virtual void evaluateJavaScript (const std::wstring &script)
 
int delayedInvoke (const int delayms, const FB::JSObjectPtr &func, const FB::VariantList &args, const std::string &fname="")
 Executes the provided method object after a delay using window.setTimeout. More...
 
virtual void htmlLog (const std::string &str)
 Sends a log message to the containing web page using Console.log (firebug) More...
 
virtual void setEnableHtmlLog (const bool enabled=true)
 Enables or disables the htmlLog method. More...
 
bool isShutDown () const
 returns true if the FB::BrowserHost::shutdown() method has been called on this object More...
 
void freeRetainedObjects () const
 releases all JSAPI objects that have been passed to the browser More...
 
void retainJSAPIPtr (const FB::JSAPIPtr &obj) const
 retains an instance of the JSAPI object until the plugin shuts down More...
 
void releaseJSAPIPtr (const FB::JSAPIPtr &obj) const
 releases the specified JSAPI object to allow it to be invalidated and freed. This is done automatically for all retained objects on shutdown More...
 
virtual bool DetectProxySettings (std::map< std::string, std::string > &settingsMap, const std::string &url="")
 Detects the proxy settings from the browser. More...
 

Additional Inherited Members

- Static Public Member Functions inherited from FB::BrowserHost
static void AsyncHtmlLog (void *data)
 Don't call this; it is a helper function used by htmlLog. More...
 
static int getInstanceCount ()
 Returns the count of how many BrowserHost object instances are active. More...
 

Detailed Description

Provides a BrowserHost implementation for ActiveX.

Definition at line 44 of file ActiveXBrowserHost.h.


The documentation for this class was generated from the following files: