Public Member Functions | Public Attributes

nsIDOMWindowInternal Interface Reference

import "nsIDOMWindowInternal.idl";

Inheritance diagram for nsIDOMWindowInternal:
Collaboration diagram for nsIDOMWindowInternal:

List of all members.

Public Member Functions

void alert (in DOMString text)
boolean confirm (in DOMString text)
DOMString prompt ([optional] in DOMString aMessage,[optional] in DOMString aInitial,[optional] in DOMString aTitle,[optional] in unsigned long aSavePassword)
void focus ()
void blur ()
void back ()
void forward ()
void home ()
void stop ()
void print ()
void moveTo (in long xPos, in long yPos)
void moveBy (in long xDif, in long yDif)
void resizeTo (in long width, in long height)
void resizeBy (in long widthDif, in long heightDif)
void scroll (in long xScroll, in long yScroll)
nsIDOMWindow open (in DOMString url, in DOMString name, in DOMString options)
 Open a new window with this one as the parent.
nsIDOMWindow openDialog (in DOMString url, in DOMString name, in DOMString options, in nsISupports aExtraArgument)
 This method works like open except that aExtraArgument gets converted into the array window.arguments in JS, if aExtraArgument is a nsISupportsArray then the individual items in the array are inserted into window.arguments, and primitive nsISupports (nsISupportsPrimitives) types are converted to native JS types when possible.
void close ()
void updateCommands (in DOMString action)
boolean find ([optional] in DOMString str,[optional] in boolean caseSensitive,[optional] in boolean backwards,[optional] in boolean wrapAround,[optional] in boolean wholeWord,[optional] in boolean searchInFrames,[optional] in boolean showDialog)
DOMString atob (in DOMString aAsciiString)
DOMString btoa (in DOMString aBase64Data)
nsIVariant showModalDialog (in DOMString aURI,[optional] in nsIVariant aArgs,[optional] in DOMString aOptions)
void postMessage (in DOMString message, in DOMString targetOrigin)
 Implements a safe message-passing system which can cross same-origin boundaries.

Public Attributes

readonly attribute
nsIDOMWindowInternal 
window
readonly attribute
nsIDOMWindowInternal 
self
readonly attribute nsIDOMNavigator navigator
readonly attribute nsIDOMScreen screen
readonly attribute nsIDOMHistory history
readonly attribute nsIDOMWindow content
readonly attribute nsIPrompt prompter
readonly attribute nsIDOMBarProp menubar
readonly attribute nsIDOMBarProp toolbar
readonly attribute nsIDOMBarProp locationbar
readonly attribute nsIDOMBarProp personalbar
readonly attribute nsIDOMBarProp statusbar
readonly attribute nsIDOMBarProp directories
readonly attribute boolean closed
readonly attribute nsIDOMCrypto crypto
readonly attribute nsIDOMPkcs11 pkcs11
readonly attribute nsIControllers controllers
attribute nsIDOMWindowInternal opener
attribute DOMString status
attribute DOMString defaultStatus
readonly attribute nsIDOMLocation location
attribute long innerWidth
attribute long innerHeight
attribute long outerWidth
attribute long outerHeight
attribute long screenX
attribute long screenY
readonly attribute float mozInnerScreenX
readonly attribute float mozInnerScreenY
readonly attribute long pageXOffset
readonly attribute long pageYOffset
readonly attribute long scrollMaxX
readonly attribute long scrollMaxY
readonly attribute unsigned long length
attribute boolean fullScreen
readonly attribute nsIDOMElement frameElement

Member Function Documentation

void nsIDOMWindowInternal::alert ( in DOMString  text  ) 
DOMString nsIDOMWindowInternal::atob ( in DOMString  aAsciiString  ) 
void nsIDOMWindowInternal::back (  ) 
void nsIDOMWindowInternal::blur (  ) 
DOMString nsIDOMWindowInternal::btoa ( in DOMString  aBase64Data  ) 
void nsIDOMWindowInternal::close (  ) 
boolean nsIDOMWindowInternal::confirm ( in DOMString  text  ) 
boolean nsIDOMWindowInternal::find ( [optional] in DOMString  str,
[optional] in boolean  caseSensitive,
[optional] in boolean  backwards,
[optional] in boolean  wrapAround,
[optional] in boolean  wholeWord,
[optional] in boolean  searchInFrames,
[optional] in boolean  showDialog 
)
void nsIDOMWindowInternal::focus (  ) 
void nsIDOMWindowInternal::forward (  ) 
void nsIDOMWindowInternal::home (  ) 
void nsIDOMWindowInternal::moveBy ( in long  xDif,
in long  yDif 
)
void nsIDOMWindowInternal::moveTo ( in long  xPos,
in long  yPos 
)
nsIDOMWindow nsIDOMWindowInternal::open ( in DOMString  url,
in DOMString  name,
in DOMString  options 
)

Open a new window with this one as the parent.

This method will NOT examine the JS stack for purposes of determining a caller. This window will be used for security checks during the search by name and the default character set on the newly opened window will just be the default character set of this window.

nsIDOMWindow nsIDOMWindowInternal::openDialog ( in DOMString  url,
in DOMString  name,
in DOMString  options,
in nsISupports  aExtraArgument 
)

This method works like open except that aExtraArgument gets converted into the array window.arguments in JS, if aExtraArgument is a nsISupportsArray then the individual items in the array are inserted into window.arguments, and primitive nsISupports (nsISupportsPrimitives) types are converted to native JS types when possible.

void nsIDOMWindowInternal::postMessage ( in DOMString  message,
in DOMString  targetOrigin 
)

Implements a safe message-passing system which can cross same-origin boundaries.

This method, when called, causes a MessageEvent to be asynchronously dispatched at the primary document for the window upon which this method is called. (Note that the postMessage property on windows is allAccess and thus is readable cross-origin.) The dispatched event will have message as its data, the calling context's window as its source, and an origin determined by the calling context's main document URI. The targetOrigin argument specifies a URI and is used to restrict the message to be sent only when the target window has the same origin as targetOrigin (since, when the sender and the target have different origins, neither can read the location of the other).

See the WHATWG HTML5 specification, section 6.4, for more details.

void nsIDOMWindowInternal::print (  ) 
DOMString nsIDOMWindowInternal::prompt ( [optional] in DOMString  aMessage,
[optional] in DOMString  aInitial,
[optional] in DOMString  aTitle,
[optional] in unsigned long  aSavePassword 
)
void nsIDOMWindowInternal::resizeBy ( in long  widthDif,
in long  heightDif 
)
void nsIDOMWindowInternal::resizeTo ( in long  width,
in long  height 
)
void nsIDOMWindowInternal::scroll ( in long  xScroll,
in long  yScroll 
)
nsIVariant nsIDOMWindowInternal::showModalDialog ( in DOMString  aURI,
[optional] in nsIVariant  aArgs,
[optional] in DOMString  aOptions 
)
void nsIDOMWindowInternal::stop (  ) 
void nsIDOMWindowInternal::updateCommands ( in DOMString  action  ) 

Member Data Documentation

readonly attribute unsigned long nsIDOMWindowInternal::length
readonly attribute float nsIDOMWindowInternal::mozInnerScreenX
readonly attribute float nsIDOMWindowInternal::mozInnerScreenY
readonly attribute long nsIDOMWindowInternal::pageXOffset
readonly attribute long nsIDOMWindowInternal::pageYOffset
readonly attribute long nsIDOMWindowInternal::scrollMaxX
readonly attribute long nsIDOMWindowInternal::scrollMaxY
attribute DOMString nsIDOMWindowInternal::status

The documentation for this interface was generated from the following file: