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

DOM Window abstraction for manipulating and accessing the javascript window object that the plugin is contained in. More...

#include "Window.h"

Inheritance diagram for FB::DOM::Window:
Inheritance graph
Collaboration diagram for FB::DOM::Window:
Collaboration graph

Public Member Functions

 Window (const JSObjectPtr &element)
 Constructor. DO NOT USE. More...
 
virtual ~Window ()
 Finaliser. More...
 
WindowPtr window ()
 Gets the shared_ptr for the window (FB::DOM::WindowPtr) More...
 
virtual DocumentPtr getDocument () const
 Gets the DOM Document contained in this window. More...
 
virtual void alert (const std::string &str) const
 Pop up a JS alert box. More...
 
virtual void alert (const std::wstring &str) const
 
virtual FB::JSObjectPtr createArray () const
 Creates a javascript array object and returns it. More...
 
virtual FB::JSObjectPtr createMap () const
 Creates a javascript object and returns it. More...
 
virtual std::string getLocation () const
 Returns window.location for the containing page. More...
 
- Public Member Functions inherited from FB::DOM::Node
virtual FB::JSObjectPtr getJSObject () const
 Returns the FB::JSObjectPtr that this object is wrapping. More...
 
NodePtr node ()
 Gets the NodePtr for the current node. More...
 
template<class T >
getProperty (const std::wstring &name) const
 
virtual NodePtr getNode (const std::wstring &name) const
 
virtual NodePtr getNode (const std::string &name) const
 Gets a child node of the specified name. More...
 
virtual NodePtr getNode (const int idx) const
 Gets a child node of the specified name by index. More...
 
virtual void setProperty (const std::wstring &name, const variant &val) const
 
virtual void setProperty (const std::string &name, const variant &val) const
 Sets a property on the node to a given value. More...
 
virtual void setProperty (const int idx, const variant &val) const
 

Static Public Member Functions

static WindowPtr create (const FB::JSObjectPtr &api)
 Creates a FB::DOM::Window object from a JSObjectPtr representing a DOM object. This will probably throw an exception and definitely not work right if the DOM object represented is not a window. More...
 
- Static Public Member Functions inherited from FB::DOM::Node
static NodePtr create (const FB::JSObjectPtr &api)
 Creates a FB::DOM::Node object from a JSObjectPtr representing a DOM node. This will probably throw an exception and definitely not work right if the js object represented is not a node. More...
 

Detailed Description

DOM Window abstraction for manipulating and accessing the javascript window object that the plugin is contained in.

Since
1.3 Most of the time you will want to call BrowserHost::getDOMWindow() to get the reference to the containing window

Definition at line 51 of file ScriptingCore/DOM/Window.h.


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