Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes | Private Attributes
nsPluginInstancePeerImpl Class Reference

#include <nsPluginInstancePeer.h>

Inheritance diagram for nsPluginInstancePeerImpl:
Inheritance graph
[legend]
Collaboration diagram for nsPluginInstancePeerImpl:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsPluginInstancePeerImpl ()
virtual ~nsPluginInstancePeerImpl ()
NS_DECL_ISUPPORTS NS_IMETHOD GetValue (nsPluginInstancePeerVariable variable, void *value)
NS_IMETHOD GetMIMEType (nsMIMEType *result)
NS_IMETHOD GetMode (nsPluginMode *result)
NS_IMETHOD NewStream (nsMIMEType type, const char *target, nsIOutputStream **result)
NS_IMETHOD ShowStatus (const char *message)
NS_IMETHOD SetWindowSize (PRUint32 width, PRUint32 height)
NS_IMETHOD GetJSWindow (JSObject **outJSWindow)
NS_IMETHOD GetJSThread (PRUint32 *outThreadID)
NS_IMETHOD GetJSContext (JSContext **outContext)
NS_IMETHOD InvalidateRect (nsPluginRect *invalidRect)
NS_IMETHOD InvalidateRegion (nsPluginRegion invalidRegion)
NS_IMETHOD ForceRedraw (void)
NS_IMETHOD GetAttributes (PRUint16 &n, const char *const *&names, const char *const *&values)
NS_IMETHOD GetAttribute (const char *name, const char **result)
NS_IMETHOD GetDOMElement (nsIDOMElement **result)
NS_IMETHOD GetTagType (nsPluginTagType *result)
NS_IMETHOD GetTagText (const char **result)
NS_IMETHOD GetParameters (PRUint16 &n, const char *const *&names, const char *const *&values)
NS_IMETHOD GetParameter (const char *name, const char **result)
NS_IMETHOD GetDocumentBase (const char **result)
NS_IMETHOD GetDocumentEncoding (const char **result)
NS_IMETHOD GetAlignment (const char **result)
NS_IMETHOD GetWidth (PRUint32 *result)
NS_IMETHOD GetHeight (PRUint32 *result)
NS_IMETHOD GetBorderVertSpace (PRUint32 *result)
NS_IMETHOD GetBorderHorizSpace (PRUint32 *result)
NS_IMETHOD GetUniqueID (PRUint32 *result)
NS_IMETHOD GetCode (const char **result)
NS_IMETHOD GetCodeBase (const char **result)
NS_IMETHOD GetArchive (const char **result)
NS_IMETHOD GetName (const char **result)
NS_IMETHOD GetMayScript (PRBool *result)
NS_IMETHOD GetOwner (nsIPluginInstanceOwner **aOwner)
nsresult Initialize (nsIPluginInstanceOwner *aOwner, const nsMIMEType aMimeType)
nsresult SetOwner (nsIPluginInstanceOwner *aOwner)
void getValue (in nsPluginInstancePeerVariable aVariable, in voidPtr aValue)
 Returns the value of a variable associated with the plugin manager.
void newStream (in nsMIMEType aType, in string aTarget, out nsIOutputStream aResult)
 This operation is called by the plugin instance when it wishes to send a stream of data to the browser.
void showStatus (in string aMessage)
 This operation causes status information to be displayed on the window associated with the plugin instance.
void setWindowSize (in unsigned long aWidth, in unsigned long aHeight)
 Set the desired size of the window in which the plugin instance lives.
void invalidateRect (in nsPluginRectPtr aRect)
 Corresponds to NPN_InvalidateRect.
void invalidateRegion (in nsPluginRegion aRegion)
 Corresponds to NPN_InvalidateRegion.
void forceRedraw ()
 Corresponds to NPN_ForceRedraw.
void getTagText (out constCharPtr aTagText)
 Get the complete text of the HTML tag that was used to instantiate this plugin.
void getParameters (in PRUint16Ref aCount, in constCharStarConstStar aNames, in constCharStarConstStar aValues)
 Get a ptr to the paired list of parameter names and values, returns the length of the array.
void getParameter (in string aName, out constCharPtr aResult)
 Get the value for the named parameter.
void getDocumentBase (out constCharPtr aDocumentBase)
 Get the document base.
void getDocumentEncoding (out constCharPtr aDocumentEncoding)
 Return an encoding whose name is specified in: http://java.sun.com/products/jdk/1.1/docs/guide/intl/intl.doc.html#25303.
void getAlignment (out constCharPtr aElignment)
 Get object alignment.
void getAttributes (in PRUint16Ref aCount, in constCharStarConstStar aNames, in constCharStarConstStar aValues)
 QueryInterface on nsIPluginInstancePeer to get this.
void getAttribute (in string aName, out constCharPtr aResult)
 Gets the value for the named attribute.

Public Attributes

readonly attribute JSObjectPtr JSWindow
 Get the JavaScript window object corresponding to this plugin instance.
readonly attribute unsigned long JSThread
 Get the JavaScript execution thread corresponding to this plugin instance.
readonly attribute JSContextPtr JSContext
 Get the JavaScript context to this plugin instance.
readonly attribute nsMIMEType MIMEType
 Returns the MIME type of the plugin instance.
readonly attribute nsPluginMode mode
 Returns the mode of the plugin instance, i.e.
readonly attribute nsPluginTagType tagType
 Get the type of the HTML tag that was used ot instantiate this plugin.
readonly attribute unsigned long width
 Get object width.
readonly attribute unsigned long height
 Get object height.
readonly attribute unsigned long borderVertSpace
 Get border vertical space.
readonly attribute unsigned long borderHorizSpace
 Get border horizontal space.
readonly attribute unsigned long uniqueID
 Returns a unique id for the current document containing plugin.
readonly attribute nsIDOMElement DOMElement
 Returns the DOM element corresponding to the tag which references this plugin in the document.
readonly attribute
nsIPluginInstanceOwner 
owner

Private Attributes

nsIPluginInstancemInstance
nsIPluginInstanceOwnermOwner
nsMIMEType mMIMEType
PRUint32 mThreadID
PRBool mStopped

Detailed Description

Definition at line 50 of file nsPluginInstancePeer.h.


Constructor & Destructor Documentation

Definition at line 68 of file nsPluginInstancePeer.cpp.

Definition at line 75 of file nsPluginInstancePeer.cpp.


Member Function Documentation

Corresponds to NPN_ForceRedraw.

Definition at line 892 of file nsPluginInstancePeer.cpp.

{
  if(!mOwner)
    return NS_ERROR_FAILURE;

  return mOwner->ForceRedraw();
}

Get object alignment.

Definition at line 508 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner) {
    nsIPluginTagInfo2 *tinfo;
    nsresult          rv;

    rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetAlignment(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
    *result = "";
    return NS_ERROR_FAILURE;
  }
}

Definition at line 692 of file nsPluginInstancePeer.cpp.

{
#ifdef OJI
  if (nsnull != mOwner) {
    nsIJVMPluginTagInfo *tinfo;
    nsresult            rv;

    rv = mOwner->QueryInterface(kIJVMPluginTagInfoIID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetArchive(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
#endif
    *result = 0;
    return NS_ERROR_FAILURE;
#ifdef OJI
  }
#endif
}
void nsIPluginTagInfo::getAttribute ( in string  aName,
out constCharPtr  aResult 
) [inherited]

Gets the value for the named attribute.

Parameters:
aName- the name of the attribute to find
aResult- the resulting attribute
Returns:
- NS_OK if this operation was successful, NS_ERROR_FAILURE if this operation failed. result is set to NULL if the attribute is not found else to the found value.
NS_IMETHODIMP nsPluginInstancePeerImpl::GetAttribute ( const char *  name,
const char **  result 
)

Definition at line 329 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner) {
    nsIPluginTagInfo  *tinfo;
    nsresult rv;

    rv = mOwner->QueryInterface(kIPluginTagInfoIID, (void **)&tinfo);

    if (NS_OK == rv)  {
      rv = tinfo->GetAttribute(name, result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
    *result = "";
    return NS_ERROR_FAILURE;
  }
}

QueryInterface on nsIPluginInstancePeer to get this.

(Corresponds to NPP_New's argc, argn, and argv arguments.) Get a ptr to the paired list of attribute names and values, returns the length of the array.

Each name or value is a null-terminated string.

NS_IMETHODIMP nsPluginInstancePeerImpl::GetAttributes ( PRUint16 n,
const char *const *&  names,
const char *const *&  values 
)

Definition at line 303 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner) {
    nsIPluginTagInfo  *tinfo;
    nsresult rv;

    rv = mOwner->QueryInterface(kIPluginTagInfoIID, (void **)&tinfo);

    if (NS_OK == rv)  {
      rv = tinfo->GetAttributes(n, names, values);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
    n = 0;
    names = nsnull;
    values = nsnull;

    return NS_ERROR_FAILURE;
  }
}

Definition at line 596 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner) {
    nsIPluginTagInfo2 *tinfo;
    nsresult          rv;

    rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetBorderHorizSpace(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
    *result = 0;
    return NS_ERROR_FAILURE;
  }
}

Definition at line 574 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner) {
    nsIPluginTagInfo2 *tinfo;
    nsresult          rv;

    rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetBorderVertSpace(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
    *result = 0;
    return NS_ERROR_FAILURE;
  }
}

Definition at line 640 of file nsPluginInstancePeer.cpp.

{
#ifdef OJI
  if (nsnull != mOwner) {
    nsIJVMPluginTagInfo *tinfo;
    nsresult            rv;

    rv = mOwner->QueryInterface(kIJVMPluginTagInfoIID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetCode(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
#endif
    *result = 0;
    return NS_ERROR_FAILURE;
#ifdef OJI
  }
#endif
}

Definition at line 666 of file nsPluginInstancePeer.cpp.

{
#ifdef OJI
  if (nsnull != mOwner) {
    nsIJVMPluginTagInfo *tinfo;
    nsresult            rv;

    rv = mOwner->QueryInterface(kIJVMPluginTagInfoIID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetCodeBase(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
#endif
    *result = 0;
    return NS_ERROR_FAILURE;
#ifdef OJI
  }
#endif
}
void nsIPluginTagInfo2::getDocumentBase ( out constCharPtr  aDocumentBase) [inherited]

Get the document base.

Definition at line 464 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner) {
    nsIPluginTagInfo2 *tinfo;
    nsresult          rv;

    rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetDocumentBase(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
    *result = "";
    return NS_ERROR_FAILURE;
  }
}
void nsIPluginTagInfo2::getDocumentEncoding ( out constCharPtr  aDocumentEncoding) [inherited]

Return an encoding whose name is specified in: http://java.sun.com/products/jdk/1.1/docs/guide/intl/intl.doc.html#25303.

Definition at line 486 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner) {
    nsIPluginTagInfo2 *tinfo;
    nsresult          rv;

    rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetDocumentEncoding(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
    *result = "";
    return NS_ERROR_FAILURE;
  }
}

Definition at line 351 of file nsPluginInstancePeer.cpp.

{
  if (mOwner == nsnull) {
    *result = nsnull;
    return NS_ERROR_FAILURE;
  }

  nsIPluginTagInfo2  *tinfo;
  nsresult rv;

  rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo);

  if (NS_OK == rv)  {
    rv = tinfo->GetDOMElement(result);
    NS_RELEASE(tinfo);
  }

  return rv;
}

Definition at line 552 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner) {
    nsIPluginTagInfo2 *tinfo;
    nsresult          rv;

    rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetHeight(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
    *result = 0;
    return NS_ERROR_FAILURE;
  }
}

Definition at line 804 of file nsPluginInstancePeer.cpp.

{
  *outContext = NULL;
  nsresult rv = NS_ERROR_FAILURE;
  nsCOMPtr<nsIDocument> document;

  rv = mOwner->GetDocument(getter_AddRefs(document));

  if (NS_SUCCEEDED(rv) && document) {
    nsIScriptGlobalObject *global = document->GetScriptGlobalObject();

    if (global) {
      nsIScriptContext *context = global->GetContext();

      if (context) {
        *outContext = (JSContext*) context->GetNativeContext();
      }
    }
  }

  return rv;
}

Here is the call graph for this function:

Definition at line 797 of file nsPluginInstancePeer.cpp.

{
       *outThreadID = mThreadID;
       return NS_OK;
}

Definition at line 776 of file nsPluginInstancePeer.cpp.

{
  *outJSWindow = NULL;
  nsresult rv = NS_ERROR_FAILURE;
  nsCOMPtr<nsIDocument> document;   

  rv = mOwner->GetDocument(getter_AddRefs(document));

  if (NS_SUCCEEDED(rv) && document) {
    nsPIDOMWindow *win = document->GetWindow();

    nsCOMPtr<nsIScriptGlobalObject> global = do_QueryInterface(win);
    if(global) {
      *outJSWindow = global->GetGlobalJSObject();
    }
  } 

  return rv;
}

Here is the call graph for this function:

Definition at line 744 of file nsPluginInstancePeer.cpp.

{
#ifdef OJI
  if (nsnull != mOwner) {
    nsIJVMPluginTagInfo *tinfo;
    nsresult            rv;

    rv = mOwner->QueryInterface(kIJVMPluginTagInfoIID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetMayScript(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
#endif
    *result = 0;
    return NS_ERROR_FAILURE;
#ifdef OJI
  }
#endif
}

Definition at line 120 of file nsPluginInstancePeer.cpp.

{
  if (nsnull == mMIMEType)
    *result = "";
  else
    *result = mMIMEType;

  return NS_OK;
}

Definition at line 131 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner)
    return mOwner->GetMode(result);
  else
    return NS_ERROR_FAILURE;
}

Definition at line 718 of file nsPluginInstancePeer.cpp.

{
#ifdef OJI
  if (nsnull != mOwner) {
    nsIJVMPluginTagInfo *tinfo;
    nsresult            rv;

    rv = mOwner->QueryInterface(kIJVMPluginTagInfoIID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetName(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
#endif
    *result = 0;
    return NS_ERROR_FAILURE;
#ifdef OJI
  }
#endif
}

Here is the caller graph for this function:

Definition at line 865 of file nsPluginInstancePeer.cpp.

void nsIPluginTagInfo2::getParameter ( in string  aName,
out constCharPtr  aResult 
) [inherited]

Get the value for the named parameter.

Returns null if the parameter was not set.

Parameters:
aName- name of the parameter
aResult- parameter value
Returns:
- NS_OK if this operation was successful
NS_IMETHODIMP nsPluginInstancePeerImpl::GetParameter ( const char *  name,
const char **  result 
)

Definition at line 442 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner) {
    nsIPluginTagInfo2 *tinfo;
    nsresult          rv;

    rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetParameter(name, result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
    *result = "";
    return NS_ERROR_FAILURE;
  }
}

Get a ptr to the paired list of parameter names and values, returns the length of the array.

Each name or value is a null-terminated string.

NS_IMETHODIMP nsPluginInstancePeerImpl::GetParameters ( PRUint16 n,
const char *const *&  names,
const char *const *&  values 
)

Definition at line 416 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner) {
    nsIPluginTagInfo2 *tinfo;
    nsresult          rv;

    rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo);

    if (NS_OK == rv)  {
      rv = tinfo->GetParameters(n, names, values);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
    n = 0;
    names = nsnull;
    values = nsnull;

    return NS_ERROR_FAILURE;
  }
}

Get the complete text of the HTML tag that was used to instantiate this plugin.

Definition at line 394 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner) {
    nsIPluginTagInfo2 *tinfo;
    nsresult          rv;

    rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetTagText(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
    *result = "";
    return NS_ERROR_FAILURE;
  }
}

Definition at line 372 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner) {
    nsIPluginTagInfo2 *tinfo;
    nsresult rv;

    rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo);

    if (NS_OK == rv)  {
      rv = tinfo->GetTagType(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
    *result = nsPluginTagType_Unknown;
    return NS_ERROR_FAILURE;
  }
}

Definition at line 618 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner) {
    nsIPluginTagInfo2 *tinfo;
    nsresult          rv;

    rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetUniqueID(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
    *result = 0;
    return NS_ERROR_FAILURE;
  }
}
void nsIPluginInstancePeer::getValue ( in nsPluginInstancePeerVariable  aVariable,
in voidPtr  aValue 
) [inherited]

Returns the value of a variable associated with the plugin manager.

(Corresponds to NPN_GetValue.)

Parameters:
aVariable- the plugin manager variable to get
aValue- the address of where to store the resulting value
Returns:
- NS_OK if this operation was successful

Definition at line 530 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner) {
    nsIPluginTagInfo2 *tinfo;
    nsresult          rv;

    rv = mOwner->QueryInterface(kIPluginTagInfo2IID, (void **)&tinfo);

    if (NS_OK == rv) {
      rv = tinfo->GetWidth(result);
      NS_RELEASE(tinfo);
    }

    return rv;
  }
  else {
    *result = 0;
    return NS_ERROR_FAILURE;
  }
}

Definition at line 828 of file nsPluginInstancePeer.cpp.

{
  mOwner = aOwner;
  NS_IF_ADDREF(mOwner);

  aOwner->GetInstance(mInstance);
  NS_IF_RELEASE(mInstance);

  if (nsnull != aMIMEType) {
    mMIMEType = (nsMIMEType)PR_Malloc(PL_strlen(aMIMEType) + 1);

    if (nsnull != mMIMEType)
      PL_strcpy((char *)mMIMEType, aMIMEType);
  }
  
  // record the thread we were created in.
  mThreadID = NS_PTR_TO_INT32(PR_GetCurrentThread());

  return NS_OK;
}

Here is the call graph for this function:

Corresponds to NPN_InvalidateRect.

Definition at line 874 of file nsPluginInstancePeer.cpp.

{
  if(!mOwner)
    return NS_ERROR_FAILURE;

  return mOwner->InvalidateRect(invalidRect);
}

Corresponds to NPN_InvalidateRegion.

Definition at line 883 of file nsPluginInstancePeer.cpp.

{
  if(!mOwner)
    return NS_ERROR_FAILURE;

  return mOwner->InvalidateRegion(invalidRegion);
}

Definition at line 280 of file nsPluginInstancePeer.cpp.

{
  nsresult rv;
  nsPluginStreamToFile*  stream = new nsPluginStreamToFile(target, mOwner);
  if(stream == nsnull)
    return NS_ERROR_OUT_OF_MEMORY;

  rv = stream->QueryInterface(kIOutputStreamIID, (void **)result);

  return rv;
}
void nsIPluginInstancePeer::newStream ( in nsMIMEType  aType,
in string  aTarget,
out nsIOutputStream  aResult 
) [inherited]

This operation is called by the plugin instance when it wishes to send a stream of data to the browser.

It constructs a new output stream to which the plugin may send the data. When complete, the Close and Release methods should be called on the output stream.

(Corresponds to NPN_NewStream.)

Parameters:
aType- MIME type of the stream to create
aTarget- the target window name to receive the data
aResult- the resulting output stream
Returns:
- NS_OK if this operation was successful

Definition at line 851 of file nsPluginInstancePeer.cpp.

{
  // get rid of the previous owner
  NS_IF_RELEASE(mOwner);

  mOwner = aOwner;
  NS_IF_ADDREF(mOwner);

  aOwner->GetInstance(mInstance);
  NS_IF_RELEASE(mInstance);
  return NS_OK;
}

Definition at line 770 of file nsPluginInstancePeer.cpp.

{
  return NS_OK;
}
void nsIPluginInstancePeer::setWindowSize ( in unsigned long  aWidth,
in unsigned long  aHeight 
) [inherited]

Set the desired size of the window in which the plugin instance lives.

Parameters:
aWidth- new window width
aHeight- new window height
Returns:
- NS_OK if this operation was successful

Definition at line 294 of file nsPluginInstancePeer.cpp.

{
  if (nsnull != mOwner)
    return mOwner->ShowStatus(message);
  else
    return NS_ERROR_FAILURE;
}

Here is the call graph for this function:

void nsIPluginInstancePeer::showStatus ( in string  aMessage) [inherited]

This operation causes status information to be displayed on the window associated with the plugin instance.

(Corresponds to NPN_Status.)

Parameters:
aMessage- the status message to display
Returns:
- NS_OK if this operation was successful

Member Data Documentation

readonly attribute unsigned long nsIPluginTagInfo2::borderHorizSpace [inherited]

Get border horizontal space.

Definition at line 129 of file nsIPluginTagInfo2.idl.

readonly attribute unsigned long nsIPluginTagInfo2::borderVertSpace [inherited]

Get border vertical space.

Definition at line 124 of file nsIPluginTagInfo2.idl.

Returns the DOM element corresponding to the tag which references this plugin in the document.

Parameters:
aDOMElement- resulting DOM element
Returns:
- NS_OK if this operation was successful

Definition at line 143 of file nsIPluginTagInfo2.idl.

readonly attribute unsigned long nsIPluginTagInfo2::height [inherited]

Get object height.

Definition at line 119 of file nsIPluginTagInfo2.idl.

Get the JavaScript context to this plugin instance.

Parameters:
aJSContext- the resulting JavaScript context
Returns:
- NS_OK if this operation was successful

Definition at line 89 of file nsIPluginInstancePeer2.idl.

readonly attribute unsigned long nsIPluginInstancePeer2::JSThread [inherited]

Get the JavaScript execution thread corresponding to this plugin instance.

Parameters:
aJSThread- the resulting JavaScript thread id
Returns:
- NS_OK if this operation was successful

Definition at line 81 of file nsIPluginInstancePeer2.idl.

Get the JavaScript window object corresponding to this plugin instance.

Parameters:
aJSWindow- the resulting JavaScript window object
Returns:
- NS_OK if this operation was successful

Definition at line 73 of file nsIPluginInstancePeer2.idl.

Returns the MIME type of the plugin instance.

(Corresponds to NPP_New's MIMEType argument.)

Parameters:
aMIMEType- resulting MIME type
Returns:
- NS_OK if this operation was successful

Definition at line 88 of file nsIPluginInstancePeer.idl.

Definition at line 192 of file nsPluginInstancePeer.h.

Definition at line 194 of file nsPluginInstancePeer.h.

Returns the mode of the plugin instance, i.e.

whether the plugin is embedded in the html, or full page.

(Corresponds to NPP_New's mode argument.)

Parameters:
result- the resulting mode
Returns:
- NS_OK if this operation was successful

Definition at line 99 of file nsIPluginInstancePeer.idl.

Definition at line 193 of file nsPluginInstancePeer.h.

Definition at line 196 of file nsPluginInstancePeer.h.

Definition at line 195 of file nsPluginInstancePeer.h.

Definition at line 47 of file nsPIPluginInstancePeer.idl.

Get the type of the HTML tag that was used ot instantiate this plugin.

Currently supported tags are EMBED, OBJECT and APPLET.

Definition at line 68 of file nsIPluginTagInfo2.idl.

readonly attribute unsigned long nsIPluginTagInfo2::uniqueID [inherited]

Returns a unique id for the current document containing plugin.

Definition at line 134 of file nsIPluginTagInfo2.idl.

readonly attribute unsigned long nsIPluginTagInfo2::width [inherited]

Get object width.

Definition at line 114 of file nsIPluginTagInfo2.idl.


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