nsIObjectLoadingContent
| IID: | 42f9358e-300f-4a44-afd7-7830b750e955 |
| Inherits From: | nsISupports |
This interface represents a content node that loads objects.
Constants
| PRUint32 | TYPE_LOADING | = 0 |
| PRUint32 | TYPE_IMAGE | = 1 |
| PRUint32 | TYPE_PLUGIN | = 2 |
| PRUint32 | TYPE_DOCUMENT | = 3 |
| PRUint32 | TYPE_NULL | = 4 |
Properties
readonly ACString actualType
The actual mime type (the one we got back from the network request) for the element.
readonly PRUint32 displayedType
Gets the type of the content that's currently loaded. See the constants above for the list of possible values.
Methods
[noscript] nsIPluginInstance ensureInstantiation ( )
PRUint32 getContentTypeForMIMEType ( AUTF8String mimeType )
[noscript] void hasNewFrame ( nsIObjectFrame frame )
nsIPluginInstance ensureInstantiation ( )
Makes sure that a frame for this object exists, and that the plugin is instantiated. This method does nothing if the type is not #TYPE_PLUGIN. There is no guarantee that there will be a frame after this method is called; for example, the node may have a display:none style. If plugin instantiation is possible, it will be done synchronously by this method, and the plugin instance will be returned. A success return value does not necessarily mean that the instance is nonnull.
This is a noscript method because it is internal and will go away once plugin loading moves to content.
PRUint32 getContentTypeForMIMEType ( AUTF8String mimeType )
Gets the content type that corresponds to the give MIME type. See the constants above for the list of possible values. If nothing else fits, TYPE_NULL will be returned.
- Arguments:
- mimeType
void hasNewFrame ( nsIObjectFrame frame )
Tells the content about an associated object frame. This can be called multiple times for different frames.
This is noscript because this is an internal method that will go away, and because nsIObjectFrame is unscriptable.
- Arguments:
- frame
Reference documentation is generated from Mozilla's source.
