Class Index | File Index

Classes


Namespace Pot.XPCOM


Defined in: <potlite.js>.

Namespace Summary
Constructor Attributes Constructor Name and Description
 
XPCOM utilities.
Method Summary
Method Attributes Method Name and Description
<static>  
Pot.XPCOM.evalInSandbox(code, url)
Evaluate JavaScript code in the sandbox.
<static>  
Pot.XPCOM.getChromeWindow(uri)
Get the specific XUL Window.
<static>  
Pot.XPCOM.getMostRecentWindow()
Get a browser window that was active last.
<static>  
Pot.XPCOM.throughout(cond)
Wait until condition is true on the thread in non-blocking.
Namespace Detail
Pot.XPCOM
XPCOM utilities.
Method Detail
<static> {Function} Pot.XPCOM.evalInSandbox(code, url)
Evaluate JavaScript code in the sandbox.
Parameters:
{String} code
The expression.
{String} url
The sandbox URL.
Returns:
{*} Return the result of expression.

<static> {Function} Pot.XPCOM.getChromeWindow(uri)
Get the specific XUL Window.
Parameters:
{String} uri
The target URI to get. Will be the browser window if omitted.
Returns:
{Object} XULWindow.

<static> {Function} Pot.XPCOM.getMostRecentWindow()
Get a browser window that was active last.
Returns:
{Window} Return the browser window.

<static> {Function} Pot.XPCOM.throughout(cond)
Wait until condition is true on the thread in non-blocking. If true returned, waiting state will end.
Parameters:
{Function|*} cond
A function or value as condition.

Documentation generated by JsDoc Toolkit 2.4.0 on Fri Sep 21 2012 19:35:45 GMT+0900 (JST)